:root {
    --arancione: #F28C28;
    /* Variante scura per testo piccolo su sfondi chiari — passa WCAG AA (5.12:1 su #FFF) */
    --arancione-text: #C93A15;
    --ambra: #F5A623;
    /* Variante ambra scura per testo — 5.85:1 su #FFF */
    --ambra-text: #B85818;
    --blu: #2C3E7A;
    --hero-bg: #080604;
    --bg: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF3E8;
    --text: #1A1A1A;
    --text-muted: #666;
    --text-dim: #999;
    --text-hero: #F9F8F6;
    --text-hero-muted: rgba(249,248,246,0.6);
    --text-hero-dim: rgba(249,248,246,0.35);
    --border: rgba(26,26,26,0.08);
    --border-hover: rgba(26,26,26,0.15);
    --accent-glow: rgba(242,140,40,0.25);
    --raggio: 16px;
    --raggio-sm: 8px;
    --raggio-lg: 24px;
    --ombra: 0 4px 24px rgba(0,0,0,0.06);
    --ombra-lg: 0 12px 40px rgba(0,0,0,0.08);
    --transizione: 0.5s cubic-bezier(0.16,1,0.3,1);
    --max-width: 1400px;
    --header-h: 72px;
    --live-strip-h: 36px;

    /* ── Sezioni dark ───────────────────────────── */
    --bg-dark:          #0D0B09;
    --bg-dark-2:        #181412;
    --text-on-dark:     #F9F8F6;
    --text-on-dark-muted: rgba(249,248,246,0.6);
    --border-on-dark:   rgba(249,248,246,0.08);
    --bg-card-on-dark:  rgba(255,255,255,0.05);

    /* ── Sezioni warm alternate ─────────────────── */
    --bg-warm-alt:      #F0E4D0;
    --bg-warm-deep:     #E8D5B8;

    /* ── Sezione CTA ────────────────────────────── */
    --bg-cta:           #F28C28;
    --bg-cta-amber:     #F5A623;
    --text-on-cta:      #FFFFFF;

    /* ── Divider / accenti ──────────────────────── */
    --divider-warm:     rgba(242,140,40,0.12);
    --divider-dark:     rgba(249,248,246,0.08);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    /* Due sole aree di calore, in angoli opposti: sufficienti per profondità visiva */
    background:
        radial-gradient(ellipse 65% 45% at 0% 0%, rgba(245,166,35,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(242,140,40,0.07) 0%, transparent 55%);
}
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 240px 240px;
}

.page-index body::before, .page-index body::after { display: none; }


img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; font-family: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* Compenso header fixed + live strip su pagine interne (non home, che ha hero 100vh) */
body:not(.page-index) main {
    padding-top: calc(var(--live-strip-h) + var(--header-h) + 24px);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════
   ═══ LIVE STRIP: stato apertura + telefono + indirizzo ═══
   Fissa in alto, sopra il site-header floating.
   ═══════════════════════════════════════════════════════ */
.live-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--live-strip-h);
    z-index: 101;
    background: rgba(20,18,16,0.92);
    color: #F9F8F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.live-strip-inner {
    max-width: 1280px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.live-strip-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-weight: 600;
}
.live-strip-status strong {
    font-weight: 800;
    letter-spacing: 0.2px;
}
.live-strip-detail {
    color: rgba(249,248,246,0.65);
    font-weight: 400;
    margin-left: 4px;
}
.live-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 0 3px rgba(107,114,128,0.15);
}
.live-strip-verde .live-strip-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: livePulse 2.4s ease-in-out infinite;
}
.live-strip-ambra .live-strip-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.05); }
}
.live-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(249,248,246,0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    white-space: nowrap;
}
.live-strip-item:hover {
    color: var(--arancione);
    background: rgba(255,255,255,0.05);
}
.live-strip-item svg { opacity: 0.85; flex-shrink: 0; }

@media (max-width: 767px) {
    :root { --live-strip-h: 34px; }
    .live-strip { font-size: 0.75rem; }
    .live-strip-inner {
        padding: 0 14px;
        gap: 14px;
        /* Compatto e centrato: elimina gli spazi vuoti che appaiono
           sui display grandi mobile (>= 400px) con space-between */
        justify-content: center;
    }
    /* Nasconde tutti i testi non essenziali, mostra solo icone + testo brevissimo */
    .live-strip-address span { display: none; }
    .live-strip-phone span { display: none; }
    .live-strip-status strong { display: none; }
    .live-strip-detail {
        display: inline;
        color: rgba(249,248,246,0.95);
        font-weight: 700;
        font-size: 0.78rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55vw;
    }
    .live-strip-item {
        padding: 4px 6px;
        min-width: 34px;
        justify-content: center;
    }
    .live-strip-item svg { opacity: 0.95; }
    .live-strip-status {
        gap: 6px;
        min-width: 0;
        flex: 0 1 auto;
    }
    .live-strip-dot {
        width: 7px;
        height: 7px;
    }
}
@media (max-width: 380px) {
    /* Schermi molto piccoli: dettaglio ancora più corto */
    .live-strip-detail { font-size: 0.72rem; max-width: 50vw; }
    .live-strip-inner { gap: 10px; padding: 0 10px; }
}

.site-header {
    position: fixed;
    top: calc(var(--live-strip-h) + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1280px;
    height: var(--header-h);
    z-index: 100;
    background: rgba(20,18,16,0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.page-index .site-header {
    background: rgba(8,6,4,0.55);
    border-color: rgba(255,255,255,0.12);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.site-header.scrolled {
    background: rgba(20,18,16,0.85);
    border-color: rgba(255,255,255,0.1);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.page-index .site-header.scrolled {
    background: rgba(8,6,4,0.45);
    border-color: rgba(255,255,255,0.1);
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }
.site-header .logo-img {
    filter: none;
}
.page-index .site-header .logo-img {
    filter: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    z-index: 110;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span { pointer-events: none; }

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.page-index .nav-toggle span { background: var(--text-hero); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255,248,240,0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 105;
}

.page-index .main-nav {
    background: rgba(8,6,4,0.94);
}

.main-nav.open {
    opacity: 1;
    pointer-events: all;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--raggio-sm);
    transition: color 0.3s ease;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--arancione);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--arancione);
    border-radius: 1px;
}

.header-wishlist {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px;
}

.header-wishlist svg { stroke: rgba(255,255,255,0.85); transition: stroke 0.2s; }
.page-index .header-wishlist svg { stroke: rgba(255,255,255,0.85); }
.header-wishlist:hover svg { stroke: var(--arancione); }

.wishlist-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--arancione);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-user { color: var(--ambra) !important; }
.nav-admin { color: var(--arancione) !important; }

/* ─── Wishlist panel (globale) ─── */
body.wl-open { overflow: hidden; }
.wishlist-page { position:fixed; inset:0; z-index:1100; }
.wishlist-overlay { position:absolute; inset:0; background:rgba(0,0,0,0); transition:background 0.3s; }
.wishlist-page.open .wishlist-overlay { background:rgba(0,0,0,0.5); }
.wishlist-panel { position:absolute; right:0; top:0; bottom:0; width:min(360px,85vw); background:#fff; box-shadow:0 25px 50px rgba(0,0,0,0.15); transform:translateX(100%); transition:transform 0.35s cubic-bezier(0.4,0,0.2,1); display:flex; flex-direction:column; }
.wishlist-page.open .wishlist-panel { transform:translateX(0); }
.wishlist-header { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.25rem; border-bottom:1px solid #E5E7EB; }
.wishlist-header h2 { font-family:'Caveat',cursive; font-size:1.5rem; font-weight:700; color:#1A2332; margin:0; }
.wishlist-close { width:36px; height:36px; border-radius:50%; border:none; background:#f5f5f5; font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.wishlist-items { flex:1; overflow-y:auto; padding:1rem 1.25rem; }
.wishlist-empty { font-size:0.9rem; color:#6B7280; text-align:center; line-height:1.6; padding:2rem 0; }
.wishlist-item { display:flex; align-items:center; justify-content:space-between; padding:0.75rem 0; border-bottom:1px solid #E5E7EB; }
.wl-item-name { font-size:0.85rem; font-weight:600; color:#1A2332; margin:0 0 0.15rem; }
.wl-item-price { font-size:0.8rem; font-weight:700; color:var(--arancione); margin:0; }
.wl-item-remove { width:32px; height:32px; border-radius:50%; border:none; background:#fef0ec; color:var(--arancione); font-size:0.8rem; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.wishlist-actions { padding:1rem 1.25rem; border-top:1px solid #E5E7EB; }
.btn-wa-wishlist { width:100%; font-size:0.9rem; font-weight:700; padding:0.8rem; background:#25D366; color:#fff; border:none; border-radius:12px; cursor:pointer; }

.section-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Testo piccolo: usa la variante scura per accessibilità (5.12:1 su bianco) */
    color: var(--arancione-text);
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: 560px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: var(--arancione);
    padding: 14px 32px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: #C93A15;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    padding: 12px 28px;
    border-radius: 30px;
    border: 1.5px solid var(--border-hover);
    transition: all 0.3s ease;
    background: transparent;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--arancione);
    color: var(--arancione);
    background: rgba(242,140,40,0.04);
}

.page-intro {
    padding: 140px 24px 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(242,140,40,0.03) 50%, var(--bg) 100%);
    position: relative;
}

.page-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--arancione), var(--ambra));
    border-radius: 2px;
}

.page-intro .section-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 16px;
}

.page-intro .section-desc {
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   PAGE HEADER SCURO — per header delle pagine interne
   Uso: <section class="page-header"> ... </section>
───────────────────────────────────────────────────────── */
.page-header {
    padding: 140px 24px 80px;
    text-align: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Glow ambientale */
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 30%, rgba(242,140,40,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(245,166,35,0.08) 0%, transparent 55%);
    pointer-events: none;
}

/* Linea arancione in fondo */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--arancione), var(--ambra), var(--arancione));
}

.page-header .section-label {
    color: var(--ambra);
    opacity: 0.9;
}

.page-header .section-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--text-on-dark);
    margin-bottom: 16px;
}

.page-header .section-desc {
    color: var(--text-on-dark-muted);
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   SECTION ALT — sfondo caldo alternato (crema scura)
   Uso: <section class="section-alt"> ... </section>
───────────────────────────────────────────────────────── */
.section-alt {
    background: var(--bg-warm-alt);
}

/* ─────────────────────────────────────────────────────────
   SECTION CTA — blocco WhatsApp arancione fiammante
   Uso: <section class="section-cta"> ... </section>
───────────────────────────────────────────────────────── */
.section-cta {
    background: linear-gradient(135deg, var(--bg-cta) 0%, #E07B1E 60%, #D47A20 100%);
    color: var(--text-on-cta);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Texture di grana sottile */
.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,255,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 80% at 90% 110%, rgba(245,166,35,0.25) 0%, transparent 55%);
    pointer-events: none;
}

.section-cta .section-label {
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.15em;
}

.section-cta .section-title {
    color: #fff;
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 12px;
}

.section-cta .section-desc {
    color: rgba(255,255,255,0.85);
    margin: 0 auto 32px;
}

/* Pulsante bianco su sfondo arancione */
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #fff;
    color: var(--bg-cta);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    transition: all var(--transizione);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    position: relative;
}

.btn-cta-white:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
    background: #FFF8F0;
}

/* ─────────────────────────────────────────────────────────
   SECTION DARK — sezione scura generica per pagine interne
   Uso: <section class="section-dark"> ... </section>
───────────────────────────────────────────────────────── */
.section-dark {
    background: var(--bg-dark-2);
    color: var(--text-on-dark);
}

.section-dark .section-label { color: var(--ambra); }
.section-dark .section-title { color: var(--text-on-dark); }
.section-dark .section-desc  { color: var(--text-on-dark-muted); }

.section-dark .glass-card {
    background: var(--bg-card-on-dark);
    border-color: var(--border-on-dark);
}

.section-dark .glass-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(242,140,40,0.3);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--raggio);
    transition: all var(--transizione);
    box-shadow: 0 4px 20px rgba(242,140,40,0.04), var(--ombra);
}

.glass-card:hover {
    border-color: rgba(242,140,40,0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(242,140,40,0.08), var(--ombra-lg);
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: none;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

/* ═══ FOOTER — onda arancione ═══ */
.site-footer {
    position: relative;
    margin-top: 80px;
    color: #fff;
}

/* ── Quick Contacts Banner ── */
.home-quick-contacts {
    background: var(--bg-warm);
    padding: 2.5rem 1rem;
}
.quick-contacts-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.qc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.qc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242,140,40,0.2);
    background: var(--arancione);
    color: #fff;
}
.qc-item svg {
    flex-shrink: 0;
    transition: stroke 0.25s, fill 0.25s;
}
.qc-item:hover svg {
    stroke: #fff;
    fill: #fff;
}
@media (max-width: 600px) {
    .quick-contacts-inner { gap: 0.8rem; }
    .qc-item { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .qc-item span { display: none; }
    .qc-item { border-radius: 50%; padding: 0.9rem; }
}

/* ── Pre-footer Strip (global) ── */
.pre-footer-strip {
    background: var(--bg-warm);
    padding: 2rem 1rem;
}
.pre-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.pf-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}
.pf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(242,140,40,0.2);
    background: var(--arancione);
    color: #fff;
}
.pf-item svg { flex-shrink: 0; transition: stroke 0.25s, fill 0.25s; }
.pf-item:hover svg { stroke: #fff; fill: #fff; }
@media (max-width: 600px) {
    .pre-footer-inner { gap: 0.6rem; }
    .pf-item span { display: none; }
    .pf-item { border-radius: 50%; padding: 0.8rem; }
}

.page-index .site-footer { margin-top: 0; }

.footer-wave {
    display: block;
    line-height: 0;
    margin-bottom: -2px;
}
.footer-wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

.footer-body {
    background: var(--arancione);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: auto;
    width: 180px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    margin-top: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    color: #fff;
    font-size: 0.9rem;
}
.footer-contact-item svg { flex-shrink: 0; stroke: #fff; }
.footer-contact-item a { color: #fff; text-decoration: none; transition: opacity 0.2s; }
.footer-contact-item a:hover { opacity: 0.75; }
.footer-contact-item span { color: #fff; }

.footer-address {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover { background: rgba(255,255,255,0.35); transform: scale(1.08); }
.footer-social svg { stroke: #fff; }

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 16px;
    color: #fff;
}

.footer-col ul { display: flex; flex-direction: column; gap: 4px; }

.footer-col li,
.footer-col a {
    font-size: 0.9rem;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.25);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
}

.footer-bottom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-bottom a:hover { opacity: 0.7; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-wave svg { height: 50px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

.wa-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 90;
}

.wa-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(37,211,102,0.45);
}

.wa-popup {
    position: absolute;
    bottom: 68px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--raggio);
    padding: 16px;
    min-width: 220px;
    box-shadow: var(--ombra-lg);
}

.wa-popup p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--text);
}

.wa-confirm {
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    margin-right: 8px;
}

.wa-cancel {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 12px;
}

.wa-honeypot { position: absolute; left: -9999px; opacity: 0; }



@media (min-width: 768px) {
    :root { --header-h: 70px; }

    .nav-toggle { display: none; }

    .main-nav,
    .page-index .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 4px;
    }

    .main-nav a {
        font-family: 'Nunito', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        padding: 6px 14px;
    }

    /* Glass navbar: testi sempre chiari */
    .main-nav a { color: rgba(255,255,255,0.85); }
    .main-nav a:hover,
    .main-nav a.active { color: var(--arancione); }
    .page-index .main-nav a { color: rgba(255,255,255,0.85); }
    .page-index .main-nav a:hover,
    .page-index .main-nav a.active { color: var(--arancione); }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .main-nav a { font-size: 0.9rem; padding: 8px 16px; }
}

/* ═══════════════════════════════════════
   MOBILE — correzioni globali ≤ 600px
   ═══════════════════════════════════════ */
@media (max-width: 600px) {

    /* Riduce il padding top per pagine interne (mobile) */
    body:not(.page-index) main {
        padding-top: calc(var(--live-strip-h) + var(--header-h) + 12px);
    }

    /* Intestazione pagine */
    .page-header { padding: 96px 20px 52px; }
    .page-intro  { padding: 96px 20px 40px; }

    /* CTA arancione */
    .section-cta { padding: 52px 20px; }
    .btn-cta-white {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Footer */
    .footer-inner { padding: 2rem 16px 0; }
    .footer-logo  { width: 140px; }

    /* Wishlist panel full-width su mobile */
    .wishlist-panel { width: 100%; }

    /* WA popup: posizionato in basso come bottom sheet */
    .wa-popup {
        position: fixed;
        bottom: 80px;
        right: 16px;
        left: 16px;
        min-width: unset;
        width: auto;
        border-radius: 16px;
    }

    /* Header: logo leggermente più piccolo */
    .logo-img { height: 38px; }

    /* CTA bianco full-width su mobile */
    .btn-cta-white {
        width: 100%;
        justify-content: center;
    }

    /* Nav menu mobile: font più piccolo per stare nel viewport */
    .main-nav a {
        font-size: 1.4rem;
        padding: 6px 20px;
    }
    .main-nav ul { gap: 4px; }

    /* Aggiungi padding-top per evitare che le voci partano
       dietro la barra di sistema del telefono */
    .main-nav ul {
        padding-top: env(safe-area-inset-top, 16px);
    }
}

/* ═══════════════════════════════════════
   MOBILE TAB BAR — bottom navigation
   ═══════════════════════════════════════ */
.mobile-tab-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(255,248,240,0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
        align-items: stretch;
        transform: translateZ(0);
        will-change: transform;
    }
    .page-index .mobile-tab-bar {
        background: rgba(20,18,16,0.88);
        border-top-color: rgba(255,255,255,0.08);
        box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
    }

    .mtb-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 6px 0;
        background: none;
        border: none;
        text-decoration: none;
        color: rgba(0,0,0,0.4);
        font-family: 'Nunito', sans-serif;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        cursor: pointer;
        transition: color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
        position: relative;
        /* Aumenta area tap: minimo 48x48 anche se contenuto più piccolo */
        min-height: 48px;
    }
    /* SVG/span interni NON devono catturare i tocchi: sempre il <a>/<button> parent risponde */
    .mtb-tab svg,
    .mtb-tab span {
        pointer-events: none;
    }
    .page-index .mtb-tab {
        color: rgba(255,255,255,0.4);
    }
    .mtb-tab svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.8;
        transition: transform 0.2s ease;
    }
    .mtb-tab:active svg {
        transform: scale(0.88);
    }
    .mtb-tab.mtb-active {
        color: var(--arancione);
    }
    .page-index .mtb-tab.mtb-active {
        color: var(--arancione);
    }
    .mtb-tab.mtb-active::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        background: var(--arancione);
        border-radius: 50%;
    }

    /* Hide hamburger on mobile — bottom bar replaces it */
    .nav-toggle {
        display: none !important;
    }

    /* Body padding so content doesn't hide behind tab bar */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    /* Move WA float above tab bar */
    .wa-float {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Move WA popup above float */
    .wa-popup {
        bottom: 68px;
    }

    /* Cookie banner above tab bar */
    .cookie-banner {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ─── Drawer "Altro" ─── */
.mtb-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mtb-drawer-backdrop.open {
    display: block;
    opacity: 1;
}

.mtb-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 220;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 8px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
}
.mtb-drawer.open {
    transform: translateY(0);
}

.mtb-drawer-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 12px;
}
.mtb-drawer-handle span {
    width: 36px;
    height: 4px;
    background: rgba(0,0,0,0.12);
    border-radius: 4px;
}

.mtb-drawer-list {
    list-style: none;
    padding: 0 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mtb-drawer-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
}
.mtb-drawer-list a:hover,
.mtb-drawer-list a:active {
    background: rgba(242,140,40,0.06);
}
.mtb-drawer-active {
    color: var(--arancione) !important;
    background: rgba(242,140,40,0.06);
}

/* ═══════════════════════════════════════════════════════
   ═══ PERFORMANCE MOBILE ═══
   Ottimizzazioni per ridurre lag/jank su schermi piccoli
   e dispositivi touch a bassa potenza.
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    /* Riduce blur pesanti (killer performance su iOS/Safari mobile) */
    .site-header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .main-nav,
    .page-index .main-nav {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .mobile-tab-bar {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    /* Disabilita background noise+gradient globali fisse (repaint costosi) */
    body::before,
    body::after {
        display: none;
    }
    /* Semplifica shadow costose */
    .site-header,
    .mobile-tab-bar,
    .mtb-drawer {
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
}

/* ═══════════════════════════════════════════════════════
   ═══ REDUCED MOTION ═══
   Rispetta la preferenza sistema: disattiva tutte le
   animazioni non essenziali e le transizioni pesanti.
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    /* Il pin dell'hero non ha senso senza scroll animato */
    .hero-pin-wrapper {
        height: auto !important;
    }
    .kvs-hero {
        position: relative !important;
        min-height: 100dvh;
    }
}
