/* ═══════════════════════════════════════════
   FoodRiskByGender — Premium Theme v2
   ═══════════════════════════════════════════ */

:root {
    --green-50: #f0f6ff;
    --green-100: #dce8f5;
    --green-200: #b8d1eb;
    --green-300: #85b0d6;
    --green-400: #5190c0;
    --green-500: #2d73a8;
    --green-600: #1a5c8e;
    --green-700: #134a73;
    --green-800: #0e3a5c;
    --green-900: #0a2c47;
    --green-950: #051a2e;

    --olive-50: #f0f4f8;
    --olive-100: #e0e8f0;
    --olive-500: #3c6a8c;
    --olive-600: #2e5573;
    --olive-700: #24455a;
    --olive-800: #203a4d;
    --olive-900: #1a2d3e;

    --gold-400: #f0b429;
    --gold-500: #d99a06;
    --gold-600: #b07d04;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --font-sans: 'Oxygen', -apple-system, sans-serif;
    --font-heading: 'ClanWebPro-Black', 'Inter', sans-serif;

    --glow-green: 0 0 30px rgba(81,144,192,0.15), 0 0 60px rgba(81,144,192,0.05);
    --glow-green-strong: 0 0 20px rgba(81,144,192,0.25), 0 0 50px rgba(81,144,192,0.1);
}

@font-face {
    font-family: 'ClanWebPro-Black';
    src: url('../fonts/ClanWebPro-Black.woff2') format('woff2'),
         url('../fonts/ClanWebPro-Black.woff') format('woff'),
         url('../fonts/ClanWebPro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    text-align: justify;
    color: var(--slate-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--green-500), var(--olive-600));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--green-600), var(--olive-700)); }
html { scrollbar-color: var(--green-600) var(--slate-100); scrollbar-width: thin; }

/* ── PRELOADER ── */
.page-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--slate-900);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-preloader.loaded {
    opacity: 0; visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem; color: white;
    opacity: 0.8;
}
.preloader-logo em { font-style: normal; color: var(--green-400); }

/* ── GRAIN OVERLAY ── */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 9998;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── SECTION WAVE DIVIDERS ── */
.wave-divider {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}
.wave-divider-flip { transform: scaleY(-1); }

/* ── GUTENBERG FULL WIDTH ── */
.gutenberg-fullwidth { padding-top: 72px; }
.gutenberg-fullwidth > .alignfull {
    width: 100vw; max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.gutenberg-fullwidth > * { max-width: 100%; }
.gutenberg-fullwidth .wp-block-cover { min-height: 100vh !important; }
.gutenberg-fullwidth .wp-block-cover__inner-container { max-width: 1200px; margin: 0 auto; }

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.navbar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 72px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand .logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--green-600), var(--olive-600));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 14px;
}
.navbar-brand span { font-weight: 700; font-size: 1.15rem; color: var(--slate-900); }
.navbar-brand em { font-style: normal; color: var(--green-600); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--slate-500);
    transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--green-600);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--slate-700);
    margin: 5px 0; transition: 0.3s;
}

/* ── HERO — CSS PARALLAX ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: -20%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.3);
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(165deg, rgba(5,26,46,0.7) 0%, rgba(15,23,42,0.6) 50%, rgba(10,44,71,0.7) 100%);
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 6rem;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px; padding: 6px 16px 6px 8px;
    font-size: 0.8rem; color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-400);
    box-shadow: 0 0 12px var(--green-400);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--green-400); }
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    margin-top: 2.5rem;
}
.hero-stat {
    text-align: left;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .num {
    font-size: 1.6rem; font-weight: 800; color: var(--green-400);
    display: block;
}
.hero-stat .label {
    font-size: 0.78rem; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ── FUNDING BANNER ── */
.funding-banner {
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 1.25rem 2rem;
}
.funding-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 2rem;
    justify-content: center;
}
.funding-logo { height: 42px; width: auto; }
.funding-text { font-size: 0.82rem; color: var(--slate-500); text-align: left; }
.funding-text span { font-weight: 700; color: var(--slate-700); }

/* ── SECTION COMMON ── */
.section { padding: 6rem 2rem; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--green-700);
    margin-bottom: 1rem;
}
.section-tag::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--green-500);
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 640px;
    line-height: 1.7;
}

/* ── ABOUT ── */
.about { background: white; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    margin-top: 3rem;
}
.about-text p {
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.about-text p:first-child::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--green-700);
    font-weight: 700;
}
.about-highlights {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
/* Glassmorphism highlight cards */
.highlight-card {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.highlight-card:hover {
    border-color: var(--green-300);
    background: rgba(240,246,255,0.8);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26,92,142,0.12), var(--glow-green);
}
.highlight-card .icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--green-100), var(--olive-100));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.highlight-card h3 {
    font-size: 0.9rem; font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.4rem;
}
.highlight-card p {
    font-size: 0.8rem;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ── OBJECTIVES — GLASSMORPHISM ── */
.objectives {
    background: var(--slate-50);
    position: relative;
    overflow: hidden;
}
/* Gradient mesh background */
.objectives::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(81,144,192,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.objectives::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(60,106,140,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.obj-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
/* Glassmorphism objective cards */
.obj-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.obj-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08), var(--glow-green);
    border-color: rgba(81,144,192,0.3);
}
.obj-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--olive-500));
    opacity: 0;
    transition: opacity 0.4s;
}
.obj-card:hover::before { opacity: 1; }
/* Glow border on hover */
.obj-card::after {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(81,144,192,0.3), rgba(60,106,140,0.2), rgba(81,144,192,0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}
.obj-card:hover::after { opacity: 1; }
.obj-num {
    font-size: 3rem; font-weight: 900;
    color: var(--slate-100);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.4s;
}
.obj-card:hover .obj-num { color: var(--green-100); }
.obj-card h3 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.75rem;
}
.obj-card p {
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ── TIMELINE (replaces approach-flow) ── */
.approach { background: white; }
.timeline {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--green-300), var(--olive-500), var(--green-300));
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
    width: calc(50% - 40px);
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08), var(--glow-green);
    border-color: var(--green-300);
}
.timeline-dot {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background: white;
    border: 3px solid var(--green-500);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(81,144,192,0.1);
    transition: all 0.3s;
}
.timeline-item:hover .timeline-dot {
    background: var(--green-50);
    box-shadow: 0 0 0 12px rgba(81,144,192,0.15), var(--glow-green-strong);
}
.timeline-step-num {
    font-size: 0.7rem; font-weight: 700;
    color: var(--green-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.timeline-content h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
}
.timeline-content p {
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.6;
}

/* ── INFO BAND ── */
.info-band {
    background: white;
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
}
.info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}
.info-item { text-align: center; }
.info-item .val {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 700;
    color: var(--green-700);
}
.info-item .desc {
    font-size: 0.82rem;
    color: var(--slate-500);
    margin-top: 4px;
}

/* ── S.E.M. EXTRACTION ── */
.sem-section {
    background: linear-gradient(165deg, #f0f6ff, #f0f4f8);
    position: relative;
    overflow: hidden;
}
/* Gradient mesh */
.sem-section::before {
    content: '';
    position: absolute;
    top: 10%; right: 5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(26,92,142,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sem-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
    margin-top: 3rem;
}
.sem-text p {
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.sem-text strong { color: var(--green-800); font-weight: 700; }
.sem-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.sem-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--green-100);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.sem-card:hover {
    border-color: var(--green-300);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26,92,142,0.12), var(--glow-green);
}
.sem-card-value {
    font-family: var(--font-heading);
    font-size: 1.8rem; font-weight: 900;
    color: var(--green-700);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.sem-card-label {
    font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--green-600);
    margin-bottom: 0.6rem;
}
.sem-card p {
    font-size: 0.82rem;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ── IMPACT / NUMBERS ── */
.impact-section {
    background: linear-gradient(165deg, var(--slate-900), var(--green-950));
    color: white;
    position: relative;
    overflow: hidden;
}
.impact-section::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(81,144,192,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.impact-section .section-tag { color: var(--green-400); }
.impact-section .section-tag::before { background: var(--green-400); }
.impact-section .section-title { color: white; }
.impact-section .section-subtitle { color: rgba(255,255,255,0.5); }
.impact-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.impact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.impact-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(81,144,192,0.3);
    transform: translateY(-6px);
    box-shadow: var(--glow-green);
}
.impact-value {
    font-family: var(--font-heading);
    font-size: 2.5rem; font-weight: 900;
    color: var(--green-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.impact-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.impact-bar {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.impact-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-400), var(--green-500));
    border-radius: 2px;
    transition: width 1s ease;
}
.impact-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* ── VIDEO ── */
.video-section { background: white; }
.video-container {
    margin-top: 3rem;
    border-radius: 20px;
    overflow: hidden;
    background: var(--slate-900);
    aspect-ratio: 16/9;
    position: relative;
}
.video-container video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,0.4);
    gap: 1rem;
}
.video-play {
    width: 80px; height: 80px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--green-400);
    transition: all 0.3s;
}
.video-placeholder:hover .video-play {
    border-color: var(--green-400);
    background: rgba(81,144,192,0.1);
    transform: scale(1.1);
}
.video-placeholder p {
    font-size: 0.85rem;
    text-align: center;
    max-width: 400px;
}

/* ── GALLERY ── */
.gallery-section { background: var(--slate-50); }
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* ── RESULTS / BLOG ── */
.results-section { background: white; }
.results-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.result-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    border-color: var(--green-200);
}
.result-thumb { aspect-ratio: 16/9; overflow: hidden; }
.result-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.result-card:hover .result-thumb img { transform: scale(1.05); }
.result-content { padding: 1.5rem; }
.result-content time {
    font-size: 0.78rem;
    color: var(--green-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.result-content h3 {
    font-size: 1.1rem; font-weight: 700;
    margin: 0.5rem 0;
    color: var(--slate-800);
}
.result-content h3 a { transition: color 0.2s; }
.result-content h3 a:hover { color: var(--green-700); }
.result-content p {
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.6;
}
.results-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--slate-400);
    font-style: italic;
}

/* ── DOWNLOADS ── */
.downloads-section {
    background: var(--slate-50);
}
.downloads-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.download-card {
    display: flex; align-items: center; gap: 1.25rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.download-card:hover {
    border-color: var(--green-300);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06), var(--glow-green);
}
.download-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--green-700);
}
.download-info { flex: 1; }
.download-info h3 {
    font-size: 0.95rem; font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}
.download-info p {
    font-size: 0.8rem;
    color: var(--slate-500);
}
.download-btn {
    width: 40px; height: 40px;
    background: var(--green-600);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}
.download-btn:hover {
    background: var(--green-700);
    transform: scale(1.1);
}
.downloads-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--slate-400);
    font-style: italic;
}

/* ── TEAM ── */
.team-section {
    background: white;
    position: relative;
    overflow: hidden;
}
.team-section::before {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(81,144,192,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.08), var(--glow-green);
    border-color: var(--green-300);
}
.team-photo {
    width: 100px; height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    border: 3px solid var(--slate-100);
    transition: border-color 0.3s;
}
.team-card:hover .team-photo { border-color: var(--green-300); }
.team-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.team-photo-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--green-100), var(--olive-100));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--green-600);
}
.team-card h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.25rem;
}
.team-role {
    font-size: 0.78rem;
    color: var(--green-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.team-affiliation {
    font-size: 0.82rem;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ── FAQ ACCORDION ── */
.faq-section {
    background: var(--slate-50);
    position: relative;
    overflow: hidden;
}
.faq-section::before {
    content: '';
    position: absolute;
    top: 20%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(60,106,140,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.faq-list {
    margin-top: 3rem;
    max-width: 800px;
}
.faq-item {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item:hover { border-color: var(--green-200); }
.faq-question {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: none; border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    gap: 1rem;
}
.faq-question:hover { color: var(--green-700); }
.faq-toggle {
    width: 28px; height: 28px;
    background: var(--slate-100);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--slate-500);
    flex-shrink: 0;
    transition: all 0.3s;
}
.faq-item.active .faq-toggle {
    background: var(--green-100);
    color: var(--green-700);
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 400px;
}
.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.92rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ── NEWSLETTER ── */
.newsletter-section {
    background: linear-gradient(165deg, var(--green-800), var(--olive-700));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.newsletter-section .section-tag { color: rgba(255,255,255,0.7); }
.newsletter-section .section-tag::before { background: rgba(255,255,255,0.4); }
.newsletter-section .section-title { color: white; }
.newsletter-section .section-subtitle { color: rgba(255,255,255,0.65); margin: 0 auto; }
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2.5rem auto 0;
    gap: 0.75rem;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}
.newsletter-form button {
    padding: 0.9rem 2rem;
    background: white;
    color: var(--green-700);
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.newsletter-form button:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ── PARTNERS — GLASSMORPHISM ── */
.partners {
    background: linear-gradient(165deg, var(--slate-900), var(--green-950));
    color: white;
    position: relative;
    overflow: hidden;
}
.partners::before {
    content: '';
    position: absolute;
    top: -20%; left: 30%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(81,144,192,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.partners .section-tag { color: var(--green-400); }
.partners .section-tag::before { background: var(--green-400); }
.partners .section-title { color: white; }
.partners .section-subtitle { color: rgba(255,255,255,0.5); }
.partners-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
      margin-top: 3rem;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;

}
.partner-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    backdrop-filter: blur(12px);
}
.partner-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(81,144,192,0.3);
    transform: translateY(-8px);
    box-shadow: var(--glow-green);
}
.partner-logo-wrap {
    height: 70px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.partner-logo-wrap img {
    max-height: 60px; max-width: 180px;
    width: auto; object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s;
}
.partner-card:hover .partner-logo-wrap img { opacity: 1; }
.partner-card h3 {
    font-size: 1rem; font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
}
.partner-card .role {
    font-size: 0.78rem;
    color: var(--green-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.partner-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--slate-900);
    color: rgba(255,255,255,0.4);
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-about-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    margin-top: 1rem;
}
.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--green-400); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 2rem;
}
.footer-brand {
    font-weight: 700; font-size: 1rem; color: white;
}
.footer-brand em { font-style: normal; color: var(--green-400); }
.footer-info { font-size: 0.82rem; }
.footer-funding {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 1200px; margin-left: auto; margin-right: auto;
}

/* ── BACK TO TOP ── */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--green-600);
    color: white;
    border: none;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(26,92,142,0.3);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--green-700);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26,92,142,0.4);
}

/* ── LAZY LOADING BLUR PLACEHOLDER ── */
img[loading="lazy"] {
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    transition: opacity 0.4s ease;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
    .hero-inner { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .obj-grid { grid-template-columns: 1fr 1fr; }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    .sem-grid { grid-template-columns: 1fr; }
    .sem-stats { grid-template-columns: 1fr 1fr; }
    .funding-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
    .impact-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
        gap: 0.5rem;
    }
    .nav-toggle { display: block; }
    .hero { min-height: 100vh; }
    .hero-bg { background-attachment: scroll; }
    .hero-inner { padding: 7rem 1.5rem 4rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.92rem; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
    .hero-stat .num { font-size: 1.1rem; }
    .hero-stat .label { font-size: 0.65rem; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.92rem; }
    .obj-grid { grid-template-columns: 1fr; }
    .obj-card { padding: 1.5rem; }
    .obj-num { font-size: 2rem; }
    /* Timeline mobile */
    .timeline::before { left: 24px; }
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
    }
    .timeline-content { width: 100%; }
    .timeline-dot {
        left: 24px; top: 1rem;
        transform: translateX(-50%) translateY(0);
        width: 40px; height: 40px;
        font-size: 1.1rem;
    }
    .partners-grid { grid-template-columns: 1fr; }
    .partner-card { padding: 1.5rem; }
    .info-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .info-item .val { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section { padding: 3.5rem 1.25rem; }
    .sem-grid { gap: 2rem; }
    .sem-stats { grid-template-columns: 1fr; }
    .sem-card { padding: 1.25rem; }
    .sem-card-value { font-size: 1.4rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .video-container { aspect-ratio: 16/10; border-radius: 12px; }
    .funding-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .funding-logo { height: 36px; }
    .funding-text { font-size: 0.75rem; }
    .highlight-card { padding: 1.25rem; }
    .about-highlights { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-card { padding: 1.5rem; }
    .impact-value { font-size: 2rem; }
    .downloads-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { width: 100%; }
    .wave-divider { height: 40px; }
}
@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; gap: 0.5rem; }
    .hero-stat { padding: 0.75rem 0; }
    .info-grid { grid-template-columns: 1fr; }
    .navbar-inner { padding: 0 1rem; height: 60px; }
    .navbar-brand span { font-size: 1rem; }
    .section { padding: 3rem 1rem; }
    .team-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PRINT STYLESHEET
   ═══════════════════════════════════════════ */
@media print {
    body::before,
    .navbar,
    .page-preloader,
    .back-to-top,
    .newsletter-section,
    .wave-divider,
    .video-section,
    .nav-toggle { display: none !important; }

    body {
        font-size: 12pt;
        color: #000;
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .hero {
        min-height: auto;
        padding: 2rem;
        background: #0e3a5c !important;
        color: white;
    }
    .hero-bg, .hero::after { display: none; }
    .hero-inner { padding: 2rem 0; }
    .hero h1 { font-size: 2rem; color: #000; }
    .section { padding: 2rem 0; }
    .section-inner { max-width: 100%; }
    .obj-grid,
    .partners-grid,
    .impact-grid { grid-template-columns: 1fr 1fr; }
    .about-grid,
    .sem-grid { grid-template-columns: 1fr; }
    .partner-card,
    .obj-card,
    .highlight-card,
    .sem-card,
    .impact-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    .partners {
        background: white !important;
        color: #000;
    }
    .partners .section-title,
    .partner-card h3 { color: #000; }
    .partner-card .role { color: #0e3a5c; }
    .partner-card p,
    .partners .section-subtitle { color: #555; }
    .partner-logo-wrap img { filter: none; opacity: 1; }
    a[href]::after { content: none; }

    .timeline::before { background: #ccc; }
    .timeline-content { border: 1px solid #ccc; box-shadow: none; }
    .impact-section { background: white !important; color: #000; }
    .impact-section .section-title { color: #000; }
    .impact-value { color: #0e3a5c; }
    .impact-label, .impact-desc { color: #555; }
}


/* ── RISULTATI / PUBBLICAZIONI (cards) ── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}
.result-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.6rem 1.6rem 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.result-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-300);
    box-shadow: var(--glow-green);
}
.result-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    border-radius: 12px;
}
.result-date {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--green-600);
    background: var(--green-50);
    padding: 4px 10px;
    border-radius: 999px;
}
.result-title {
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--slate-900);
    margin: 0.35rem 0 0;
}
.result-authors {
    font-size: 0.85rem;
    color: var(--green-600);
    font-weight: 600;
    margin: 0;
}
.result-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--slate-500);
    margin: 0.15rem 0 0;
}
.result-link {
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--green-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.result-card:hover .result-link span { transform: translateX(3px); }
.result-link span { transition: transform .25s ease; display: inline-block; }
