/* =========================================================
   LIPA S.r.l. — Sito vetrina
   Nero ad alto contrasto · Rosso brand #DD121B · font Franklin Gothic
   ========================================================= */

:root {
    --red: #dd121b;
    --red-dark: #a90d14;
    --red-soft: rgba(221, 18, 27, 0.10);
    --black: #0a0a0a;
    --ink: #f4f4f5;          /* superficie chiara (input, stat) */
    --panel: #f5f5f6;        /* pannello chiaro */
    --panel-2: #ffffff;
    --line: rgba(0, 0, 0, 0.12);   /* filo scuro su bianco */
    --text: #171717;         /* testo scuro */
    --muted: #666a70;        /* grigio medio */
    --white: #ffffff;
    --radius: 0px;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 {
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: 0.01em;
}

/* ---------- Header ---------- */
/* ---------- Top utility bar ---------- */
.topbar { background: #000; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 0.5rem 2.2rem; flex-wrap: wrap;
}
.topbar-contact { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.topbar a {
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif;
    font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500;
    color: #c9c9c9; display: inline-flex; align-items: center; gap: 0.45rem;
    transition: color 0.2s var(--ease);
}
.topbar a:hover { color: #fff; }
.topbar-icon { color: var(--red); font-size: 0.9rem; line-height: 1; }
.topbar-distrib { color: #fff; font-weight: 600; }
.topbar-distrib::after { content: '\00A0→'; }
.topbar-distrib:hover { color: var(--red); }

.site-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
    padding: 1.1rem 2.2rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    transition: padding 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { padding: 0.65rem 2.2rem; background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.10); }
.brand {
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 700;
    font-size: 1.7rem; letter-spacing: 0.06em; text-transform: uppercase;
    display: flex; align-items: center; gap: 0.6rem;
}
.brand .dot { color: var(--red); }
.brand-logo { height: 40px; width: auto; }
/* Gruppo logo+menu spostato verso il centro-destra (margini automatici); azioni (CTA) a destra */
.site-header .brand { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.btn-header {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif;
    text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; font-size: 0.78rem;
    padding: 0.62rem 1.1rem; border: 2px solid var(--red); white-space: nowrap; cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-header.primary { background: var(--red); color: #fff; }
.btn-header.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-header.ghost { background: transparent; color: var(--red); }
.btn-header.ghost:hover { background: var(--red); color: #fff; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; margin-right: auto; margin-left: 2rem; }
.site-nav a {
    position: relative;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase;
    font-weight: 500; letter-spacing: 0.08em; font-size: 0.92rem;
    color: #1a1a1a; padding: 0.3rem 0; transition: color 0.2s var(--ease);
}
.site-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -3px;
    width: 0; height: 3px; background: var(--red); transition: width 0.25s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--red); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; gap: 0.25rem; align-items: center; }
.lang-switch a {
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.28rem 0.5rem; color: #6a6a6a; border: 1px solid transparent;
    transition: all 0.2s var(--ease);
}
.lang-switch a:hover { color: #111; border-color: rgba(0, 0, 0, 0.18); }
.lang-switch a.active { color: var(--white); background: var(--red); }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-width: 180px;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase;
    font-weight: 600; letter-spacing: 0.08em; font-size: 0.95rem;
    padding: 1rem 2rem; background: var(--red); color: #fff;
    border: 2px solid var(--red); cursor: pointer;
    position: relative; overflow: hidden; isolation: isolate;
    transition: color 0.3s var(--ease);
}
.button::before {
    content: ''; position: absolute; inset: 0; background: #fff;
    transform: translateY(101%); transition: transform 0.3s var(--ease); z-index: -1;
}
.button:hover { color: var(--red); }
.button:hover::before { transform: translateY(0); }
.button-secondary { background: transparent; border-color: var(--red); color: var(--red); }
.button-secondary::before { background: var(--red); }
.button-secondary:hover { color: #fff; border-color: var(--red); }
/* Variante per fondi scuri (hero video): testo bianco, bordo chiaro */
.hero .button-secondary { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .button-secondary:hover { color: #fff; border-color: var(--red); }

/* ---------- Layout / sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 7rem 2.2rem; }
.section-header { max-width: 820px; margin: 0 auto 3rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; color: var(--red);
    text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.78rem; font-weight: 600;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--red); }
.section-header h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); margin-bottom: 1rem; }
.section-header p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: flex-end;
    overflow: hidden; padding: 7rem 0 7vh;
    background:
        radial-gradient(120% 90% at 75% 18%, rgba(221, 18, 27, 0.30), transparent 55%),
        linear-gradient(180deg, #141414 0%, #070707 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 26px);
    pointer-events: none;
}
.hero::after {
    content: 'LIPA'; position: absolute; right: -2%; top: 6%;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 700; font-size: 34vw; line-height: 0.8;
    color: rgba(255, 255, 255, 0.035); letter-spacing: -0.02em; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 2.2rem; }
.hero-content { max-width: 920px; }
.hero h1 { font-size: clamp(3rem, 9vw, 8rem); margin: 0 0 1.5rem; color: #fff; }
.hero h1 .accent { color: var(--red); }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #cfcfcf; max-width: 52ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue { display: none; }

/* Hero con video di sfondo */
.hero.has-video::before, .hero.has-video::after { display: none; }
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.20) 35%, rgba(10, 10, 10, 0.94) 100%),
        linear-gradient(90deg, rgba(10, 10, 10, 0.6) 0%, transparent 60%);
}

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.marquee-track { display: inline-flex; width: max-content; white-space: nowrap; animation: marquee-scroll 28s linear infinite; will-change: transform; }
.marquee span {
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 700; text-transform: uppercase;
    font-size: 1.4rem; letter-spacing: 0.05em; padding: 0.7rem 1.6rem;
    display: inline-flex; align-items: center; gap: 3.2rem; flex-shrink: 0;
}
.marquee span::after { content: '★'; font-size: 0.8rem; color: #000; line-height: 1; position: relative; top: -0.08em; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats (griglia bordata) ---------- */
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: var(--maxw); margin: 0 auto; padding: 0 2.2rem;
}
.stats > .stat:first-child { border-left: 1px solid var(--line); }
.stat {
    padding: 2.6rem 1.6rem; background: var(--ink);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line);
}
.stat .num { font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.8rem); color: var(--text); line-height: 1; }
.stat .num .plus { color: var(--red); }
.stat .label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.5rem; }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0; align-items: stretch; }
.split > div:first-child { padding: 1rem 3rem 1rem 0; display: flex; flex-direction: column; justify-content: center; }
.split h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.3rem; }
.split p { color: #4a4a4e; font-size: 1.06rem; }
.split-visual {
    position: relative; min-height: 460px; border: none; border-left: 4px solid var(--red); overflow: hidden;
    background: #171717; background-size: cover; background-position: center;
    box-shadow: var(--shadow);
}
.split-visual::after {
    content: 'DAL 1980'; position: absolute; left: 1.6rem; bottom: 1.2rem;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.08em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
    position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; overflow: hidden;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85)), linear-gradient(150deg, #232325, #0c0c0d);
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--red); transition: width 0.4s var(--ease); }
.card:hover { transform: translateY(-10px); border-color: rgba(221, 18, 27, 0.5); }
.card:hover::after { width: 100%; }
.card .icon {
    position: absolute; top: 1.6rem; left: 1.6rem;
    width: 52px; height: 52px; display: grid; place-items: center;
    background: var(--red-soft); color: var(--red); font-size: 1.5rem; border: 1px solid rgba(221, 18, 27, 0.4);
}
.card h3 { font-size: 1.7rem; margin-bottom: 0.6rem; color: #fff; }
.card p { color: #e2e2e2; font-size: 0.97rem; }
.area-card { background-size: cover; background-position: center; }
.area-card h3 { font-size: 2rem; }
.card .tag {
    display: inline-block; align-self: flex-start; margin-bottom: 0.9rem;
    padding: 0.3rem 0.7rem; background: var(--red); color: #fff;
    font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Category groups (products) ---------- */
.cat-block { margin-top: 3.5rem; }
.cat-block h2 { display: flex; align-items: center; gap: 0.9rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.5rem; }
.cat-block h2::before { content: ''; width: 30px; height: 5px; background: var(--red); }

/* ---------- Product image cards (pagina Prodotti) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.product-card {
    display: block; background: #fff; border: 1px solid var(--line); overflow: hidden;
    outline: 2px solid transparent;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), outline-color 0.2s var(--ease);
}
.product-card img { width: 100%; height: auto; display: block; }
.product-card:hover { transform: translateY(-8px); outline-color: var(--red); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }

/* ---------- Mappa rivenditori (Distributori) ---------- */
.distrib-map { height: 560px; width: 100%; border: 1px solid var(--line); background: #e6e6e8; }
.leaflet-container { background: #e6e6e8; font-family: 'Inter', sans-serif; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content strong { font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.05rem; }
.leaflet-popup-content a { color: var(--red); font-weight: 600; }
.leaflet-control-attribution { background: rgba(255, 255, 255, 0.75); color: #666; }
.leaflet-control-attribution a { color: #444; }

/* ---------- Feature list (why) ---------- */
.features { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1px solid var(--line); }
.feature { padding: 2.6rem 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.feature p { color: #55565b; font-size: 0.97rem; }
/* Variante a fondo nero, blocchi staccati (es. "Perché scegliere LIPA") */
.features-dark { border: none; gap: 1.4rem; }
.features-dark .feature { background: #0f0f10; border: none; }
.features-dark .feature h3 { color: #fff; }
.features-dark .feature p { color: #c7c7c9; }

/* ---------- Info / CTA band ---------- */
.band {
    text-align: center;
    background: radial-gradient(70% 130% at 50% 0%, rgba(221, 18, 27, 0.12), transparent 60%), #f5f5f6;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1.1rem; max-width: 18ch; margin-inline: auto; }
.band p { color: #4a4a4e; max-width: 48ch; margin: 0 auto 2rem; }
.band .hero-actions { justify-content: center; }

/* ---------- Events ---------- */
.event-feature {
    display: grid; grid-template-columns: 170px 1fr; gap: 2rem; align-items: center;
    padding: 2.2rem; margin-bottom: 2.5rem;
    background: linear-gradient(120deg, rgba(221, 18, 27, 0.18), transparent 70%), var(--panel);
    border: 1px solid rgba(221, 18, 27, 0.4); border-left: 4px solid var(--red);
}
.event-date { text-align: center; padding: 1.2rem; background: var(--red); color: #fff; font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 700; }
.event-date .big { font-size: 2.6rem; line-height: 1; }
.event-feature h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.event-feature .when { color: var(--red); font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.7rem; text-transform: uppercase; }
.event-feature p { color: var(--muted); }
.event-poster { display: block; margin-bottom: 2rem; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.event-poster img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.event-poster:hover img { transform: scale(1.02); }
/* Edizioni passate: poster + barra titolo */
.past-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.past-card { background: #0f0f10; border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.past-card:hover { transform: translateY(-6px); border-color: rgba(221, 18, 27, 0.5); }
.past-card img { width: 100%; height: auto; display: block; }
.past-card figcaption { padding: 1.1rem 1.3rem; }
.past-card figcaption h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.3rem; }
.past-card figcaption p { color: #b9b9b9; font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.info-row { display: flex; gap: 1rem; padding: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); }
.info-row .icon { color: var(--red); font-size: 1.3rem; }
.info-row .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; }
.info-row .value { font-weight: 600; }
.info-row a.value:hover { color: var(--red); }

.form { display: grid; gap: 1rem; padding: 2.2rem; background: var(--panel); border: 1px solid var(--line); }
.form h3 { font-size: 1.6rem; }
.form label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; }
.form input, .form textarea {
    width: 100%; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line);
    color: var(--text); font: inherit; transition: border-color 0.2s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form textarea { min-height: 130px; resize: vertical; }
.form-alert { padding: 0.85rem 1.1rem; font-size: 0.92rem; border: 1px solid var(--line); }
.form-alert.success { background: rgba(46, 160, 67, 0.12); border-color: rgba(46, 160, 67, 0.5); color: #1c6b2b; }
.form-error { display: block; margin-top: 0.35rem; color: #c62828; font-size: 0.8rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.note { font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--red); padding-left: 1rem; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.footer { background: #060606; border-top: 3px solid var(--red); padding: 4rem 2.2rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 1.6rem; margin-bottom: 0.6rem; }
.footer p { color: #9a9a9e; font-size: 0.92rem; line-height: 1.9; }
.footer .copy { width: 100%; text-align: center; color: #6c6c6f; font-size: 0.82rem; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer .credit { width: 100%; text-align: center; color: #6c6c6f; font-size: 0.8rem; margin-top: 0.5rem; }
.footer .credit a { color: #a7a7ab; font-weight: 600; transition: color 0.2s var(--ease); }
.footer .credit a:hover { color: var(--red); }
.footer-social { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.8rem; color: #c9c9c9; font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.84rem; font-weight: 600; transition: color 0.2s var(--ease); }
.footer-social:hover { color: var(--red); }
.footer-social .ic { color: var(--red); }

/* ---------- Footer secondary menu ---------- */
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav .ft-title { font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #7a7a7e; margin-bottom: 0.35rem; }
.footer-nav a { color: #c9c9c9; font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.86rem; font-weight: 500; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--red); }

/* ---------- Dove siamo ---------- */
.where-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem; align-items: stretch; }
.where-map { position: relative; min-height: 430px; height: 100%; border: 1px solid var(--line); background: #ececee; overflow: hidden; }
.where-map iframe { display: block; width: 100%; height: 100%; min-height: 430px; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; padding: 2rem; background: repeating-linear-gradient(45deg, #e9e9eb 0 12px, #e3e3e6 12px 24px); }
.map-consent p { max-width: 34ch; color: #55565b; font-size: 0.95rem; }

/* ---------- Download ---------- */
.dl-card { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; padding: 2rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--red); }
.dl-icon { font-size: 2.6rem; line-height: 1; }
.dl-body { flex: 1 1 260px; }
.dl-body h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.dl-body p { color: #55565b; }
.dl-meta { font-family: 'ITC Franklin Gothic', 'Franklin Gothic Medium', 'Libre Franklin', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Legale (privacy, garanzia) ---------- */
.legal-body { max-width: 840px; }
.legal-body h3 { font-size: 1.3rem; margin: 2.1rem 0 0.6rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: #44454a; margin-bottom: 0.4rem; }
.legal-body h4 { font-size: 1.08rem; margin: 1.5rem 0 0.4rem; }
.legal-body ul,
.legal-body ol { color: #44454a; margin: 0.4rem 0 1rem; padding-left: 1.4rem; }
.legal-body li { margin-bottom: 0.45rem; }
.legal-body a { color: inherit; text-decoration: underline; word-break: break-word; }
.legal-updated { margin-top: 2rem; color: #6b6c72; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.4rem; font-size: 0.92rem; }
.legal-table th,
.legal-table td { border: 1px solid #dcdce0; padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; color: #44454a; }
.legal-table th { background: #f4f4f5; font-weight: 600; }
.legal-table td:nth-child(2) { font-family: monospace; font-size: 0.82rem; word-break: break-all; }

/* ---------- Form: righe multiple e checkbox privacy ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.3rem; }
.form-check input { width: auto; margin-top: 0.2rem; accent-color: var(--red); }
.form-check label { text-transform: none; letter-spacing: 0; color: #44454a; font-size: 0.9rem; font-family: inherit; }
.form-check a { color: var(--red); text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: #0a0a0a; border-top: 3px solid var(--red); box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3); }
.cookie-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 2.2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.cookie-inner p { color: #d5d5d7; font-size: 0.9rem; max-width: 72ch; }
.cookie-inner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cookie-actions .button { min-width: 130px; padding: 0.7rem 1.4rem; font-size: 0.85rem; }
.cookie-banner .button-secondary { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cookie-banner .button-secondary:hover { color: #fff; border-color: var(--red); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Mobile menu toggle ---------- */
.nav-toggle { display: none; background: none; border: none; color: #111; font-size: 1.6rem; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .header-actions { display: none; }
}
@media (max-width: 980px) {
    .split { grid-template-columns: 1fr; }
    .split > div:first-child { padding: 0 0 2.5rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .where-grid { grid-template-columns: 1fr; }
    .event-feature { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .site-header { padding: 0.9rem 1.1rem; }
    .site-header .brand { margin-left: 0; }
    .site-nav { margin-left: 0; }
    .topbar-inner { padding: 0.45rem 1.1rem; gap: 0.9rem; }
    .topbar-contact { gap: 1.1rem; }
    .topbar a { font-size: 0.72rem; letter-spacing: 0.03em; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.10);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
        padding: 0.5rem 0;
        transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    }
    .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .site-nav a { width: 100%; text-align: center; padding: 0.9rem; }
    .stats { grid-template-columns: 1fr 1fr; }
    .button { width: 100%; }
    .footer-inner { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .topbar-email { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    /* Il nastro con lo slogan resta sempre in scorrimento (elemento di brand voluto) */
    .marquee-track { animation: marquee-scroll 28s linear infinite !important; }
}
