/*------------------------------------------------------------------------------------- 
Theme Name:		 Fodis Child Theme
Theme URI:		 https://gramentheme.com/wp/fodis
Description:	 Fodis - Food & Restaurant WordPress Theme.
Author:			 BytezDevs
Author URI:		 https://themeforest.net/user/bytezdevs
Template:		 fodis
Version:		 1.0.0
Text Domain:	 fodis-child-theme
-------------------------------------------------------------------------------------*/
/*
    Please Add your custom styles here
*/

/* =====================================================================================
   GLOBAL COLORS OVERRIDE (Elementor & Theme)
   ===================================================================================== */
:root,
body,
[class*="elementor-kit"] {
    --e-global-color-accent: #009640 !important;
}

body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Rimuove la maiuscola forzata su ogni parola dei titoli */
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-widget-heading .elementor-heading-title {
    text-transform: none !important;
}

/* Rimuove lo sfondo hardcoded per permettere alle slide di avere i propri sfondi a pieno schermo */
.banner-wrapper.style1,
.banner-wrapper.style2 {
    background-image: none !important;
    background-color: #fff !important;
}

/* Sfondo scuro per il contenitore dello slider durante le transizioni fade per evitare stacchi chiari */
.banner-slider {
    background-color: #000 !important;
}

/* Disattiva le animazioni di ingresso "slideInLeft" sulle immagini di sfondo per permettere il fade puro di Swiper */
.banner-slider .shape1_2 {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Fix per l'altezza dinamica per rimuovere il gap in basso senza rompere Swiper */
.banner-wrapper.style1,
.banner-wrapper.style2 {
    height: 100% !important;
}

/* Sovrascrive il background dell'header superiore con l'immagine presente nel tema child */
.header-top-wrapper {
    background-image: url('assets/img/headerTopBg.png') !important;
}

.breadcumb-wrapper {
    min-height: 550px;
}

/* Regolazioni Overlay Sfondo */
.banner-wrapper.style1 .overlay,
.banner-wrapper.style2 .overlay {
    opacity: 0.1 !important;
}

/* =====================================================================================
   FULL-SCREEN SLIDER IMAGES (SHAPE FIX)
   ===================================================================================== */
/* Forza le immagini "shape" (che contengono le foto reali) a coprire tutto lo sfondo */
.banner-wrapper .shape1_2 {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 0 !important; 
}

.banner-wrapper .shape1_2 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin-top: 0 !important; /* Rimuove vecchi fix */
}

/* Porta i contenuti del testo in primo piano sopra la foto */
.banner-slider .container {
    position: relative !important;
    z-index: 10 !important;
}


/* =====================================================================================
   GLOBAL OVERFLOW & MOBILE FIXES
   ===================================================================================== */
html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}

/* Impedisce alle sezioni Elementor di "spingere" fuori dal viewport */
.elementor-section, .elementor-container {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    /* Disabilita background-attachment: fixed su mobile, che causa lo spazio bianco a destra */
    .banner-wrapper, .bg-img, [class*="bg-"] {
        background-attachment: scroll !important;
    }
    
    /* Forza il contenimento di eventuali riga troppo larghe */
    .row, .container, .container-fluid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}


/* =====================================================================================
   WOOCOMMERCE CATALOG MODE OVERRIDES
   Nasconde elementi che il tema fodis stampa forzatamente bypassando i filtri PHP
   ===================================================================================== */

/* Nasconde i prezzi ovunque (compresi i blocchi homepage) */
.price,
.product-about .price,
h6 .price,
.woocommerce-Price-amount,
.amount,
h6 .amount {
    display: none !important;
}

/* Nasconde votazioni, commenti e wishlist ovunque (Catalog Mode rigorosa) */
.star-rating,
.woocommerce-product-rating,
.woocommerce-Reviews,
.woosw-btn,
.yith-wcwl-add-to-wishlist,
.dishes-card .fa-star {
    display: none !important;
}

/* Risolve il problema dell'immagine ingrandita che copre i click del testo/pulsanti sottostanti */
.dishes-card.style2 .dishes-content {
    position: relative;
    z-index: 10;
}

/* Nasconde i bottoni "Aggiungi al carrello" in lista e singola */
.add_to_cart_button,
.single_add_to_cart_button,
.dishes-card .theme-btn.style6,
.product-about .actions .theme-btn {
    display: none !important;
}

/* Nasconde il selettore di quantità */
.quantity,
.product-about .actions .quantity {
    display: none !important;
}

/* Nasconde l'icona del carrello nell'header (opzionale, decommenta se vuoi toglierla) */
/* .header__right__dropdown__wrapper { display: none !important; } */


/* =====================================================================================
   BLOG GRID LAYOUT (Horizontal Order)
   ===================================================================================== */

/* Rimuove i padding (gutter) dalle colonne Bootstrap globally (RIMOSSO PERCHÈ ROMPE IL LAYOUT RESPONSIVE) */

/* Contenitore principale */
@media (min-width: 992px) {
    .blog-page-content-area .row>div:first-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        /* 2 colonne per ordine orizzontale */
        gap: 10px;
        padding: 0 10px;
    }
}

@media (min-width: 601px) and (max-width: 991px) {
    .blog-page-content-area .row>div:first-child {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .blog-page-content-area .row>div:first-child {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
}

.blog-main-item-01 {
    display: flex;
    /* Torniamo a flex per il layout interno */
    flex-direction: column;
    width: 100%;
    margin-bottom: 0 !important;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    height: 100%;
    /* Fa sì che tutti i box della stessa riga abbiano la stessa altezza */
}

/* Rimuove margin-top forzati che potrebbero rompere l'allineamento */
.blog-main-item-01+.blog-main-item-01 {
    margin-top: 0 !important;
}

.blog-main-item-01 .thumbnail-wrap img {
    width: 100%;
    height: auto;
    /* Altezza naturale per effetto masonry */
    display: block;
}

.blog-main-item-01 .content {
    padding: 10px !important;
    display: block;
}

/* Nasconde meta info */
.blog-main-item-01 .content .post-meta-wrap,
.blog-main-item-01 .content .post-author {
    display: none !important;
}

.blog-main-item-01 .content .title {
    font-size: 18px !important;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: none !important;
    /* Rimuove le maiuscole forzate su ogni parola */
}

.blog-main-item-01 .content p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #555;
    /* Opzionale: puoi togliere il line-clamp se vuoi che i box abbiano altezze diverse */
}

.blog-main-item-01 .blog-bottom {
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
    margin-top: 5px;
}

.blog-main-item-01 .link-btn {
    font-size: 12px !important;
    text-transform: uppercase;
    font-weight: 600;
    color: #EB0029 !important;
}

/* =====================================================================================
   FORMINATOR ORDER FORM PREMIUM STYLING
   ===================================================================================== */

#forminator-module-3326 {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

#forminator-module-3326 .forminator-label {
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#forminator-module-3326 .forminator-input,
#forminator-module-3326 .forminator-select,
#forminator-module-3326 .forminator-textarea {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    background-color: #f9f9f9 !important;
}

#forminator-module-3326 .forminator-input:focus,
#forminator-module-3326 .forminator-select:focus,
#forminator-module-3326 .forminator-textarea:focus {
    border-color: #EB0029 !important;
    box-shadow: 0 0 0 3px rgba(235, 0, 41, 0.1) !important;
    background-color: #fff !important;
}

#forminator-module-3326 .forminator-button-submit {
    background-color: #EB0029 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(235, 0, 41, 0.3) !important;
    border: none !important;
}

#forminator-module-3326 .forminator-button-submit:hover {
    background-color: #c40022 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 0, 41, 0.4) !important;
}

#forminator-module-3326 .forminator-row {
    margin-bottom: 20px !important;
}

/* Fix per dropdown con molte opzioni */
#forminator-module-3326 .forminator-select {
    cursor: pointer;
}

/* Forza l'immagine payoff a full-width rompendo il contenitore */
.elementor-element-59b3921,
.elementor-element-59b3921 .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-element-59b3921 img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* =====================================================================================
   MOBILE OPTIMIZATION & SWIPER REFINEMENT
   ===================================================================================== */

/* Swiper Slider Global Improvements */
.banner-slider .title {
    font-size: 70px;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Fix altezza immagini e swiper */
.banner-slider img {
    /* Rimossi i margini negativi e lasciato che l'object-fit lavori */
}


/* Swiper Pagination Styling (Centrata in basso a pallini) */
.banner-slider .swiper-pagination {
    position: absolute !important;
    top: auto !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 10 !important;
}

.banner-slider .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 2px solid transparent !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    /* Nascondiamo eventuali numeri stampati dentro il bullet dal tema base */
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.banner-slider .swiper-pagination-bullet-active {
    background-color: #009640 !important;
    border-color: #fff !important;
    transform: scale(1.2) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Nascondiamo le frecce di navigazione dello slider */
.banner-slider .swiper-button-next,
.banner-slider .swiper-button-prev,
.banner-slider .slider-arrow,
.banner-slider .arrowNext,
.banner-slider .arrowPrev,
.banner-slider .arrow-next,
.banner-slider .arrow-prev {
    display: none !important;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 991px) {
    /* Swiper Title reduction */
    .banner-slider .title {
        font-size: 42px !important;
        letter-spacing: -1px;
    }
}

@media (max-width: 767px) {
    /* Global Text Scaling */
    h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 32px !important; }
    h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 28px !important; }
    h3, .elementor-widget-heading h3.elementor-heading-title { font-size: 24px !important; }
    p { font-size: 16px !important; }

    /* Swiper Mobile Fixes */
    .banner-slider .title {
        font-size: 30px !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
    }
    
    .banner-wrapper {
        padding: 60px 20px !important;
        min-height: 450px !important;
        background-position: center bottom !important;
        background-size: cover !important;
    }

    /* Section padding normalization for mobile */
    .elementor-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* Ripristina il padding orizzontale per i blocchi di testo e corregge il line-height su mobile */
    body .title-area {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body .title-area .title {
        line-height: 1.2 !important;
    }

    /* Images not resizing fix (ensure max-width is respected) */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix for product items (icons too small or circles too big) */
    .product-item .img-box {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .banner-slider .title {
        font-size: 26px !important;
    }
    
    /* Better button sizing on mobile */
    .theme-btn {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
}

/* =====================================================================================
   BREADCRUMBS & SPECIFIC ELEMENTOR FIXES
   ===================================================================================== */

/* 1. Ombra per migliorare la leggibilità del testo sui banner (es. Contatti) */
.breadcumb-content .breadcumb-title,
.breadcumb-content .page-list,
.breadcumb-content .page-list li,
.breadcumb-content .page-list li a,
.breadcumb-content .page-list li span {
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.7), 0px 5px 15px rgba(0, 0, 0, 0.4) !important;
}

/* 2. Fix immagine sponsorship su mobile */
@media (max-width: 1024px) {
    .elementor-3331 .elementor-element.elementor-element-ddc7e33 {
        --padding-top: 0px;
        --padding-bottom: 0px;
        --padding-left: 0px;
        --padding-right: 0px;
        background-position-x: -300px !important;
    }
}

/* =====================================================================================
   PRODUCT IMAGES ENLARGEMENT
   ===================================================================================== */
/* Ingrandisce visivamente le immagini (bottiglie) all'interno delle product card */
.dishes-card .dishes-thumb img {
    transform: scale(1.50) !important;
    transition: transform 0.4s ease-in-out !important;
}

/* Leggero effetto zoom aggiuntivo al passaggio del mouse per renderlo dinamico */
.dishes-card:hover .dishes-thumb img {
    transform: scale(1.60) !important;
}

/* Ingrandisce l'immagine anche nella pagina singola del prodotto */
/* Usiamo i padding invece dello scale per non rompere la lente d'ingrandimento (zoom) di WooCommerce */
.product-big-img {
    padding: 20px 40px !important;
}
@media (max-width: 767px) {
    .product-big-img {
        padding: 20px !important;
    }
}

/* =====================================================================================
   MOBILE FIXES (Homepage & About Sections)
   ===================================================================================== */
@media (max-width: 767px) {
    /* 1. Immagini a filo larghezza (compensa il padding del contenitore Bootstrap) */
    .about-us .about-thumb,
    .about-wrapper .about-thumb {
        margin-left: -15px !important;
        margin-right: -15px !important;
        width: calc(100% + 30px) !important;
        max-width: none !important;
    }
    .about-us .about-thumb img,
    .about-wrapper .about-thumb img {
        width: 100% !important;
        border-radius: 0 !important;
    }

    /* 2. Riduce i padding eccessivi che schiacciano il testo */
    .title-area,
    .about-us .title-area,
    .about-us .title-area .title,
    .about-us .title-area .text,
    .about-us .title-area .sub-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Assicura che le colonne non abbiano padding anomali su mobile */
    .about-us .col-lg-6 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}