/* Reset e variabili - Redesign Ideologia "Il Polifonico" */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #c0314b);
    z-index: 10001;
    border-radius: 0 3px 3px 0;
    transition: width 0.08s linear;
    pointer-events: none;
}

:root {
    /* ═══════════════════════════════════════════════════
       DESIGN SYSTEM — Coro Polifonico Sant'Alessandro
       Palette calda, tipografia fluida, sistema coerente
       ═══════════════════════════════════════════════════ */

    /* ── Palette colori ───────────────────────────────── */
    --primary: #1a1a1a;
    /* Inchiostro scuro */
    --accent: #8c1c2e;
    /* Bordeaux / Cardinale */
    --accent-dark: #6a1422;
    /* Bordeaux hover/pressed */
    --accent-light: #b5283e;
    /* Bordeaux su sfondi scuri */
    --light: #f8f5f2;
    /* Panna calda (ex #f8f8f8) */
    --light-border: #e8e2dc;
    /* Bordo caldo */
    --border: #e8e2dc;
    /* Alias esplicito */
    --text: #2a2a2a;
    /* Corpo testo */
    --text-light: #7a7068;
    /* Testo secondario */
    --white: #ffffff;
    --shadow: rgba(10, 5, 0, 0.06);
    --hover-shadow: rgba(10, 5, 0, 0.12);

    /* ── Border Radius (3 livelli + pill) ─────────────── */
    --radius-sm: 8px;
    /* Badge, icone, alert */
    --radius-md: 18px;
    /* Card, input, container */
    --radius-lg: 32px;
    /* Card grandi, modal, sezioni */
    --radius-pill: 9999px;
    /* Bottoni, chip, tag */

    /* ── Tipografia fluida (clamp) ────────────────────── */
    --fs-hero: clamp(2.5rem, 6.5vw, 5.5rem);
    --fs-h1: clamp(2rem, 4.5vw, 4rem);
    --fs-h2: clamp(1.6rem, 3vw, 3.5rem);
    --fs-h3: clamp(1.15rem, 2vw, 1.8rem);
    --fs-lead: clamp(1.2rem, 2.2vw, 1.8rem);
    --fs-body: clamp(0.9rem, 0.8vw + 0.5rem, 1.0625rem);
    --fs-small: clamp(0.775rem, 0.6vw + 0.35rem, 0.9rem);
    --fs-label: clamp(0.7rem, 0.5vw + 0.25rem, 0.825rem);

    /* ── Spacing scale (base 8px) ─────────────────────── */
    --sp-1: 0.5rem;
    /*  8px */
    --sp-2: 1rem;
    /* 16px */
    --sp-3: 1.5rem;
    /* 24px */
    --sp-4: 2rem;
    /* 32px */
    --sp-5: 3rem;
    /* 48px */
    --sp-6: 4rem;
    /* 64px */
    --sp-7: 6rem;
    /* 96px */
    --sp-8: 8rem;
    /* 128px */

    /* ── Transizioni di sezione (toni caldi) ──────────── */
    --bg-section-a: #ffffff;
    /* bianco puro */
    --bg-section-b: #f8f5f2;
    /* panna calda (--light) */
    --bg-section-c: #f2ede8;
    /* panna profonda — separatore morbido */

    /* ── Transizioni uniformi ─────────────────────────── */
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 0.18s;
    --dur-base: 0.35s;
    --dur-slow: 0.6s;

    /* ── Ombre stratificate (warm-tinted) ────────────────── */
    --shadow-xs: 0 2px 8px rgba(10, 5, 0, 0.06);
    --shadow-sm: 0 4px 16px rgba(10, 5, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(10, 5, 0, 0.10);
    --shadow-lg: 0 20px 60px rgba(10, 5, 0, 0.12);
    --shadow-xl: 0 40px 100px rgba(10, 5, 0, 0.16);
    --shadow-glow: 0 0 0 3px rgba(140, 28, 46, 0.15);
    --shadow-card: 0 2px 12px rgba(10, 5, 0, 0.06), 0 8px 24px rgba(10, 5, 0, 0.06);
    --shadow-card-hover: 0 8px 24px rgba(10, 5, 0, 0.08), 0 24px 48px rgba(10, 5, 0, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* previene scroll orizzontale a livello root */
    background-color: #1a1a1a;
    /* = var(--primary) — copre la safe area iOS sotto il footer */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* scroll fluido iOS nativo */
    font-weight: 300;
    font-size: var(--fs-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Skeleton Shimmer ──────────────────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Il wrapper immagine durante il caricamento */
.img-loading {
    background: linear-gradient(90deg,
            #e8e8e8 25%,
            #f2f2f2 50%,
            #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

/* L'immagine stessa: invisibile finché non è caricata */
.img-loading img,
.img-loading>img {
    opacity: 0;
    transition: opacity var(--dur-base) ease;
}

/* Una volta caricata: fade-in */
.img-loaded img,
.img-loaded>img {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--dur-base) var(--ease-out);
}

.container {
    max-width: 1300px;
    /* Più largo per dare un senso "ariato" */
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Navigation - Minimalista e trasparente al top */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 10px 0;
    z-index: 1000;
    transition: all var(--dur-base) var(--ease-out);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Classe aggiunta dinamicamente via JS quando si scrolla */
.header.scrolled {
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    padding: 4px 0;
    box-shadow: var(--shadow-md);
}

.header.scrolled .logo,
.header.scrolled .logo-text,
.header.scrolled .nav-menu a {
    color: var(--primary);
}

.header.scrolled .nav-toggle span {
    background: var(--primary);
}

.header.scrolled .nav-icon-link {
    color: var(--primary);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    transition: color var(--dur-base) ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.nav-logo-img {
    height: 45px;
    width: auto;
    transition: all var(--dur-base) ease;
    display: block;
    filter: brightness(0) invert(1);
}

.header.scrolled .nav-logo-img {
    filter: brightness(0);
}

.splash-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 150px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--dur-base) ease;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 32px;
    height: 2px;
    background: var(--white);
    transition: all var(--dur-fast) var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--dur-base) ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--dur-base) var(--ease-out);
}

.nav-menu a.active::after {
    width: 100%;
}

@media (hover: hover) {


    .nav-menu a:hover::after {
        width: 100%;
    }
}

/* Link attivo — visibile anche nel nav trasparente sopra l'hero */
.nav-menu a.active {
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
}

.header.scrolled .nav-menu a.active {
    color: var(--accent);
}

@media (hover: hover) {

    .header.scrolled .nav-menu a:hover {
        color: var(--accent);
    }
}

.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
    background: transparent;
    color: var(--white);
    border-radius: 50%;
    transition: all var(--dur-fast) var(--ease-out);
}

.nav-icon-link svg {
    width: 22px;
    height: 22px;
}

.nav-icon-link::after {
    display: none !important;
}

@media (hover: hover) {


    .nav-icon-link:hover {
        color: var(--accent);
        transform: scale(1.1);
    }
}

@media (hover: hover) {


    .header.scrolled .nav-icon-link:hover {
        color: var(--accent);
    }
}

/* ──────────────────────────────────────────────────────────
   NAVBAR — elementi aggiuntivi
   ────────────────────────────────────────────────────────── */

/* Separatore visivo tra voci primarie e CTA */
.nav-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    flex-shrink: 0;
    align-self: center;
}

.header.scrolled .nav-separator {
    background: var(--border);
}

/* CTA Contatti — pulsante outline compatto */
.nav-cta {
    display: inline-flex !important;
    align-items: center;
    padding: 0.45rem 1.2rem !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.8px;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) ease !important;
    white-space: nowrap;
}

.nav-cta::after {
    display: none !important;
}

@media (hover: hover) {

    /* nessun underline */
    .nav-cta:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.7) !important;
        color: var(--white) !important;
    }
}

.nav-cta.active {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: var(--white) !important;
}

/* Scrolled */
.header.scrolled .nav-cta {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.header.scrolled .nav-cta.active {
    background: var(--accent) !important;
    color: var(--white) !important;
}

@media (hover: hover) {

    .header.scrolled .nav-cta:hover {
        background: var(--accent) !important;
        color: var(--white) !important;
    }
}

/* ── Dropdown "Scopri" ───────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

/* Pulsante trigger del dropdown */
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    font-family: 'Inter', sans-serif;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--dur-base) ease;
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--dur-base) var(--ease-out);
}

.nav-dropdown-toggle.active::after {
    width: 100%;
}

@media (hover: hover) {

    .nav-dropdown:hover .nav-dropdown-toggle::after {
        width: 100%;
    }
}

.header.scrolled .nav-dropdown-toggle {
    color: var(--primary);
}

.header.scrolled .nav-dropdown-toggle.active {
    color: var(--accent);
}

@media (hover: hover) {

    .header.scrolled .nav-dropdown:hover .nav-dropdown-toggle {
        color: var(--accent);
    }
}

.nav-dropdown-toggle.active {
    color: var(--white);
    font-weight: 500;
}

.header.scrolled .nav-dropdown-toggle.active {
    color: var(--accent);
}

/* Chevron animato */
.nav-dropdown-chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease-out);
    opacity: 0.7;
}

.nav-dropdown.open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

/* Pannello dropdown */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    /* gap leggermente aumentato: collegato ma arioso */
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition:
        opacity var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out),
        visibility var(--dur-fast);
    z-index: 200;
}

/* Zona invisibile che colma il gap trigger→pannello:
   evita che mouseleave si innesti mentre il cursore scende */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 12px;
    /* copre il gap + un margine di sicurezza */
    background: transparent;
    pointer-events: auto;
    /* cattura il mouse nel gap */
}

/* Freccia decorativa in cima al pannello */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 9px;
    height: 9px;
    background: var(--white);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Voci del dropdown */
.nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem !important;
    color: var(--text) !important;
    font-size: 0.875rem !important;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background var(--dur-fast) ease,
        color var(--dur-fast) ease,
        padding-left var(--dur-fast) var(--ease-out) !important;
}

.nav-dropdown-menu a::after {
    display: none !important;
}

@media (hover: hover) {

    .nav-dropdown-menu a:hover {
        background: var(--light);
        color: var(--primary) !important;
        padding-left: 1.5rem !important;
    }
}

.nav-dropdown-menu a.active {
    color: var(--accent) !important;
    font-weight: 500;
    background: rgba(140, 28, 46, 0.04);
}

/* Fix overflow: l'area hover deve seguire il border-radius del parent.
   Radius parent (18px) - Padding (0px) = 17px inner radius (calc radius - border) */
.nav-dropdown-menu li:first-child a {
    border-top-left-radius: calc(var(--radius-md) - 1px);
    border-top-right-radius: calc(var(--radius-md) - 1px);
    padding-top: 1.2rem !important;
}

.nav-dropdown-menu li:last-child a {
    border-bottom-left-radius: calc(var(--radius-md) - 1px);
    border-bottom-right-radius: calc(var(--radius-md) - 1px);
    padding-bottom: 1.2rem !important;
}

/* Icona inline nelle voci dropdown */
.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--light);
    color: var(--text-light);
    flex-shrink: 0;
    transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

@media (hover: hover) {

    .nav-dropdown-menu a:hover .dropdown-icon {
        background: rgba(140, 28, 46, 0.08);
        color: var(--accent);
    }
}

.nav-dropdown-menu a.active .dropdown-icon {
    background: rgba(140, 28, 46, 0.10);
    color: var(--accent);
}

/* ── Voce anniversario nel dropdown ─────────────────────────── */
.dropdown-icon--anniv {
    background: rgba(212, 175, 55, 0.1) !important;
    color: #c8962a !important;
}

.nav-anniv-link {
    font-weight: 500 !important;
}

.nav-anniv-link .dropdown-icon--anniv svg {
    stroke: #c8962a;
}

@media (hover: hover) {

    .nav-dropdown-menu a.nav-anniv-link:hover {
        color: #c8962a !important;
    }
}

@media (hover: hover) {

    .nav-dropdown-menu a.nav-anniv-link:hover .dropdown-icon--anniv {
        background: rgba(212, 175, 55, 0.18) !important;
        color: #d4af37 !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;           /* fallback browser vecchi */
    height: 100svh;          /* esclude tastiera virtuale su mobile */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary);
    /* Sfondo rigido se immagine manca */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/coro-placeholder.jpeg');
    /* Se c'è una foto di background nel root andrà qui */
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* default sicuro — iOS ignora fixed sui pseudo-elementi */
    filter: brightness(0.4) saturate(0.8);
    z-index: 0;
}

/* Parallax solo su dispositivi non-touch (evita il bug iOS Safari) */
@media (hover: hover) and (pointer: fine) {
    .hero::before {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 5, 0, 0.55) 0%,
            rgba(10, 5, 0, 0.35) 40%,
            rgba(10, 5, 0, 0.80) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(140, 28, 46, 0.22), transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(140, 28, 46, 0.10), transparent 45%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
    margin-top: 4rem;
}

.hero-badge {
    display: inline-block;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    font-size: var(--fs-hero);
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons - Flat e Moderni */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
    text-align: center;
}

/* Freccia inline nella CTA primaria hero — desktop */
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-cta-arrow {
    flex-shrink: 0;
    transition: transform var(--dur-base) var(--ease-out);
}

@media (hover: hover) {


    .hero-cta-primary:hover .hero-cta-arrow {
        transform: translateX(4px);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #a82236 100%);
    color: var(--white);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {


    .btn-primary:hover {
        background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
        transform: translateY(-3px);
        box-shadow: var(--shadow-md), 0 0 0 1px rgba(140, 28, 46, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

@media (hover: hover) {


    .btn-secondary:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.7);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    }
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {


    .btn-outline:hover {
        background-color: var(--primary);
        color: var(--white);
        box-shadow: var(--shadow-sm);
    }
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
}

@media (hover: hover) {

    .btn-white:hover {
        background-color: transparent;
        color: var(--white);
    }
}


.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--white);
    animation: scrollDrop 2s infinite ease-in-out;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Sections Base — Ritmo verticale armonioso */
section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(140, 28, 46, 0.2);
    border-radius: var(--radius-pill);
    background: rgba(140, 28, 46, 0.04);
}

.section-title {
    font-size: var(--fs-h2);
    color: var(--primary);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* About Section — sfondo caldo per separare dall'hero */
.about-section {
    background: var(--bg-section-b);
    border-top: 1px solid var(--border);
}

.about-content {
    display: flex;
    align-items: center;
    position: relative;
    gap: 4rem;
}

.about-text {
    flex: 1 1 0;
    min-width: 0;
    background: var(--white);
    padding: 4rem 4.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    position: relative;
    border: 1px solid rgba(10, 5, 0, 0.05);
}

.lead {
    font-size: var(--fs-lead);
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--light);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    margin-bottom: 1.5rem;
}

.about-location svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 1px;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-text {
        width: 100%;
        padding: 2.5rem;
    }

    .about-image {
        width: 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--light-border);
    padding-top: 2.5rem;
}

.stat-card {
    text-align: left;
}

.stat-number {
    font-size: 2.6rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.8rem;
}

.about-image {
    width: 25%;
    flex-shrink: 0;
    z-index: 1;
}

.about-image .image-frame {
    position: relative;
    padding-bottom: 110%;
    /* Vertical aspect ratio, very elegant */
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.about-image .image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) saturate(0.9);
    transition: filter var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

@media (hover: hover) {


    .about-image:hover .image-frame img {
        filter: grayscale(0%) saturate(1.05);
        transform: scale(1.03);
    }
}

/* Events Section — transizione tonale morbida dalla sezione about */
.events-section {
    background: var(--bg-section-c);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border: 1px solid rgba(10, 5, 0, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    position: relative;
}

@media (hover: hover) {


    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(140, 28, 46, 0.18);
    }
}

/* ── CTA "Scopri di più" nella card evento ───────────────── */
.event-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.5rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: gap var(--dur-fast) var(--ease-out),
        color var(--dur-fast) ease;
}

.event-cta-arrow {
    transition: transform var(--dur-fast) var(--ease-spring);
    flex-shrink: 0;
    color: var(--accent);
}

@media (hover: hover) {


    .event-card:hover .event-card-cta {
        gap: 0.75rem;
        color: var(--accent-dark);
    }
}

@media (hover: hover) {


    .event-card:hover .event-cta-arrow {
        transform: translateX(4px);
    }
}

/* La featured-event ha già il suo linguaggio visivo — niente CTA */
.featured-event .event-card-cta {
    display: none;
}

.event-card-img {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.event-card-img .event-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: none;
    margin-bottom: 0;
}

.event-date {
    background: transparent;
    border-bottom: 1px solid var(--light-border);
    color: var(--primary);
    padding: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.date-day {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--accent);
}

.event-content {
    padding: 1.75rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.event-title {
    font-size: var(--fs-h3);
    color: var(--primary);
    margin-bottom: 1rem;
}

.event-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--light-border);
    padding-top: 1.5rem;
}

.event-time,
.event-location {
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.event-time svg,
.event-location svg {
    color: var(--accent);
}

.section-cta {
    text-align: center;
    margin-top: 4rem;
}

.section-padding-reduced {
    padding: 4rem 0 !important;
}

/* Featured Event (Il prossimo evento in programma) */
.featured-event {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg,
            #1a0508 0%,
            #2d0a12 30%,
            #3d0f18 60%,
            #1f060c 100%);
    color: var(--white);
    padding: 3rem 4rem;
    border-radius: var(--radius-md);
    gap: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(140, 28, 46, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(140, 28, 46, 0.35);
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
}

@media (hover: hover) {


    .featured-event:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 56px rgba(140, 28, 46, 0.35), 0 4px 16px rgba(0, 0, 0, 0.5);
        border-color: rgba(140, 28, 46, 0.6);
    }
}

/* Overlay decorativo — bagliore accento in alto a destra */
.featured-event::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 55%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(140, 28, 46, 0.22) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.featured-event::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent), rgba(140, 28, 46, 0.3), transparent);
    z-index: 0;
    pointer-events: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.featured-event>* {
    position: relative;
    z-index: 1;
}

.featured-locandina {
    flex: 0 0 350px;
}

.featured-locandina img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(140, 28, 46, 0.2);
    transition: transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out);
}

@media (hover: hover) {


    .featured-event:hover .featured-locandina img {
        transform: scale(1.02);
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(140, 28, 46, 0.35);
    }
}

/* ── Pill CTA bianco traslucido per la featured-event ────── */
.featured-event-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(8px);
    transition: background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        gap var(--dur-fast) var(--ease-out),
        color var(--dur-fast) ease;
    align-self: flex-start;
    order: 6;
}

.featured-event-cta-arrow {
    transition: transform var(--dur-fast) var(--ease-spring);
    flex-shrink: 0;
}

@media (hover: hover) {


    .featured-event:hover .featured-event-cta {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.40);
        gap: 0.9rem;
        color: var(--white);
    }
}

@media (hover: hover) {


    .featured-event:hover .featured-event-cta-arrow {
        transform: translateX(4px);
    }
}

.featured-event-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
}

.featured-event .event-content,
.featured-event .event-text {
    display: contents;
}

.featured-event .event-type {
    order: 1;
    align-self: flex-start;
    background: rgba(140, 28, 46, 0.15);
    color: #ffb3ba;
    border: 1px solid rgba(140, 28, 46, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.featured-event .event-title {
    order: 2;
    color: var(--white);
    font-size: var(--fs-h2);
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.featured-event .event-date {
    order: 3;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.featured-event .date-day {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.featured-event .date-month {
    font-size: 1.2rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-event .event-info {
    order: 4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}

.featured-event .event-time,
.featured-event .event-location {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.featured-event .event-info svg {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

.featured-event .event-description {
    order: 5;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    max-width: 95%;
}


/* News Section — ritorna al bianco per contrasto editoriale */
.news-section {
    background: var(--bg-section-a);
    border-bottom: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
    gap: 2rem;
}

/* Se la griglia ha un solo elemento, lo centriamo mantenendo la larghezza massima ragionevole */
.news-grid:has(> .news-card:only-child) {
    display: flex;
    justify-content: center;
}
.news-grid:has(> .news-card:only-child) > .news-card {
    max-width: 420px;
    width: 100%;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    transition: transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
    overflow: hidden;
    border: 1px solid rgba(10, 5, 0, 0.05);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) {


    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(140, 28, 46, 0.10);
    }
}

.news-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
    filter: saturate(0.9);
}

@media (hover: hover) {


    .news-card:hover .news-image img {
        transform: scale(1.06);
        filter: saturate(1.1);
    }
}

.news-content {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    display: inline-block;
}

.news-title {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.news-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 500;
}

.news-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--dur-fast) var(--ease-out),
        color var(--dur-fast) ease;
}

.news-link::after {
    content: '→';
    transition: transform var(--dur-fast) var(--ease-spring);
}

@media (hover: hover) {

    .news-link:hover {
        color: var(--accent-dark);
        gap: 8px;
    }
}

@media (hover: hover) {

    .news-link:hover::after {
        transform: translateX(3px);
    }
}

/* CTA Section — tono pieno, senza sovrapposizioni pesanti */
.cta-section {
    background: var(--accent);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: var(--fs-h2);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--accent);
}

@media (hover: hover) {


    .cta-section .btn-primary:hover {
        background: var(--light);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Footer — scuro uniforme, senza eccessi cromatici */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 5.5rem 0 2rem;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(140, 28, 46, 0.35);
    /* Garantisce larghezza piena anche con eventuali margini ereditati */
    width: 100%;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(140, 28, 46, 0.06) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Estende il colore del footer nella safe area iOS (home indicator) */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-bottom);
    background: var(--primary);
    z-index: 0;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--dur-base) var(--ease-out);
    background: rgba(255, 255, 255, 0.04);
}

@media (hover: hover) {


    .social-link:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(140, 28, 46, 0.35);
    }
}

.footer-heading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.footer-links li,
.footer-contacts li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--dur-fast) ease, padding-left var(--dur-fast) var(--ease-out);
    display: inline-block;
}

@media (hover: hover) {


    .footer-links a:hover {
        color: var(--white);
        padding-left: 4px;
    }
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
}

.footer-privacy-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 2px;
}

.footer-privacy-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
    opacity: 0.5;
}

.footer-privacy-link:hover {
    color: var(--white);
}

.footer-privacy-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}


/* Internal Pages Headers */
.page-header {
    background: var(--primary);
    padding: 11rem 0 5.5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(140, 28, 46, 0.12) 0%, transparent 55%);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: var(--fs-h1);
    color: var(--white);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Forms (Contact Page, etc.) */
.contact-form .form-control {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--light-border);
    background: var(--white);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-body);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 1.25rem;
    transition: border-color var(--dur-fast) ease,
        box-shadow var(--dur-fast) ease,
        background var(--dur-fast) ease;
    box-shadow: inset 0 1px 3px rgba(10, 5, 0, 0.04);
    -webkit-appearance: none;
    appearance: none;
}

.contact-form .form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

@media (hover: hover) {


    .contact-form .form-control:hover {
        border-color: #cdc8c2;
    }
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(140, 28, 46, 0.08),
        inset 0 1px 3px rgba(10, 5, 0, 0.03);
}

/* --- Repertorio Styles --- */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-md);
    overflow-x: auto;
    scrollbar-width: thin;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    min-height: 44px; /* touch target minimo iOS/Android */
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    transition: all var(--dur-fast) var(--ease-out);
    white-space: nowrap;
    font-weight: 500;
    color: var(--text);
}

@media (hover: hover) {


    .filter-tab:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--accent);
    }
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-text {
    font-size: 0.95rem;
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

.repertorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 2rem;
}

.brano-card {
    background: var(--white);
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius-md);
    transition: transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out);
    border: 1px solid rgba(10, 5, 0, 0.05);
    box-shadow: var(--shadow-xs);
}

@media (hover: hover) {


    .brano-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: rgba(140, 28, 46, 0.15);
    }
}

.brano-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light);
    padding-bottom: 1rem;
}

.brano-title {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.brano-composer {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.brano-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.brano-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.brano-tag {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--light);
    color: var(--text);
}

.brano-actions {
    display: flex;
    gap: 0.75rem;
}

.brano-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: var(--radius-pill);
    transition: all var(--dur-fast) var(--ease-out);
}

.btn-audio {
    background: var(--light);
    color: var(--primary);
}

@media (hover: hover) {


    .btn-audio:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }
}

.btn-video {
    background: var(--accent);
    color: white;
}

@media (hover: hover) {


    .btn-video:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
    }
}

/* Event Modal */
.event-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    /* Backdrop: fade semplice e veloce */
    transition:
        opacity 0.28s ease,
        visibility 0s linear 0.28s;
}

.event-modal.active {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.28s ease,
        visibility 0s linear 0s;
}

.event-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    transform: translateY(32px) scale(0.96);
    opacity: 0;
    /* Content: spring elegante — leggero anticipo + rimbalzo naturale */
    transition:
        transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
        opacity 0.3s ease;
    max-height: 90vh;
    display: flex;
    will-change: transform, opacity;
}

.event-modal.active .event-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.event-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 5, 0, 0.06);
    border: 1px solid rgba(10, 5, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text);
    transition: background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) ease,
        transform var(--dur-fast) var(--ease-out);
}

@media (hover: hover) {


    .event-modal-close:hover {
        background: var(--accent-dark);
        border-color: var(--accent-dark);
        color: var(--white);
        transform: rotate(90deg);
    }
}

.event-modal-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    width: 100%;
}

.event-modal-image {
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.event-modal-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-modal-details {
    padding: 4rem 3rem 4rem 2rem;
    overflow-y: auto;
    max-height: 90vh;
}

.event-modal-details .event-type {
    margin-bottom: 1.5rem;
}

.event-modal-details .event-title {
    font-size: 2.8rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.event-modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.event-modal-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.event-modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    white-space: pre-wrap;
}

/* Splash Screen / Preloader */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.splash-screen.slide-up {
    transform: translateY(-100%);
}

.splash-screen.hidden {
    display: none !important;
}

.splash-logo {
    animation: pulseLogo 1.5s infinite ease-in-out;
}

.splash-logo-img {
    height: 80px;
    width: auto;
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Scroll Reveal Animations — più sottile, senza blur */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Vertical Timeline for Storia */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 3rem;
    padding: 2rem 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
    transform: translateX(-50%);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(140, 28, 46, 0.1);
    transition: all var(--dur-fast) var(--ease-out);
}

@media (hover: hover) {


    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.3);
        box-shadow: 0 0 0 6px rgba(140, 28, 46, 0.2);
    }
}

.timeline-content {
    width: 47%;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    border: 1px solid var(--light-border);
    transition: all var(--dur-base) var(--ease-out);
}

@media (hover: hover) {


    .timeline-item:hover .timeline-content {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px var(--hover-shadow);
        border-color: rgba(140, 28, 46, 0.2);
    }
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: -15px;
    right: 20px;
    pointer-events: none;
    z-index: 0;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 20px;
    right: auto;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {

    /* font-size gestiti da clamp() nel design system */
    .about-content {
        gap: 3rem;
    }

    /* Fix squishing of featured event without breaking row layout */
    .featured-event {
        padding: 2rem;
        gap: 2rem;
    }
    .featured-locandina {
        flex: 0 0 250px;
    }

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

@media (max-width: 900px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .timeline-date {
        font-size: 2.5rem;
        right: 20px !important;
        left: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE UX — Ristrutturazione completa per smartphone
   Design pensato nativamente per mobile, non desktop compresso
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Spacing system mobile: riduzione armoniosa ─────── */
    :root {
        --sp-5: 2.25rem;
        /* 48px → 36px */
        --sp-6: 3rem;
        /* 64px → 48px */
        --sp-7: 4rem;
        /* 96px → 64px */
        --sp-8: 5rem;
        /* 128px → 80px */
    }

    /* ── Container ─────────────────────────────────────── */
    .container {
        padding: 0 1.25rem;
    }

    /* ══════════════════════════════════════════════════════
       NAVBAR MOBILE — header fisso, hamburger minimal
       ══════════════════════════════════════════════════════ */

    .header {
        background: rgba(250, 248, 245, 0.97);
        border-bottom: 1px solid var(--light-border);
        padding: 0;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .header.scrolled {
        padding: 0;
        border-top: 2px solid var(--accent);
    }

    .navbar {
        padding: 0;
    }

    .navbar .container {
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo */
    .header .logo,
    .header .logo-text {
        color: var(--primary);
    }

    .nav-logo-img {
        filter: brightness(0);
        height: 36px;
    }

    .logo {
        font-size: 1.55rem;
    }

    .logo-text {
        font-size: 0.68rem;
        max-width: 110px;
        color: var(--text-light);
    }

    /* Desktop nav: nascosto su mobile */
    .nav-menu {
        display: none;
    }

    /* Hamburger */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        z-index: 1002;
        position: relative;
    }

    .nav-toggle span {
        display: block;
        height: 1.5px;
        background: var(--primary);
        border-radius: 2px;
        transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
        transform-origin: center;
    }

    .nav-toggle span:nth-child(1) {
        width: 22px;
    }

    .nav-toggle span:nth-child(2) {
        width: 16px;
    }

    /* Stato aperto → X */
    .nav-toggle.is-open span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
        width: 20px;
    }

    .nav-toggle.is-open span:nth-child(2) {
        transform: rotate(-45deg) translate(4px, -4px);
        width: 20px;
    }

    /* ══════════════════════════════════════════════════════
       HERO — Compatto, elegante, proporzionato
       ══════════════════════════════════════════════════════ */

    .hero {
        height: auto;
        min-height: 100svh;
        /* small viewport height: safe su iOS Safari */
        min-height: 100vh;
        /* fallback */
    }

    .hero-content {
        padding: 5.5rem 1.5rem 3.5rem;
        margin-top: 0;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        letter-spacing: 2.5px;
        margin-bottom: 1.25rem;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
        letter-spacing: -0.025em;
        margin-bottom: 1rem;
        text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.75);
        max-width: 100%;
    }

    /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       HERO BUTTONS — sistema CTA mobile premium v2
       Gerarchia chiara: primaria accent · secondaria ghost
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

    /* Contenitore: colonna centrata, spacing equilibrato */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.85rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Reset generico .btn dentro hero-buttons su mobile */
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* ── CTA PRIMARIA: accent bordeaux — presenza netta ma raffinata ── */
    .hero-buttons .hero-cta-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        width: 100%;
        padding: 0.85rem 1.75rem;
        font-size: 0.8rem;
        letter-spacing: 1.4px;
        font-weight: 500;
        text-transform: uppercase;
        /* Accent bordeaux — identità forte, non aggressiva */
        background: var(--accent);
        /* #8c1c2e */
        border: 1px solid rgba(255, 255, 255, 0.10);
        /* bordo interno quasi invisibile */
        border-radius: 100px;
        color: #fff;
        box-shadow: 0 2px 16px rgba(140, 28, 46, 0.35);
        /* alone caldo, non LED */
        transition:
            background 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
            box-shadow 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
            transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .hero-buttons .hero-cta-primary:active {
        background: var(--accent-dark);
        /* #6a1422 — hover scurito */
        box-shadow: 0 4px 20px rgba(140, 28, 46, 0.45);
        transform: translateY(-1px);
    }

    @media (hover: hover) {


        .hero-buttons .hero-cta-primary:hover {
            background: var(--accent-dark);
            /* #6a1422 — hover scurito */
            box-shadow: 0 4px 20px rgba(140, 28, 46, 0.45);
            transform: translateY(-1px);
        }
    }

    /* Freccia inline — più discreta */
    .hero-buttons .hero-cta-primary .hero-cta-arrow {
        width: 13px;
        height: 13px;
        opacity: 0.80;
        flex-shrink: 0;
        transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .hero-buttons .hero-cta-primary:active .hero-cta-arrow {
        transform: translateX(3px);
        opacity: 1;
    }

    @media (hover: hover) {


        .hero-buttons .hero-cta-primary:hover .hero-cta-arrow {
            transform: translateX(3px);
            opacity: 1;
        }
    }

    /* ── CTA SECONDARIA: ghost pill — chiaramente interattiva ── */
    .hero-buttons .hero-cta-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.78rem 1.75rem;
        font-size: 0.78rem;
        letter-spacing: 1.2px;
        font-weight: 400;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 100px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        position: relative;
        box-shadow: none;
        transition:
            background 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
            border-color 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
            color 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
            transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Nessun underline: è già un pill, l'affordance è chiara */
    .hero-buttons .hero-cta-secondary::after {
        display: none;
    }

    .hero-buttons .hero-cta-secondary:active {
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.50);
        color: rgba(255, 255, 255, 0.96);
        transform: translateY(-1px);
        box-shadow: none;
    }

    @media (hover: hover) {


        .hero-buttons .hero-cta-secondary:hover {
            background: rgba(255, 255, 255, 0.14);
            border-color: rgba(255, 255, 255, 0.50);
            color: rgba(255, 255, 255, 0.96);
            transform: translateY(-1px);
            box-shadow: none;
        }
    }

    /* ══════════════════════════════════════════════════════
       SEZIONI — Ritmo verticale fluido
       ══════════════════════════════════════════════════════ */

    section {
        padding: 3.25rem 0;
    }

    /* Section header: più compatto, gerarchia chiara */
    .section-header {
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0 0.25rem;
    }

    .section-badge {
        font-size: 0.68rem;
        letter-spacing: 2.5px;
        padding: 0.3rem 0.85rem;
        margin-bottom: 0.85rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        line-height: 1.2;
    }

    .section-title::after {
        margin: 0.65rem auto 0;
    }

    .section-cta {
        margin-top: 2.25rem;
    }

    /* ══════════════════════════════════════════════════════
       ABOUT — Testo prima, immagine dopo
       ══════════════════════════════════════════════════════ */

    .about-content {
        flex-direction: column;
        gap: 1.75rem;
    }

    .about-text {
        width: 100%;
        padding: 1.75rem;
        box-shadow: var(--shadow-sm);
        order: 1;
    }

    .about-image {
        width: 100%;
        order: 2;
    }

    /* Immagine about: altezza fissa ariosa */
    .about-image .image-frame {
        padding-bottom: 65%;
        /* più orizzontale su mobile */
        border-radius: var(--radius-md);
    }

    .lead {
        font-size: clamp(1.1rem, 4.5vw, 1.35rem);
        margin-bottom: 1.25rem;
    }

    .about-text p {
        margin-bottom: 1rem;
    }

    /* Stats: 3 colonne mantenute ma più compatte */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.85rem;
        letter-spacing: -0.02em;
    }

    .stat-label {
        font-size: 0.72rem;
        margin-top: 0.5rem;
        letter-spacing: 0.5px;
    }

    /* ══════════════════════════════════════════════════════
       EVENTI — Card native mobile
       ══════════════════════════════════════════════════════ */

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Featured event: verticale compatto, tutto allineato a sinistra */
    .featured-event {
        flex-direction: column;
        align-items: flex-start;
        /* override del center desktop */
        padding: 1.5rem;
        gap: 1.5rem;
        border-radius: var(--radius-md);
    }

    .featured-locandina {
        flex: 0 0 auto;
        width: 100%;
        max-height: 260px;
        overflow: hidden;
        border-radius: var(--radius-sm);
    }

    .featured-locandina img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }

    .featured-event-body {
        width: 100%;
        align-items: flex-start;
    }

    .featured-event .event-type {
        font-size: 0.72rem;
        letter-spacing: 2px;
        padding: 0.4rem 1rem;
        margin-bottom: 0.85rem;
        align-self: flex-start;
        /* badge ancorato a sinistra */
    }

    .featured-event .event-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        margin-bottom: 1rem;
        text-align: left;
        /* titolo allineato sinistra */
    }

    .featured-event .event-date {
        align-self: flex-start;
        /* data ancorata a sinistra */
        justify-content: flex-start;
    }

    .featured-event .event-info {
        flex-direction: column;
        align-items: flex-start;
        /* orario e luogo allineati a sinistra */
        gap: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        margin-bottom: 0;
        border-left: none;
        padding-left: 0;
    }

    .featured-event .event-time,
    .featured-event .event-location {
        font-size: 0.9rem;
        justify-content: flex-start;
        /* icona + testo da sinistra */
    }

    .featured-event .event-description {
        font-size: 0.92rem;
        line-height: 1.65;
        text-align: left;
        margin-top: 0.75rem;
    }


    /* Card evento normale */
    .event-card-img {
        height: 180px;
    }

    .event-content {
        padding: 1.25rem 1.4rem;
    }

    .event-title {
        font-size: clamp(1rem, 4vw, 1.3rem);
        margin-bottom: 0.6rem;
    }

    .event-description {
        font-size: 0.88rem;
        margin-bottom: 1.25rem;
    }

    .date-day {
        font-size: 2.25rem;
    }

    /* ══════════════════════════════════════════════════════
       NEWS — Card leggibili
       ══════════════════════════════════════════════════════ */

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .news-content {
        padding: 1.25rem 1.4rem;
    }

    .news-title {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 0.6rem;
    }

    .news-excerpt {
        font-size: 0.88rem;
        margin-bottom: 1rem;
        /* Tronca a 3 righe su mobile */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-footer {
        padding-top: 1rem;
    }

    .news-category {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
    }

    /* ══════════════════════════════════════════════════════
       CTA SECTION — Impatto senza spreco
       ══════════════════════════════════════════════════════ */

    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        margin-bottom: 1rem;
    }

    .cta-text {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.7;
    }

    /* ══════════════════════════════════════════════════════
       BUTTONS — Touch-friendly
       ══════════════════════════════════════════════════════ */

    .btn {
        padding: 0.95rem 2rem;
        font-size: 0.82rem;
        letter-spacing: 1.5px;
        min-height: 48px;
        /* touch target */
    }

    /* ══════════════════════════════════════════════════════
       FOOTER — Mobile premium, app-like
       Layout semplice, gerarchia chiara, touch-friendly
       ══════════════════════════════════════════════════════ */

    .footer {
        padding: 2.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(140, 28, 46, 0.30);
        /* più sottile del desktop */
        /* Footer mobile: occupa tutta la larghezza, nessun bordo laterale */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
    }

    /* Grid → stack verticale unico */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        /* gap gestito dai separatori */
        margin-bottom: 0;
    }

    /* Ogni colonna — sezione separata da linea sottile */
    .footer-col {
        padding: 1.5rem 0;
    }

    .footer-col+.footer-col {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    /* ── Sezione brand: acronimo + descrizione breve + social ── */
    .footer-title {
        font-size: 1.5rem;
        letter-spacing: -0.01em;
        margin-bottom: 0.5rem;
        color: var(--white);
    }

    .footer-text {
        font-size: 0.85rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    /* Social: più compatti e armonici */
    .social-links {
        gap: 0.6rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    /* ── Heading delle sezioni ── */
    .footer-heading {
        font-size: 0.68rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.35);
        margin-bottom: 0.85rem;
        font-weight: 600;
    }

    /* ── Link rapidi: lista verticale ordinata — no griglia ── */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .footer-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* divisore delicato */
    }

    .footer-links li:last-child {
        border-bottom: none;
    }

    .footer-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* testo + chevron a destra */
        min-height: 48px;
        /* touch target generoso */
        padding: 0;
        font-size: 0.92rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.65);
        transition: color 0.18s ease;
    }

    /* Chevron → indica cliccabilità */
    .footer-links a::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 1.5px solid rgba(255, 255, 255, 0.25);
        border-top: 1.5px solid rgba(255, 255, 255, 0.25);
        transform: rotate(45deg);
        flex-shrink: 0;
        transition: border-color 0.18s ease, transform 0.18s ease;
    }

    .footer-links a:active {
        color: rgba(255, 255, 255, 0.92);
        padding-left: 0;
    }

    @media (hover: hover) {


        .footer-links a:hover {
            color: rgba(255, 255, 255, 0.92);
            padding-left: 0;
        }
    }

    .footer-links a:active::after {
        border-color: rgba(255, 255, 255, 0.55);
        transform: rotate(45deg) translateX(2px);
    }

    @media (hover: hover) {

        .footer-links a:hover::after {
            border-color: rgba(255, 255, 255, 0.55);
            transform: rotate(45deg) translateX(2px);
        }
    }

    /* ── Contatti: lista verticale leggibile ── */
    .footer-contacts {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-contacts li {
        display: flex;
        align-items: center;
        min-height: 40px;
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.50);
        margin-bottom: 0;
        line-height: 1.45;
    }

    /* ── Copyright: compatto, centrato ── */
    .footer-bottom {
        margin-top: 1.25rem;
        align-self: center;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.72rem;
        letter-spacing: 0.3px;
        color: rgba(255, 255, 255, 0.22);
        text-align: center;
    }

    /* ══════════════════════════════════════════════════════
       PAGE HEADER (pagine interne) — Compatto
       ══════════════════════════════════════════════════════ */

    .page-header {
        padding: 6rem 0 2.5rem;
    }

    .page-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* ══════════════════════════════════════════════════════
       MODAL EVENTI — Fullscreen mobile
       ══════════════════════════════════════════════════════ */

    .event-modal {
        padding: 0;
        align-items: flex-end;
    }

    .event-modal-content {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        flex-direction: column;
        max-height: 92dvh;
        max-height: 92vh;
        /* fallback */
        /* Stato iniziale: sheet completamente fuori schermo in basso */
        transform: translateY(100%);
        opacity: 1;
        /* su mobile l'opacity è sempre 1, gestiamo solo la posizione */
        /* Curva ottimizzata per slide-up stile iOS bottom sheet:
           cubic-bezier(0.32, 0.72, 0, 1) — decelerazione naturale, nessun rimbalzo */
        transition:
            transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
        will-change: transform;
    }

    .event-modal.active .event-modal-content {
        transform: translateY(0);
    }

    .event-modal-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }

    .event-modal-image {
        padding: 2.5rem 1.25rem 0;
        height: auto;
        flex-shrink: 0;
        background: transparent;
    }

    .event-modal-image img {
        border-radius: var(--radius-md);
        object-fit: contain;
        max-height: 50vh;
        margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .event-modal-details {
        padding: 1.5rem 1.25rem 2rem;
        max-height: none;
        overflow-y: visible;
    }

    .event-modal-details .event-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin-bottom: 1.25rem;
    }

    .event-modal-meta {
        gap: 1rem;
        flex-wrap: wrap;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .event-modal-close {
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }

    .event-modal-description {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* ══════════════════════════════════════════════════════
       REPERTORIO — Tab e card
       ══════════════════════════════════════════════════════ */

    .filter-tabs {
        gap: 0.6rem;
        padding: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-tab {
        padding: 0.65rem 1rem;
        flex-shrink: 0;
        min-height: 44px; /* touch target minimo */
    }

    .tab-text {
        font-size: 0.85rem;
    }

    .tab-icon {
        font-size: 1.2rem;
    }

    .tab-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .repertorio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .brano-card {
        padding: 1.5rem 1.6rem;
    }

    .brano-title {
        font-size: 1.2rem;
    }

    .brano-composer {
        font-size: 0.95rem;
    }

    .brano-description {
        font-size: 0.9rem;
    }

    /* ══════════════════════════════════════════════════════
       ARTICLE (notizia-dettaglio)
       ══════════════════════════════════════════════════════ */

    .article-header {
        padding: 7rem 0 4rem;
    }

    .article-image {
        margin-top: -2rem;
        border-radius: var(--radius-md);
        max-height: 280px;
    }

    .article-body {
        margin: var(--sp-5) auto;
        font-size: 1rem;
    }

    /* ══════════════════════════════════════════════════════
       TIMELINE (storia.php)
       ══════════════════════════════════════════════════════ */

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timeline-date {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT 576px — Mobile medio
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 576px) {

    .container {
        padding: 0 1rem;
    }

    /* Sezioni ancora più compatte */
    section {
        padding: 2.75rem 0;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem);
    }

    /* About text: padding minimo ma respirante */
    .about-text {
        padding: 1.4rem;
    }

    .lead {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    /* Stats: colonne compatte, bordi rimossi */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* Hero: massima compattezza */
    .hero-content {
        padding: 5rem 1.25rem 3rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .hero-buttons {
        max-width: 260px;
        gap: 0.7rem;
    }

    .hero-buttons .hero-cta-primary {
        padding: 0.75rem 1.4rem;
        font-size: 0.75rem;
        letter-spacing: 1.2px;
    }

    .hero-buttons .hero-cta-secondary {
        padding: 0.68rem 1.4rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Featured event: più compatto */
    .featured-event {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .featured-locandina img {
        height: 200px;
    }

    .featured-event .event-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    /* Card padding ridotto uniformemente */
    .event-content {
        padding: 1.1rem 1.25rem;
    }

    .news-content {
        padding: 1.1rem 1.25rem;
    }

    .brano-card {
        padding: 1.25rem;
    }

    /* CTA più compatta */
    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-title {
        font-size: clamp(1.2rem, 6vw, 1.7rem);
    }

    .cta-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Footer compatto */
    .footer {
        padding: 2rem 0 calc(1rem + env(safe-area-inset-bottom));
    }

    .footer-col {
        padding: 1.25rem 0;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-text {
        font-size: 0.82rem;
    }

    .footer-links a {
        font-size: 0.87rem;
        min-height: 44px;
    }

    .footer-contacts li {
        font-size: 0.82rem;
        min-height: 38px;
    }

    /* Page header interno */
    .page-header {
        padding: 5.5rem 0 2rem;
    }

    .page-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    /* Modal: sheet ancora più compatto */

    .event-modal-details {
        padding: 1.25rem 1rem 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   BREAKPOINT 480px — Smartphone piccoli (iPhone SE, ecc.)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

    /* Spacing ancora più stretto */
    :root {
        --sp-5: 1.75rem;
        --sp-6: 2.25rem;
        --sp-7: 3rem;
    }

    .container {
        padding: 0 0.875rem;
    }

    section {
        padding: 2.25rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /* Navbar: logo ancor più compatto */
    .navbar .container {
        height: 54px;
    }

    .nav-menu {
        top: 54px;
        height: calc(100dvh - 54px);
        height: calc(100vh - 54px);
    }

    .nav-logo-img {
        height: 32px;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Hero: viewport reale */
    .hero {
        min-height: 100svh;
        min-height: 100vh;
    }

    .hero-content {
        padding: 4.5rem 1rem 2.75rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 9.5vw, 2.2rem);
    }

    /* Featured event: minimo elegante */
    .featured-locandina img {
        height: 180px;
    }

    .featured-event {
        padding: 1rem;
        gap: 1rem;
    }

    /* Stats: semplifico a colonna singola solo a 480 se troppo compresso */
    .stats-grid {
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.45rem;
    }

    /* Bottoni: sempre full-width sotto 480 */
    .section-cta .btn,
    .cta-section .btn {
        width: 100%;
        max-width: 100%;
        display: block;
    }

    /* Page header */
    .page-header {
        padding: 5rem 0 1.75rem;
    }

    .page-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    /* Modal: quasi fullscreen */
    .event-modal-content {
        max-height: 96dvh;
        max-height: 96vh;
    }


    /* Articolo */
    .article-header {
        padding: 6.5rem 0 3rem;
    }

    .article-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
}

/* ── Back to Top Button ────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(140, 28, 46, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--dur-base) ease, visibility var(--dur-base) ease, transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-fast) ease;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) {

    .back-to-top:hover {
        background: var(--accent-dark);
        box-shadow: 0 8px 28px rgba(140, 28, 46, 0.45);
        transform: translateY(-4px);
    }
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 42px;
        height: 42px;
    }
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTI GLOBALI CONDIVISI
   Centralize stili per eliminare inline CSS e duplicati
   ═══════════════════════════════════════════════════════════ */

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
    padding: var(--sp-6) var(--sp-4);
    text-align: center;
}

.empty-state svg {
    margin: 0 auto var(--sp-2);
    display: block;
    opacity: 0.3;
    color: var(--text-light);
}

.empty-state h3 {
    color: var(--text-light);
    margin-bottom: var(--sp-1);
    font-size: var(--fs-h3);
}

.empty-state p {
    color: var(--text-light);
    opacity: 0.75;
}

/* ── Past Events ─────────────────────────────────────────── */
.event-card.past-event {
    opacity: 0.75;
}

.event-card.past-event .event-date {
    background: var(--text-light) !important;
}

/* ── Article (notizia-dettaglio) ─────────────────────────── */
.article-header {
    padding: 9rem 0 6rem;
    text-align: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(140, 28, 46, 0.15), transparent 50%);
    z-index: 0;
}

.article-header .container {
    position: relative;
    z-index: 1;
}

.article-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--sp-4);
}

.article-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    max-width: 900px;
    margin: 0 auto var(--sp-4);
    line-height: 1.1;
    color: var(--white);
}

.article-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
}

.article-image {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-top: -5rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.article-body {
    max-width: 800px;
    margin: var(--sp-7) auto;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.85;
    color: var(--text);
}

.article-body p {
    margin-bottom: var(--sp-4);
}

.article-body h2,
.article-body h3 {
    margin-top: var(--sp-5);
    margin-bottom: var(--sp-3);
    font-family: 'Playfair Display', serif;
}

.article-cta {
    text-align: center;
    margin: var(--sp-6) 0 var(--sp-7);
}

@media (max-width: 768px) {
    .article-image {
        margin-top: -2rem;
    }
}

/* ── Genre cards (stato vuoto repertorio) ─────────────────── */
.genre-cards-grid {
    margin-top: var(--sp-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-4);
}

.genre-card {
    background: var(--light);
    padding: var(--sp-4);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--dur-base) var(--ease-out);
}

@media (hover: hover) {

    .genre-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px var(--hover-shadow);
    }
}

.genre-icon {
    width: 72px;
    height: 72px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-3);
    color: var(--white);
}

.genre-card h3 {
    color: var(--primary);
    margin-bottom: var(--sp-1);
    font-size: var(--fs-h3);
}

.genre-card p {
    color: var(--text-light);
    font-size: var(--fs-small);
}

/* ── Btn block (full width) ──────────────────────────────── */
.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: var(--sp-2);
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM MICRO-ANIMATIONS & POLISH
   ═══════════════════════════════════════════════════════════ */

/* ── Reading progress bar più sottile e branded ─────────── */
#reading-progress {
    height: 2px !important;
    background: linear-gradient(90deg, var(--accent), var(--accent-light)) !important;
    box-shadow: 0 0 8px rgba(140, 28, 46, 0.4);
}

/* ── Hero badge — elegante senza glow ────────────────────── */
.hero-badge {
    animation: heroBadgeFade 1.2s var(--ease-out) both;
}

@keyframes heroBadgeFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: heroTitleFade 1.4s var(--ease-out) 0.2s both;
}

.hero-subtitle {
    animation: heroTitleFade 1.4s var(--ease-out) 0.4s both;
}

.hero-buttons {
    animation: heroTitleFade 1.4s var(--ease-out) 0.6s both;
}

@keyframes heroTitleFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hover raffinato su event-card: accent line bottom ───── */
.event-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--dur-base) var(--ease-out);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (hover: hover) {

    .event-card:hover::after {
        width: 100%;
    }
}

/* ── Hover news-card: accent line ────────────────────────── */
.news-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--dur-base) var(--ease-out);
}

.news-card {
    position: relative;
}

@media (hover: hover) {

    .news-card:hover::after {
        width: 100%;
    }
}

/* ── Timeline dot più ricco ──────────────────────────────── */
.timeline-dot {
    transition: transform var(--dur-base) var(--ease-spring),
        box-shadow var(--dur-base) var(--ease-out) !important;
}

@media (hover: hover) {

    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.25) !important;
        box-shadow: 0 0 0 6px rgba(140, 28, 46, 0.12), 0 0 0 12px rgba(140, 28, 46, 0.05) !important;
    }
}

/* ── Gallery item con overlay accent su hover ────────────── */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(140, 28, 46, 0.0), rgba(10, 5, 0, 0.5));
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
    z-index: 1;
}

@media (hover: hover) {

    .gallery-item:hover::before {
        opacity: 1;
    }
}

/* ── Section header: linea decorativa centrata, proporzione corretta ── */
.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
    opacity: 0.5;
}

/* Solo per section-header centrato */
.section-header .section-title::after {
    margin: 1rem auto 0;
}

/* Per titoli non centrati: allineato a sinistra */
.section-title.text-left::after {
    margin: 1rem 0 0;
}

/* ── Scroll indicator raffinato ──────────────────────────── */
.scroll-indicator {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ── Bottone active state ─────────────────────────────────── */
.btn:active {
    transform: translateY(-1px) !important;
    transition-duration: 0.08s !important;
}

/* ── Page header title con tracking elegante ─────────────── */
.page-title {
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Sezione ariosa: section header armonioso ─────────────── */
.section-header {
    margin-bottom: 4rem;
}

/* ── Brano tag con border sottile ─────────────────────────── */
.brano-tag {
    border: 1px solid var(--border);
    font-size: var(--fs-label);
}

/* ── Event type badge più raffinato ─────────────────────── */
.event-type {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
}

/* ── News category color ─────────────────────────────────── */
.news-category {
    font-weight: 600;
    letter-spacing: 2.5px;
}

/* ── contact icon con hover accent ───────────────────────── */
.contact-icon {
    transition: background var(--dur-fast) var(--ease-out),
        color var(--dur-fast) ease;
}

@media (hover: hover) {

    .contact-item:hover .contact-icon {
        background: var(--accent);
        color: var(--white);
    }
}


/* ── CTA finale timeline ─────────────────────────────────── */
.timeline-end-cta {
    position: relative;
    width: 100%;
    text-align: center;
    /* centra il bottone (inline-block) */
    padding-top: 3rem;
    z-index: 10;
}

/* Tratto verticale che prolunga la linea della timeline fino al pulsante */
.timeline-end-cta::before {
    content: '';
    display: block;
    width: 1px;
    height: 3rem;
    opacity: 0.45;
    margin: 0 auto 1.75rem;
    /* margin: auto centra il tratto da 1px */
}

/* ── Scroll hint "scorri per altri eventi" ────────────────────
   Visibile solo su mobile, scompare dopo il primo swipe        */

.events-scroll-hint {
    display: none;
    /* nascosto su desktop */
}

@keyframes nudgeArrow {
    0% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(3px);
    }

    80% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE VISUAL COMPOSITION — Editoriale e premium
   Flow continuo, ritmo visivo, leggerezza compositiva
   Progettato per smartphone, non ridotto dal desktop
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── 1. FLUSSO TRA SEZIONI ──────────────────────────────
       Rimuoviamo i bordi pesanti che spezzano il ritmo.
       Le sezioni devono scorrere in modo continuo,
       come pagine di una rivista                              */

    .about-section {
        border-top: none;
    }

    .events-section {
        border-top: none;
        border-bottom: none;
        overflow-x: hidden;
    }

    .news-section {
        border-bottom: none;
        overflow-x: hidden;
    }

    /* overflow-x sulle sezioni contenitore: isola il full-bleed delle card
       senza nascondere l'overflow dell'intera pagina — soluzione alla radice */

    /* Transizione cromatica calda tra about ed events */
    .about-section {
        background: linear-gradient(180deg,
                #f5f1ec 0%,
                var(--bg-section-c) 100%);
    }

    /* ── 2. HERO: essenziale e immersivo ────────────────────
       Meno elementi → più respiro e focus sul contenuto.
       Su mobile il titolo comunica da solo — il badge
       introduce ridondanza visiva non necessaria              */

    .hero-badge {
        display: none;
    }

    .hero-title {
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        letter-spacing: 0;
        margin-bottom: 1.75rem;
    }

    /* ── 3. STATS: striscia orizzontale con divisori ────────
       Invece di una griglia impilata, le statistiche
       formano una riga elegante con separatori verticali      */

    .stats-grid {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        gap: 0;
        grid-template-columns: none;
        /* neutralizza il grid */
        padding-top: 1.25rem;
        margin-top: 1.25rem;
        align-self: center;
        border-top: 1px solid var(--light-border);
    }

    .stat-card {
        flex: 1;
        text-align: center;
        padding: 0 0.35rem;
        position: relative;
    }

    /* Divisori verticali tra stat-card */
    .stat-card:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 8%;
        height: 84%;
        width: 1px;
        background: var(--light-border);
        pointer-events: none;
    }

    /* ── 4. ABOUT IMAGE: full-bleed editoriale ──────────────
       L'immagine rompe il container e va da bordo a bordo.
       Effetto rivista/magazine — il segnale visivo più
       potente per un brand culturale premium                  */

    .about-text {
        box-shadow: none;
        border: 1px solid var(--light-border);
    }

    .about-image {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        width: calc(100% + 2.5rem);
    }

    .about-image .image-frame {
        border-radius: 0;
        padding-bottom: 58%;
        /* ratio cinematografico */
    }

    /* ── 5. EVENT CARDS: scroll orizzontale swipeable ───────
       Il modello nativo delle app premium: le card
       si sfogliano lateralmente con snap.
       L'utente vede il bordo della card successiva —
       questo è il cue visivo per lo swipe                     */

    .events-grid {
        display: flex;
        flex-direction: row;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        /* Full-bleed: le card escono dai margini del container */
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1.5rem;
        /* Scrollbar visivamente assente */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .events-grid::-webkit-scrollbar {
        display: none;
    }

    /* Card normale: 82vw — parte della successiva visibile a destra */
    .events-grid>.event-card {
        min-width: 82vw;
        max-width: 82vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Featured event: quasi fullscreen */
    .events-grid>.featured-event {
        min-width: 90vw;
        max-width: 90vw;
        scroll-snap-align: center;
    }

    /* ── 6. NEWS CARDS: scroll orizzontale ──────────────────
       Stesso pattern delle event card:
       swipe → editoriale → premium                            */

    .news-grid {
        display: flex;
        flex-direction: row;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .news-grid::-webkit-scrollbar {
        display: none;
    }

    .news-grid>.news-card {
        min-width: 76vw;
        max-width: 76vw;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Spacer calibrato al millimetro per centrare l'ultima card senza overscroll */
    .events-grid::after {
        content: "";
        flex: 0 0 1px;
        margin-left: calc(9vw - 1rem - 1.25rem);
    }
    
    .news-grid::after {
        content: "";
        flex: 0 0 1px;
        margin-left: calc(12vw - 1rem - 1.25rem);
    }

    /* ── 7. CARD AESTHETICS: ultra-leggere ──────────────────
       Ombre quasi invisibili, bordi appena accennati.
       Su mobile le card devono sembrare fogli, non blocchi    */

    .event-card,
    .news-card {
        box-shadow: 0 1px 6px rgba(10, 5, 0, 0.04);
        border-color: rgba(10, 5, 0, 0.04);
    }

    @media (hover: hover) {


        /* No transform hover su mobile: evita jank e flickering   */
        .event-card:hover,
        .news-card:hover,
        .brano-card:hover {
            transform: none;
            box-shadow: 0 2px 10px rgba(10, 5, 0, 0.07);
        }
    }

    /* Accent bottom line rimane, è lieve e non fastidiosa     */
    .event-card::after,
    .news-card::after {
        height: 1.5px;
        /* ancora più sottile su mobile */
    }

    /* CTA sempre visibile su mobile — niente hover, tutto esplicito */
    .event-card-cta {
        margin-top: 1.25rem;
        align-self: center;
        opacity: 1 !important;
        gap: 0.55rem;
    }
    .featured-event-cta {
        align-self: center;
    }

    /* ── 8. TIPOGRAFIA: editoriale e leggera ────────────────
       Font weight ridotto → percezione più raffinata.
       Il testo deve respirare, non pesare                     */

    .section-title {
        font-weight: 400;
    }

    .lead {
        font-weight: 300;
    }

    .event-title,
    .news-title {
        letter-spacing: -0.01em;
        line-height: 1.25;
    }

    /* Section badge: ulteriormente alleggerito */
    .section-badge {
        background: transparent;
        border-color: rgba(140, 28, 46, 0.15);
    }

    /* ── 9. CTA SECTION: essenziale ─────────────────────────
       Il bottone deve essere immediatamente tappabile,
       non disperso in una sezione enorme                      */

    .section-cta .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* footer-col separatori: gestiti già nel blocco 768px */

    /* ── 11. SECTION HEADER: orientato a sinistra ───────────
       Per le sezioni con scroll orizzontale, il titolo
       a sinistra è più naturale rispetto al centrato          */

    .events-section .section-header,
    .news-section .section-header {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .events-section .section-header .section-title::after,
    .news-section .section-header .section-title::after {
        margin: 0.65rem 0 0;
        /* allinea a sinistra */
    }

    /* ── Scroll hint: visibile solo su mobile ────────────────
       Sparisce con fade-out dopo il primo swipe (via JS)       */

    .events-scroll-hint {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.45rem;
        margin-top: 0.9rem;
        padding-left: 0.25rem;
        opacity: 1;
        transition: opacity 0.5s ease;
    }

    .events-scroll-hint.is-hidden {
        opacity: 0;
        pointer-events: none;
    }

    .events-scroll-hint-text {
        font-family: 'Inter', sans-serif;
        font-size: 0.72rem;
        font-weight: 400;
        letter-spacing: 0.06em;
        color: var(--text-light);
        text-transform: lowercase;
    }

    .events-scroll-hint-arrow {
        color: var(--accent);
        opacity: 0.7;
        flex-shrink: 0;
        animation: nudgeArrow 1.8s ease-in-out 0.8s 3;
        /* 3 cicli poi si ferma */
    }

    /* ── 12. REPERTORIO GRID: mobile column ─────────────────
       Il repertorio ha filtri interattivi — lo lasciamo
       verticale ma con card più leggere                       */

    .brano-card {
        box-shadow: 0 1px 6px rgba(10, 5, 0, 0.04);
        border-color: rgba(10, 5, 0, 0.04);
    }
}

/* ── Aggiustamenti negativi-margine per 576px ───────────────
   Il container cambia padding → aggiorniamo i full-bleed      */

@media (max-width: 576px) {

    .events-grid,
    .news-grid {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-image {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }

    /* Card ancora più strette → più della successiva è visibile */
    .events-grid>.event-card {
        min-width: 84vw;
        max-width: 84vw;
    }

    .events-grid>.featured-event {
        min-width: 92vw;
        max-width: 92vw;
    }

    .news-grid>.news-card {
        min-width: 80vw;
        max-width: 80vw;
    }

    .events-grid::after {
        margin-left: calc(8vw - 1rem - 1rem); /* 84vw card = 42vw center -> 8vw needed. Gap 1rem, padding 1rem */
    }
    .news-grid::after {
        margin-left: calc(10vw - 1rem - 1rem); /* 80vw card = 40vw center -> 10vw needed. */
    }
}

/* ── Aggiustamenti negativi-margine per 480px ───────────────*/

@media (max-width: 480px) {

    .events-grid,
    .news-grid {
        margin-left: -0.875rem;
        margin-right: -0.875rem;
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .events-grid::after {
        margin-left: calc(8vw - 1rem - 0.875rem);
    }
    .news-grid::after {
        margin-left: calc(10vw - 1rem - 0.875rem);
    }

    .about-image {
        margin-left: -0.875rem;
        margin-right: -0.875rem;
        width: calc(100% + 1.75rem);
    }
}

/* ── Reduce motion: rispetta preferenze utente ───────────── */
@media (prefers-reduced-motion: reduce) {

    /* Elementi reveal e hero — già presenti */
    .reveal,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .reveal {
        transition: opacity 0.01s !important;
    }

    /* Animazioni fadeInUp su card e brani */
    @keyframes fadeInUp {
        from { opacity: 1; transform: none; }
        to   { opacity: 1; transform: none; }
    }

    /* Trentanni hero — note musicali floating e titolo */
    .ta-note,
    .ta-hero-title,
    .ta-hero-subtitle,
    .ta-hero-eyebrow,
    .ta-hero-logo-wrap {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Modal anniversario — note floating */
    .anniv-modal-note {
        animation: none !important;
    }

    /* Event card / gallery item — nessun lift al hover */
    .event-card:hover,
    .featured-event:hover,
    .gallery-item:hover,
    .filter-tab:hover,
    .filter-chip:hover,
    .btn-share-event:hover {
        transform: none !important;
    }

    /* Transizioni generali — ridotte al minimo */
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV — Fullscreen overlay nativo
   Design: Apple / Linear / Stripe mobile
   Ripensato da zero per smartphone moderni
   ═══════════════════════════════════════════════════════════ */

/* ── Nav backdrop: non più usato (il mobile-nav è fullscreen) */
.nav-backdrop {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV — Ultra minimal, ispirazione Apple/Linear
   ══════════════════════════════════════════════════════════════ */

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    /* ── Overlay fullscreen ─────────────────────────────────── */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        z-index: 9000;

        /* Bianco caldo, coerente col design system */
        background: #faf8f5;

        /* Animazione: semplice fade + leggero translateY — no scale */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0.22s;
    }

    .mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0s;
    }

    /* ── Barra superiore: logo a sinistra, chiudi a destra ──── */
    .mobile-nav-bar {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 58px;
        padding: 0 1.25rem;
        flex-shrink: 0;
    }

    /* Pulsante chiudi: X senza sfondo — solo icona */
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        color: rgba(0, 0, 0, 0.35);
        transition: color 0.18s ease;
        flex-shrink: 0;
        margin-right: -8px;
        /* compensa il padding ottico */
    }

    .mobile-nav-close:active {
        color: rgba(0, 0, 0, 0.65);
    }

    /* ── Area scrollabile con le voci ───────────────────────── */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1.5rem 0 0;
    }

    /* ── Voce singola ────────────────────────────────────────── */
    .mobile-nav-item {
        display: flex;
        align-items: center;
        padding: 0 2rem;
        min-height: 60px;
        font-family: 'Inter', sans-serif;
        font-size: 1.15rem;
        font-weight: 300;
        /* leggero come Apple */
        letter-spacing: -0.02em;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
        width: 100%;
        text-align: left;
        text-decoration: none;

        /* Separatore quasi invisibile */
        border-bottom: 1px solid rgba(0, 0, 0, 0.055);

        /* Nessuna freccia — il testo parla da solo */

        /* Stagger entrata */
        opacity: 0;
        transform: translateY(8px);
        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            color 0.16s ease;
    }

    /* Ultimo item: nessun bordo */
    .mobile-nav-item:last-child,
    .mobile-nav-group:last-child .mobile-nav-group-toggle {
        border-bottom: none;
    }

    /* Nessuna freccia su voci normali */
    .mobile-nav-item::after {
        display: none !important;
    }

    /* Feedback tap: leggerissimo */
    .mobile-nav-item:active {
        color: rgba(0, 0, 0, 0.45);
    }

    /* Pagina corrente: bordeaux, peso normale */
    .mobile-nav-item.is-active {
        color: var(--accent);
        font-weight: 400;
    }

    /* ── Gruppo "Scopri" ─────────────────────────────────────── */
    .mobile-nav-group {
        border-bottom: 1px solid rgba(0, 0, 0, 0.055);
    }

    .mobile-nav-group-toggle {
        border-bottom: none;
        justify-content: space-between;
    }

    /* Chevron: minimal, ruota 180° */
    .mobile-nav-chevron {
        flex-shrink: 0;
        color: rgba(0, 0, 0, 0.22);
        transition: transform 0.22s ease, color 0.18s ease;
    }

    .mobile-nav-group.is-open .mobile-nav-chevron {
        transform: rotate(180deg);
        color: var(--accent);
    }

    /* Sub-voci: max-height accordion */
    .mobile-nav-sub {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
    }

    .mobile-nav-group.is-open .mobile-nav-sub {
        max-height: 300px;
    }

    .mobile-nav-sub-item {
        display: flex;
        align-items: center;
        padding: 0 2rem 0 2.5rem;
        min-height: 50px;
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        font-weight: 300;
        letter-spacing: -0.01em;
        color: rgba(0, 0, 0, 0.45);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        text-decoration: none;
        transition: color 0.16s ease;
        background: transparent;
    }

    .mobile-nav-sub-item:last-child {
        border-bottom: none;
    }

    .mobile-nav-sub-item:active {
        color: rgba(0, 0, 0, 0.65);
    }

    .mobile-nav-sub-item.is-active {
        color: var(--accent);
        font-weight: 400;
    }

    /* Nessuna freccia sulle sub-voci */
    .mobile-nav-sub-item::after {
        display: none !important;
    }

    /* ── Footer: CTA outline + admin ────────────────────────── */
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1.75rem 2rem max(2rem, env(safe-area-inset-bottom));
        flex-shrink: 0;

        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Contatti: outline pill — minimal, non invasivo */
    .mobile-nav-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 50px;
        background: transparent;
        color: var(--accent);
        border: 1.5px solid rgba(140, 28, 46, 0.35);
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.1px;
        border-radius: var(--radius-pill);
        text-decoration: none;
        transition:
            background 0.18s ease,
            border-color 0.18s ease,
            color 0.18s ease;
    }

    .mobile-nav-cta:active {
        background: rgba(140, 28, 46, 0.06);
        border-color: var(--accent);
    }

    /* Area riservata: pill outline — cliccabile e riconoscibile */
    .mobile-nav-admin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1.25rem;
        margin: 0.85rem auto 0;
        font-family: 'Inter', sans-serif;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: rgba(0, 0, 0, 0.50);
        border: 1px solid rgba(0, 0, 0, 0.18);
        border-radius: 100px;
        text-decoration: none;
        transition:
            color 0.22s ease,
            border-color 0.22s ease,
            background 0.22s ease;
    }

    .mobile-nav-admin svg {
        opacity: 0.55;
        flex-shrink: 0;
        transition: opacity 0.22s ease;
    }

    .mobile-nav-admin:active {
        color: rgba(0, 0, 0, 0.75);
        border-color: rgba(0, 0, 0, 0.35);
        background: rgba(0, 0, 0, 0.04);
    }

    @media (hover: hover) {

        .mobile-nav-admin:hover {
            color: rgba(0, 0, 0, 0.75);
            border-color: rgba(0, 0, 0, 0.35);
            background: rgba(0, 0, 0, 0.04);
        }
    }

    .mobile-nav-admin:active svg {
        opacity: 0.8;
    }

    @media (hover: hover) {

        .mobile-nav-admin:hover svg {
            opacity: 0.8;
        }
    }

    /* ── Stagger sequenziale ─────────────────────────────────── */
    /* Delay più corti: l'entrata deve sentirsi fluida, non teatrale */
    .mobile-nav.is-open .mobile-nav-links>*:nth-child(1) .mobile-nav-item,
    .mobile-nav.is-open .mobile-nav-links>.mobile-nav-item:nth-child(1) {
        opacity: 1;
        transform: none;
        transition-delay: 0.05s;
    }

    .mobile-nav.is-open .mobile-nav-links>*:nth-child(2) .mobile-nav-item,
    .mobile-nav.is-open .mobile-nav-links>.mobile-nav-item:nth-child(2) {
        opacity: 1;
        transform: none;
        transition-delay: 0.09s;
    }

    .mobile-nav.is-open .mobile-nav-links>*:nth-child(3) .mobile-nav-item,
    .mobile-nav.is-open .mobile-nav-links>.mobile-nav-item:nth-child(3) {
        opacity: 1;
        transform: none;
        transition-delay: 0.13s;
    }

    .mobile-nav.is-open .mobile-nav-links>*:nth-child(4) .mobile-nav-item,
    .mobile-nav.is-open .mobile-nav-links>.mobile-nav-item:nth-child(4) {
        opacity: 1;
        transform: none;
        transition-delay: 0.17s;
    }

    .mobile-nav.is-open .mobile-nav-links>*:nth-child(5) .mobile-nav-item,
    .mobile-nav.is-open .mobile-nav-links>.mobile-nav-item:nth-child(5) {
        opacity: 1;
        transform: none;
        transition-delay: 0.21s;
    }

    .mobile-nav.is-open .mobile-nav-footer {
        opacity: 1;
        transform: none;
        transition-delay: 0.20s;
    }

    /* ── Hamburger: 2 linee asimmetriche ────────────────────── */
    /* (stili base nel blocco @media 768px precedente) */
}

/* ── nav-icon-link-text: nascosto su desktop ── */
.nav-icon-link-text {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   STORIA — Sistema doppio desktop/mobile
   Desktop  → .storia-desktop-only visibile, .storia-mobile-only nascosta
   Mobile   → .storia-mobile-only visibile, .storia-desktop-only nascosta
   ═══════════════════════════════════════════════════════════════════ */

/* ── Visibilità per breakpoint ── */
.storia-desktop-only {
    display: block;
}

.storia-mobile-only {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE (≤ 768px) — Storia interattiva premium
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Swap visibilità */
    .storia-desktop-only {
        display: none !important;
    }

    .storia-mobile-only {
        display: block !important;
    }

    /* Sezione storia: zero padding top (la nav è sticky) */
    .storia-section {
        padding-top: 0 !important;
    }

    /* Section-header: respiro verticale bilanciato */
    .storia-section .section-header {
        margin-top: 2rem;
        margin-bottom: 0;
        padding-bottom: 1rem;
    }

    /* ════════════════════════════════════════════════════════
       INDICATORE ANNO ATTIVO
       ════════════════════════════════════════════════════════ */
    .sm-active-era {
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
        padding: 1.25rem 0 0.5rem;
    }

    .sm-active-year {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2.8rem, 13vw, 4rem);
        font-weight: 700;
        color: var(--accent);
        line-height: 1;
        transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .sm-active-title {
        font-family: 'Inter', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--text-light);
        padding-bottom: 0.4rem;
        transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* ════════════════════════════════════════════════════════
       TIMELINE NAV ORIZZONTALE — sticky premium
       ════════════════════════════════════════════════════════ */
    .sm-timeline-nav {
        position: sticky;
        top: 58px;
        /* altezza header */
        z-index: 90;
        margin: 0 -1.25rem;
        /* fuoriesce dal container per full-width */
        background: rgba(250, 248, 245, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--light-border);
        box-shadow: 0 6px 24px rgba(10, 5, 0, 0.07);
    }

    /* Track: nodi centrati con gap fisso, NON space-between */
    .sm-track {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        position: relative;
        padding: 1rem 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sm-track::-webkit-scrollbar {
        display: none;
    }

    /* Linea grigia di sfondo — posizione calcolata via JS tra primo e ultimo nodo */
    .sm-line {
        position: absolute;
        top: calc(1.25rem + 5px);
        left: 0;
        /* sovrascritta via JS */
        width: 0;
        /* sovrascritta via JS */
        height: 1.5px;
        background: var(--light-border);
        transform: translateY(-50%);
        z-index: 0;
        border-radius: 2px;
    }

    /* Barra progresso bordeaux */
    .sm-progress {
        position: absolute;
        top: calc(1.25rem + 5px);
        left: 1.5rem;
        height: 1.5px;
        background: linear-gradient(90deg, var(--accent) 0%, #c0314b 100%);
        transform: translateY(-50%);
        z-index: 1;
        border-radius: 2px;
        width: 0%;
        transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Nodo singolo — larghezza fissa per spacing uniforme */
    .sm-node {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        background: none;
        border: none;
        /* Larghezza fissa: divide equamente lo spazio disponibile tra 5 nodi */
        flex: 1;
        min-width: 0;
        max-width: 72px;
        padding: 0.25rem 0;
        cursor: pointer;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: transform 0.18s var(--ease-out);
    }

    .sm-node:active {
        transform: scale(0.88);
    }

    /* Ring esterno (alone) — solo sul nodo active */
    .sm-node-ring {
        position: absolute;
        top: calc(0.25rem + 5px);
        left: 50%;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1.5px solid rgba(140, 28, 46, 0);
        transform: translate(-50%, -50%) scale(0.5);
        transition:
            border-color 0.35s var(--ease-out),
            transform 0.45s var(--ease-spring),
            opacity 0.35s var(--ease-out);
        opacity: 0;
        margin-top: 0;
    }

    /* Dot centrale */
    .sm-node-dot {
        display: block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--white);
        border: 2px solid #d0c8c0;
        transition:
            background 0.3s var(--ease-out),
            border-color 0.3s var(--ease-out),
            transform 0.4s var(--ease-spring),
            box-shadow 0.3s var(--ease-out);
    }

    /* Label anno */
    .sm-node-year {
        font-family: 'Inter', sans-serif;
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: #a09488;
        text-transform: uppercase;
        transition: color 0.3s var(--ease-out), font-weight 0.2s;
        white-space: nowrap;
    }

    /* ── Nodo VISITATO (già passato) ── */
    .sm-node.visited .sm-node-dot {
        background: var(--accent);
        border-color: var(--accent);
        opacity: 0.4;
    }

    .sm-node.visited .sm-node-year {
        color: var(--text-light);
    }

    /* ── Nodo ATTIVO ── */
    .sm-node.active .sm-node-ring {
        border-color: rgba(140, 28, 46, 0.25);
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    .sm-node.active .sm-node-dot {
        background: var(--accent);
        border-color: var(--accent);
        transform: scale(1.5);
        box-shadow:
            0 0 0 3px rgba(140, 28, 46, 0.15),
            0 2px 8px rgba(140, 28, 46, 0.3);
    }

    .sm-node.active .sm-node-year {
        color: var(--accent);
        font-weight: 700;
    }

    /* ════════════════════════════════════════════════════════
       AREA CARTE — viewport a singola card visibile
       ════════════════════════════════════════════════════════ */
    .sm-cards-viewport {
        position: relative;
        margin-top: 1.5rem;
        min-height: 300px;
    }

    /* ── Card singola ── */
    .sm-card {
        display: none;
        opacity: 0;
        transform: translateX(30px);
        transition:
            opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
            transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .sm-card.active {
        display: block;
    }

    .sm-card.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Animazione per navigazione all'indietro */
    .sm-card.enter-left {
        transform: translateX(-30px);
    }

    /* ── Struttura interna card ── */
    .sm-card-accent {
        height: 4px;
        background: linear-gradient(90deg, var(--accent) 0%, #c0314b 60%, rgba(140, 28, 46, 0.1) 100%);
        border-radius: 4px 4px 0 0;
        margin-bottom: 0;
    }

    .sm-card-body {
        background: var(--white);
        border: 1px solid var(--light-border);
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 1.6rem 1.5rem 1.4rem;
        position: relative;
        overflow: hidden;
        box-shadow:
            0 4px 16px rgba(10, 5, 0, 0.06),
            0 16px 40px rgba(10, 5, 0, 0.05);
    }

    /* Meta: numero progressivo + tag categoria */
    .sm-card-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.9rem;
    }

    .sm-card-num {
        font-family: 'Playfair Display', serif;
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--accent);
        letter-spacing: 1px;
        opacity: 0.6;
    }

    .sm-card-tag {
        font-family: 'Inter', sans-serif;
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: var(--text-light);
        background: var(--light);
        padding: 0.25rem 0.7rem;
        border-radius: var(--radius-pill);
        border: 1px solid var(--light-border);
    }

    /* Anno decorativo in filigrana */
    .sm-card-year-bg {
        position: absolute;
        top: -0.5rem;
        right: 1rem;
        font-family: 'Playfair Display', serif;
        font-size: 5rem;
        font-weight: 700;
        color: var(--accent);
        opacity: 0.045;
        line-height: 1;
        pointer-events: none;
        user-select: none;
        letter-spacing: -2px;
    }

    /* Titolo card */
    .sm-card-title {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.3rem, 5.5vw, 1.6rem);
        color: var(--primary);
        line-height: 1.2;
        margin-bottom: 0.85rem;
        position: relative;
        z-index: 1;
    }

    /* Testo card */
    .sm-card-text {
        font-family: 'Inter', sans-serif;
        font-size: 0.915rem;
        line-height: 1.78;
        color: var(--text-light);
        position: relative;
        z-index: 1;
        margin-bottom: 1.5rem;
    }

    .sm-card-text strong {
        color: var(--primary);
        font-weight: 600;
    }

    /* ── Footer card: navigazione prev/next ── */
    .sm-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1.1rem;
        border-top: 1px solid var(--light-border);
        position: relative;
        z-index: 1;
    }

    .sm-nav-prev,
    .sm-nav-next {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1.5px solid var(--light-border);
        background: var(--white);
        color: var(--primary);
        cursor: pointer;
        transition:
            background 0.2s var(--ease-out),
            border-color 0.2s var(--ease-out),
            color 0.2s var(--ease-out),
            transform 0.18s var(--ease-out);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    @media (hover: hover) {


        .sm-nav-prev:hover,
        .sm-nav-next:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--white);
        }
    }

    .sm-nav-prev:active,
    .sm-nav-next:active {
        transform: scale(0.9);
    }

    .sm-nav-prev[disabled],
    .sm-nav-next[disabled] {
        opacity: 0.28;
        cursor: default;
        pointer-events: none;
    }

    .sm-nav-count {
        font-family: 'Inter', sans-serif;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--text-light);
        letter-spacing: 0.5px;
    }

    /* ════════════════════════════════════════════════════════
       CTA FINALE — mobile premium
       ════════════════════════════════════════════════════════ */
    .sm-cta-block {
        margin-top: 2rem;
    }

    .sm-cta-inner {
        background: linear-gradient(145deg, #1a1a1a 0%, #2a1018 50%, #1a1a1a 100%);
        border-radius: var(--radius-md);
        padding: 2.25rem 1.5rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    /* Alone bordeaux interno */
    .sm-cta-inner::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -20%;
        width: 240px;
        height: 240px;
        background: radial-gradient(circle, rgba(140, 28, 46, 0.4) 0%, transparent 70%);
        pointer-events: none;
    }

    .sm-cta-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 0.6rem;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        position: relative;
        z-index: 1;
    }

    .sm-cta-heading {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.6rem, 7vw, 2rem);
        color: var(--white);
        margin-bottom: 0.75rem;
        line-height: 1.1;
        position: relative;
        z-index: 1;
    }

    .sm-cta-body {
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .sm-cta-btn {
        position: relative;
        z-index: 1;
        display: inline-block;
        min-width: 180px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION — Raffinamento desktop
   Composizione istituzionale: fondazioni culturali, teatri lirici,
   istituzioni musicali di prestigio.
   Applicato SOLO a viewport ≥ 993px — nessuna modifica al mobile.
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 993px) {

    /* ── 1. PROPORZIONI: immagine più protagonista ──────────────
       45% testo / 55% immagine → la fotografia guadagna peso
       senza schiacciare la colonna contenuto.                   */

    .about-text {
        width: 50%;
        padding: 4rem 4.5rem;
        box-shadow:
            0 2px 8px rgba(10, 5, 0, 0.04),
            0 8px 32px rgba(10, 5, 0, 0.07),
            0 24px 56px rgba(10, 5, 0, 0.06);
        border: 1px solid rgba(10, 5, 0, 0.06);
        position: relative;
    }

    /* Accento verticale istituzionale: linea bordeaux sul bordo sinistro
       del testo. Richiamo estetico delle fondazioni musicali europee.  */
    .about-text::before {
        content: '';
        position: absolute;
        left: 0;
        top: 3rem;
        bottom: 3rem;
        width: 3px;
        background: linear-gradient(180deg,
                transparent 0%,
                var(--accent) 20%,
                var(--accent) 80%,
                transparent 100%);
        border-radius: 2px;
        opacity: 0.55;
        pointer-events: none;
    }

    .about-image {
        width: 50%;
    }

    /* ── 2. IMMAGINE: ratio più bilanciato + qualità visiva ─────
       padding-bottom 90% (ratio 10:9) rispetto al 110% originale:
       più orizzontale, tipico delle pubblicazioni di teatri e fondazioni. */

    .about-image .image-frame {
        padding-bottom: 90%;
        box-shadow:
            0 4px 16px rgba(10, 5, 0, 0.08),
            0 16px 48px rgba(10, 5, 0, 0.12),
            0 32px 80px rgba(10, 5, 0, 0.10);
        outline: 1px solid rgba(10, 5, 0, 0.07);
        outline-offset: 0;
    }

    /* Desaturazione minima — immagine elegante, non urlante */
    .about-image .image-frame img {
        filter: grayscale(10%) saturate(0.92) brightness(1.01);
        transition:
            filter 0.55s cubic-bezier(0.25, 0.8, 0.25, 1),
            transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    @media (hover: hover) {


        /* Hover: rivelazione progressiva del colore pieno */
        .about-image:hover .image-frame img {
            filter: grayscale(0%) saturate(1.06) brightness(1.02);
            transform: scale(1.025);
        }
    }

    /* ── 3. TESTO: leggibilità e gerarchia editoriale ───────── */

    .about-text .lead {
        font-size: clamp(1.15rem, 1.4vw, 1.3rem);
        line-height: 1.45;
        margin-bottom: 1.75rem;
    }

    .about-text p {
        line-height: 1.9;
        font-size: 0.975rem;
        margin-bottom: 1.5rem;
    }

    /* ── 4. STATISTICHE: respiro e allineamento ─────────────── */

    .about-text .stats-grid {
        margin-top: 2.75rem;
        padding-top: 2.25rem;
        gap: 2rem;
    }

    .about-text .stat-number {
        font-size: 2.8rem;
        letter-spacing: -0.04em;
    }

    .about-text .stat-label {
        font-size: 0.78rem;
        letter-spacing: 1.5px;
        margin-top: 0.6rem;
    }
}


/* ═══════════════════════════════════════════════════════════════
   30° ANNIVERSARIO — Card premium desktop + mobile
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes anniv-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25), 0 0 0 8px rgba(212, 175, 55, 0.08);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.35), 0 0 0 14px rgba(212, 175, 55, 0.06);
    }
}

@keyframes anniv-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── Desktop — dot speciale ─────────────────────────────────── */
.timeline-dot--anniversary {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #c8962a 100%);
    border: 4px solid var(--white);
    animation: anniv-pulse 2.4s ease-in-out infinite;
}

@media (hover: hover) {

    .timeline-item--anniversary:hover .timeline-dot--anniversary {
        transform: translateX(-50%) scale(1.25);
    }
}

/* ── Desktop — card scura anniversario ─────────────────────── */
.timeline-content--anniversary {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a1018 55%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
    overflow: hidden;
}

/* Alone dorato angolo in alto a destra */
.timeline-content--anniversary::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

/* Alone bordeaux in basso a sinistra */
.timeline-content--anniversary::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(140, 28, 46, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

@media (hover: hover) {


    .timeline-item--anniversary:hover .timeline-content--anniversary {
        border-color: rgba(212, 175, 55, 0.45);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.2);
    }
}

/* Eyebrow sopra il badge */
.anniv-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

/* Badge "30° Anniversario" */
.anniv-badge {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #d4af37, #f0d060, #c8962a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: anniv-shimmer 3s linear infinite;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Titolo */
.anniv-title {
    font-size: 1.5rem;
    color: var(--white) !important;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Testo */
.anniv-text {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.anniv-text strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* Griglia statistiche */
.anniv-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.anniv-stat {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    border-right: 1px solid rgba(212, 175, 55, 0.12);
}

.anniv-stat:last-child {
    border-right: none;
}

.anniv-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.anniv-stat-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}


/* ── Mobile — card anniversario ────────────────────────────── */
@media (max-width: 768px) {

    .sm-card-accent--anniversary {
        height: 4px;
        background: linear-gradient(90deg, #c8962a 0%, #f0d060 50%, #c8962a 100%);
    }

    .sm-card-body--anniversary {
        background: linear-gradient(145deg, #1a1a1a 0%, #2a1018 55%, #1a1a1a 100%);
        border-color: rgba(212, 175, 55, 0.22);
        position: relative;
        overflow: hidden;
    }

    /* Alone dorato */
    .sm-card-body--anniversary::before {
        content: '';
        position: absolute;
        top: -40px;
        right: -40px;
        width: 160px;
        height: 160px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 65%);
        pointer-events: none;
    }

    .sm-anniv-eyebrow {
        font-family: 'Inter', sans-serif;
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4);
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 1;
    }

    .sm-anniv-badge {
        display: inline-block;
        font-family: 'Playfair Display', serif;
        font-size: 0.95rem;
        font-weight: 700;
        background: linear-gradient(90deg, #d4af37, #f0d060, #c8962a);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: anniv-shimmer 3s linear infinite;
        margin-bottom: 0.7rem;
        position: relative;
        z-index: 1;
    }

    .sm-anniv-title {
        color: var(--white) !important;
    }

    .sm-anniv-text {
        color: rgba(255, 255, 255, 0.65) !important;
    }

    .sm-anniv-text strong {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Griglia statistiche mobile */
    .sm-anniv-stats {
        display: flex;
        gap: 0;
        border-top: 1px solid rgba(212, 175, 55, 0.18);
        border-bottom: 1px solid rgba(212, 175, 55, 0.12);
        padding: 1.1rem 0;
        margin-bottom: 1.1rem;
        position: relative;
        z-index: 1;
    }

    .sm-anniv-stat {
        flex: 1;
        text-align: center;
        padding: 0 0.5rem;
        border-right: 1px solid rgba(212, 175, 55, 0.12);
    }

    .sm-anniv-stat:last-child {
        border-right: none;
    }

    .sm-anniv-stat-num {
        display: block;
        font-family: 'Playfair Display', serif;
        font-size: 1.55rem;
        font-weight: 700;
        background: linear-gradient(135deg, #d4af37, #f0d060);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.1;
        margin-bottom: 0.25rem;
    }

    .sm-anniv-stat-label {
        display: block;
        font-family: 'Inter', sans-serif;
        font-size: 0.58rem;
        font-weight: 500;
        letter-spacing: 1.8px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.38);
    }

    /* Footer nav anniversario */
    .sm-anniv-footer {
        border-top-color: rgba(212, 175, 55, 0.18);
    }

    .sm-anniv-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(212, 175, 55, 0.25) !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    @media (hover: hover) {

        .sm-anniv-btn:hover {
            background: rgba(212, 175, 55, 0.15) !important;
            border-color: rgba(212, 175, 55, 0.5) !important;
            color: #f0d060 !important;
        }
    }

    .sm-anniv-count {
        color: rgba(255, 255, 255, 0.45) !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   30° ANNIVERSARIO — Feature CSS
   Modal · Sezione Homepage · Pagina trentanni.php
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes shared ────────────────────────────────────────── */
@keyframes ta-float-1 {

    0%,
    100% {
        transform: translateY(0) rotate(-8deg) scale(1);
        opacity: 0.07;
    }

    50% {
        transform: translateY(-28px) rotate(4deg) scale(1.08);
        opacity: 0.14;
    }
}

@keyframes ta-float-2 {

    0%,
    100% {
        transform: translateY(0) rotate(12deg) scale(1);
        opacity: 0.05;
    }

    50% {
        transform: translateY(-40px) rotate(-6deg) scale(1.12);
        opacity: 0.11;
    }
}

@keyframes ta-float-3 {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg) scale(1.05);
        opacity: 0.09;
    }

    33% {
        transform: translateY(-18px) rotate(10deg) scale(1);
        opacity: 0.06;
    }

    66% {
        transform: translateY(-35px) rotate(-15deg) scale(1.1);
        opacity: 0.12;
    }
}

@keyframes ta-glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 60px rgba(140, 28, 46, 0.35), 0 0 120px rgba(140, 28, 46, 0.15);
    }

    50% {
        text-shadow: 0 0 80px rgba(140, 28, 46, 0.55), 0 0 160px rgba(140, 28, 46, 0.25), 0 0 30px rgba(212, 175, 55, 0.2);
    }
}

@keyframes ta-shimmer-gold {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes ta-scale-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ta-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ta-fade-in-up-center {
    from {
        opacity: 0;
        transform: translate(-50%, 24px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes ta-modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ta-dot-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6), 0 0 0 3px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0), 0 0 0 3px rgba(212, 175, 55, 0.3);
    }
}


/* ══════════════════════════════════════════════════════════════
   FEATURE 4 — MODAL DI BENVENUTO CELEBRATIVO
   ══════════════════════════════════════════════════════════════ */

.anniv-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.anniv-modal-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.anniv-modal {
    position: relative;
    background: linear-gradient(145deg, #1a0508 0%, #2a0910 40%, #1a0508 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    padding: 3.5rem 3rem 3rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.1);
    animation: ta-modal-in 0.5s var(--ease-spring) both;
}

.anniv-modal-notes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.anniv-modal-note {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(212, 175, 55, 0.07);
    user-select: none;
}

.anniv-modal-note:nth-child(1) {
    top: 8%;
    left: 6%;
    animation: ta-float-1 6s ease-in-out infinite;
}

.anniv-modal-note:nth-child(2) {
    top: 12%;
    right: 8%;
    animation: ta-float-2 7.5s ease-in-out infinite;
    font-size: 1.8rem;
}

.anniv-modal-note:nth-child(3) {
    bottom: 20%;
    left: 10%;
    animation: ta-float-3 5.5s ease-in-out infinite;
    font-size: 3rem;
}

.anniv-modal-note:nth-child(4) {
    bottom: 10%;
    right: 6%;
    animation: ta-float-1 8s ease-in-out infinite 1s;
    font-size: 2rem;
}

.anniv-modal::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(ellipse, rgba(140, 28, 46, 0.3) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.anniv-modal>* {
    position: relative;
    z-index: 1;
}

.anniv-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: all var(--dur-fast) ease;
    z-index: 2;
}

@media (hover: hover) {

    .anniv-modal-close:hover {
        background: rgba(255, 255, 255, 0.12);
        color: var(--white);
    }
}

.anniv-modal-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.anniv-modal-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #c8962a, #f0d060, #d4af37, #c8962a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ta-shimmer-gold 3s linear infinite;
    padding: 0.35rem 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
}

.anniv-modal-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 18vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--white);
    animation: ta-glow-pulse 3s ease-in-out infinite;
    margin-bottom: 0.25rem;
    letter-spacing: -0.04em;
}

.anniv-modal-anni {
    font-size: 0.78rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.anniv-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.anniv-modal-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.anniv-modal-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin: 0 auto 2rem;
}

.anniv-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.anniv-modal-actions .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 0.82rem;
}

.anniv-modal-skip {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-pill);
    padding: 0.9rem 1.8rem;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}

@media (hover: hover) {

    .anniv-modal-skip:hover {
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.65);
    }
}

@media (max-width: 480px) {
    .anniv-modal {
        padding: 2.5rem 1.75rem 2rem;
        border-radius: var(--radius-md);
    }

    .anniv-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .anniv-modal-actions .btn-primary,
    .anniv-modal-skip {
        text-align: center;
    }
}


/* ══════════════════════════════════════════════════════════════
   FEATURE 3 — SEZIONE HOMEPAGE "30 ANNI"
   ══════════════════════════════════════════════════════════════ */

.anniv-section {
    background: linear-gradient(135deg, #1a0508 0%, #2d0a12 35%, #3d0f18 65%, #1f060c 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    border-top: 1px solid rgba(140, 28, 46, 0.4);
    border-bottom: 1px solid rgba(140, 28, 46, 0.4);
}

.anniv-section-notes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.anniv-section-note {
    position: absolute;
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
}

.anniv-section-note:nth-child(1) {
    font-size: 8rem;
    top: 5%;
    left: 3%;
    animation: ta-float-1 9s ease-in-out infinite;
}

.anniv-section-note:nth-child(2) {
    font-size: 4rem;
    top: 60%;
    left: 15%;
    animation: ta-float-2 7s ease-in-out infinite 1s;
}

.anniv-section-note:nth-child(3) {
    font-size: 6rem;
    top: 20%;
    right: 5%;
    animation: ta-float-3 8s ease-in-out infinite 0.5s;
}

.anniv-section-note:nth-child(4) {
    font-size: 5rem;
    bottom: 10%;
    right: 20%;
    animation: ta-float-1 6s ease-in-out infinite 2s;
}

.anniv-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(140, 28, 46, 0.2) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.anniv-section .container {
    position: relative;
    z-index: 1;
}

.anniv-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.anniv-section-left {
    text-align: center;
}

.anniv-section-tagline {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

.anniv-section-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(7rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 0.85;
    color: var(--white);
    letter-spacing: -0.05em;
    animation: ta-glow-pulse 4s ease-in-out infinite;
}

.anniv-section-anni-label {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.anniv-section-years {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    background: linear-gradient(90deg, #c8962a, #f0d060, #d4af37, #c8962a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ta-shimmer-gold 3s linear infinite;
    letter-spacing: 3px;
}

.anniv-section-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.anniv-section-label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 0.3rem;
}

.anniv-section-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--white);
    line-height: 1.2;
    font-weight: 500;
}

.anniv-section-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
}

.anniv-section-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.anniv-section-stat {
    text-align: center;
}

.anniv-section-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.anniv-section-stat-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.anniv-section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all var(--dur-base) var(--ease-out);
    align-self: flex-start;
}

.anniv-section-cta svg {
    transition: transform var(--dur-base) var(--ease-spring);
    flex-shrink: 0;
}

@media (hover: hover) {

    .anniv-section-cta:hover {
        background: rgba(212, 175, 55, 0.12);
        border-color: rgba(212, 175, 55, 0.6);
        color: #f0d060;
    }
}

@media (hover: hover) {

    .anniv-section-cta:hover svg {
        transform: translateX(5px);
    }
}

@media (max-width: 900px) {
    .anniv-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .anniv-section-right {
        align-items: center;
        text-align: center;
    }

    .anniv-section-cta {
        align-self: center;
    }
}


/* ══════════════════════════════════════════════════════════════
   FEATURE 2 — PAGINA trentanni.php
   ══════════════════════════════════════════════════════════════ */

.ta-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #0d0205 0%, #1a0508 40%, #2d0a12 70%, #1a0508 100%);
    overflow: hidden;
}

.ta-notes-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ta-note {
    position: absolute;
    color: rgba(255, 255, 255, 0.04);
    user-select: none;
    font-style: normal;
}

.ta-note-1 {
    font-size: 8rem;
    top: 8%;
    left: 4%;
    animation: ta-float-1 10s ease-in-out infinite;
}

.ta-note-2 {
    font-size: 5rem;
    top: 20%;
    left: 20%;
    animation: ta-float-2 8s ease-in-out infinite 0.5s;
}

.ta-note-3 {
    font-size: 10rem;
    top: 5%;
    right: 8%;
    animation: ta-float-3 12s ease-in-out infinite 1s;
}

.ta-note-4 {
    font-size: 6rem;
    top: 45%;
    right: 3%;
    animation: ta-float-1 9s ease-in-out infinite 2s;
}

.ta-note-5 {
    font-size: 4rem;
    bottom: 30%;
    left: 8%;
    animation: ta-float-2 7s ease-in-out infinite 0.8s;
}

.ta-note-6 {
    font-size: 7rem;
    bottom: 15%;
    left: 30%;
    animation: ta-float-3 11s ease-in-out infinite 1.5s;
}

.ta-note-7 {
    font-size: 5rem;
    bottom: 20%;
    right: 15%;
    animation: ta-float-1 8.5s ease-in-out infinite 0.3s;
}

.ta-note-8 {
    font-size: 9rem;
    top: 55%;
    left: 50%;
    animation: ta-float-2 13s ease-in-out infinite 2.5s;
}

.ta-staff-overlay {
    display: none;
    /* Rimosso per eliminare le linee bianche di sfondo */
}

.ta-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(140, 28, 46, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(80, 10, 20, 0.4) 0%, transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 0;
    pointer-events: none;
}

.ta-hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    margin-top: 4rem;
}

.ta-hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
    animation: ta-fade-in-up 0.8s ease both 0.2s;
}

.ta-hero-logo-wrap {
    margin: 0 auto 1.5rem;
    max-width: 380px;
    width: 100%;
    /* Animazione elegante solo in entrata */
    animation: ta-scale-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) both 0.3s;
}

.ta-hero-img-logo {
    width: 100%;
    height: auto;
    /* Più luminoso e staccato dallo sfondo */
    filter: brightness(1.3) contrast(1.1) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
}

.ta-hero-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(8rem, 22vw, 18rem);
    font-weight: 700;
    line-height: 0.85;
    color: var(--white);
    letter-spacing: -0.05em;
    animation: ta-scale-in 1s var(--ease-spring) both 0.3s, ta-glow-pulse 4s ease-in-out infinite 1.5s;
}

.ta-hero-anni {
    font-size: clamp(0.8rem, 2vw, 1rem);
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    animation: ta-fade-in-up 0.8s ease both 0.6s;
}

.ta-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 2.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    animation: ta-fade-in-up 0.8s ease both 0.7s;
}

.ta-hero-subtitle {
    font-size: clamp(0.88rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.38);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    animation: ta-fade-in-up 0.8s ease both 0.85s;
}

.ta-hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: ta-fade-in-up 0.8s ease both 1s;
}

.ta-btn-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.ta-btn-scroll svg {
    transition: transform var(--dur-base) ease;
}

@media (hover: hover) {

    .ta-btn-scroll:hover svg {
        transform: translateY(4px);
    }
}

.ta-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 2;
    animation: ta-fade-in-up-center 0.8s ease both 1.2s;
}

/* Quote */
.ta-quote-section {
    background: var(--bg-section-b);
    border-top: 1px solid var(--border);
    padding: 6rem 0;
}

.ta-quote-wrap {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ta-quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: var(--accent);
    opacity: 0.15;
    line-height: 0.7;
    margin-bottom: -1rem;
    display: block;
}

.ta-quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    color: var(--primary);
    line-height: 1.55;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.ta-quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.ta-quote-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin-bottom: 0.75rem;
}

.ta-quote-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.ta-quote-role {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Timeline */
.ta-timeline-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 7rem 0;
}

.ta-timeline {
    position: relative;
    margin-top: 3rem;
}

.ta-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--border) 5%, var(--border) 95%, transparent 100%);
}

.ta-tl-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    margin-bottom: 4rem;
    align-items: start;
}

.ta-tl-year-col {
    text-align: right;
    padding-right: 2rem;
    padding-top: 0.25rem;
}

.ta-tl-year {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.ta-tl-year-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.ta-tl-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ta-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
    flex-shrink: 0;
    margin-top: 0.35rem;
    position: relative;
    z-index: 1;
}

.ta-tl-item--alt .ta-tl-year-col {
    order: 3;
    text-align: left;
    padding-right: 0;
    padding-left: 2rem;
}

.ta-tl-connector {
    order: 2;
}

.ta-tl-item--alt .ta-tl-content {
    order: 1;
    text-align: right;
    padding-right: 2rem;
    padding-left: 0;
}

.ta-tl-item--alt .ta-tl-tag {
    display: block;
    text-align: right;
}

.ta-tl-content {
    padding-left: 2rem;
    padding-bottom: 1rem;
}

.ta-tl-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid rgba(140, 28, 46, 0.2);
    border-radius: var(--radius-pill);
    background: rgba(140, 28, 46, 0.04);
}

.ta-tl-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.ta-tl-text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.75;
}

.ta-tl-text strong {
    color: var(--text);
    font-weight: 500;
}

.ta-tl-item--anniv .ta-tl-content {
    background: linear-gradient(135deg, #1a0508 0%, #2a0910 100%);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 40px rgba(140, 28, 46, 0.2);
}

.ta-tl-dot--anniv {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
    animation: ta-dot-pulse 2.5s ease-in-out infinite;
    border-color: transparent;
}

.ta-tl-year--anniv {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

.ta-tl-tag--anniv {
    background: linear-gradient(90deg, #c8962a, #f0d060, #d4af37, #c8962a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ta-shimmer-gold 3s linear infinite;
    border-color: rgba(212, 175, 55, 0.3);
    background-color: rgba(212, 175, 55, 0.05);
}

.ta-tl-title--anniv {
    color: var(--white) !important;
}

.ta-tl-text--anniv {
    color: rgba(255, 255, 255, 0.48) !important;
}

.ta-tl-text--anniv strong {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Stats */
.ta-stats-section {
    background: linear-gradient(135deg, #1a0508 0%, #2d0a12 50%, #1a0508 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(140, 28, 46, 0.4);
    border-bottom: 1px solid rgba(140, 28, 46, 0.4);
}

.ta-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(140, 28, 46, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

.ta-stats-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 5rem 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ta-stats-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    margin-bottom: 3.5rem;
}

.ta-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.ta-stat-item {
    flex: 1;
    min-width: 150px;
    padding: 1rem 2rem;
    text-align: center;
}

.ta-stat-sep {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ta-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ta-stat-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    line-height: 1.4;
}

/* CTA finale */
.ta-cta-section {
    background: var(--bg-section-b);
    border-top: 1px solid var(--border);
    padding: 7rem 0;
}

.ta-cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.ta-cta-note {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.22;
    margin-bottom: 1.5rem;
    display: block;
    animation: ta-float-2 6s ease-in-out infinite;
}

.ta-cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.ta-cta-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.ta-cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ta-btn-outline-dark {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

@media (hover: hover) {

    .ta-btn-outline-dark:hover {
        background: var(--primary) !important;
        color: var(--white) !important;
    }
}

/* Responsive trentanni */
@media (max-width: 900px) {
    .ta-timeline::before {
        left: 28px;
        transform: none;
    }

    .ta-tl-item,
    .ta-tl-item--alt {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }

    .ta-tl-year-col {
        order: 1;
        grid-column: 2;
        text-align: left;
        padding: 0 0 0 1rem;
        padding-right: 0;
    }

    .ta-tl-connector {
        order: 0;
        grid-column: 1;
        grid-row: 1 / 3;
        align-items: center;
    }

    .ta-tl-content {
        order: 2;
        grid-column: 2;
        padding-left: 1rem;
        padding-right: 0;
        text-align: left !important;
    }

    .ta-tl-item--alt .ta-tl-content {
        text-align: left !important;
        padding-right: 0;
        padding-left: 1rem;
    }

    .ta-tl-item--alt .ta-tl-tag {
        text-align: left;
    }

    .ta-tl-item--alt .ta-tl-year-col {
        text-align: left;
        padding-left: 1rem;
        padding-right: 0;
    }

    .ta-hero-number {
        font-size: clamp(7rem, 28vw, 12rem);
    }
}

@media (max-width: 600px) {
    .ta-stats-inner {
        padding: 3.5rem 1.5rem;
    }

    .ta-stats-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .ta-stat-sep {
        display: none;
    }

    .ta-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ta-cta-buttons .btn {
        text-align: center;
    }
}


/* ══════════════════════════════════════════════════════════════
   COUNTDOWN E STATS INTEGRATI (BOTTOM)
   ══════════════════════════════════════════════════════════════ */
.ta-bottom-section {
    position: relative;
    padding: 8rem 0;
    background: #0f0a0a;
    overflow: hidden;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ta-bottom-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(140, 28, 46, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.ta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

/* Timer */
.ta-huge-countdown {
    text-align: center;
}

.hc-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2.5rem;
}

.hc-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.hc-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.hc-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.hc-sep {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    margin-top: -1.5rem;
}

/* Stats */
.ta-integrated-stats {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 900px;
}

.ta-is-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ta-is-num {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ta-is-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .hc-timer {
        gap: 0.5rem;
    }

    .hc-item {
        min-width: 60px;
    }

    .ta-integrated-stats {
        gap: 2rem;
        padding-top: 3rem;
        flex-direction: column;
    }

    .ta-bottom-section {
        padding: 5rem 0;
    }

    .hc-sep {
        margin-top: -1rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   LETTERA DEL PRESIDENTE — ta-letter-section
   Stile: carta pregiata, editoriale, caldo e personale
   ══════════════════════════════════════════════════════════════ */

.ta-letter-section {
    background: var(--bg-section-b);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 7rem 0;
}

/* Contenitore principale — effetto "foglio" */
.ta-letter-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 5rem 5.5rem;
    box-shadow:
        0 2px 8px rgba(10, 5, 0, 0.04),
        0 12px 40px rgba(10, 5, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Linea decorativa bordeaux sinistra */
.ta-letter-wrap::before {
    content: '';
    position: absolute;
    top: 3rem;
    bottom: 3rem;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
    border-radius: 0 2px 2px 0;
    opacity: 0.5;
}

/* ── Header ornamentale ────────────────────────────────────── */
.ta-letter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ta-letter-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ta-letter-orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-border), transparent);
}

.ta-letter-orn-symbol {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
}

.ta-letter-label {
    font-size: 0.68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
}

/* ── Corpo lettera ────────────────────────────────────────── */
.ta-letter-body {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.9;
    color: var(--text);
    font-weight: 400;
}

.ta-letter-body p {
    margin-bottom: 1.6rem;
}

.ta-letter-body strong {
    font-weight: 600;
    color: var(--primary);
}

.ta-letter-body em {
    font-style: italic;
    color: var(--accent);
}

/* Saluto iniziale */
.ta-letter-saluto {
    font-style: italic;
    color: var(--accent);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    margin-bottom: 2rem !important;
    font-weight: 400;
}

/* Paragrafo di chiusura — rientro e stile diverso */
.ta-letter-chiusura {
    border-left: 2px solid rgba(140, 28, 46, 0.2);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.97em;
    margin-top: 2.5rem !important;
}

/* ── Firma ────────────────────────────────────────────────── */
.ta-letter-firma {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
}

.ta-letter-firma-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
    font-style: italic;
}

.ta-letter-firma-role {
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.ta-letter-firma-anno {
    font-size: 0.78rem;
    color: var(--text-light);
    opacity: 0.6;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

/* ── Ornamento inferiore ─────────────────────────────────── */
.ta-letter-footer-orn {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    opacity: 0.4;
}

/* ── Responsive lettera ──────────────────────────────────── */
@media (max-width: 720px) {
    .ta-letter-wrap {
        padding: 3rem 2rem;
    }

    .ta-letter-wrap::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .ta-letter-wrap {
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-sm);
    }

    .ta-letter-body {
        font-size: 0.97rem;
        line-height: 1.8;
    }

    .ta-letter-chiusura {
        padding-left: 1rem;
    }
}

/* ── Sezione Donazioni 5x1000 ── */
.footer-donation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-donation-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.footer-donation-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-donation-title::before {
    content: "❤";
    color: var(--accent-light);
    font-size: 1rem;
}

.footer-donation-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.footer-donation-data {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.donation-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.donation-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
}

.donation-value-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) {


    .donation-value-wrap:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.donation-value {
    color: var(--white);
    font-family: monospace;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    user-select: all;
}

.donation-copy-btn {
    background: var(--accent);
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (hover: hover) {
    .donation-copy-btn:hover {
        background: var(--accent-light);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
}

.donation-copy-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .footer-donation {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .footer-donation-content {
        min-width: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-donation-data {
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;
        align-items: center;
    }

    .donation-item {
        width: 100%;
        align-items: center;
    }

    .donation-value-wrap {
        justify-content: center;
        width: 100%;
        max-width: 380px;
    }

    .donation-value {
        font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    }
}

/* Pulsanti copia per Mobile (sotto 768px) */
@media (max-width: 768px) {
    .donation-value-wrap {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.05);
    }
    .donation-value {
        word-break: break-all;
        overflow-wrap: anywhere;
        text-align: center;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--white);
    }
    .donation-copy-btn {
        width: 100%;
        padding: 0.85rem;
        min-height: 48px;
        background: var(--accent);
        border: none;
        border-radius: var(--radius-sm);
        color: var(--white);
        font-weight: bold;
        font-size: 1rem;
        gap: 0.5rem;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .donation-copy-btn::after {
        content: 'Copia';
        font-size: 1rem;
    }
    .donation-copy-btn svg {
        width: 20px;
        height: 20px;
    }
    .donation-copy-btn:active {
        transform: scale(0.98);
        background: var(--accent-light);
    }
}


/* ── Toast Notification ── */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .toast-notification {
        bottom: calc(1.5rem + env(safe-area-inset-bottom));
        top: auto;
        transform: translateX(-50%) translateY(100%);
    }
    
    .toast-notification.show {
        transform: translateX(-50%) translateY(0);
    }
}


/* ── Mobile Touch Feedback (:active) ── */
@media (max-width: 1024px) {

    /* Pulsanti */
    .btn:active,
    .hero-cta-primary:active,
    .nav-cta:active,
    .donation-copy-btn:active,
    button[type="submit"]:active,
    .form-submit:active,
    .back-to-top:active,
    .event-modal-close:active,
    .anniv-modal-close:active {
        transform: scale(0.94) !important;
        opacity: 0.8 !important;
        transition: transform 0.05s ease, opacity 0.05s ease !important;
    }

    /* Card */
    .event-card:active,
    .featured-event:active,
    .news-card:active,
    .componente-card:active,
    .gallery-item:active {
        transform: scale(0.98) !important;
        opacity: 0.9 !important;
        transition: transform 0.05s ease, opacity 0.05s ease !important;
    }

    /* Nav & Links */
    .nav-link:active,
    .mobile-nav-link:active,
    .mobile-nav-group-toggle:active,
    .footer-links a:active,
    .social-link:active,
    .ta-nav-btn:active {
        opacity: 0.5 !important;
        transition: opacity 0.05s ease !important;
    }
}

/* ── Navigazione prev/next notizie ─────────────────────────────────────────── */
.article-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.article-nav-next {
    text-align: right;
}

.article-nav-prev:hover,
.article-nav-next:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.article-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0.7;
}

.article-nav-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .article-nav {
        flex-direction: column;
    }
    .article-nav-next {
        text-align: left;
    }
}


/* ── Pulsante "Condividi questo evento" ─────────────────────────────────────── */
/* Posizionato in fondo a .event-modal-details, dopo la descrizione */
.btn-share-event {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.75rem 1.4rem;
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font-body, inherit);
    letter-spacing: 0.025em;
    cursor: pointer;
    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sottile sull'hover (pseudo-elemento) */
.btn-share-event::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(140, 28, 46, 0.04) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-share-event:hover::before { opacity: 1; }

.btn-share-event:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(140, 28, 46, 0.12);
    transform: translateY(-1px);
}

.btn-share-event:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-share-event svg {
    flex-shrink: 0;
    transition: stroke 0.22s ease, transform 0.22s ease;
    stroke: var(--text-muted, #aaa);
}

.btn-share-event:hover svg {
    stroke: var(--accent);
    transform: rotate(-8deg) scale(1.1);
}

/* Testo "Condividi questo evento" — flessibile, prende lo spazio rimanente */
.btn-share-event span {
    flex: 1;
    text-align: left;
}

/* Freccia decorativa a destra */
.btn-share-event::after {
    content: '↗';
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: var(--accent);
}

.btn-share-event:hover::after {
    opacity: 0.7;
    transform: translateX(0);
}

/* Stato: link copiato ✓ */
.btn-share-event--ok {
    color: #1d8a4a !important;
    border-color: #1d8a4a !important;
    box-shadow: 0 2px 12px rgba(29, 138, 74, 0.12) !important;
}
.btn-share-event--ok svg { stroke: #1d8a4a !important; }

/* Stato: errore */
.btn-share-event--err {
    color: #d73a49 !important;
    border-color: #d73a49 !important;
}
.btn-share-event--err svg { stroke: #d73a49 !important; }

/* Mobile: testo più compatto */
@media (max-width: 600px) {
    .btn-share-event {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb-nav {
    background: transparent;
    padding: 0.9rem 0 0.4rem;  /* più respiro sopra e sotto */
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;                     /* gap gestito dai separatori */
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.825rem;
    color: var(--text-muted, #888);
    line-height: 1.6;           /* altezza riga generosa */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.breadcrumb-link {
    color: var(--text-muted, #888);
    text-decoration: none;
    padding: 0.25rem 0.1rem;    /* area di tocco minima verticale */
    transition: color 0.15s ease;
    white-space: nowrap;
}

.breadcrumb-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb-item--current span {
    color: var(--text-light, #555);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 32ch;
    display: inline-block;
    vertical-align: bottom;
    padding: 0.25rem 0.1rem;
}

.breadcrumb-sep {
    color: var(--light-border, #ccc);
    font-size: 1rem;
    margin: 0 0.45rem;          /* spazio generoso attorno al separatore */
    user-select: none;
    line-height: 1;
}

/* Dark section (su sfondo scuro come .page-header e .article-header) */
.page-header .breadcrumb-link,
.page-header .breadcrumb-sep,
.page-header .breadcrumb-item--current span,
.article-header .breadcrumb-link,
.article-header .breadcrumb-sep,
.article-header .breadcrumb-item--current span {
    color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb-link:hover,
.article-header .breadcrumb-link:hover {
    color: rgba(255,255,255,0.95);
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .breadcrumb-nav {
        padding: 0.85rem 0 0.5rem;
    }
    .breadcrumb {
        font-size: 0.8rem;       /* non rimpicciolire ulteriormente */
        gap: 0;
        line-height: 1.7;
    }
    .breadcrumb-sep {
        margin: 0 0.35rem;
    }
    .breadcrumb-item--current span {
        max-width: 22ch;         /* tronca prima su schermi stretti */
    }
}

/* ── Skip to main content ───────────────────────────────────────────────────── */
/* Visibile SOLO a chi naviga da tastiera (screen reader / Tab key)             */
/* Su desktop: pill bordeaux centrata che scende dall'alto con spring bounce    */
/* Su mobile: barra full-width che appare in cima allo schermo                 */
.skip-to-main {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    min-width: 280px;
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-body, inherit);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0 0 2.5rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    box-shadow:
        0 8px 32px rgba(140, 28, 46, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    white-space: nowrap;
}

/* Icona freccia giù */
.skip-to-main::before {
    content: '↓';
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.8;
}

/* Stato focus: scende in campo visivo */
.skip-to-main:focus,
.skip-to-main:focus-visible {
    transform: translateX(-50%) translateY(0%);
    outline: none;
    box-shadow:
        0 12px 40px rgba(140, 28, 46, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.5) inset;
}

/* ── Mobile: barra piena, nessun left/transform misto ── */
@media (max-width: 600px) {
    .skip-to-main {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
        /* Sovrascrive il transform desktop con solo la Y */
        transform: translateY(-120%);
        border-radius: 0 0 1.25rem 1.25rem;
        padding: 0.95rem 1.5rem;
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }
    .skip-to-main:focus,
    .skip-to-main:focus-visible {
        /* Nessuna X da correggere — solo slide giù */
        transform: translateY(0%);
    }
}

/* ── Focus visible su card con role=button ──────────────────────────────────── */
/* Garantisce indicatore di focus visibile quando si naviga da tastiera */
.event-card:focus-visible,
.featured-event:focus-visible,
.gallery-item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-md, 8px);
}

/* =========================================================================
   NUOVA SEZIONE ABOUT EDITORIALE (Sostituisce .about-section)
   ========================================================================= */
.about-editorial {
    background: var(--bg-section-b);
}
.about-editorial-header {
    text-align: center;
    margin-bottom: var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-h2);
    font-weight: 400;
    color: var(--primary);
    margin-bottom: var(--sp-3);
    position: relative;
    padding-bottom: var(--sp-3);
    letter-spacing: -0.01em;
}
.about-editorial-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--border);
}
.about-editorial-lead {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-lead);
    text-wrap: balance;
    color: var(--primary);
    max-width: 60ch;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
}
.about-editorial-figure {
    width: 100%;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem) 0;
}
.about-editorial-figure picture {
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.about-editorial-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.about-editorial-caption {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-small);
    color: var(--text-light);
    text-align: center;
    margin-top: var(--sp-2);
}
.about-editorial-maestro {
    font-weight: 600;
    color: var(--text);
}

.about-editorial-spacing {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.about-editorial-stats {
    display: grid;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.about-editorial-stat {
    position: relative;
    padding: 0 var(--sp-2);
}
.about-editorial-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: var(--light-border);
}
.about-editorial-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.about-editorial-stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 0;
}

.about-editorial-repertoire {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.about-editorial-rep-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}
.about-editorial-rep-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-body);
    color: var(--text);
}
.rep-sep {
    color: var(--accent);
    font-weight: bold;
    user-select: none;
}

.about-editorial-quote-new {
    font-family: 'Playfair Display', serif;
    font-size: var(--fs-lead);
    color: var(--primary);
    text-align: center;
    max-width: 40ch;
    margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
    line-height: 1.5;
    text-wrap: balance;
}

@media (max-width: 700px) {
    .about-editorial-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
    }
    .about-editorial-stat:not(:last-child)::after {
        display: none;
    }
}


@media (max-width: 1100px) {
    .about-editorial-figure img {
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 700px) {
    .about-editorial-figure img {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 767px) {
    .events-grid:has(> .event-card:only-child),
    .events-grid:has(> div:only-child),
    .news-grid:has(> .news-card:only-child) {
        justify-content: center;
    }
}
