/*
Theme Name: Nille Child
Theme URI: https://nille.qodeinteractive.com
Description: A child theme of Nille Theme
Author: Select Themes
Author URI: http://themeforest.net/user/select-themes
Version: 1.0.0
Text Domain: nille
Template: nille
*/


/* ==========================================
   FOOTER – tutto centrato
   ========================================== */

.qodef-page-footer .qodef-footer-top-holder .qodef-column-content,
.qodef-page-footer .qodef-footer-top-holder .widget,
.qodef-page-footer .qodef-footer-top-holder .textwidget,
.qodef-page-footer .qodef-footer-top-holder p,
.qodef-page-footer .qodef-footer-top-holder ul {
    text-align: center !important;
}

.qodef-page-footer .qodef-footer-top-holder .widget ul {
    padding-left: 0 !important;
    list-style: none !important;
}

.qodef-page-footer .qodef-footer-bottom-holder .qodef-grid-col-6 > div,
.qodef-page-footer .qodef-footer-bottom-holder .widget,
.qodef-page-footer .qodef-footer-bottom-holder .textwidget,
.qodef-page-footer .qodef-footer-bottom-holder p {
    text-align: center !important;
    float: none !important;
}

/* Override regola che floata l'ultimo col a destra */
.qodef-page-footer .qodef-footer-bottom-holder
    .qodef-footer-bottom-inner .qodef-grid-col-6:last-child > div {
    float: none !important;
    text-align: center !important;
}

/* Centra le colonne footer-bottom (flex row) */
.qodef-page-footer .qodef-footer-bottom-holder .qodef-grid-row,
.qodef-page-footer .qodef-footer-top-holder .qodef-grid-row {
    justify-content: center;
    text-align: center;
}

/* Centra tutta la griglia del footer */
.qodef-page-footer .qodef-footer-bottom-inner .qodef-grid-col-12,
.qodef-page-footer .qodef-footer-top-inner .qodef-grid-col-12 {
    text-align: center !important;
}

/* ==========================================
   PAGINA PRODOTTI – categorie colore #912821
   ========================================== */

/* Loop prodotti standard (archive shop) – classe generata da nille_select_pl_category() */
.qodef-pl-category a,
ul.products > .product .qodef-pl-category a,
ul.products > .product .qodef-pli-category a {
    color: #912821 !important;
}

.qodef-pl-category a:hover,
ul.products > .product .qodef-pl-category a:hover,
ul.products > .product .qodef-pli-category a:hover {
    color: #000000 !important;
}

/* Shortcode product-list */
.qodef-pl-holder .qodef-pli .qodef-pli-category a,
.qodef-pl-holder .qodef-pli-inner .qodef-pli-text-inner .qodef-pli-category a {
    color: #912821 !important;
}

.qodef-pl-holder .qodef-pli .qodef-pli-category a:hover,
.qodef-pl-holder .qodef-pli-inner .qodef-pli-text-inner .qodef-pli-category a:hover {
    color: #000000 !important;
}

/* Shortcode product-list-carousel */
.qodef-plc-holder .qodef-plc-item .qodef-plc-category a {
    color: #912821 !important;
}
.qodef-plc-holder .qodef-plc-item .qodef-plc-category a:hover {
    color: #000000 !important;
}

/* ==========================================
   CONTATTI – contact form più compatta
   ========================================== */

.wpcf7-form p {
    margin-bottom: 8px !important;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-number,
.wpcf7-form-control.wpcf7-date,
.wpcf7-form-control.wpcf7-select {
    padding: 8px 14px !important;
    height: 42px !important;
    margin-bottom: 6px !important;
}

.wpcf7-form-control.wpcf7-textarea {
    padding: 10px 14px !important;
    min-height: 110px !important;
    margin-bottom: 6px !important;
    resize: vertical;
}

.wpcf7-form-control.wpcf7-submit {
    padding: 10px 36px !important;
    margin-top: 4px !important;
}

/* ==========================================
   PAGINA PRODOTTO SINGOLO – stile warm
   ========================================== */

/* Sfondo caldo su tutta l'area prodotto */
.qodef-woo-single-page .qodef-content {
    background-color: #fdf1ea;
}

/* Box principale immagine + summary */
.qodef-woo-single-page .qodef-single-product-content {
    background-color: #fdf1ea;
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 30px;
}

/* Immagine con bordo arrotondato */
.qodef-woo-single-page .qodef-single-product-content .images {
    border-radius: 12px;
    overflow: hidden;
}

.qodef-woo-single-page .qodef-single-product-content .images
    .woocommerce-product-gallery__image:first-child img {
    border-radius: 12px;
}

/* Titolo: separatore rosso sotto */
.qodef-woo-single-page .qodef-single-product-summary
    .qodef-single-product-title {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.qodef-woo-single-page .qodef-single-product-summary
    .qodef-single-product-title::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background-color: #912821;
}

/* Prezzo in rosso brand */
.qodef-woo-single-page .qodef-single-product-summary .price,
.qodef-woo-single-page .qodef-single-product-summary .price bdi,
.qodef-woo-single-page .qodef-single-product-summary .price span,
.qodef-woo-single-page .qodef-single-product-summary .price .woocommerce-Price-amount {
    color: #912821 !important;
}

/* Categorie nel meta (Categorie: CREMA, VISO) */
.qodef-woo-single-page .qodef-single-product-summary
    .product_meta > span > a {
    color: #912821 !important;
    letter-spacing: .4em;
}

.qodef-woo-single-page .qodef-single-product-summary
    .product_meta > span > a:hover {
    color: #000000 !important;
}


/* Miniature gallery in riga */
.qodef-woo-single-page .qodef-single-product-content .images
    .woocommerce-product-gallery--with-images
    .woocommerce-product-gallery__image:not(:first-child) {
    border-radius: 8px;
    overflow: hidden;
}

/* Rimuovi sfondo bianco di default dalla pagina per uniformare */
.qodef-woo-single-page .qodef-container {
    background-color: #fdf1ea;
}

/* Tabs descrizione */
.qodef-woo-single-page .woocommerce-tabs {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    margin-top: 10px;
}

/* Sfondo warm sulla shop/archive page (pagina prodotti) */
.post-type-archive-product .qodef-content,
.woocommerce.post-type-archive-product .qodef-content,
.tax-product_cat .qodef-content,
.tax-product_tag .qodef-content {
    background-color: #fdf1ea;
}

/* Le card prodotto restano su sfondo neutro per non scomparire nel caldo */
.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product {
    background-color: transparent;
}

/* ==========================================
   HOME – icone benefit più compatte
   ========================================== */

.vc_custom_1767947900379 .qodef-iwt.qodef-iwt-icon-top .qodef-iwt-icon img {
    display: block;
    width: 145px !important;
    max-width: 45% !important;
    height: auto !important;
    margin: 0 auto;
}

@media only screen and (max-width: 680px) {
    .vc_custom_1767947900379 .qodef-iwt.qodef-iwt-icon-top .qodef-iwt-icon img {
        width: 115px !important;
        max-width: 42% !important;
    }
}

/* ==========================================
   ABOUT ME - ordine sezioni responsive
   ========================================== */

@media only screen and (min-width: 1025px) {
    body.page-id-126 .vc_custom_1565596794634,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row {
        display: flex !important;
        flex-wrap: nowrap;
    }

    body.page-id-126 .vc_custom_1565596794634::before,
    body.page-id-126 .vc_custom_1565596794634::after,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row::before,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row::after {
        display: none !important;
    }

    body.page-id-126 .vc_custom_1565596794634 > .wpb_column,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row > .wpb_column {
        float: none !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media only screen and (max-width: 1024px) {
    body.page-id-126 .vc_custom_1565596794634,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row {
        display: flex !important;
        flex-direction: column;
    }

    body.page-id-126 .vc_custom_1565596794634::before,
    body.page-id-126 .vc_custom_1565596794634::after,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row::before,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row::after {
        display: none !important;
    }

    body.page-id-126 .vc_custom_1565596794634 > .wpb_column,
    body.page-id-126 .vc_custom_1565596794634 + .vc_row > .wpb_column {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.page-id-126 .vc_custom_1565596794634 > .wpb_column:first-child {
        order: 2;
    }

    body.page-id-126 .vc_custom_1565596794634 > .wpb_column:nth-child(2) {
        order: 1;
    }
}

/* ==========================================
   CONTATTI - mail in evidenza
   ========================================== */

body.page-id-558 .be-contact-email-wrap {
    margin: 0 !important;
    text-align: center !important;
}

body.page-id-558 .be-contact-email {
    display: inline-block;
    position: relative;
    max-width: calc(100vw - 40px);
    padding: 6px 0 16px;
    font-family: 'Cormorant', serif !important;
    font-size: clamp(22px, 2.1vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .04em;
    color: #912821 !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

body.page-id-558 .be-contact-email::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(180px, 42%);
    height: 1px;
    background-color: #912821;
    transform: translateX(-50%);
    transition: width .25s ease;
}

body.page-id-558 .be-contact-email:hover::after {
    width: min(260px, 56%);
}

@media only screen and (max-width: 680px) {
    body.page-id-558 .be-contact-email {
        font-size: 22px;
        letter-spacing: .02em;
        line-height: 1.2;
    }
}

/* ==========================================
   BANNER - effetto parallax
   ========================================== */

@media only screen and (min-width: 1025px) {
    body.page-id-558 .be-simple-hero,
    body.page-id-1857 .be-simple-hero {
        background-attachment: fixed !important;
        background-position: center top !important;
        background-size: 100% auto !important;
        min-height: clamp(220px, 19.15vw, 360px) !important;
    }
}

@media only screen and (max-width: 1024px) {
    body.page-id-558 .be-simple-hero,
    body.page-id-1857 .be-simple-hero {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
}
