/*
Theme Name: Hello Elementor Child
Theme URI: https://marinifarms.com/
Description: Child Theme per Marini Farms - Architettura multi-pagina, palette naturale e tipografia editoriale avanzata per Elementor Free.
Author: AntiGravity & Marini Farms
Author URI: https://marinifarms.com/
Template: hello-elementor
Version: 1.6.1
Text Domain: hello-elementor-child
*/

:root {
    --mf-green-dark: #2C3B1E;
    --mf-green-olive: #5B7038;
    --mf-green-light: #8FA85B;
    --mf-gold: #D4AF37;
    --mf-gold-light: #F3E5AB;
    --mf-cream: #FAF8F5;
    --mf-cream-alt: #F4F1EA;
    --mf-text-dark: #1E2516;
    --mf-text-muted: #5A6353;
    --mf-white: #ffffff;
    --mf-border: rgba(91, 112, 56, 0.16);
    --mf-radius-lg: 20px;
    --mf-radius-md: 12px;
    --mf-radius-pill: 50px;
    --mf-shadow: 0 10px 30px rgba(44, 59, 30, 0.08);
    --mf-shadow-hover: 0 16px 40px rgba(44, 59, 30, 0.14);
}

/* Base & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    background-color: var(--mf-cream);
    color: var(--mf-text-dark);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    color: var(--mf-green-dark);
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

p, span, li, a {
    overflow-wrap: break-word;
}

img.emoji {
    display: inline-block !important;
    border: none !important;
    box-shadow: none !important;
    height: 1.15em !important;
    width: 1.15em !important;
    max-width: 1.15em !important;
    margin: 0 0.2em !important;
    vertical-align: -0.15em !important;
    background: none !important;
    padding: 0 !important;
}

img:not(.emoji):not(.mf-logo-img):not(.mf-footer-logo), video, iframe {
    max-width: 100% !important;
    height: auto;
}

audio {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Nascondi il titolo predefinito grezzo di Hello Elementor poiché usiamo i nostri Hero / Sub-Hero dedicati */
.entry-header,
.entry-title,
.home .entry-title,
.page .entry-title {
    display: none !important;
}

/* ==========================================================================
   HEADER & NAVBAR MULTI-PAGINA
   ========================================================================== */
.mf-site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

/* Topbar */
.mf-topbar {
    background: var(--mf-green-dark);
    color: #F4F1EA;
    font-size: 13px;
    padding: 6px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.mf-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mf-topbar-right {
    display: flex;
    gap: 18px;
    align-items: center;
}
.mf-topbar-link {
    color: #F4F1EA;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mf-topbar-link:hover {
    color: var(--mf-gold-light);
}

/* Navbar Principale */
.mf-navbar {
    background: #ffffff;
    padding: 10px 20px;
}
.mf-navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
img.mf-logo-img,
.mf-brand .mf-logo-img,
.mf-logo-img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 60px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease;
}
.mf-brand:hover .mf-logo-img {
    transform: scale(1.03);
}
.mf-brand-text {
    display: flex;
    flex-direction: column;
}
.mf-brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--mf-green-dark);
    line-height: 1;
}
.mf-brand-tagline {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mf-green-olive);
    margin-top: 3px;
}

/* Menu Desktop */
.mf-desktop-nav {
    display: block;
}
.mf-nav-list {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.mf-nav-item a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--mf-green-dark);
    padding: 8px 2px;
    position: relative;
    transition: color 0.2s ease;
}
.mf-nav-item a:hover,
.mf-nav-item.active a {
    color: var(--mf-green-olive);
}
.mf-nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--mf-green-olive);
    transition: width 0.25s ease;
}
.mf-nav-item a:hover::after,
.mf-nav-item.active a::after {
    width: 100%;
}

/* CTA & Hamburger */
.mf-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mf-cta-btn {
    padding: 10px 22px !important;
    font-size: 14px !important;
}

/* Hamburger Icon */
.mf-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.mf-hamburger-bar {
    width: 24px;
    height: 2.5px;
    background-color: var(--mf-green-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Drawer & Overlay */
.mf-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mf-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mf-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0 !important;
    width: min(300px, 85vw);
    height: 100vh;
    background: #FAF8F5;
    z-index: 10001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    padding: 24px;
    box-sizing: border-box;
}
.mf-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}
.mf-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(91,112,56,0.15);
    padding-bottom: 16px;
}
.mf-drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--mf-green-dark);
    cursor: pointer;
}
.mf-drawer-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mf-drawer-list a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--mf-green-dark);
    display: block;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.mf-drawer-list a:hover {
    color: var(--mf-green-olive);
}

@media (max-width: 992px) {
    .mf-desktop-nav,
    .mf-cta-btn {
        display: none;
    }
    .mf-hamburger {
        display: flex;
    }
    .mf-topbar-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mf-brand-name {
        font-size: 20px;
    }
    .mf-brand-tagline {
        display: none;
    }
    img.mf-logo-img,
    .mf-brand .mf-logo-img,
    .mf-logo-img {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 45px !important;
        width: auto !important;
    }
}

/* ==========================================================================
   FOOTER A 4 COLONNE
   ========================================================================== */
.mf-site-footer {
    background: var(--mf-green-dark);
    color: #E2E8D8;
    padding: 70px 20px 25px;
    border-top: 3px solid var(--mf-gold);
}
.mf-footer-container {
    max-width: 1240px;
    margin: 0 auto;
}
.mf-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1.3fr;
    gap: 40px;
}
img.mf-footer-logo,
.mf-footer-brand .mf-footer-logo,
.mf-footer-logo {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin-bottom: 16px;
}
.mf-footer-bio {
    color: #C6D2BE;
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 18px;
}
.mf-footer-badge span {
    background: rgba(212, 175, 55, 0.15);
    color: var(--mf-gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.mf-footer-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    color: var(--mf-gold);
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 8px;
}
.mf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mf-footer-links a {
    color: #C6D2BE;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}
.mf-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.mf-footer-contact p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #C6D2BE;
    line-height: 1.6;
}
.mf-footer-contact a {
    color: var(--mf-gold-light);
    text-decoration: none;
}
.mf-footer-qr {
    margin-top: 14px;
    background: #ffffff;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
}
.mf-qr-img {
    height: 75px;
    width: 75px;
    display: block;
    margin: 0 auto;
}
.mf-footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #9EAB91;
}
.mf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.mf-footer-sublinks a {
    color: #C6D2BE;
    text-decoration: none;
}
.mf-footer-sublinks a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .mf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .mf-footer-grid {
        grid-template-columns: 1fr;
    }
    .mf-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   BOTTONI, CARD & COMPONENTI UI
   ========================================================================== */
.antigravity-card-floating {
    background: #ffffff;
    border-radius: var(--mf-radius-lg);
    padding: 32px 28px;
    box-shadow: var(--mf-shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--mf-border);
    position: relative;
    overflow: hidden;
}
.antigravity-card-floating:hover {
    transform: translateY(-6px);
    box-shadow: var(--mf-shadow-hover);
    border-color: rgba(91, 112, 56, 0.35);
}

.antigravity-btn-primary {
    background-color: var(--mf-green-dark);
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: var(--mf-radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.antigravity-btn-primary:hover {
    background-color: var(--mf-green-olive);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(91, 112, 56, 0.3);
}

.antigravity-btn-secondary {
    background-color: transparent;
    color: var(--mf-green-dark) !important;
    padding: 12px 26px;
    border-radius: var(--mf-radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: 2px solid var(--mf-green-dark);
}
.antigravity-btn-secondary:hover {
    background-color: var(--mf-green-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.antigravity-btn-whatsapp {
    background-color: #25D366;
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: var(--mf-radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}
.antigravity-btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.antigravity-badge-bio {
    background-color: rgba(91, 112, 56, 0.12);
    color: var(--mf-green-olive);
    padding: 6px 16px;
    border-radius: var(--mf-radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* Page Sub-Hero Banner per pagine interne */
.mf-subhero-banner {
    background: linear-gradient(rgba(44, 59, 30, 0.82), rgba(30, 42, 20, 0.9)), url('images/reali/panorama-collina-2.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px 55px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--mf-gold);
    box-sizing: border-box;
    width: 100%;
}
.mf-subhero-banner h1 {
    color: #ffffff;
    font-size: 46px;
    margin: 8px 0 10px;
}
.mf-subhero-banner p {
    color: #E2E8D8;
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE PERFECTION (320px - 768px)
   ========================================================================== */

/* Contenitori Principali */
.mf-page-container,
.mf-home-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Audio Player Container */
.mf-audio-card,
.mf-audio-player-wrap {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

@media (max-width: 900px) {
    .mf-hero-banner h1 {
        font-size: 40px !important;
    }
    .mf-subhero-banner h1 {
        font-size: 36px !important;
    }
}

@media (max-width: 768px) {
    /* Padding ridotto per tutte le card e contenitori per evitare overflow */
    .mf-section-card,
    .mf-product-card,
    .antigravity-card-floating,
    div[id="olio"],
    div[id="vino"],
    div[id="aceto"],
    div[style*="border-radius: 24px"],
    section[style*="border-radius: 24px"],
    div[style*="border-radius: 20px"],
    section[style*="border-radius: 20px"] {
        padding: 24px 18px !important;
        border-radius: 18px !important;
        margin-bottom: 30px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Grids: collasso sicuro a colonna singola */
    .mf-grid-2col,
    .mf-grid-3col,
    .mf-grid-4col,
    .mf-highlights-grid,
    div[style*="display: grid"],
    section[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Box informativi interni (Profilo sensoriale, Caratteristiche, ecc.) */
    .mf-info-box,
    div[style*="background: #FAF8F5"],
    div[style*="background: linear-gradient(135deg, #FAF8F5"] {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Immagini nelle schede prodotto e sezioni */
    .mf-product-card img:not(.emoji),
    .mf-section-card img:not(.emoji),
    div[id="olio"] img:not(.emoji),
    div[id="vino"] img:not(.emoji),
    div[id="aceto"] img:not(.emoji),
    div[style*="border-radius: 24px"] img:not(.emoji),
    section[style*="border-radius: 24px"] img:not(.emoji) {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        margin: 18px 0 0 !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
        display: block !important;
    }

    /* Scheda Audio Storytelling */
    .mf-audio-card,
    section[style*="La Storia di Marini Farms"],
    div[style*="Ascolta il Racconto"] {
        padding: 24px 18px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        gap: 18px !important;
    }
    .mf-audio-player-wrap,
    div[style*="background: rgba(255,255,255,0.08)"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 10px !important;
    }
}

@media (max-width: 600px) {
    /* Impilamento verticale uniforme di tutti i gruppi bottoni */
    .mf-btn-group,
    div[style*="display: flex; justify-content: center; gap:"],
    div[style*="display: flex; gap: 14px"],
    div[style*="display: flex; gap: 16px"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }

    .antigravity-btn-primary,
    .antigravity-btn-secondary,
    .antigravity-btn-whatsapp,
    .mf-btn,
    .mf-cta-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 12px 18px !important;
        font-size: 15px !important;
        margin: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        line-height: 1.35 !important;
    }

    .mf-btn-group > span {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 6px !important;
    }

    /* Schede Animali da Cortile */
    .mf-animals-grid,
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .mf-animals-grid > div,
    div[style*="grid-template-columns: repeat(3, 1fr)"] > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
        text-align: left !important;
        padding: 14px 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mf-animals-grid > div > span:first-child,
    div[style*="grid-template-columns: repeat(3, 1fr)"] > div > span:first-child {
        font-size: 32px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    /* Badge tempi di percorrenza e mete */
    .mf-destination-header,
    div[style*="display: flex; justify-content: space-between; align-items: baseline"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: center !important;
    }

    .mf-destination-header span,
    div[style*="display: flex; justify-content: space-between; align-items: baseline"] > span {
        margin-top: 4px !important;
        align-self: flex-start !important;
    }

    /* Scala tipografica proporzionata per smartphone */
    .mf-hero-banner {
        padding: 60px 16px 50px !important;
    }
    .mf-hero-banner h1 {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }
    .mf-hero-banner p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .mf-subhero-banner {
        padding: 40px 16px 35px !important;
        margin-bottom: 25px !important;
    }
    .mf-subhero-banner h1 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .mf-subhero-banner p {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }

    h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 21px !important;
        line-height: 1.35 !important;
    }

    /* Padding perimetrale della pagina */
    .mf-page-container,
    .mf-home-container,
    div[style*="max-width: 1200px; margin: 0 auto; padding: 20px 20px 80px;"],
    div[style*="max-width: 1100px; margin: 0 auto; padding: 20px 20px 80px;"] {
        padding: 15px 12px 60px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   LAYOUT A TUTTA PAGINA (pagine a shortcode, classe body .mf-fullpage)
   Le sezioni principali diventano fasce piene; il contenuto resta centrato a 1200px.
   ========================================================================== */
body.mf-fullpage .site-main,
body.mf-fullpage .page-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.mf-fullpage .mf-page-container,
body.mf-fullpage .mf-home-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.mf-fullpage .mf-subhero-banner {
    margin: 0 !important;
    padding: 110px 24px 100px !important;
    border-radius: 0 !important;
}
body.mf-fullpage .mf-subhero-banner h1 { font-size: 58px; }
body.mf-fullpage .mf-subhero-banner p { font-size: 19px; max-width: 760px; }
body.mf-fullpage .mf-hero-banner { padding: 130px 24px 110px !important; }

/* Fasce */
body.mf-fullpage .mf-home-container > section,
body.mf-fullpage .mf-page-container > div,
body.mf-fullpage .mf-page-container > section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding: 96px max(24px, calc((100% - 1200px) / 2)) !important;
}
/* Fasce scure: filo d'oro di separazione */
body.mf-fullpage .mf-audio-card,
body.mf-fullpage .mf-cta-pionieri {
    border-top: 3px solid var(--mf-gold) !important;
}
/* Il riquadro audio della home ha testo e lettore affiancati */
body.mf-fullpage .mf-home-container > .mf-audio-card { display: flex !important; }

/* Alternanza dei fondi tra fasce chiare */
body.mf-fullpage .mf-home-container > section:nth-child(1) { background: var(--mf-cream) !important; }
body.mf-fullpage .mf-home-container > section:nth-child(4) { background: var(--mf-cream-alt) !important; }
body.mf-fullpage .mf-pg-prodotti > #vino { background: var(--mf-cream-alt) !important; }
body.mf-fullpage .mf-pg-territorio > div:nth-child(4) { background: var(--mf-cream-alt) !important; }
body.mf-fullpage .mf-pg-agriturismo > section:nth-child(2) { background: var(--mf-cream-alt) !important; }
body.mf-fullpage .mf-pg-agriturismo > section:nth-child(6) { background: var(--mf-cream-alt) !important; }
body.mf-fullpage .mf-pg-chisiamo > .mf-people { background: var(--mf-cream-alt) !important; }
body.mf-fullpage .mf-pg-contatti > div:first-child { background: var(--mf-cream-alt) !important; }

/* Titoli di sezione piu' grandi nelle fasce */
body.mf-fullpage .mf-page-container > * > h2,
body.mf-fullpage .mf-home-container > section h2 { letter-spacing: -0.3px; }

/* Pagina pacchetti: intestazione a fascia piena con immagine */
body.mf-fullpage .mf-packages-header {
    margin: -20px calc(50% - 50vw) 50px !important;
    padding: 110px 24px 100px !important;
    background: linear-gradient(rgba(44, 59, 30, 0.82), rgba(30, 42, 20, 0.9)), url('images/reali/panorama-collina-2.jpg') center/cover no-repeat;
    border-bottom: 2px solid var(--mf-gold);
    text-align: center;
}
body.mf-fullpage .mf-packages-header .mf-packages-title { color: #ffffff !important; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 58px; }
body.mf-fullpage .mf-packages-header .mf-packages-subtitle { color: var(--mf-gold-light) !important; }
body.mf-fullpage .mf-packages-header .mf-packages-desc { color: #E2E8D8 !important; max-width: 760px; margin-left: auto; margin-right: auto; font-size: 18px; }

@media (max-width: 768px) {
    body.mf-fullpage .mf-home-container > section,
    body.mf-fullpage .mf-page-container > div,
    body.mf-fullpage .mf-page-container > section {
        padding: 64px 20px !important;
    }
    body.mf-fullpage .mf-subhero-banner,
    body.mf-fullpage .mf-packages-header { padding: 80px 20px 70px !important; }
    body.mf-fullpage .mf-hero-banner { padding: 90px 20px 70px !important; }
    body.mf-fullpage .mf-subhero-banner h1,
    body.mf-fullpage .mf-packages-header .mf-packages-title { font-size: 38px; }
}

/* Paragrafi vuoti che WordPress aggiunge attorno agli shortcode (creavano una striscia sopra il footer) */
body.mf-fullpage .page-content > p { margin: 0 !important; padding: 0 !important; }
/* Mappe Leaflet: il selettore dei livelli resta sopra la mappa */
.leaflet-control-layers { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; }

/* ==========================================================================
   SCHEDE PACCHETTI: stili mancanti nel CSS del plugin (le classi del markup non erano coperte)
   ========================================================================== */
body.mf-fullpage .mf-packages-header { max-width: none !important; }
.mf-packages-container { font-family: 'Plus Jakarta Sans', sans-serif !important; padding-bottom: 90px !important; }
.mf-packages-grid { gap: 30px; }
.mf-package-badge {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    background: var(--mf-green-dark); color: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mf-package-card.featured .mf-package-badge { background: var(--mf-gold); color: var(--mf-text-dark); }
.mf-card-media { height: 240px; overflow: hidden; background: #EAE6DF; }
.mf-card-media img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform 0.6s ease; }
.mf-package-card:hover .mf-card-media img { transform: scale(1.05); }
.mf-card-content { padding: 26px 26px 10px; flex: 1; }
.mf-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mf-meta-category {
    background: rgba(91,112,56,0.12); color: var(--mf-green-olive);
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 5px 12px; border-radius: 30px;
}
.mf-meta-duration { display: inline-flex; align-items: center; gap: 6px; color: var(--mf-text-muted); font-size: 13px; font-weight: 600; }
.mf-card-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; line-height: 1.2; color: var(--mf-green-dark); margin: 0 0 10px; }
.mf-card-summary { color: var(--mf-text-muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; }
.mf-features-title { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--mf-green-dark); margin-bottom: 10px; }
.mf-features-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.mf-features-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--mf-text-dark); padding: 6px 0; border-bottom: 1px dashed rgba(91,112,56,0.15); }
.mf-features-list li:last-child { border-bottom: 0; }
.mf-check-icon { flex: 0 0 22px; height: 22px; border-radius: 50%; background: rgba(91,112,56,0.14); color: var(--mf-green-olive); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mf-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 26px 26px; border-top: 1px solid rgba(91,112,56,0.12); background: var(--mf-cream); }
.mf-price-label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--mf-text-muted); }
.mf-price-value { display: flex; align-items: baseline; gap: 4px; color: var(--mf-green-dark); }
.mf-currency { font-size: 18px; font-weight: 700; }
.mf-amount { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 40px; font-weight: 700; line-height: 1; }
.mf-per-person { font-size: 13px; color: var(--mf-text-muted); }
.mf-action-block .mf-btn { white-space: nowrap; }

/* Le tessere delle mappe Leaflet non devono subire la regola generica sulle immagini */
.leaflet-container img:not(.emoji):not(.mf-logo-img):not(.mf-footer-logo) { max-width: none !important; max-height: none !important; }


/* Video reali di sfondo (hero home, agriturismo) */
.mf-bg-video:not(.x) { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; z-index: 0; }
.mf-bg-velo { position: absolute; inset: 0; background: linear-gradient(rgba(44,59,30,.6), rgba(30,42,20,.86)); z-index: 1; }
@media (prefers-reduced-motion: reduce) { .mf-bg-video { display: none; } }

/* Galleria "Dal vero" */
.mf-galleria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mf-galleria figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: #2C3B1E; }
.mf-galleria img:not(.x) { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .6s ease; }
.mf-galleria figure:hover img { transform: scale(1.05); }
.mf-galleria figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
@media (max-width: 900px) { .mf-galleria { grid-template-columns: repeat(2, 1fr); } }
