/* MicioPlus restyle override layer.
   Loaded LAST in head.php so it wins the cascade over style.css, plugins.css, layout.css, and Bootstrap.
   Keep edits additive — do not modify the original style.css. */

/* === ITERATION 1: editorial-luxury typography (LVR-inspired) === */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
/* Fraunces — variable serif for hero "fancy lettering" only. Optical size and SOFT axis enabled. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,400..800,0..100;1,9..144,400..800,0..100&display=swap');
/* Personality fonts — one per "personality tier" of the age sections */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Fredoka:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --restyle-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --restyle-tracking-label: 0.14em;   /* tracked-out caps for section labels */
    --restyle-tracking-brand: 0.08em;   /* product brand chip */
    --restyle-color-muted: #6b6b6b;
}

/* Override the bought-theme's font stack site-wide */
body,
p,
h1, h2, h3, h4, h5, h6,
a, span, div, li, button, input, textarea, select, label,
.main-menu nav ul li a,
.menu-overflow li a,
.same-language-currency a,
.footer-list a,
.footer-title h3, .footer-title h4,
.section-title h2, .section-title h4,
.product-content h3,
.product-content h3 a,
.product-price,
.btn-sm-red, .btn-sm-orange,
.swal-button {
    font-family: var(--restyle-font-sans) !important;
}

/* Slightly lighter baseline weight for body copy */
body { font-weight: 400; }

/* Section labels like "Spedizione Gratuita" / future "GIRLS' SHOES" — tracked uppercase */
.section-title h2,
.section-title h4 {
    text-transform: uppercase;
    letter-spacing: var(--restyle-tracking-label);
    font-weight: 500;
}

/* Product card — LVR-style: brand name as small tracked caps, item name lighter, price clean */
.product-content h3 {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}
.product-content h3 b,
.product-content h3 strong:first-of-type {
    display: block;
    text-transform: uppercase;
    letter-spacing: var(--restyle-tracking-brand);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    color: #000;
}
.product-content h3 strong {
    font-weight: 500;
    color: var(--restyle-color-muted);
}
.product-price {
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 6px;
}

/* Top utility bar (About / Account / Contatti) — quiet sans, no underlines */
.language-currency-wrap .same-language-currency a,
.same-language-currency a {
    letter-spacing: 0.06em;
    font-weight: 500;
    font-size: 12px;
}

/* Main nav — lighter, more spaced */
.main-menu nav ul li a {
    font-weight: 500;
    letter-spacing: 0.04em;
    font-size: 13px;
}

/* Footer headings — tracked caps like LVR's COMPANY / CUSTOMER SERVICE */
.footer-title h3,
.footer-title h4 {
    text-transform: uppercase;
    letter-spacing: var(--restyle-tracking-label);
    font-weight: 600;
    font-size: 13px;
}
.footer-list ul li a {
    font-size: 13px;
    color: var(--restyle-color-muted);
}

/* === ITERATION 2: editorial category tile grid (LVR-aligned) === */
.home-tiles-section {
    padding: 22px 0 28px;
    background: #fff;
}
.home-tiles-section + .home-tiles-section { padding-top: 0; }

.home-tiles-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
.home-tile {
    grid-column: span 12;
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    color: #fff;
    background: #f4f4f4;
}
.home-tile:hover { color: #fff; }
.home-tile__media {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.home-tile:hover .home-tile__media { transform: scale(1.05); }

.home-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 36px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.42) 100%);
}
.home-tile__title {
    color: #fff !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 32px;
    line-height: 1.12;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 14px rgba(0,0,0,0.22);
}
.home-tile__subtitle {
    color: rgba(255,255,255,0.94) !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

/* Smaller tiles (span < 6): tighter padding, smaller title */
.home-tile--span-2 .home-tile__overlay,
.home-tile--span-3 .home-tile__overlay,
.home-tile--span-4 .home-tile__overlay { padding: 24px 26px; }
.home-tile--span-2 .home-tile__title,
.home-tile--span-3 .home-tile__title,
.home-tile--span-4 .home-tile__title { font-size: 24px; }

/* Column spans — desktop */
.home-tile--span-2  { grid-column: span 2;  }
.home-tile--span-3  { grid-column: span 3;  }
.home-tile--span-4  { grid-column: span 4;  }
.home-tile--span-5  { grid-column: span 5;  }
.home-tile--span-6  { grid-column: span 6;  }
.home-tile--span-7  { grid-column: span 7;  }
.home-tile--span-8  { grid-column: span 8;  }
.home-tile--span-9  { grid-column: span 9;  }
.home-tile--span-10 { grid-column: span 10; }
.home-tile--span-11 { grid-column: span 11; }
.home-tile--span-12 { grid-column: span 12; }

/* Tablet — collapse 4-col tiles to half-width */
@media (max-width: 991px) {
    .home-tile--span-2,
    .home-tile--span-3,
    .home-tile--span-4 { grid-column: span 6; }
    .home-tile--span-5,
    .home-tile--span-7,
    .home-tile--span-8,
    .home-tile--span-9,
    .home-tile--span-10,
    .home-tile--span-11 { grid-column: span 12; }
}
/* Mobile — everything full-width */
@media (max-width: 575px) {
    .home-tiles-grid { gap: 12px; }
    .home-tile { grid-column: span 12 !important; aspect-ratio: 16 / 11; }
    .home-tile__overlay { padding: 20px 22px; }
    .home-tile__title { font-size: 22px; }
}

/* === ITERATION 3: split header — free utility links + centered pill =======
   The outer wrapper is a transparent full-width fixed bar.
   - .header-top-area floats utility links (About / Accedi / Contatti) free
     at the top edge, no box. Text color switches via .is-over-hero (set by JS).
   - .header-bottom is the boxed pill (logo + nav + search + cart),
     sized to content, centered horizontally.
=========================================================================== */
body { margin: 0; }

header.header-area {
    position: fixed;
    top: 14px;
    left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
}

/* Kill the legacy bg/border on top-area inherited from layout.css */
header.header-area .header-top-area,
header.header-area .footer-area { background: none !important; border: 0 !important; }

/* === Utility links: free-floating at the top, no box === */
header.header-area .header-top-area {
    background: transparent !important;
    border: none !important;
    padding: 0 36px !important;
}
header.header-area .header-top-wap {
    padding: 4px 0 12px !important;
    min-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 22px;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    max-height: 60px;
    opacity: 1;
    overflow: hidden;
}
header.header-area .header-top-wap .language-currency-wrap,
header.header-area .header-top-wap .header-offer {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 !important;
    margin: 0 !important;
}
header.header-area .header-top-wap .same-language-currency {
    padding: 0 !important;
    margin: 0 !important;
}
header.header-area .header-top-wap .same-language-currency a {
    line-height: 1 !important;
    font-size: 11px !important;
    letter-spacing: 0.10em;
    font-weight: 600;
    color: #111 !important;  /* default: dark on light content */
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
header.header-area .header-top-wap .same-language-currency:before,
header.header-area .header-top-wap .same-language-currency:after { display: none !important; }

/* When the header sits over the hero, utility links go white with shadow */
header.header-area.is-over-hero .header-top-wap .same-language-currency a {
    color: #fff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* === The centered pill: logo + nav + search + cart === */
header.header-area .header-bottom {
    display: block !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    padding: 0 28px !important;
    min-height: 0 !important;
}
header.header-area .header-bottom > .container-fluid {
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* Inner row: flex, content-sized so the pill auto-fits */
header.header-area .header-bottom .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    width: auto !important;
    min-height: 60px;
}
header.header-area .header-bottom .row > [class*="col-"] {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 16px !important;
}

/* Logo: hard cap height */
header.header-area .logo,
header.header-area .header-bottom .logo { margin: 0 !important; line-height: 0; }
header.header-area .logo a,
header.header-area .header-bottom .logo a { display: inline-block; line-height: 0; }
header.header-area .logo img,
header.header-area .header-bottom .logo img {
    max-height: 36px !important;
    height: 36px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block;
}

/* Main nav: flex, content-sized */
header.header-area .main-menu nav { display: flex; align-items: center; }
header.header-area .main-menu nav ul {
    margin: 0; padding: 0; list-style: none;
    display: flex; align-items: center; justify-content: center;
}
header.header-area .main-menu nav ul li { padding: 0 14px !important; list-style: none; }
header.header-area .main-menu nav ul li a {
    line-height: 60px !important;
    padding: 0 !important;
    font-size: 13px !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
/* Compact nav at narrower viewports so the pill can fit all items */
@media (max-width: 1399px) {
    header.header-area .main-menu nav ul li { padding: 0 10px !important; }
    header.header-area .main-menu nav ul li a { font-size: 12px !important; letter-spacing: 0; }
}
@media (max-width: 1199px) {
    header.header-area .main-menu nav ul li { padding: 0 8px !important; }
    header.header-area .main-menu nav ul li a { font-size: 12px !important; }
    header.header-area .header-bottom { padding: 0 18px !important; }
    header.header-area .header-bottom .row > [class*="col-"] { padding: 0 10px !important; }
}
@media (max-width: 991px) {
    header.header-area .main-menu nav ul li { padding: 0 6px !important; }
    header.header-area .main-menu nav ul li a { font-size: 11px !important; line-height: 54px !important; }
    header.header-area .header-bottom { padding: 0 14px !important; max-width: calc(100vw - 20px) !important; }
    header.header-area .header-bottom .row { min-height: 54px !important; }
    header.header-area .header-bottom .row > [class*="col-"] { padding: 0 8px !important; }
    header.header-area .logo img { max-height: 30px !important; height: 30px !important; }
}

/* Right column: search + cart inline */
header.header-area .header-right-wrap {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
header.header-area .header-right-wrap .same-style { margin: 0 !important; padding: 0 !important; }
header.header-area .header-right-wrap a { line-height: 1 !important; font-size: 18px; }

/* Hamburger button — visible only on mobile (< md) */
header.header-area .header-hamburger {
    display: none;
    background: none;
    border: 0;
    padding: 4px;
    margin: 0;
    color: #111;
    cursor: pointer;
    line-height: 0;
}
header.header-area .header-hamburger svg { width: 22px; height: 22px; }
@media (max-width: 1199px) {
    header.header-area .header-hamburger { display: inline-flex; align-items: center; }
}

/* Mobile-style nav — full-width slide-down panel + hamburger.
   Triggered at <=1199px (Bootstrap lg) because the 8-item inline nav
   can't share the row with a centered logo at common laptop widths. */
@media (max-width: 1199px) {
    /* Override the meanmenu/legacy hide behavior */
    .header-area .mobile-menu-area,
    .mobile-menu-area {
        position: fixed !important;
        top: 0 !important;
        left: 10px !important;
        right: 10px !important;
        margin: 0 !important;
        padding: 18px 22px !important;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        z-index: 1001;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease;
        display: block !important;
    }
    body.mobile-nav-open .mobile-menu-area {
        transform: translateY(80px);
        opacity: 1;
        pointer-events: auto;
    }

    /* The legacy meanmenu plugin clones the source nav into a .mean-bar
       inside .mean-container and hides the original via inline display:none.
       We hide only meanmenu's generated chrome (NOT .mean-container itself —
       it wraps our visible menu) and force the original markup back. */
    .mean-bar,
    .meanmenu-reveal,
    .mean-nav { display: none !important; }
    /* Keep .mean-container as a transparent passthrough */
    .mean-container { background: transparent !important; padding: 0 !important; margin: 0 !important; }

    .mobile-menu-area .mobile-menu,
    .mobile-menu-area .mobile-menu nav,
    .mobile-menu-area nav#mobile-menu-active,
    .mobile-menu-area nav#mobile-menu-active ul.menu-overflow,
    .mobile-menu-area .menu-overflow > li {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .mobile-menu-area .mobile-menu nav ul.menu-overflow {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .mobile-menu-area .menu-overflow > li {
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        list-style: none !important;
    }
    .mobile-menu-area .menu-overflow > li:last-child { border-bottom: none !important; }
    .mobile-menu-area .menu-overflow > li > a {
        display: block !important;
        padding: 14px 4px !important;
        color: #111 !important;
        background: transparent !important;
        font-family: var(--restyle-font-sans) !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        letter-spacing: 0.02em !important;
        text-decoration: none !important;
        line-height: 1.3 !important;
        text-transform: none !important;
        border: none !important;
    }
    .mobile-menu-area .menu-overflow > li > a:hover { color: var(--main-color) !important; }

    /* Backdrop scrim behind the mobile menu */
    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1000;
        opacity: 1;
        animation: mobileNavScrimIn 0.25s ease;
    }
    body.mobile-nav-open { overflow: hidden; }
}
@keyframes mobileNavScrimIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* When scrolled past hero: collapse utility row, slide pill closer to top */
header.header-area {
    transition: top 0.4s cubic-bezier(.2,.7,.2,1);
}
header.header-area.is-scrolled { top: 8px; }
header.header-area.is-scrolled .header-top-wap {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
}

/* Neutralize the legacy theme's sticky-bar / .stick behavior — our header is
   already position:fixed at the document level, we don't want a second
   sticky layer that would yank .header-bottom out of the pill geometry. */
header.header-area .header-bottom.stick,
header.header-area .header-bottom.sticky-bar.stick {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 48px) !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    padding: 0 28px !important;
}

/* The fixed header overlays the hero — no body padding needed because the
   slideshow itself is 100vh and starts at the very top of the document. */

/* === ITERATION 3: full-screen hero slideshow ============================== */
.hero-slideshow {
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    overflow: hidden;
    background: #111;
    transition: filter 0.9s cubic-bezier(.2,.7,.2,1);
}
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide__media {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}
.hero-slide.is-active .hero-slide__media {
    animation: heroKenBurns 12s linear forwards;
}
@keyframes heroKenBurns {
    from { transform: scale(1.02) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-slide__overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.0) 70%, rgba(0,0,0,0.30) 100%);
    color: #fff;
    text-align: center;
    padding: 96px 32px 64px;
}
.hero-slide__inner {
    max-width: 980px;
    position: relative;
    z-index: 2;
}

.hero-slide__title {
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(46px, 8.5vw, 132px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    text-shadow: 0 6px 36px rgba(0,0,0,0.32);
}
.hero-slide__title em {
    display: inline-block;
    font-family: 'Fraunces', Georgia, serif !important;
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 60;
    letter-spacing: -0.01em;
    transform: translateY(0.04em);  /* optical baseline nudge with serif italic */
}
/* Brand-color rotation per slide */
.hero-slide[data-index="0"] .hero-slide__title em { color: #cb1315; } /* red */
.hero-slide[data-index="1"] .hero-slide__title em { color: #8CC63F; } /* green */
.hero-slide[data-index="2"] .hero-slide__title em { color: #FFA500; } /* orange */
.hero-slide[data-index="3"] .hero-slide__title em { color: #cb1315; }
.hero-slide[data-index="4"] .hero-slide__title em { color: #8CC63F; }
.hero-slide[data-index="5"] .hero-slide__title em { color: #FFA500; }

.hero-slide__subtitle {
    color: rgba(255,255,255,0.94) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0 0 28px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.hero-slide__cta {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #111 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}
.hero-slide__cta:hover {
    background: #111;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Pagination dots */
.hero-slideshow__dots {
    position: absolute;
    bottom: 32px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 10px;
    z-index: 2;
}
.hero-slideshow__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}
.hero-slideshow__dot.is-active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}
.hero-slideshow__dot:hover { background: rgba(255,255,255,0.75); }

/* Recede state: when scroll-reveal triggers, hero softens slightly.
   Kept gentle so brief over-firing doesn't visibly dim the foreground UI. */
.hero-slideshow.is-receding {
    filter: blur(4px) brightness(0.92);
}

/* === ITERATION 3: scroll-reveal section =================================== */
/* The section directly following the slideshow gets the slide-up reveal */
.reveal-section {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    padding-top: 60px;
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(.2,.7,.2,1), opacity 0.7s ease;
}
.reveal-section.is-revealed {
    transform: translateY(0);
    opacity: 1;
}

/* === ITERATION 4: product cards — equal-height, pill CTA at the bottom === */
.product-area .row,
.product-area .custom-row,
.product-area > .container > .row,
.product-area > .container-fluid > .row,
.product-area > .container-fluid > .custom-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    margin: 0 -8px;  /* match Bootstrap row negative-margin behavior */
}
.product_box {
    display: flex;
    margin-bottom: 26px;
}
/* When the legacy filter JS (custom.js) hides products via inline
   display:none, that inline style must win over the .product_box display
   rule. Without !important on our rule, the inline style is more specific
   already; we keep this explicit override as belt-and-braces. */
.product_box[style*="display: none"],
.product_box[style*="display:none"] { display: none !important; }
.product_box .product-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0 !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease;
}
.product_box .product-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* Image area — fixed aspect ratio for equal-height alignment.
   Both default-img and hover-img are absolutely positioned at the SAME inset:0
   so toggling opacity on hover doesn't shift geometry. */
.product_box .product-img-link {
    display: block;
    text-decoration: none;
}
.product_box .product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f6f6f6;
    border: 0 !important;
    border-radius: 0 !important;
}
.product_box .product-img img.default-img,
.product_box .product-img img.hover-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    transform: none !important;          /* override legacy translate(-50%, 20px) on hover-img */
    visibility: visible !important;      /* override legacy visibility: hidden */
    transition: opacity 0.5s ease, filter 0.5s ease;
}
.product_box .product-img img.default-img { opacity: 1; }
.product_box .product-img img.hover-img   { opacity: 1; }
.product_box .product-wrap:hover .product-img img.default-img { opacity: 0; }
.product_box .product-wrap:hover .product-img img.hover-img   { opacity: 1; }
.product_box .product-img img.hover-img.ruota {
    filter: sepia(100%) brightness(0.9);
}
.product_box .product-wrap:hover .product-img img.hover-img.ruota {
    filter: sepia(0%) brightness(1);
}

/* Discount badge — small pill at the top-left of the image */
.product_box .product-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    z-index: 2;
    display: inline-block !important;
    width: auto !important;
    max-width: max-content !important;
    background: var(--main-color); /* brand red */
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    text-transform: none;
}

/* Content area: brand → name → price → savings → CTA */
.product_box .product-content {
    padding: 18px 18px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product_box .product-meta {
    margin: 0 0 10px;
    min-height: 0;
}
.product_box .product-meta a {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}
.product_box .product-brand {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 700;
    font-size: 11px;
    color: #000;
    margin-bottom: 4px;
}
.product_box .product-name {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: var(--restyle-color-muted);
    line-height: 1.35;
}

/* Prices */
.product_box .product-price {
    margin: 4px 0 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}
.product_box .product-price__now {
    font-weight: 700;
    color: #000;
}
.product_box .product-price__was {
    font-weight: 400;
    color: var(--restyle-color-muted);
    text-decoration: line-through;
    font-size: 12px;
}
.product_box .product-savings {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #2a8a2a;
    letter-spacing: 0.04em;
}

/* CTA pill — sticks to the bottom of the card */
.product_box .product-cta {
    display: block;
    margin: 14px auto 0;
    margin-top: auto;
    padding: 12px 22px;
    background: var(--main-color);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    width: max-content;
    min-width: 60%;
}
.product_box .product-cta:hover {
    background: #111;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Mobile: tighter padding, slightly smaller CTA */
@media (max-width: 575px) {
    .product_box { margin-bottom: 18px; }
    .product_box .product-content { padding: 14px 12px; }
    .product_box .product-cta { padding: 10px 16px; font-size: 10px; }
}

/* === ITERATION 5: filter sidebar — pill-styled chips =====================
   Listings pages use container.php which renders .shop-sidebar on the left
   with the filter accordion. Each filter value is an <a class="_filter ...">
   chip. We repurpose the "pill" aesthetic from the earlier iteration onto
   these existing filter elements instead of a standalone pill row.
========================================================================== */

/* Inner pages: push content below the fixed boxed header */
body { padding-top: 0; }
.shop-area { padding-top: 140px !important; }
.breadcrumb-area { margin-top: 140px; padding-top: 12px !important; }
.breadcrumb-area + .shop-area { padding-top: 30px !important; }

/* Sidebar shouldn't clip expanded accordions */
.shop-sidebar,
.shop-sidebar .sidebar-widget,
.shop-sidebar .product-filter,
.shop-sidebar .collapse,
.shop-sidebar .collapse-content { overflow: visible !important; }

/* Kill the legacy card look on .product-filter-wrapper — no background, no
   shadow, no padding, no inner overflow/max-height. The outer sticky sidebar
   already provides the scroll, and we want a flat layout, not a boxed one. */
.shop-sidebar .product-filter-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
}
.shop-sidebar .product-filter-wrapper::-webkit-scrollbar { display: none; }

/* Filter section heading (Taglie / Prezzo / Stagioni / …) */
.shop-sidebar .product-filter > h5 {
    font-family: var(--restyle-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    margin: 0 0 12px;
    padding: 14px 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shop-sidebar .product-filter > h5 i {
    transition: transform 0.25s ease;
    color: var(--main-color);
}
.shop-sidebar .product-filter > h5:not(.collapsed) i,
.shop-sidebar .product-filter > h5[aria-expanded="true"] i { transform: rotate(180deg); }

/* The collapse content holds the <ul> of chips */
.shop-sidebar .collapse-content { padding: 4px 0 16px; }
.shop-sidebar .collapse-content > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.shop-sidebar .collapse-content > ul > li { list-style: none; margin: 0; }

/* The pill-shaped filter chip */
.shop-sidebar a._filter {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: #fff;
    border: 1.5px solid var(--main-color);
    border-radius: 999px;
    color: var(--main-color) !important;
    font-family: var(--restyle-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.shop-sidebar a._filter:hover {
    background: var(--main-color);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(203, 19, 21, 0.18);
}
/* Active/selected — legacy JS appends "-sel-sel" suffix classes */
.shop-sidebar a._filter.sel,
.shop-sidebar a._filter.taglia-sel-sel,
.shop-sidebar a._filter.cat-sel-sel,
.shop-sidebar a._filter.color-sel-sel,
.shop-sidebar a._filter.brand-sel-sel,
.shop-sidebar a._filter.stagione-sel-sel,
.shop-sidebar a._filter[class*="-sel-sel"] {
    background: var(--main-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(203, 19, 21, 0.28);
}

/* Price range slider */
.shop-sidebar .price-filter { padding: 6px 4px 12px; }
.shop-sidebar .price-filter #amount {
    border: none;
    background: transparent;
    color: #111;
    font-family: var(--restyle-font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    margin-bottom: 12px;
}
.shop-sidebar #slider-range.ui-slider {
    background: rgba(0, 0, 0, 0.08);
    border: none;
    height: 4px;
    border-radius: 4px;
    margin: 8px 4px;
}
.shop-sidebar #slider-range .ui-slider-range { background: var(--main-color); }
.shop-sidebar #slider-range .ui-slider-handle {
    background: #fff;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    width: 16px; height: 16px;
    top: -7px;
    cursor: pointer;
}

/* "Ordina per" sort dropdown — now in the right column (above product grid) */
.shop-top-bar { margin-bottom: 24px; }
.shop-top-bar .select-shoing-wrap {
    display: flex !important;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-top-bar .shop-select {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
}
.shop-top-bar .shop-select select {
    font-family: var(--restyle-font-sans) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    padding: 9px 38px 9px 18px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 999px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23cb1315' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    cursor: pointer;
    width: auto !important;
    min-width: 0 !important;
    max-width: 240px !important;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}
.shop-top-bar .shop-select select:hover { border-color: var(--main-color) !important; }
.shop-top-bar .remove_filters {
    border-bottom: none !important;
    color: var(--main-color) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 !important;
}
.shop-top-bar .filter-active a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1.5px solid var(--main-color);
    border-radius: 999px;
    color: var(--main-color) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
}

/* === Sticky filter sidebar with internal scrolling ====================
   Without max-height, sticky positioning clipped the bottom of the
   sidebar once filter content exceeded the viewport height. Constrain
   the sidebar and give it its own scroll. */
.shop-area .row,
.shop-area > .container > .row { align-items: flex-start !important; }

@media (min-width: 992px) {
    .shop-sidebar.sidebar-sticky {
        position: sticky;
        top: 160px;
        max-height: calc(100vh - 180px);
        overflow-y: auto !important;
        overflow-x: visible !important;
        padding-right: 4px;
        /* Hide the scrollbar visually — scroll still works via wheel/trackpad/touch */
        scrollbar-width: none;
    }
    .shop-sidebar.sidebar-sticky::-webkit-scrollbar { width: 0; display: none; }
}

/* === ITERATION 6: product detail — LVR-style sleek layout ============= */

/* Hide the legacy ml-70 left margin and the old in-page meta strip;
   everything we want is in the new content block. */
.product-details-content.product-details-content--lvr { margin-left: 0 !important; padding-left: 0; }

/* Hide the legacy "Info Articolo" tab (info is now in our accordions) */
.description-review-area { display: none !important; }

/* Hide the legacy "garanzie" service strip on product pages
   — info is in the "Spedizioni e resi" accordion */
.shop-area + style + hr + .suppoer-area,
.shop-area + style + .suppoer-area,
.shop-area + .suppoer-area { display: none; }

/* Top "shop-area" needs to clear the fixed header on this page too */
.shop-area[itemtype*="schema.org/Product"] {
    padding-top: 140px !important;
}

/* Sticky right column on desktop so info stays visible while scrolling images */
@media (min-width: 992px) {
    .shop-area[itemtype*="schema.org/Product"] > .container > .row {
        align-items: flex-start;
    }
    .product-details-content--lvr {
        position: sticky;
        top: 160px;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        scrollbar-width: none;
        padding-right: 4px;
    }
    .product-details-content--lvr::-webkit-scrollbar { width: 0; display: none; }
}

/* Discount pill at the top */
.product-details-content--lvr .prod-discount-pill {
    display: inline-block;
    color: var(--main-color);
    font-family: var(--restyle-font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Brand large, name lighter */
.product-details-content--lvr .prod-brand {
    font-family: var(--restyle-font-sans);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #000;
    line-height: 1.05;
    margin: 0 0 6px;
}
.product-details-content--lvr .prod-name {
    font-family: var(--restyle-font-sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--restyle-color-muted);
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Price */
.product-details-content--lvr .prod-price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 26px;
}
.product-details-content--lvr .prod-price-now {
    font-family: var(--restyle-font-sans);
    font-size: 28px;
    font-weight: 700;
    color: #000;
    line-height: 1;
}
.product-details-content--lvr .prod-price-was {
    font-family: var(--restyle-font-sans);
    font-size: 18px;
    font-weight: 400;
    color: var(--restyle-color-muted);
    text-decoration: line-through;
}

/* Color section */
.product-details-content--lvr .prod-color-section {
    margin: 0 0 22px;
    padding: 0;
}
.product-details-content--lvr .prod-meta-label {
    display: block;
    font-family: var(--restyle-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 10px;
}
.product-details-content--lvr .prod-color-name {
    font-weight: 400;
    color: var(--restyle-color-muted);
    text-transform: none;
    letter-spacing: 0;
}
.product-details-content--lvr .prod-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-details-content--lvr .colore_ttl {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 0;
}

/* Size dropdown + Add to cart on one row */
.product-details-content--lvr .prod-actions-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 12px;
    margin: 0 0 22px;
    position: relative;
}
.product-details-content--lvr .prod-size-dropdown {
    position: relative;
}
.product-details-content--lvr .prod-size-dropdown > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.18);
    border-radius: 999px;
    font-family: var(--restyle-font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color 0.2s ease;
}
.product-details-content--lvr .prod-size-dropdown > summary::-webkit-details-marker { display: none; }
.product-details-content--lvr .prod-size-dropdown > summary::after {
    content: "";
    display: inline-block;
    width: 10px; height: 10px;
    margin-left: 12px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.25s ease;
}
.product-details-content--lvr .prod-size-dropdown[open] > summary { border-color: var(--main-color); }
.product-details-content--lvr .prod-size-dropdown[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.product-details-content--lvr .prod-size-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}
.product-details-content--lvr .prod-size-options ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-details-content--lvr .prod-size-options li { list-style: none; margin: 0; }
.product-details-content--lvr .prod-size-options a.taglia-sel,
.product-details-content--lvr .prod-size-options li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.10);
    border-radius: 999px;
    color: #111 !important;
    font-family: var(--restyle-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.product-details-content--lvr .prod-size-options li > a:hover,
.product-details-content--lvr .prod-size-options li > a.taglia-sel-sel {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff !important;
}

/* Add to cart — full pill, black, prominent */
.product-details-content--lvr .prod-add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #111 !important;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-family: var(--restyle-font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.product-details-content--lvr .prod-add-cart-btn:hover {
    background: var(--main-color) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Promo info banner */
.product-details-content--lvr .prod-promo-box {
    background: #fff1f1;
    border-left: 3px solid var(--main-color);
    padding: 14px 18px;
    border-radius: 10px;
    margin: 0 0 22px;
    font-family: var(--restyle-font-sans);
    font-size: 14px;
    color: #5a0d0d;
    line-height: 1.5;
}
.product-details-content--lvr .prod-promo-box strong {
    color: var(--main-color);
    font-weight: 700;
}

/* Inline info rows (delivery / payment / returns) */
.product-details-content--lvr .prod-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.product-details-content--lvr .prod-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-family: var(--restyle-font-sans);
    font-size: 13px;
    color: #333;
}
.product-details-content--lvr .prod-info-list li svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--main-color);
}
.product-details-content--lvr .prod-info-list li strong { color: #000; font-weight: 600; }

/* Accordion sections */
.product-details-content--lvr .prod-accordion {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.product-details-content--lvr .prod-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-family: var(--restyle-font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.product-details-content--lvr .prod-accordion > summary::-webkit-details-marker { display: none; }
.product-details-content--lvr .prod-accordion > summary::after {
    content: "+";
    font-family: var(--restyle-font-sans);
    font-size: 20px;
    font-weight: 300;
    color: var(--main-color);
    transition: transform 0.25s ease;
    line-height: 1;
}
.product-details-content--lvr .prod-accordion[open] > summary::after { content: "−"; }
.product-details-content--lvr .prod-accordion__content {
    padding: 0 0 22px;
    font-family: var(--restyle-font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
.product-details-content--lvr .prod-accordion__content a {
    color: var(--main-color);
    font-weight: 500;
    text-decoration: none;
}
.product-details-content--lvr .prod-accordion__content a:hover { text-decoration: underline; }
.product-details-content--lvr .prod-accordion__placeholder {
    color: var(--restyle-color-muted);
    font-style: italic;
    margin: 0;
}

/* Specifications list inside Dettagli */
.product-details-content--lvr .prod-spec-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.product-details-content--lvr .prod-spec-list li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 13px;
}
.product-details-content--lvr .prod-spec-list li span {
    color: var(--restyle-color-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .shop-area[itemtype*="schema.org/Product"] { padding-top: 100px !important; }
    .product-details-content--lvr .prod-brand { font-size: 26px; }
    .product-details-content--lvr .prod-name { font-size: 14px; }
    .product-details-content--lvr .prod-price-now { font-size: 24px; }
    .product-details-content--lvr .prod-actions-row {
        grid-template-columns: 1fr;
    }
    .product-details-content--lvr .prod-spec-list li {
        grid-template-columns: 110px 1fr;
        gap: 10px;
    }
}

/* === ITERATION 7+: themed category sections + Mostra-altre tile ======== */

/* Per-section theme tokens — color + font cascade via CSS variables */
.cat-section--neonato { --section-color: #5B9BD5; --section-color-soft: rgba(91,155,213,0.10); }
.cat-section--neonata { --section-color: #E5A5C0; --section-color-soft: rgba(229,165,192,0.12); }
.cat-section--bambino { --section-color: #F39C40; --section-color-soft: rgba(243,156,64,0.10); }
.cat-section--bambina { --section-color: #E64980; --section-color-soft: rgba(230,73,128,0.10); }
.cat-section--ragazzo { --section-color: #2C3E50; --section-color-soft: rgba(44,62,80,0.08); }
.cat-section--ragazza { --section-color: #9B59B6; --section-color-soft: rgba(155,89,182,0.10); }
.cat-section--scarpe   { --section-color: #cb1315; --section-color-soft: rgba(203,19,21,0.08); }
.cat-section--accessori{ --section-color: #1F8A4C; --section-color-soft: rgba(31,138,76,0.08); }

/* Personality fonts per theme — sweet → playful → stylish.
   !important required because the base font-family rule earlier in this
   stylesheet is also !important. */
.cat-section--neonato .cat-section__heading,
.cat-section--neonata .cat-section__heading {
    font-family: 'Caveat', cursive !important;
    font-size: 52px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}
.cat-section--bambino .cat-section__heading,
.cat-section--bambina .cat-section__heading {
    font-family: 'Fredoka', sans-serif !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em !important;
    line-height: 1.1 !important;
}
.cat-section--ragazzo .cat-section__heading {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}
.cat-section--ragazza .cat-section__heading {
    font-family: 'Fraunces', Georgia, serif !important;
    font-style: italic !important;
    font-size: 38px !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    font-variation-settings: 'opsz' 144, 'SOFT' 60 !important;
    line-height: 1 !important;
}
.cat-section--scarpe .cat-section__heading,
.cat-section--accessori .cat-section__heading {
    font-family: var(--restyle-font-sans) !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.005em !important;
}

/* Themed heading color */
.cat-section[class*="cat-section--"]:not(.cat-section--age) .cat-section__heading {
    color: var(--section-color);
}

/* "Mostra altre" CTA tile */
.cat-tile--more .cat-tile__media--more {
    background: var(--section-color, var(--main-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
}
.cat-tile--more .cat-tile__more-arrow {
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1;
    margin-bottom: 10px;
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.cat-tile--more:hover .cat-tile__more-arrow { transform: translateX(6px); }
.cat-tile--more .cat-tile__more-text {
    color: #fff;
    font-family: var(--restyle-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1.3;
    padding: 0 6px;
}
.cat-tile__label--more { color: var(--section-color, var(--main-color)) !important; font-weight: 700; }

/* Force a 6-col layout when the section has its full 5 tiles + Mostra altre */
.cat-section .cat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* === ITERATION 7: Farfetch-style category-led homepage ================= */
.cat-section { padding: 48px 0; background: #fff; }
.cat-section + .cat-section { padding-top: 0; }

/* Listing-page variant — sits between the breadcrumb and the shop-area */
.cat-section--listing { padding: 24px 0 18px; }
.cat-section--listing + .shop-area { padding-top: 8px !important; }

/* Align the listing-page horizontal width with the category tile row above.
   Both use the same max-width + centered padding so left/right edges line up. */
.shop-area > .container,
.breadcrumb-area > .container {
    max-width: 1320px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}
.cat-section--listing .cat-grid--listing {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.cat-section--listing .cat-tile__media { aspect-ratio: 1 / 1; border-radius: 10px; }
.cat-section--listing .cat-tile__label { font-size: 11px; letter-spacing: 0.06em; margin-top: 8px; }
.cat-section--listing .cat-tile--active .cat-tile__media {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}
.cat-section--listing .cat-tile--active .cat-tile__label { color: var(--main-color); }
.cat-section__inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.cat-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
}
.cat-section__heading {
    font-family: var(--restyle-font-sans);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
    margin: 0;
    line-height: 1.1;
}
.cat-section__lead {
    font-family: var(--restyle-font-sans);
    font-size: 14px;
    color: var(--restyle-color-muted);
    margin: 4px 0 22px;
    line-height: 1.4;
}
.cat-section--age .cat-section__heading { text-align: center; }
.cat-section--age .cat-section__lead    { text-align: center; }
.cat-section__link {
    font-family: var(--restyle-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--main-color) !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.cat-section__link:hover { text-decoration: underline !important; }

/* Tile grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.cat-grid--age {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Tile */
.cat-tile {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f6 center/cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: filter 0.3s ease;
}
.cat-tile:hover .cat-tile__media { filter: brightness(0.94); }
.cat-tile__media--empty {
    background: linear-gradient(135deg, #fff1f1 0%, #ffd9d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-tile__placeholder {
    color: var(--main-color);
    font-family: var(--restyle-font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-align: center;
    padding: 12px;
}
.cat-tile__label {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-family: var(--restyle-font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
}

/* "Per età" big tiles — image-fill with overlay label */
.cat-tile--big { border-radius: 18px; }
.cat-tile--big .cat-tile__media {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    transition: filter 0.4s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.cat-tile--big:hover .cat-tile__media {
    filter: brightness(0.88);
    transform: scale(1.03);
}
.cat-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 32px 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    border-radius: inherit;
}
.cat-tile__media--empty + .cat-tile__overlay,
.cat-tile--big .cat-tile__media .cat-tile__overlay { /* (defensive) */ }
.cat-tile--big .cat-tile__overlay {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
}
.cat-tile__label--big {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-variation-settings: 'opsz' 144, 'SOFT' 60;
    font-size: clamp(28px, 3.4vw, 44px);
    letter-spacing: -0.01em;
    text-transform: none;
    color: #fff !important;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    line-height: 1;
    margin: 0 0 6px;
}
.cat-tile__sublabel {
    font-family: var(--restyle-font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
/* Brand-color accent rotation across the 6 age tiles */
.cat-grid--age > .cat-tile:nth-child(1) .cat-tile__label--big,
.cat-grid--age > .cat-tile:nth-child(4) .cat-tile__label--big { color: #fff !important; }
.cat-grid--age > .cat-tile:nth-child(2) .cat-tile__label--big,
.cat-grid--age > .cat-tile:nth-child(5) .cat-tile__label--big { color: #fff !important; }
.cat-grid--age > .cat-tile:nth-child(3) .cat-tile__label--big,
.cat-grid--age > .cat-tile:nth-child(6) .cat-tile__label--big { color: #fff !important; }
/* For big tiles, the label is the .cat-tile__overlay so override the post-image label below */
.cat-tile--big > .cat-tile__label { display: none; }

/* Tablet */
@media (max-width: 991px) {
    .cat-section { padding: 38px 0; }
    .cat-section__heading { font-size: 22px; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .cat-grid--age { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile / tablet — Farfetch-style horizontal-scroll rail per section */
@media (max-width: 767px) {
    /* Prevent the document itself from scrolling horizontally — without this
       a viewport-spilling child would cause the WHOLE PAGE to pan instead of
       the rail. */
    html, body { overflow-x: hidden; max-width: 100vw; }

    .cat-section { padding: 26px 0; }
    .cat-section__inner { padding: 0 0 0 14px; max-width: 100vw; box-sizing: border-box; }
    .cat-section__heading { font-size: 22px; }
    .cat-section__head { margin-bottom: 12px; padding-right: 14px; }

    /* The grid becomes a horizontal flex rail. Tiles flow in a single row,
       overflow scrolls horizontally with momentum + snap. */
    .cat-section .cat-grid {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        overflow-x: scroll !important;          /* explicit so scroll always works */
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x !important;         /* tell the browser: this scrolls horizontally */
        overscroll-behavior-x: contain;          /* don't bleed the swipe to the document */
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        gap: 12px;
        padding: 2px 14px 6px 0;
        /* Width must be the parent's width so the rail itself is constrained
           and child overflow actually shows up as scroll */
        max-width: 100%;
        width: 100%;
    }
    .cat-section .cat-grid::-webkit-scrollbar { display: none; }

    .cat-section .cat-tile {
        flex: 0 0 auto;
        width: 40vw;                /* 2 tiles fit fully, 3rd peeks ~40-60px */
        max-width: 180px;
        scroll-snap-align: start;
    }
    .cat-section .cat-tile .cat-tile__media { aspect-ratio: 1 / 1; }
    .cat-tile__label { font-size: 11px; letter-spacing: 0.06em; margin-top: 8px; }

    /* "Mostra altre" CTA matches the other tiles' footprint */
    .cat-tile--more { width: 40vw; max-width: 180px; }
    .cat-tile--more .cat-tile__media--more { aspect-ratio: 1 / 1; }
    .cat-tile--more .cat-tile__more-arrow { font-size: 36px; margin-bottom: 6px; }
    .cat-tile--more .cat-tile__more-text { font-size: 10px; letter-spacing: 0.08em; }

    /* Listing-page rail follows the same pattern */
    .cat-section--listing .cat-grid--listing { grid-template-columns: none !important; }
    .cat-section--listing .cat-tile--listing { width: 38vw; max-width: 150px; }
}

/* Old narrow-mobile rule: nothing extra needed now — horizontal scroll already handles it */

/* Mobile slideshow tweaks */
@media (max-width: 768px) {
    .hero-slide__overlay { padding: 96px 22px 60px; }
    .hero-slide__title { font-size: clamp(36px, 11vw, 64px); }
    .hero-slide__subtitle { font-size: 14px; }
    .reveal-section { margin-top: -36px; padding-top: 36px; border-radius: 22px 22px 0 0; }
}

/* ===========================================================================
   ITERATION 4 — Farfetch / Shopify-style plain widescreen header
   Drop the floating pill. The header is a full-width sticky bar:
     • Top row  → thin black promo strip with utility links (centered, white)
     • Main row → nav LEFT | logo CENTER | search/cart RIGHT, on solid white
   Hero (and all other content) flows naturally below — no overlap.
   This block comes LAST so source order wins over the iteration-3 pill rules.
=========================================================================== */
html, body { background: #fff; }

header.header-area {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transition: none !important;
    z-index: 1000;
}

/* --- Top promo strip --------------------------------------------------- */
/* Layout: [marquee fills the left side] ... [utility links pinned right]
   The marquee is injected by header.php as `.header-marquee` and the existing
   `.header-top-wap` is repurposed as a flex row that aligns the marquee left
   and the utility links right. */
header.header-area .header-top-area {
    background: #111 !important;
    border: 0 !important;
    border-bottom: 1px solid #111 !important;
    padding: 0 !important;
    margin: 0 !important;
}
header.header-area .header-top-area .container-fluid {
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
header.header-area .header-top-wap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    min-height: 36px !important;
    max-height: none !important;
    padding: 0 24px !important;
    margin: 0 !important;
    opacity: 1 !important;
    overflow: hidden !important;
    transition: none !important;
}
/* Utility links wrapper rides on the right side. (.header-offer was a
   duplicate Contatti chip — removed in header.php to avoid d-* clashes.) */
header.header-area .header-top-wap .language-currency-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    order: 3 !important;
}
/* Marquee container takes all remaining space on the left */
header.header-area .header-top-wap .header-marquee {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    height: 36px;
    display: flex;
    align-items: center;
    position: relative;
    /* fade-out edges so text doesn't visually crash into the utility links */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
header.header-area .header-top-wap .header-marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    /* Track holds 2× the content (server-side duplicated). Animating from 0
       to -50% means one full pass-through, and the second half starts at
       the same x as the first → seamless loop. */
    animation: marqueeScroll var(--marquee-duration, 30s) linear infinite;
}
header.header-area .header-marquee:hover .header-marquee__track {
    animation-play-state: paused;
}
header.header-area .header-marquee__item {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    line-height: 1 !important;
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,0.25);
}
header.header-area .header-marquee__item:last-child { border-right: 0; }
a.header-marquee__item:hover { text-decoration: underline !important; color: #fff !important; }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
header.header-area .header-top-wap .same-language-currency {
    padding: 0 !important;
    margin: 0 !important;
}
header.header-area .header-top-wap .same-language-currency:before,
header.header-area .header-top-wap .same-language-currency:after { display: none !important; }
header.header-area .header-top-wap .same-language-currency a,
header.header-area.is-over-hero .header-top-wap .same-language-currency a,
header.header-area.is-scrolled .header-top-wap .same-language-currency a {
    color: #fff !important;
    text-shadow: none !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: none !important;
}
header.header-area .header-top-wap .same-language-currency a b {
    font-weight: 500 !important;
}
header.header-area .header-top-wap .same-language-currency a:hover {
    text-decoration: underline !important;
    color: #fff !important;
}
/* Kill the legacy "is-scrolled" collapse — strip stays put */
header.header-area.is-scrolled,
header.header-area.is-over-hero { top: 0 !important; }
header.header-area.is-scrolled .header-top-wap {
    max-height: none !important;
    opacity: 1 !important;
    padding: 6px 24px !important;
}

/* --- Main row: nav LEFT | logo CENTER | utilities RIGHT ---------------- */
header.header-area .header-bottom {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 36px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
    min-height: 72px !important;
}
header.header-area .header-bottom > .container-fluid {
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
header.header-area .header-bottom .row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "nav logo right";
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 72px !important;
    flex-wrap: nowrap !important;
}
/* Reset bootstrap column widths so grid-area takes over */
header.header-area .header-bottom .row > [class*="col-"] {
    flex: initial !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Markup order: 1=logo, 2=main-menu, 3=header-right-wrap */
header.header-area .header-bottom .row > [class*="col-"]:nth-child(1) {
    grid-area: logo;
    justify-self: center;
}
header.header-area .header-bottom .row > [class*="col-"]:nth-child(2) {
    grid-area: nav;
    justify-self: start;
    min-width: 0;
}
header.header-area .header-bottom .row > [class*="col-"]:nth-child(3) {
    grid-area: right;
    justify-self: end;
}

/* Logo: keep image at a stable height; center-aligned in its grid cell */
header.header-area .logo,
header.header-area .header-bottom .logo {
    margin: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
}
header.header-area .logo a,
header.header-area .header-bottom .logo a { display: inline-block !important; line-height: 0 !important; }
header.header-area .logo img,
header.header-area .header-bottom .logo img {
    max-height: 44px !important;
    height: 44px !important;
    width: auto !important;
    max-width: 320px !important;
    display: inline-block !important;
}

/* Main nav: flush left, plain text, no underlines, thin */
header.header-area .main-menu nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
header.header-area .main-menu nav ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}
header.header-area .main-menu nav ul li {
    padding: 0 !important;
    margin-right: 22px !important;
    list-style: none !important;
}
header.header-area .main-menu nav ul li:last-child { margin-right: 0 !important; }
header.header-area .main-menu nav ul li a {
    display: inline-block !important;
    line-height: 72px !important;
    padding: 0 !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    color: #111 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.18s ease, color 0.18s ease;
}
header.header-area .main-menu nav ul li a:hover,
header.header-area .main-menu nav ul li a:focus {
    color: #111 !important;
    border-bottom-color: #111 !important;
}

/* Right column: search + cart + (mobile) hamburger inline, right-aligned */
header.header-area .header-right-wrap {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 22px !important;
}
header.header-area .header-right-wrap .same-style {
    margin: 0 !important;
    padding: 0 !important;
}
header.header-area .header-right-wrap a {
    line-height: 1 !important;
    font-size: 20px !important;
    color: #111 !important;
}

/* Hamburger only on mobile */
header.header-area .header-hamburger {
    display: none;
    background: none;
    border: 0;
    padding: 4px;
    margin: 0;
    color: #111;
    cursor: pointer;
    line-height: 0;
}
header.header-area .header-hamburger svg { width: 24px; height: 24px; }

/* Narrower breakpoints — squeeze nav font + spacing AND shrink the logo so
   8 nav items + centered logo + right utilities all fit at common laptop
   widths (1280, 1366, 1440). The nav col also uses overflow:hidden as a
   hard safety net — if anything still pushes past the column, it gets
   clipped instead of crashing into the logo. */
header.header-area .header-bottom .row > [class*="col-"]:nth-child(2) {
    overflow: hidden;
}
@media (max-width: 1599px) {
    header.header-area .main-menu nav ul li { margin-right: 16px !important; }
    header.header-area .main-menu nav ul li a { font-size: 12px !important; letter-spacing: 0 !important; }
    header.header-area .logo img,
    header.header-area .header-bottom .logo img { max-width: 240px !important; }
}
@media (max-width: 1439px) {
    header.header-area .header-bottom { padding: 0 18px !important; }
    header.header-area .main-menu nav ul li { margin-right: 10px !important; }
    header.header-area .main-menu nav ul li a { font-size: 11px !important; letter-spacing: 0 !important; }
    header.header-area .logo img,
    header.header-area .header-bottom .logo img { max-height: 36px !important; height: 36px !important; max-width: 170px !important; }
    header.header-area .header-right-wrap { gap: 14px !important; }
}
@media (max-width: 1279px) {
    header.header-area .header-bottom { padding: 0 14px !important; min-height: 64px !important; }
    header.header-area .header-bottom .row { min-height: 64px !important; }
    header.header-area .main-menu nav ul li { margin-right: 7px !important; }
    header.header-area .main-menu nav ul li a { line-height: 64px !important; font-size: 11px !important; }
    header.header-area .logo img,
    header.header-area .header-bottom .logo img { max-height: 32px !important; height: 32px !important; max-width: 140px !important; }
}
@media (max-width: 1099px) {
    header.header-area .header-bottom { padding: 0 12px !important; min-height: 60px !important; }
    header.header-area .header-bottom .row { min-height: 60px !important; }
    header.header-area .main-menu nav ul li { margin-right: 5px !important; }
    header.header-area .main-menu nav ul li a { line-height: 60px !important; font-size: 10px !important; }
    header.header-area .logo img,
    header.header-area .header-bottom .logo img { max-height: 28px !important; height: 28px !important; max-width: 120px !important; }
    header.header-area .header-right-wrap { gap: 12px !important; }
    header.header-area .header-right-wrap a { font-size: 18px !important; }
}

/* Hamburger-mode threshold — at <=1199px the 8-item inline nav is dropped
   and the hamburger + slide-down panel take over. User can still reach all
   categories via the mobile menu; the bar stays clean. */
@media (max-width: 1199px) {
    header.header-area .header-bottom .row > [class*="col-"]:nth-child(2) { display: none !important; }
    header.header-area .header-hamburger { display: inline-flex !important; align-items: center; }
}

/* True mobile (<=767px): tighter padding + smaller logo + smaller icons */
@media (max-width: 767px) {
    header.header-area .header-top-wap { padding: 5px 14px !important; gap: 14px !important; flex-wrap: wrap !important; }
    header.header-area .header-top-wap .same-language-currency a { font-size: 11px !important; letter-spacing: 0.03em !important; }
    header.header-area .header-bottom { padding: 0 12px !important; min-height: 56px !important; }
    header.header-area .header-bottom .row { min-height: 56px !important; }
    header.header-area .logo img,
    header.header-area .header-bottom .logo img { max-height: 30px !important; height: 30px !important; max-width: 200px !important; }
    header.header-area .header-right-wrap { gap: 16px !important; }
    header.header-area .header-right-wrap a { font-size: 18px !important; }
}

/* Hero no longer overlaps the header → blur on recede is unnecessary chrome */
.hero-slideshow.is-receding { filter: none !important; }

/* Neutralise legacy sticky-bar handling (header is sticky at root now) */
header.header-area .header-bottom.stick,
header.header-area .header-bottom.sticky-bar.stick {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 36px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff !important;
}

/* ===========================================================================
   ITERATION 5 — Square corners sitewide + neutral baseline
   The next iteration will add per-section colour/typography variations.
   For now, the brief is: no rounded shapes anywhere, plain Outfit black on
   white, and a clearer hero (image left, text+button right).
=========================================================================== */

/* --- Nuclear square-corner reset ---------------------------------------- */
*, *::before, *::after { border-radius: 0 !important; }

/* --- Neutralise per-section colours + display fonts -------------------- */
.cat-section,
.cat-section--neonato,
.cat-section--neonata,
.cat-section--bambino,
.cat-section--bambina,
.cat-section--ragazzo,
.cat-section--ragazza,
.cat-section--scarpe,
.cat-section--accessori {
    --section-color: #111 !important;
    --section-color-soft: rgba(0, 0, 0, 0.06) !important;
}
.cat-section .cat-section__heading,
.cat-section[class*="cat-section--"] .cat-section__heading,
.cat-section--neonato .cat-section__heading,
.cat-section--neonata .cat-section__heading,
.cat-section--bambino .cat-section__heading,
.cat-section--bambina .cat-section__heading,
.cat-section--ragazzo .cat-section__heading,
.cat-section--ragazza .cat-section__heading,
.cat-section--scarpe .cat-section__heading,
.cat-section--accessori .cat-section__heading {
    font-family: var(--restyle-font-sans) !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: clamp(22px, 2.2vw, 28px) !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    color: #111 !important;
    text-transform: none !important;
    text-align: left !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}
/* "Mostra altre" card: flat black, no rounded, no themed color */
.cat-tile--more .cat-tile__media--more {
    background: #111 !important;
    color: #fff !important;
    border: 0 !important;
}
.cat-tile--more .cat-tile__more-text,
.cat-tile--more .cat-tile__more-arrow { color: #fff !important; }
.cat-tile__label--more {
    color: #111 !important;
    font-weight: 500 !important;
}

/* --- HERO — clear split layout: image LEFT, text + button RIGHT --------
   Kill the gradient overlay + Fraunces italic em + colored brand accents.
   Each slide reads like a Shopify editorial block: half image, half clean
   white card with title / subtitle / CTA. */
.hero-slideshow {
    height: clamp(520px, 70vh, 760px) !important;  /* not 100vh — clearer page rhythm */
    background: #f6f6f7 !important;
}
.hero-slide__media {
    position: absolute !important;
    inset: 0 50% 0 0 !important;   /* left half only */
    background-size: cover !important;
    background-position: center !important;
    animation: none !important;     /* drop Ken Burns for clarity */
    transform: none !important;
}
.hero-slide__overlay {
    position: absolute !important;
    inset: 0 0 0 50% !important;    /* right half */
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    color: #111 !important;
    text-align: left !important;
}
.hero-slide__inner {
    max-width: 520px !important;
    width: 100% !important;
    padding: 0 8vw 0 6vw !important;
    text-align: left !important;
    z-index: 2;
}
.hero-slide__title {
    color: #111 !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: clamp(34px, 3.6vw, 56px) !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
    margin: 0 0 18px !important;
}
.hero-slide__title em {
    display: inline !important;
    font-family: var(--restyle-font-sans) !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-variation-settings: normal !important;
    letter-spacing: -0.01em !important;
    color: #111 !important;
    transform: none !important;
}
/* Override per-slide colour accents */
.hero-slide[data-index] .hero-slide__title em { color: #111 !important; }
.hero-slide__subtitle {
    color: #555 !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: clamp(14px, 1.1vw, 16px) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
    margin: 0 0 28px !important;
}
.hero-slide__cta {
    display: inline-block !important;
    padding: 16px 36px !important;
    background: #111 !important;
    color: #fff !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border: 1px solid #111 !important;
    transition: background 0.2s, color 0.2s;
    transform: none !important;
}
.hero-slide__cta:hover {
    background: #fff !important;
    color: #111 !important;
    transform: none !important;
}

/* Dots: square stops, not round */
.hero-slideshow__dots {
    position: absolute !important;
    bottom: 32px !important;
    left: 50% !important;       /* sit under the text column */
    right: auto !important;
    width: 50% !important;
    justify-content: flex-start !important;
    padding-left: 6vw !important;
}
.hero-slideshow__dot {
    width: 28px !important;
    height: 2px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 0 !important;
}
.hero-slideshow__dot.is-active {
    width: 28px !important;
    background: #111 !important;
}

/* Receding/reveal-section niceties also flatten */
.reveal-section {
    border-radius: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.hero-slideshow.is-receding { filter: none !important; }

/* Mobile hero: stack image on top, text below */
@media (max-width: 767px) {
    .hero-slideshow { height: auto !important; min-height: 0 !important; background: #fff !important; }
    .hero-slide { position: absolute !important; inset: 0 !important; }
    .hero-slide.is-active { position: relative !important; }
    .hero-slide__media {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 56vh !important;
    }
    .hero-slide__overlay {
        position: relative !important;
        inset: auto !important;
        padding: 32px 22px 40px !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    .hero-slide__inner { padding: 0 !important; max-width: 100% !important; }
    .hero-slide__title { font-size: clamp(28px, 7vw, 40px) !important; }
    .hero-slideshow__dots {
        position: relative !important;
        left: 0 !important; right: 0 !important;
        width: 100% !important; bottom: auto !important;
        padding: 0 22px 24px !important; justify-content: flex-start !important;
    }
}

/* ===========================================================================
   Home editorial boxes — Farfetch-style 4-up rows.
   One section per category (Neonato → Bambino → Bambina → Ragazzo → Ragazza
   → Scarpe & Accessori). Managed via admin/home-boxes.php.
=========================================================================== */
.home-boxes-section {
    padding: 56px 0 8px;
    background: #fff;
}
.home-boxes-section + .home-boxes-section { padding-top: 24px; }
.home-boxes-section:last-of-type { padding-bottom: 80px; }
.home-boxes-section__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}
.home-boxes-section__heading {
    text-align: center;
    font-family: var(--restyle-font-sans) !important;
    font-size: clamp(20px, 1.9vw, 24px) !important;
    font-weight: 500 !important;
    color: #111 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
}
.home-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
/* Sections with fewer than 4 boxes fill the row with wider boxes instead of
   leaving empty space on the right. */
.home-boxes-section--n3 .home-boxes-grid { grid-template-columns: repeat(3, 1fr); }
.home-boxes-section--n2 .home-boxes-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.home-boxes-section--n1 .home-boxes-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
.home-box {
    display: block;
    text-decoration: none !important;
    color: #111 !important;
    transition: opacity 0.2s;
}
.home-box:hover { opacity: 0.92; }
.home-box__media {
    aspect-ratio: 4 / 5;
    background-color: #f1ede7;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-box--empty .home-box__media { background-color: #ece8e0; }
.home-box__placeholder {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    font-family: var(--restyle-font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    max-width: 80%;
}
.home-box__title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--restyle-font-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    text-align: left !important;
}

@media (max-width: 1199px) {
    .home-boxes-section__inner { padding: 0 24px; }
    .home-boxes-grid { gap: 18px; }
}
@media (max-width: 767px) {
    .home-boxes-section { padding: 32px 0 4px; }
    .home-boxes-section:last-of-type { padding-bottom: 48px; }
    .home-boxes-section__inner { padding: 0 14px; }
    .home-boxes-section__heading { margin: 0 0 20px !important; font-size: 18px !important; }
    .home-boxes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-box__title { font-size: 11px !important; letter-spacing: 0.06em !important; }
}

