/* ============================================================
   RISCOPRIRE LE VOCI - CSS PRINCIPALE
   Palette: Azzurro #00A8E8 | Giallo #FFD60A | Blu Scuro #003566
   ============================================================ */

/* === GOOGLE FONTS === */
/* ══════════════════════════════════════════════════════════════
   CARATTERI OSPITATI IN CASA
   Prima erano caricati dal servizio di Google: ogni visitatore
   inviava il proprio indirizzo IP a Google prima ancora di
   rispondere al banner dei cookie. Ora i file stanno sul nostro
   server, nella cartella fonts/, e nessun dato esce dal sito.
   Tenuti solo gli alfabeti latino e latino esteso: cirillico,
   greco e vietnamita non servono e pesavano inutilmente.
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/Inter-latin-ext-01ba6c2a.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/Inter-latin-65850a37.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-latin-ext-a81e6c6c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-latin-6da252de.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-latin-ext-a81e6c6c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-latin-6da252de.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-latin-ext-a81e6c6c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/PlayfairDisplay-latin-6da252de.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}



/* === VARIABILI === */
:root {
    --primary: #00A8E8;
    --primary-light: #33BFEF;
    --primary-dark: #0089BD;
    --secondary: #FFD60A;
    --secondary-light: #FFE44D;
    --accent: #003566;
    --accent-light: #004E99;
    --green: #06FFA5;
    --dark: #001D3D;
    --darker: #00101F;
    --light: #F8F9FA;
    --gray-100: #F0F2F5;
    --gray-200: #E4E7EB;
    --gray-300: #CDD3DA;
    --gray-500: #8B95A2;
    --gray-700: #4A5568;
    --gradient-primary: linear-gradient(135deg, #00A8E8 0%, #003566 100%);
    --gradient-warm: linear-gradient(135deg, #FFD60A 0%, #FF8C00 100%);
    --gradient-hero: linear-gradient(160deg, #00A8E8 0%, #003566 50%, #001D3D 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(0,168,232,0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 50px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* === UTILITY === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === BARRA LOGHI ISTITUZIONALI === */
.institutional-bar {
    background: white;
    padding: 0.8rem 2rem;
    border-bottom: 2px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.institutional-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.inst-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* Navbar si sposta sotto la barra loghi */
.navbar {
    top: 75px !important;
}

.hero { margin-top: 158px !important; }

.page-hero {
    padding-top: 210px !important;
}

@media (max-width: 768px) {
    .institutional-bar {
        padding: 0.5rem 1rem;
    }
    .institutional-inner {
        gap: 1.2rem;
    }
    .inst-logo {
        height: 35px;
    }
    .navbar {
        top: 55px !important;
    }
    .hero { margin-top: 158px !important; }
    .page-hero {
        padding-top: 170px !important;
    }
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-brand img {
    height: 48px;
    width: auto;
    border-radius: 8px;
}

.nav-brand span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-menu a {
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-700);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(0,168,232,0.06);
}

.nav-menu a.active {
    color: var(--primary);
    background: rgba(0,168,232,0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    border-radius: var(--radius-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 6px auto;
    transition: var(--transition);
    border-radius: 2px;
}

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

/* === HERO SECTION === */
.hero {
    min-height: 56vh;
    background: var(--gradient-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-width: calc(var(--max-width) - 4rem);
    width: calc(100% - 4rem);
    margin: 158px auto 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    padding: 4rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,168,232,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,214,10,0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(6,255,165,0.1) 0%, transparent 40%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 900px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.92;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.5;
}

.hero p {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    margin-bottom: 2.5rem;
    opacity: 0.85;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(255,214,10,0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,214,10,0.5);
    background: var(--secondary-light);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
    border-color: white;
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(0,168,232,0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,168,232,0.4);
}

/* === STATS BAR === */
.stats-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: -60px auto 0;
    position: relative;
    z-index: 20;
    
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    color: white;
}

.stat-item .stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.3rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* === SECTIONS === */
.section {
    padding: 100px 0;
}

.section-alt {
    background: white;
}

.section-dark {
    background: var(--gradient-primary);
    color: white;
    max-width: calc(var(--max-width) - 4rem);
    width: calc(100% - 4rem);
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.8rem;
    padding: 0.3rem 1rem;
    background: rgba(0,168,232,0.08);
    border-radius: var(--radius-full);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-dark .section-header h2 {
    color: white;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,168,232,0.08);
}

.card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 15px 40px rgba(0,168,232,0.12);
    border-color: rgba(0,168,232,0.2);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,168,232,0.25);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.card p {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* === GLASS CARD === */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-5px);
}

/* === PARTNER SECTION === */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.partners-grid .partner-card {
    flex: 0 1 calc(25% - 1.2rem);
    min-width: 220px;
}

.partner-card:nth-child(odd) {
    border-top: 3px solid var(--primary);
}

.partner-card:nth-child(even) {
    border-top: 3px solid var(--secondary);
}

@media (max-width: 1024px) {
    .partners-grid .partner-card {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .partners-grid .partner-card {
        flex: 0 1 100%;
    }
}

.partner-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0,168,232,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.partner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0,168,232,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.partner-card:hover {
    border-color: rgba(0,168,232,0.2);
    box-shadow: 0 15px 40px rgba(0,168,232,0.12);
    transform: translateY(-6px);
    background: rgba(255,255,255,0.95);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-card:hover::after {
    opacity: 1;
}

.partner-card .partner-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 14px;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 8px;
}
.partner-card .partner-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-card:hover .partner-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,168,232,0.25);
}

.partner-card h4 {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.partner-card p {
    font-size: 0.83rem;
    color: var(--gray-500);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    border: 4px solid white;
    border-radius: 50%;
    top: 2rem;
    box-shadow: 0 0 0 4px rgba(0,168,232,0.2), var(--shadow-sm);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
.timeline-item:nth-child(even) .timeline-dot { left: -9px; }

.timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.timeline-content h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: var(--gray-700);
    font-size: 0.92rem;
}

/* === CONTENT BLOCKS === */
.content-block {
    background: white;
    border-radius: var(--radius-md);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.content-block h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.content-block p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.content-block ul {
    padding-left: 0;
}

.content-block li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Video items */
.gallery-item.video-item {
    border: 2px solid rgba(255,214,10,0.4);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 2;
}

.video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent var(--accent);
    margin-left: 4px;
}

.gallery-item:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--secondary);
}

/* RAI Badge */
.rai-badge {
    display: inline-block;
    background: linear-gradient(90deg, #0066CC, #003399);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-inner {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-inner img,
.lightbox-inner video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px; right: 0;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px; height: 48px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-caption {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* === FOOTER === */
.footer {
    background: var(--light);
    color: var(--dark);
    padding: 5rem 0 2rem;
    position: relative;
    border-top: 3px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-contact-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-bottom a {
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(0,168,232,0.1);
    border: 1px solid rgba(0,168,232,0.2);
    border-radius: var(--radius-full);
    color: var(--primary-light) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-site-link:hover {
    background: rgba(0,168,232,0.2);
    border-color: var(--primary);
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, rgba(0,168,232,0.97) 0%, rgba(0,53,102,0.97) 55%, rgba(0,29,61,0.97) 100%);
    color: white;
    padding: 1.5rem 2rem;
    z-index: 10000;
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 30px rgba(0,53,102,0.35);
    border-top: 1px solid rgba(255,255,255,0.15);
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show { display: block; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.cookie-text a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
}

.cookie-btn {
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-accept {
    background: var(--secondary);
    color: var(--dark);
}

.cookie-accept:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.cookie-reject {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 2px solid rgba(255,255,255,0.55);
}

.cookie-reject:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* === PAGE HERO (inner pages) === */
.page-hero {
    background: var(--gradient-hero);
    padding: 140px 2rem 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0,168,232,0.2) 0%, transparent 50%);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* === OBJECTIVES GRID === */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.objective-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.objective-card h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.objective-card p {
    color: var(--gray-700);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* === IMPACT STATS === */
.impact-stats {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.impact-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === CONVEGNO SECTION === */
.convegno-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.convegno-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,214,10,0.1);
    border-radius: 50%;
}

.convegno-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.convegno-card p {
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
}

.convegno-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.convegno-detail {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.convegno-detail h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.convegno-detail p {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 1;
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* === ANIMATIONS (AOS-like) === */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"].visible {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].visible {
    transform: translateX(0);
}

[data-animate="zoom"] {
    transform: scale(0.9);
}

[data-animate="zoom"].visible {
    transform: scale(1);
}

/* === COOKIE POLICY MODAL === */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    position: relative;
}

.cookie-modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cookie-modal-header h2 {
    font-size: 1.4rem;
    color: white;
    margin: 0;
}

.cookie-modal-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cookie-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-modal-body h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.cookie-modal-body p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.cookie-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cookie-modal-body th {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}

.cookie-modal-body td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.cookie-modal-body tr:hover {
    background: var(--gray-100);
}

@media (max-width: 768px) {
    .cookie-modal-content {
        width: 96%;
        max-height: 90vh;
    }
    .cookie-modal-body {
        padding: 1.5rem;
    }
}

/* === PRIVACY BLUR (minori) === */
.privacy-blur img {
    filter: blur(0px);
    transition: filter 0.3s ease;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        font-size: 1.3rem;
        padding: 1rem 2rem;
        color: var(--dark);
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section {
        padding: 60px 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 1rem !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 11px !important;
        right: auto !important;
    }

    .content-block {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .convegno-details {
        grid-template-columns: 1fr !important;
    }

    .stats-bar {
        margin: -30px 1rem 0;
        padding: 2rem 1.5rem;
    }

    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

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

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

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

    .rai-feature {
        grid-template-columns: 1fr !important;
    }

    .comm-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 90%;
        justify-content: center;
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; }

    .container { padding: 0 1.2rem; }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 80%;
        justify-content: center;
    }

    .page-hero {
        padding: 120px 1.5rem 50px;
    }

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

    .lightbox-nav { display: none; }
}


/* ── leggibilita delle tabelle sugli schermi stretti ── */
@media (max-width: 640px) {
    table { font-size: 0.82rem; table-layout: fixed; }
    table th, table td { padding: 0.55rem 0.45rem; word-break: break-word; hyphens: auto; }
    .cookie-inner { gap: 1rem; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .cookie-btn { flex: 1; max-width: 190px; }
}

/* ── claim di apertura ── */
.claim {
    text-align: center;
    padding: 4.2rem 1.5rem 2.8rem;
    max-width: 960px;
    margin: 0 auto;
}
.claim p {
    color: var(--accent);
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.claim-1 {
    font-size: clamp(1.55rem, 4.4vw, 2.65rem);
    font-weight: 300;
    line-height: 1.34;
}
.claim-2 {
    font-size: clamp(1.15rem, 3.1vw, 1.85rem);
    font-weight: 300;
    line-height: 1.45;
    margin-top: 0.75rem;
    color: var(--gray-700);
}
.claim-n {
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.claim::after {
    content: '';
    display: block;
    width: 70px; height: 4px;
    margin: 2.2rem auto 0;
    border-radius: 4px;
    background: var(--gradient-warm);
}
@media (max-width: 640px) {
    .claim { padding: 2.8rem 1.2rem 1.9rem; }
    .claim-1 { line-height: 1.28; }
    .claim-2 { margin-top: 0.9rem; line-height: 1.4; }
    .claim::after { margin-top: 1.7rem; }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 128px !important;
        width: calc(100% - 2.4rem);
        min-height: 52vh;
        padding: 3rem 1.4rem;
        border-radius: var(--radius-md);
    }
}
@media (max-width: 480px) {
    .hero { margin-top: 120px !important; min-height: auto; padding: 2.6rem 1.2rem; }
}

/* fascia video come riquadro */
.video-band {
    background: var(--gradient-primary);
    max-width: calc(var(--max-width) - 4rem);
    width: calc(100% - 4rem);
    margin: 3rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 0;
}
@media (max-width: 768px) {
    .section-dark, .video-band {
        width: calc(100% - 2.4rem);
        border-radius: var(--radius-md);
    }
    .video-band { padding: 1.8rem 0; margin: 2rem auto; }
}


/* ══════════════════════════════════════════════════════════════
   BERSAGLI DA TOCCARE
   Sugli schermi a tocco un pulsante sotto i 44px si sbaglia con
   il dito. Sul computer, dove il puntatore e preciso, non cambia
   nulla: la regola vale solo dove il puntatore e "grosso".
   ══════════════════════════════════════════════════════════════ */
@media (pointer: coarse) {
  .cookie-btn { min-height: 44px; padding-top: .7rem; padding-bottom: .7rem; }
  .social-link { width: 46px; height: 46px; }
}
