/* =========================================================================
   Sci Club Pianturina — design system "Rifugio Alpino" v2
   Layout a barra laterale fissa (come il sito originale WordPress/Divi)
   Hand-maintained, no build step. Palette e asset reali dal sito live.
   Display: Roboto Slab · UI: Outfit · Body: Open Sans
   ========================================================================= */

/* font variabili self-hosted (subset latin, no Google Fonts hotlink) */
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/roboto-slab-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/outfit-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("/fonts/open-sans-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("/fonts/open-sans-italic-var-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* brand — blu alpino + arancio tramonto (reali) */
    --navy:      #11203b;
    --navy-deep: #0d1830;
    --blue-900:  #1e3c72;
    --blue-700:  #2a5298;
    --blue-500:  #3a6bc4;
    --blue-300:  #8fb1e0;
    --orange:    #f28c28;
    --orange-600:#ea7b15;
    --orange-deep:#ff6a00;
    --orange-100:#ffe9d3;

    /* neutrals */
    --ink:    #15233b;
    --body:   #41506a;
    --muted:  #79899f;
    --line:   #e7edf4;
    --snow:   #f4f8fc;
    --snow-2: #eaf1f9;
    --paper:  #ffffff;

    /* typography — come l'originale: titoli Roboto Slab, body Open Sans, UI Outfit */
    --font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
    --font-ui: "Outfit", "Open Sans", system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* shape & depth — un solo linguaggio: superfici 6-12px, badge pill, ombre corte e dense */
    --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-pill: 999px;
    --sh-1: 0 1px 2px rgba(17,32,59,.05), 0 3px 10px rgba(17,32,59,.06);
    --sh-2: 0 2px 6px rgba(17,32,59,.06), 0 10px 24px rgba(17,32,59,.10);
    --sh-3: 0 6px 16px rgba(17,32,59,.10), 0 18px 40px rgba(17,32,59,.15);
    --sh-orange: 0 4px 14px rgba(234,123,21,.28);

    /* layout: barra laterale come l'originale Divi (225px) ma più ariosa */
    --sidebar-w: 284px;
    --maxw: 1160px;
    --ease: cubic-bezier(.22,.61,.36,1);
    --ease-out: cubic-bezier(.16,1,.3,1);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

    /* creste montane (due piani, profondità) */
    --ridge-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M0 240 L0 140 L120 70 L240 130 L360 40 L500 120 L640 24 L800 110 L960 60 L1120 130 L1260 80 L1440 150 L1440 240 Z' fill='%2311203b' fill-opacity='.5'/%3E%3C/svg%3E");
    --ridge-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 240' preserveAspectRatio='none'%3E%3Cpath d='M0 240 L0 190 L160 120 L300 170 L460 90 L620 160 L780 70 L940 150 L1100 100 L1280 170 L1440 130 L1440 240 Z' fill='%230d1830' fill-opacity='.85'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--body);
    background: var(--paper);
    line-height: 1.7;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }

::selection { background: var(--orange); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid #c46800; outline-offset: 2px; border-radius: 4px; } /* arancio scuro: ≥3:1 su tutte le superfici */

h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 3.5vw, 44px); }

.skip-link {
    position: fixed; top: -60px; left: 16px; z-index: 999;
    background: var(--navy); color: #fff; font-family: var(--font-ui); font-weight: 600;
    padding: 10px 18px; border-radius: 0 0 12px 12px; transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* =========================================================================
   STRUTTURA — barra laterale fissa + contenuto a destra
   ========================================================================= */
.site-shell { margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-shell main { flex: 1; }

/* --- side nav (la "barra laterale" dell'originale, elevata) ------------- */
.side-nav {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w); z-index: 120;
    display: flex; flex-direction: column;
    padding: 22px 20px 20px;
    background:
        radial-gradient(220px 170px at 50% -48px, rgba(240,107,45,.18), transparent 72%),
        radial-gradient(260px 220px at 100% 18%, rgba(30,60,114,.09), transparent 68%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,253,.93) 62%, rgba(238,245,252,.97));
    border-right: 1px solid rgba(201,214,232,.72);
    box-shadow: 18px 0 56px rgba(17,32,59,.09);
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #c8d6e8 transparent;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: #c8d6e8; border-radius: 6px; }

.side-close { display: none; }

.side-brand {
    display: block; position: relative;
    margin: 0 0 clamp(18px, 3.4vh, 30px); padding: 18px 14px 16px;
    text-align: center; color: var(--blue-900);
    border: 1px solid rgba(211,222,237,.78); border-radius: 22px;
    background: rgba(255,255,255,.68);
    box-shadow: 0 16px 36px rgba(17,32,59,.08), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
}
.side-brand img {
    width: 86px; height: 86px; margin: 0 auto 12px; padding: 8px;
    object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 12px 26px rgba(17,32,59,.16);
    transition: transform .45s var(--ease-out), box-shadow .35s var(--ease-out);
}
.side-brand:hover img { transform: translateY(-2px) rotate(-3deg); box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 16px 32px rgba(17,32,59,.2); }
.side-brand b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; line-height: 1.12; letter-spacing: 0; }
.side-brand .since {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 10px;
    font-family: var(--font-ui); font-weight: 700; font-size: .62rem;
    letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; color: var(--orange-deep);
}
.side-brand .since::before, .side-brand .since::after { content: ""; width: 16px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--orange)); border-radius: 2px; }
.side-brand .since::after { background: linear-gradient(90deg, var(--orange), transparent); }

.side-menu { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; }
.side-menu a {
    position: relative; display: flex; align-items: center; gap: 10px;
    min-height: 50px; padding: 8px 11px 8px 10px; border: 1px solid transparent; border-radius: 16px;
    font-family: var(--font-ui); font-weight: 700; font-size: .96rem; color: var(--ink);
    background: rgba(255,255,255,.34);
    transition: background .22s, border-color .22s, color .22s, box-shadow .22s, transform .25s var(--ease-out);
}
.side-menu a::before {
    content: ""; position: absolute; left: -1px; top: 11px; bottom: 11px; width: 3px; border-radius: 999px;
    background: var(--orange); opacity: 0; transform: scaleY(.45); transform-origin: center;
    transition: opacity .22s, transform .25s var(--ease-out);
}
.side-menu a:hover { color: var(--blue-900); background: rgba(255,255,255,.78); border-color: rgba(207,220,237,.82); box-shadow: 0 10px 24px rgba(17,32,59,.07); transform: translateY(-1px); }
.side-menu a:hover::before, .side-menu a.is-active::before { opacity: 1; transform: scaleY(1); }
.side-menu a:focus-visible { outline: 3px solid rgba(240,107,45,.28); outline-offset: 2px; }
.side-menu a.is-active {
    color: var(--blue-900);
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(235,243,252,.82));
    border-color: rgba(191,207,228,.95);
    box-shadow: 0 14px 30px rgba(17,32,59,.1), inset 0 1px 0 rgba(255,255,255,.92);
}
.side-menu__icon {
    width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 12px;
    color: var(--blue-700); background: rgba(235,242,250,.78); border: 1px solid rgba(211,222,237,.72);
    transition: background .22s, color .22s, border-color .22s, transform .25s var(--ease-out);
}
.side-menu__icon svg, .side-archive__icon svg, .side-cta__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-menu a:hover .side-menu__icon { color: var(--orange-deep); transform: translateY(-1px); }
.side-menu a.is-active .side-menu__icon { color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange-deep)); border-color: transparent; }
.side-menu__label { min-width: 0; }

.side-foot { margin-top: auto; display: grid; gap: 12px; text-align: left; }
.side-archive {
    display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px;
    border: 1px solid rgba(211,222,237,.84); border-radius: 18px;
    background: rgba(255,255,255,.58); color: var(--blue-700); font-family: var(--font-ui);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
    transition: background .22s, border-color .22s, color .22s, box-shadow .22s, transform .25s var(--ease-out);
}
.side-archive__icon {
    width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 14px;
    color: var(--blue-700); background: var(--snow-2); border: 1px solid rgba(211,222,237,.75);
}
.side-archive b { display: block; font-weight: 800; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.side-archive small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.side-archive:hover, .side-archive.is-active { color: var(--blue-900); border-color: rgba(240,107,45,.42); background: rgba(255,255,255,.86); box-shadow: 0 12px 28px rgba(17,32,59,.08); transform: translateY(-1px); }
.side-archive:hover .side-archive__icon, .side-archive.is-active .side-archive__icon { color: var(--orange-deep); background: var(--orange-100); border-color: rgba(240,107,45,.24); }
.side-archive:hover small, .side-archive.is-active small { color: var(--body); }

.side-contact-card {
    padding: 14px 12px; border: 1px solid rgba(211,222,237,.78); border-radius: 18px;
    background: rgba(255,255,255,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.side-mail { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; color: var(--blue-700); overflow-wrap: anywhere; }
.side-mail:hover { color: var(--orange-deep); }
.side-addr { margin: 8px 0 12px; color: var(--body); font-size: .82rem; line-height: 1.5; }
.side-social { display: flex; justify-content: flex-start; gap: 8px; margin: 0; }
.side-social a {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: var(--snow-2); color: var(--blue-700); border: 1px solid rgba(211,222,237,.72);
    transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.side-social a:hover { background: var(--orange); color: #fff; border-color: transparent; transform: translateY(-2px); }
.side-cta { box-shadow: 0 16px 30px rgba(30,60,114,.2); }
.side-cta__icon { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.side-links { margin: 0; padding: 0 2px; text-align: center; font-size: .74rem; color: var(--body); }
.side-links a { color: var(--body); }
.side-links a:hover { color: var(--orange-deep); }
.text-link { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: none; }
.text-link:hover { color: var(--orange-deep); }

/* --- barra mobile + drawer ---------------------------------------------- */
.mobile-bar {
    display: none;
    position: sticky; top: 0; z-index: 110;
    align-items: center; justify-content: space-between; gap: 12px;
    min-height: 64px; padding: 0 18px;
    background: rgba(255,255,255,.84); backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(231,237,244,.9);
    transition: box-shadow .3s var(--ease);
}
.mobile-bar.is-scrolled { box-shadow: var(--sh-1); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-900); }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.brand span { display: block; font-family: var(--font-ui); font-size: .62rem; font-weight: 500; color: var(--orange-deep); letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; }
.nav-toggle { display: block; background: none; border: 0; cursor: pointer; color: var(--blue-900); padding: 8px; border-radius: var(--r); }
.nav-toggle:hover { background: var(--snow); }

.side-backdrop {
    position: fixed; inset: 0; z-index: 115;
    background: rgba(11,18,32,.5); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.side-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* --- home alert banners -------------------------------------------------- */
.home-alerts {
    position: relative;
    z-index: 5;
    padding: clamp(18px, 3vw, 30px) 0 clamp(8px, 1.8vw, 18px);
    background: linear-gradient(180deg, var(--paper), rgba(244,248,252,.72));
}
.home-alerts__stack { display: grid; gap: 12px; }
.home-alert {
    --alert-accent: var(--orange);
    --alert-accent-deep: var(--orange-deep);
    --alert-bg: rgba(255,255,255,.84);
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
    padding: clamp(16px, 2.4vw, 22px);
    border: 1px solid rgba(211,222,237,.86); border-left: 5px solid var(--alert-accent);
    border-radius: 18px; background: var(--alert-bg);
    box-shadow: 0 18px 44px rgba(17,32,59,.1), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
.home-alert--info { --alert-accent: var(--blue-500); --alert-accent-deep: var(--blue-900); }
.home-alert--success { --alert-accent: #23a66f; --alert-accent-deep: #126b46; }
.home-alert--danger { --alert-accent: #d83b3b; --alert-accent-deep: #9f1f1f; }
.home-alert__icon {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px;
    color: #fff; background: linear-gradient(135deg, var(--alert-accent), var(--alert-accent-deep));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--alert-accent) 28%, transparent);
}
.home-alert__icon svg { width: 22px; height: 22px; }
.home-alert__body { min-width: 0; }
.home-alert__label {
    margin: 0 0 4px; font-family: var(--font-ui); font-weight: 800; font-size: .68rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--alert-accent-deep);
}
.home-alert h2 { margin: 0; font-size: clamp(1.08rem, 1.9vw, 1.34rem); letter-spacing: 0; }
.home-alert__body > p:not(.home-alert__label) { margin: 6px 0 0; color: var(--body); line-height: 1.55; }
.home-alert__action {
    display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
    padding: 10px 16px; border-radius: 999px;
    font-family: var(--font-ui); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: var(--blue-900); white-space: nowrap;
    box-shadow: 0 12px 24px rgba(30,60,114,.2);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
.home-alert__action:hover { color: #fff; background: var(--alert-accent-deep); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(17,32,59,.18); }

/* =========================================================================
   SEZIONI & ELEMENTI COMUNI
   ========================================================================= */
.section { padding: clamp(56px, 7vw, 100px) 0; position: relative; }
.section--soft { background: var(--snow); }
.section--blue { background: linear-gradient(180deg, var(--snow-2), #dde9f7); }
.section--plain { background: var(--paper); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--font-ui); font-weight: 600; font-size: .76rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--orange-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow--center { justify-content: center; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(38px, 5.5vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: .42em 0 .3em; letter-spacing: -.018em; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.section-head .reg-season { margin: 0 0 .55em; }
.reg-season span { display: inline-block; padding: .34em .95em; border-radius: 999px; border: 1.5px solid var(--orange); background: #fff; color: var(--orange-deep); font-weight: 700; font-size: .92rem; letter-spacing: .02em; }

/* --- buttons ------------------------------------------------------------ */
.btn {
    --bx: 28px;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    font-family: var(--font-ui); font-weight: 700; font-size: .86rem;
    letter-spacing: .07em; text-transform: uppercase;
    padding: 15px var(--bx); border-radius: var(--r); border: 1.5px solid transparent;
    cursor: pointer; position: relative; white-space: nowrap;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%); color: #fff; box-shadow: var(--sh-orange); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(234,123,21,.34); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--blue-900); transform: translateY(-2px); border-color: #fff; }
.btn--solid-blue { background: var(--blue-700); color: #fff; }
.btn--solid-blue:hover { background: var(--blue-900); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--block { width: 100%; margin-top: 14px; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

/* --- creste montane (chiusura di hero e page-header) --------------------- */
.ridge {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1;
    height: clamp(64px, 11vw, 150px); pointer-events: none;
    background-image: var(--ridge-front), var(--ridge-back);
    background-repeat: no-repeat;
    background-size: 100% 72%, 100% 100%;
    background-position: bottom center, bottom center;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; color: #fff; text-align: center; overflow: hidden; isolation: isolate; }
/* l'immagine è un <img> reale (LCP scopribile + fetchpriority), non un background */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; animation: heroZoom 18s var(--ease-out) forwards; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; pointer-events: none; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__overlay { position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(120% 90% at 50% 0%, rgba(30,60,114,.35), transparent 60%),
    linear-gradient(180deg, rgba(17,32,59,.55) 0%, rgba(30,60,114,.70) 55%, rgba(13,24,48,.94) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }
.hero__inner { position: relative; padding: clamp(84px, 14vh, 156px) 24px clamp(36px, 5vh, 56px); max-width: 920px; margin: 0 auto; }
.hero__logo {
    width: clamp(92px, 13vh, 124px);
    height: clamp(92px, 13vh, 124px);
    margin: 0 auto 26px;
    padding: clamp(10px, 1.6vh, 15px);
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 18px 42px rgba(9,24,50,.28);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    animation: rise .8s var(--ease-out) both;
}
.hero .eyebrow { color: #ffd6ad; justify-content: center; animation: rise .8s .05s var(--ease-out) both; }
.hero .eyebrow::before { background: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.3rem); margin: .14em 0 .3em; letter-spacing: -.02em; text-shadow: 0 6px 40px rgba(0,0,0,.35); animation: rise .8s .12s var(--ease-out) both; }
.hero p { color: #e4ecf9; font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 620px; margin: 0 auto 36px; animation: rise .8s .2s var(--ease-out) both; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: rise .8s .28s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* stat in "vetro" sopra le creste */
.hero__stats {
    position: relative; display: flex; justify-content: center; align-items: stretch;
    gap: clamp(14px, 2vw, 24px); flex-wrap: wrap;
    padding: 10px 24px clamp(64px, 11vh, 110px);
    animation: rise .8s .36s var(--ease-out) both;
}
.hero__stats .stat {
    text-align: center; position: relative; min-width: 150px;
    padding: 18px clamp(24px, 3vw, 44px) 16px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--r); backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 14px 40px rgba(8,14,26,.25);
}
.hero__stats .stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; color: #fff; letter-spacing: -.015em; line-height: 1.1; }
.hero__stats .stat span { color: #c3d2ea; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-ui); font-weight: 500; }
/* =========================================================================
   BLOCCHI
   ========================================================================= */

/* --- whatsapp + documents ---------------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1.3fr .9fr; gap: 26px; align-items: stretch; }
.feature-row--docs-only { grid-template-columns: minmax(0, 760px); justify-content: center; }
.wa-card { background: linear-gradient(140deg, #25d366 0%, #0f9d52 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(30px, 4vw, 44px); box-shadow: 0 18px 44px rgba(15,157,82,.25); position: relative; overflow: hidden; }
.wa-card::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .05; }
.wa-card .wa-badge { position: relative; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.2); padding: 7px 15px; border-radius: var(--r-pill); font-family: var(--font-ui); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
.wa-card h2 { position: relative; color: #fff; font-size: clamp(1.4rem, 2vw, 1.65rem); margin: 18px 0 12px; }
.wa-card p { position: relative; color: #effff5; margin: 0; font-size: 1rem; }
.wa-action { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; padding: 11px 18px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: #0f7f45; font-family: var(--font-ui); font-weight: 800; font-size: .86rem; box-shadow: 0 10px 24px rgba(5,84,42,.22); }
.wa-action:hover { color: #075f31; background: #fff; transform: translateY(-2px); }
.wa-card .wa-glyph { position: absolute; right: -14px; bottom: -28px; opacity: .12; transform: rotate(-8deg); pointer-events: none; }

.docs-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); }
.docs-card h2 { color: var(--blue-900); font-size: 1.1rem; margin: 0 0 18px; }
.docs-card ul { list-style: none; margin: 0; padding: 0; }
.docs-card a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 600; transition: background .2s, transform .2s; }
.docs-card a:hover { background: var(--orange-100); color: var(--orange-deep); transform: translateX(4px); }
.docs-card a .ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r); background: var(--snow-2); color: var(--blue-700); transition: background .2s, color .2s; }
.docs-card a:hover .ico { background: #fff; color: var(--orange-deep); }
.docs-card a .doc-label { flex: 1; }
.docs-card a .doc-arrow { color: var(--muted); font-weight: 700; opacity: .6; transition: transform .2s, opacity .2s; }
.docs-card a:hover .doc-arrow { color: var(--orange-deep); opacity: 1; transform: translateY(2px); }

/* --- news --------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.news-col .news-label { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--orange-deep); margin: 0 0 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.news-col .news-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.news-feature { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.news-feature:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.news-feature .media { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--snow-2); }
.news-feature .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 70%, rgba(17,32,59,.18)); }
.news-feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-feature:hover .media img { transform: scale(1.06); }
.news-feature .body { padding: clamp(24px, 3vw, 32px); }
.news-feature .tag { display: inline-block; background: var(--orange-100); color: var(--orange-deep); font-family: var(--font-ui); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill); }
.news-feature h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); margin: 16px 0 8px; color: var(--ink); }
.news-feature time { color: var(--muted); font-size: .82rem; font-weight: 600; font-family: var(--font-ui); letter-spacing: .04em; text-transform: uppercase; }
.news-feature p { margin: 12px 0 20px; color: var(--body); }
.news-feature .more { font-family: var(--font-ui); font-weight: 600; color: var(--orange-deep); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s var(--ease); }
.news-feature:hover .more { gap: 11px; }

.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--sh-1); transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; align-items: center; }
.news-item:hover { transform: translateX(6px); border-color: #d3e0f1; box-shadow: var(--sh-2); }
.news-item .thumb { flex: none; width: 78px; height: 78px; border-radius: var(--r-sm); overflow: hidden; background: var(--snow-2); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .date { flex: none; width: 60px; text-align: center; background: linear-gradient(160deg, var(--blue-900), var(--navy)); color: #fff; border-radius: var(--r-sm); padding: 10px 0; }
.news-item .date b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.news-item .date span { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: #b8c8e3; }
.news-item h3 { margin: 0 0 4px; font-size: 1.04rem; color: var(--ink); }
.news-item p { margin: 0; font-size: .88rem; color: var(--muted); }

.news-cta { text-align: center; margin-top: clamp(32px, 4vw, 48px); }

/* --- attività per categoria (pagina Attività / Archivio) ----------------- */
.news-cat { max-width: 980px; margin: 0 auto clamp(44px, 6vw, 64px); }
.news-cat:last-child { margin-bottom: 0; }
.news-cat__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.news-cat__head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0; color: var(--blue-900); }
.news-cat__head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.news-cat__count { order: 2; font-family: var(--font-ui); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--body); background: var(--snow-2); padding: 4px 13px; border-radius: var(--r-pill); white-space: nowrap; }
.news-cat__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-feature--compact .body { padding: 22px 24px 24px; }
.news-feature--compact h4 { font-size: 1.22rem; margin: 8px 0 6px; color: var(--ink); }
.news-feature--compact p { margin: 8px 0 14px; font-size: .94rem; }
.news-cat__empty { background: var(--snow); border: 1.5px dashed #d6e1ee; border-radius: var(--r); padding: 26px 28px; color: var(--body); text-align: center; margin: 0; font-size: .98rem; }

.archive-section { background: linear-gradient(180deg, #fff 0%, var(--snow) 100%); }
.archive-overview { max-width: 980px; margin: -18px auto clamp(34px, 4vw, 46px); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(260px, .8fr) 1fr; gap: 24px; align-items: center; }
.archive-overview__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.archive-overview__meta strong { display: block; font-family: var(--font-display); color: var(--blue-900); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1; }
.archive-overview__meta span { display: block; margin-top: 6px; font-family: var(--font-ui); color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.archive-index { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.archive-index a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #d8e2ee; border-radius: 8px; color: var(--blue-900); background: rgba(255,255,255,.72); font-family: var(--font-ui); font-weight: 700; font-size: .82rem; }
.archive-index a small { min-width: 1.45em; height: 1.45em; display: grid; place-items: center; border-radius: 50%; background: var(--snow-2); color: var(--body); font-size: .72rem; }
.archive-index a:hover { border-color: var(--blue-300); background: #fff; }
.archive-index a.is-muted { color: var(--muted); font-weight: 600; }
.archive-list { max-width: 980px; margin: 0 auto; }
.archive-category { scroll-margin-top: 24px; margin-bottom: clamp(34px, 5vw, 54px); }
.archive-category:last-child { margin-bottom: 0; }
.archive-category__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.archive-category__head h3 { margin: 0; color: var(--blue-900); font-size: clamp(1.16rem, 1.8vw, 1.45rem); }
.archive-category__head span { font-family: var(--font-ui); color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.archive-stack { display: flex; flex-direction: column; gap: 10px; }
.archive-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--body); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.archive-row:hover { transform: translateY(-2px); border-color: #cbd9ea; box-shadow: var(--sh-1); color: var(--body); }
.archive-row__media { width: 104px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--snow-2); display: grid; place-items: center; }
.archive-row__media img { width: 100%; height: 100%; object-fit: cover; }
.archive-row__media time { text-align: center; font-family: var(--font-ui); color: var(--blue-900); }
.archive-row__media time b { display: block; font-family: var(--font-display); font-size: 1.65rem; line-height: 1; }
.archive-row__media time span { display: block; margin-top: 4px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.archive-row__body { min-width: 0; }
.archive-row__body time { display: block; margin-bottom: 4px; font-family: var(--font-ui); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.archive-row__body h4 { margin: 0; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--ink); letter-spacing: 0; }
.archive-row__body p { margin: 7px 0 0; color: var(--body); font-size: .94rem; line-height: 1.55; }
.archive-row__more { font-family: var(--font-ui); font-weight: 700; color: var(--orange-deep); font-size: .82rem; white-space: nowrap; }
.archive-empty { margin: 0; padding: 16px 0; color: var(--muted); border-bottom: 1px solid var(--line); }

/* --- elenco documenti (pagina Archivio) ----------------------------------- */
.docs-board { max-width: 760px; margin: 0 auto; }
.docs-empty { margin: 0; text-align: center; color: var(--muted); }

/* --- pricing (listino sobrio, professionale) ----------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 24px; text-align: left; box-shadow: var(--sh-1); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--orange); opacity: 0; transition: opacity .28s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #d3e0f1; }
.price-card:hover::before { opacity: 1; }
.price-card__head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); min-height: 66px; }
.price-card h3 { font-size: 1.05rem; margin: 0 0 4px; color: var(--ink); letter-spacing: 0; line-height: 1.3; }
.price-card .age { display: block; color: var(--muted); font-family: var(--font-ui); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.price-card .price { display: flex; align-items: baseline; gap: 7px; margin: 0; }
.price-card .price .cur { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--muted); }
.price-card .price .amt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--blue-900); letter-spacing: -.015em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card .price .per { color: var(--muted); font-size: .85rem; }

.pricing-note { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: space-between; box-shadow: var(--sh-1); }
.pricing-note .txt b { font-family: var(--font-ui); display: block; color: var(--blue-900); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; margin-bottom: 12px; }
.pricing-note .txt ul { list-style: none; margin: 0; padding: 0; color: var(--body); font-size: .96rem; display: grid; gap: 9px; }
.pricing-note .txt li { position: relative; padding-left: 30px; margin: 0; }
.pricing-note .txt li::before {
    content: ""; position: absolute; left: 0; top: .18em; width: 19px; height: 19px; border-radius: 50%;
    background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' fill='none' stroke='%23ea7b15' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* --- sponsor ------------------------------------------------------------ */
.sponsor { text-align: center; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; margin-top: 30px; }
.sponsor .sponsor-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 4vw, 40px); box-shadow: var(--sh-1); overflow: hidden; text-align: center; }
.sponsor-card__logo { min-height: 132px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.sponsor-card__logo img { width: min(180px, 58vw); max-height: 132px; height: auto; object-fit: contain; margin: 0 auto; }
.sponsor h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sponsor h3 { font-size: 1.25rem; margin: 0 0 12px; color: var(--blue-900); }
.sponsor p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.sponsor-board { margin: 28px auto 0; max-width: 980px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(14px, 2.8vw, 24px); box-shadow: var(--sh-1); }
.sponsor-board a { display: block; }
.sponsor-board img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); margin: 0; }
.sponsor-board figcaption { margin-top: 14px; color: var(--muted); font-family: var(--font-ui); font-size: .9rem; font-weight: 600; }

/* --- contact ------------------------------------------------------------ */
.contact { background: linear-gradient(165deg, var(--navy) 0%, var(--blue-900) 100%); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .04; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: #c2d2ea; }
.contact-form { position: relative; max-width: 760px; margin: 0 auto; background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-3); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { font-family: var(--font-ui); display: block; font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 8px; }
.required-mark { color: #c46800; font-weight: 800; }
.field input, .field textarea, .field select {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    font: inherit; color: var(--ink); background: var(--snow); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(242,140,40,.13); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-form .submit-row, .reg-form .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.captcha { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; background: var(--snow); padding: 8px 10px 8px 16px; border-radius: var(--r-sm); border: 1px dashed var(--line); }
.captcha b { color: var(--ink); font-family: var(--font-ui); }
.captcha input { width: 78px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r); font: inherit; font-weight: 700; text-align: center; color: var(--ink); background: #fff; }
.captcha input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,140,40,.13); }
.privacy-consent { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--snow); color: var(--body); font-size: .92rem; line-height: 1.5; }
.privacy-consent input { flex: none; margin-top: .28em; accent-color: var(--orange); }
.privacy-consent a { font-weight: 700; color: var(--blue-700); }
.privacy-consent.has-error { border-color: #e23b3b; background: #fff5f5; }
.field input.has-error, .field textarea.has-error, .field select.has-error, .captcha input.has-error { border-color: #e23b3b; background: #fff5f5; }
.field-error { color: #e23b3b; font-size: .88rem; margin: 8px 0 0; font-weight: 600; }
.form-alert { border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 22px; font-weight: 600; font-size: .96rem; }
.form-alert--ok { background: #e8f8ee; color: #137a3e; border: 1px solid #b6e6c8; }
.form-alert--err { background: #fdecec; color: #c0322f; border: 1px solid #f4c4c2; }
.form-alert--info { background: #eef5fd; color: var(--blue-900); border: 1px solid #cbdff5; }

/* --- inner page header -------------------------------------------------- */
.page-header { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.page-header__overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(125deg, rgba(17,32,59,.88), rgba(42,82,152,.70) 70%, rgba(13,24,48,.9)); }
.page-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .04; }
.page-header__inner { position: relative; padding: clamp(72px, 12vh, 124px) 24px clamp(88px, 13vh, 130px); text-align: center; max-width: 800px; margin: 0 auto; }
.page-header .eyebrow { color: #ffd6ad; justify-content: center; }
.page-header h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: .24em 0 .28em; letter-spacing: -.018em; text-shadow: 0 6px 30px rgba(0,0,0,.3); }
.page-header p { color: #dde7f7; font-size: 1.16rem; max-width: 600px; margin: 0 auto; }
.page-header .ridge { height: clamp(48px, 8vw, 96px); }

/* --- prose -------------------------------------------------------------- */
.prose-wrap { max-width: 800px; margin: 0 auto; }
.prose-heading { text-align: center; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .25em 0 1em; letter-spacing: -.018em; }
.prose-subtitle { max-width: 640px; margin: -14px auto 28px; color: var(--muted); text-align: center; font-size: 1.05rem; }
.prose { color: var(--body); font-size: 1.06rem; }
.prose h3 { color: var(--blue-900); font-size: 1.4rem; margin: 1.7em 0 .5em; }
.prose h4 { color: var(--body); font-size: 1.1rem; margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--orange); }
.prose a { font-weight: 600; border-bottom: 1px solid var(--orange-100); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .lead { font-size: 1.2rem; color: var(--blue-900); font-weight: 600; }
.prose .callout { background: var(--orange-100); border-left: 4px solid var(--orange); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin: 1.4em 0; color: var(--ink); }
.prose .callout--blue { background: var(--snow-2); border-left-color: var(--blue-700); }

/* --- team --------------------------------------------------------------- */
.team-group { margin-bottom: 52px; }
.team-group__title { text-align: center; color: var(--blue-900); font-size: 1.3rem; margin-bottom: 26px; }
.team-group__title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--orange); border-radius: 3px; margin: 14px auto 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.team-card { display: flex; align-items: center; gap: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-1); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #d3e0f1; }
.team-avatar { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; color: #fff; background: linear-gradient(140deg, var(--blue-500), var(--blue-900)); font-size: .92rem; letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.team-card b { font-family: var(--font-ui); display: block; color: var(--ink); font-size: 1rem; line-height: 1.2; }
.team-card span { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }

/* --- gallery ------------------------------------------------------------ */
.gallery-grid { columns: 4 220px; column-gap: 16px; }
.gallery-item { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); position: relative; break-inside: avoid; cursor: zoom-in; display: block; width: 100%; border: 0; padding: 0; background: var(--snow-2); }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease), filter .3s; }
/* fade-in morbido: lo spazio è già riservato da width/height, quindi nessun reflow */
.js .gallery-item img { opacity: 0; transition: opacity .45s var(--ease), transform .5s var(--ease), filter .3s; }
.js .gallery-item img.is-loaded { opacity: 1; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(17,32,59,.4)); opacity: 0; transition: opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-loading { text-align: center; color: var(--muted); padding: 30px 0; }
.gallery-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 32px auto 0; max-width: 620px; }

/* album tabs */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 36px; }
.gallery-tab { font-family: var(--font-ui); font-weight: 600; font-size: .9rem; color: var(--body); background: var(--paper); border: 1.5px solid var(--line); padding: 9px 20px; border-radius: var(--r-pill); cursor: pointer; transition: color .25s, background .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.gallery-tab:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.gallery-tab.is-active { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); border-color: transparent; color: #fff; box-shadow: var(--sh-2); }

/* lightbox professionale */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,14,26,.94); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); }
.lightbox.is-open { display: flex; animation: fade .28s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { position: relative; margin: 0; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__stage img { max-width: 94vw; max-height: 80vh; border-radius: var(--r); box-shadow: 0 40px 100px rgba(0,0,0,.65); background: #0e1726; opacity: 0; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.lightbox__stage img.is-ready { opacity: 1; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; margin-top: 16px; color: #dce6f7; font-size: .92rem; font-family: var(--font-ui); }
.lightbox__count { color: #8ea3c4; letter-spacing: .04em; white-space: nowrap; }
.lightbox__spinner { display: none; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; transition: background .2s, transform .25s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 22px; right: 22px; font-size: 1.2rem; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__nav.prev { left: clamp(8px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: clamp(8px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev:hover { transform: translateY(-50%) translateX(-3px) scale(1.08); }
.lightbox__nav.next:hover { transform: translateY(-50%) translateX(3px) scale(1.08); }
@media (max-width: 560px) { .lightbox__nav { width: 44px; height: 44px; } }

/* --- cookie consent ------------------------------------------------------ */
.cookie-banner { position: fixed; inset: auto 18px 18px calc(var(--sidebar-w) + 18px); z-index: 140; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__panel { max-width: 860px; margin: 0 auto; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.cookie-banner__copy h2 { font-family: var(--font-ui); font-size: 1rem; margin: 0 0 6px; letter-spacing: 0; color: var(--ink); }
.cookie-banner__copy p { margin: 0 0 8px; color: var(--body); font-size: .92rem; line-height: 1.5; }
.cookie-banner__copy a { font-weight: 700; font-size: .86rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-banner__actions .btn { padding: 11px 14px; font-size: .72rem; box-shadow: none; }
.cookie-link { border: 0; background: transparent; color: var(--blue-700); font-family: var(--font-ui); font-weight: 700; cursor: pointer; padding: 10px 6px; }
.cookie-link:hover { color: var(--orange-deep); }
.cookie-options { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cookie-options[hidden] { display: none; }
.cookie-option { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--snow); font-size: .86rem; }
.cookie-option input { margin-top: .2em; accent-color: var(--orange); }
.cookie-option b { display: block; color: var(--ink); font-family: var(--font-ui); }
.cookie-option small { display: block; color: var(--muted); line-height: 1.35; }

/* --- registration form -------------------------------------------------- */
.reg-form { max-width: 900px; margin: 0 auto; background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--sh-2); border: 1px solid var(--line); }
.reg-closed { max-width: 640px; margin: 0 auto; background: var(--paper); border: 1.5px dashed #d6e1ee; border-radius: var(--r); padding: 32px; text-align: center; color: var(--muted); font-size: 1.04rem; }
.check-list.has-error, .radio-set.has-error { border: 1.5px solid #e23b3b; background: #fff5f5; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.field--full { grid-column: 1 / -1; }
.custom-checkbox { margin-bottom: 0; }
.check-group { border: 0; padding: 0; margin: 0 0 18px; }
.check-group legend { font-family: var(--font-ui); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.check-list { display: flex; flex-direction: column; gap: 8px; background: var(--snow); padding: 18px; border-radius: var(--r-sm); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--body); font-size: .95rem; cursor: pointer; }
.check input { width: auto; accent-color: var(--orange); }
.radio-set { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 18px; margin: 0; background: var(--snow); min-width: 0; }
.radio-set legend { float: left; width: 100%; min-height: 2.45em; margin: 0 0 12px; padding: 0; font-family: var(--font-ui); font-weight: 600; color: var(--blue-900); font-size: .92rem; line-height: 1.25; }
.radio-set .check { clear: both; margin: 7px 0; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #9fb1cc; padding: clamp(56px, 8vw, 88px) 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-bottom: 48px; }
.site-footer .brand b { color: #fff; }
.site-footer .brand span { color: var(--orange); }
.site-footer h4 { font-family: var(--font-ui); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #9fb1cc; }
.site-footer a:hover { color: var(--orange); }
.site-footer .muted { color: #6f82a0; font-size: .94rem; margin-top: 16px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #c2d2ea; transition: background .2s, transform .2s, color .2s; }
.footer-social a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 24px 0; font-size: .86rem; color: #6f82a0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #9fb1cc; }
.footer-bottom a:hover { color: var(--orange); }
.footer-bottom .credit a { color: #c2d2ea; font-weight: 600; }

/* --- reveal on scroll (solo con JS attivo: senza JS il contenuto resta visibile) --- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }


/* --- Lumino-inspired polish -------------------------------------------- */
.site-shell {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,251,255,.98) 50%, rgba(255,255,255,.98) 100%);
}

.side-nav {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px) saturate(1.16);
    border-right-color: rgba(210,223,239,.82);
    box-shadow: 0 18px 70px rgba(17,32,59,.1);
}
.side-menu a { border-radius: var(--r); }
.side-menu a.is-active { box-shadow: inset 0 0 0 1px rgba(42,82,152,.08); }
.mobile-bar {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px) saturate(1.18);
}

.hero {
    min-height: clamp(640px, 84vh, 860px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--navy);
}
.hero__overlay {
    background:
        linear-gradient(180deg, rgba(8,14,26,.45) 0%, rgba(17,32,59,.46) 42%, rgba(13,24,48,.92) 100%),
        radial-gradient(90% 70% at 50% 18%, rgba(80,137,204,.34), transparent 64%);
}
.hero__inner {
    padding-top: clamp(110px, 17vh, 188px);
    padding-bottom: clamp(70px, 10vh, 124px);
}
.hero h1 {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}
.hero p { text-wrap: balance; }
.hero__stats {
    z-index: 2;
    margin-top: -58px;
    padding-top: 0;
}
.hero__stats .stat {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.22);
    backdrop-filter: blur(14px) saturate(1.25);
}

.section-head h2 { text-wrap: balance; }
.section-head p { text-wrap: balance; }

.news-feature {
    position: relative;
    isolation: isolate;
    border-color: rgba(214,226,240,.92);
    box-shadow: var(--sh-1);
    transition: transform .38s var(--ease-out), box-shadow .38s var(--ease-out), border-color .38s var(--ease-out);
}
.news-feature::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    z-index: 2;
    background: var(--orange);
    opacity: 0;
    transition: opacity .28s var(--ease);
}
.news-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(143,177,224,.72);
    box-shadow: var(--sh-3);
}
.news-feature:hover::before { opacity: 1; }
.news-feature .media::after {
    background: linear-gradient(200deg, transparent 56%, rgba(17,32,59,.22));
}
.news-feature__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.news-feature__meta time { margin: 0; }
.feature-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #fff;
    font-family: var(--font-ui);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(234,123,21,.25);
}
.news-cat { max-width: 1040px; }
.news-cat__grid { align-items: stretch; }
.news-feature--compact { height: 100%; }
.news-feature--compact .body {
    min-height: 214px;
    display: flex;
    flex-direction: column;
}
.news-feature--compact .more { margin-top: auto; }
.news-feature--spotlight {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
    min-height: 330px;
    background: linear-gradient(135deg, #fff 0%, #f6fbff 100%);
    border-color: rgba(42,82,152,.34);
    box-shadow: var(--sh-2);
}
.news-feature--spotlight::before {
    height: 4px;
    opacity: 1;
    background: var(--orange);
}
.news-feature--spotlight .media {
    aspect-ratio: auto;
    min-height: 330px;
    height: 100%;
}
.news-feature--spotlight .body {
    min-height: 330px;
    justify-content: center;
    padding: clamp(30px, 5vw, 48px);
}
.news-feature--spotlight h4 {
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.12;
    text-wrap: balance;
}
.news-feature--spotlight p {
    max-width: 58ch;
    font-size: 1.02rem;
}

.docs-card, .price-card, .pricing-note, .contact-form, .reg-form, .sponsor .sponsor-card, .sponsor-board {
    border-color: rgba(214,226,240,.92);
    box-shadow: var(--sh-1);
}
/* il reveal con blur è solo desktop: il filter su elementi grandi è paint-bound su mobile */
@media (min-width: 1100px) {
    .js .reveal {
        transform: translateY(34px) scale(.99);
        filter: blur(6px);
        transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), filter .75s var(--ease-out);
    }
    .js .reveal.is-in {
        filter: blur(0);
        transform: none;
    }
}

@media (max-width: 760px) {
    .hero__video { display: none; }
    .home-alert { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .home-alert__action { grid-column: 1 / -1; justify-self: start; }
    .hero { min-height: clamp(560px, 86vh, 720px); }
    .hero__inner { padding-bottom: 82px; }
    .hero__stats { margin-top: -46px; }
    .news-feature--spotlight { grid-template-columns: 1fr; min-height: 0; }
    .news-feature--spotlight .media { min-height: 220px; aspect-ratio: 16 / 10; }
    .news-feature--spotlight .body { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg { animation: none !important; }
    .hero__video { display: none; }
    .news-feature, .news-feature .media img, .js .reveal { transition: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* il contenuto a destra della barra è più stretto del viewport:
   i breakpoint dei grid scattano prima rispetto a un layout full-width */
@media (max-width: 1380px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1320px) {
    .feature-row, .news-grid { grid-template-columns: 1fr; }
}

/* sotto i 1100px la barra laterale diventa un drawer */
@media (max-width: 1100px) {
    .cookie-banner { inset: auto 12px 12px; }
    .site-shell { margin-left: 0; }
    .mobile-bar { display: flex; }

    .side-nav {
        transform: translateX(-104%);
        visibility: hidden; /* fuori dal tab order e dall'accessibility tree da chiuso */
        transition: transform .38s var(--ease-out), visibility 0s .38s;
        width: min(330px, 86vw);
        box-shadow: 0 0 80px rgba(8,14,26,.35);
        border-right: 0;
    }
    .side-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .38s var(--ease-out), visibility 0s 0s; }

    .side-close {
        display: grid; place-items: center; position: absolute; top: 14px; right: 14px;
        width: 40px; height: 40px; border: 0; border-radius: 50%;
        background: var(--snow-2); color: var(--blue-900); cursor: pointer; font-size: 1rem;
        transition: background .2s, transform .25s var(--ease);
    }
    .side-close:hover { background: var(--orange-100); color: var(--orange-deep); transform: rotate(90deg); }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    .gallery-grid { columns: 3 180px; }
    .archive-overview { grid-template-columns: 1fr; }
    .archive-index { justify-content: flex-start; }
}

@media (max-width: 760px) {
    .cookie-banner__panel { grid-template-columns: 1fr; }
    .cookie-banner__actions { justify-content: flex-start; }
    .cookie-options { grid-template-columns: 1fr; }
    .archive-overview__meta { grid-template-columns: 1fr; }
    .archive-row { grid-template-columns: 82px minmax(0, 1fr); align-items: start; }
    .archive-row__media { width: 82px; }
    .archive-row__more { grid-column: 2; }
    .contact-form .row, .reg-grid { grid-template-columns: 1fr; }
    .news-cat__grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .pricing-note { flex-direction: column; align-items: flex-start; }
    .gallery-grid { columns: 2 140px; }
    .hero__stats .stat { flex: 1 1 40%; min-width: 0; padding: 14px 10px 12px; }
}

@media (max-width: 560px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* sopra il breakpoint del drawer il backdrop non deve mai esistere
   (difesa: stato is-open residuo dopo un resize) */
@media (min-width: 1101px) {
    .side-backdrop { display: none; }
}

@media print {
    .side-nav, .mobile-bar, .side-backdrop { display: none !important; }
    .site-shell { margin-left: 0; }
    .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero, .hero h1, .hero p, .hero .eyebrow, .page-header, .page-header h1, .page-header p, .contact, .site-footer { color: #1a2233 !important; text-shadow: none !important; }
}

/* --- team sections ------------------------------------------------------ */
.team-sections { display: grid; gap: clamp(42px, 6vw, 72px); }
.team-section { padding-top: clamp(28px, 4vw, 42px); border-top: 1px solid rgba(189,207,229,.95); }
.team-section:first-child { padding-top: 0; border-top: 0; }
.team-section__head { max-width: 760px; margin: 0 auto clamp(26px, 4vw, 38px); text-align: center; }
.team-section__head h3 { font-family: var(--font-display); color: var(--blue-900); font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.08; margin: 0 0 10px; letter-spacing: 0; }
.team-section__head p { color: var(--muted); margin: 0 auto; max-width: 620px; line-height: 1.55; }
.team-section__head::after { content: ""; display: block; width: 72px; height: 3px; margin: 18px auto 0; background: var(--orange); border-radius: 999px; }
.team-section--instructors { border-top-width: 4px; border-top-color: var(--orange); }
.team-section--honorary .team-section__head::after { background: var(--blue-500); }
.team-section--instructors .team-section__head::after { width: 96px; }
.team-section--instructors .team-avatar { background: linear-gradient(140deg, var(--orange), var(--orange-deep)); }
.team-section--honorary .team-avatar { background: linear-gradient(140deg, #7b8da8, var(--blue-900)); }
.team-section .team-group { margin-bottom: clamp(28px, 4vw, 42px); }
.team-section .team-group:last-child { margin-bottom: 0; }
.team-section .team-group__title { font-size: 1.08rem; margin-bottom: 20px; }
.team-section .team-group__title::after { width: 42px; height: 2px; margin-top: 10px; }

