/* =========================================
   PROTEZIONE CIVILE - MAIN STYLESHEET
   ========================================= */

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ===== DESIGN TOKENS (Brand Guidelines) ===== */
:root {
    /* Colors */
    --color-primary: #E28103;
    --color-primary-dark: #C97000;
    --color-primary-light: #F5A623;
    --color-secondary: #2B3A8C;
    --color-secondary-dark: #1E2A6E;
    --color-secondary-light: #3D4FA8;
    --color-background: #FFFFFF;
    --color-surface: #F8F9FC;
    --color-border: rgba(255, 255, 255, 0.3);
    --color-text: #1A1A2E;
    --color-text-muted: #6B7280;
    --color-text-light: #FFFFFF;

    /* Typography - With fallbacks for when Google Fonts are blocked */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-accent: 'Pacifico', 'Brush Script MT', cursive;
    --font-mono: 'Source Code Pro', 'Courier New', Courier, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(226, 129, 3, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== PARALLAX SYSTEM ===== */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 150%;
    top: 0;
    left: 0;
    will-change: transform;
}

.parallax-layer--bg {
    background: linear-gradient(135deg,
            var(--color-secondary-dark) 0%,
            var(--color-secondary) 50%,
            var(--color-secondary-light) 100%);
    z-index: 0;
}

.parallax-layer--logos-slow,
.parallax-layer--logos-medium,
.parallax-layer--logos-fast {
    z-index: 1;
}

.parallax-layer--logos-slow {
    z-index: 1;
}

.parallax-layer--logos-medium {
    z-index: 2;
}

.parallax-layer--logos-fast {
    z-index: 3;
}

/* Floating Logo Elements */
.floating-logo {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.18;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.15));
    animation: floatLogo 8s ease-in-out infinite;
}

.floating-logo--md {
    width: 80px;
    height: 80px;
    opacity: 0.12;
    animation-duration: 10s;
}

.floating-logo--sm {
    width: 50px;
    height: 50px;
    opacity: 0.08;
    animation-duration: 12s;
}

/* Mobile optimizations for parallax logos */
@media (max-width: 768px) {
    .floating-logo {
        width: 60px;
        height: 60px;
        opacity: 0.1;
    }

    .floating-logo--md {
        width: 40px;
        height: 40px;
        opacity: 0.08;
    }

    .floating-logo--sm {
        width: 25px;
        height: 25px;
        opacity: 0.05;
    }
}

/* Alternate animation delays for variety */
.parallax-layer--logos-slow .floating-logo:nth-child(odd) {
    animation-delay: 0s;
}

.parallax-layer--logos-slow .floating-logo:nth-child(even) {
    animation-delay: 2s;
}

.parallax-layer--logos-medium .floating-logo:nth-child(odd) {
    animation-delay: 1s;
}

.parallax-layer--logos-medium .floating-logo:nth-child(even) {
    animation-delay: 3s;
}

.parallax-layer--logos-fast .floating-logo:nth-child(odd) {
    animation-delay: 0.5s;
}

.parallax-layer--logos-fast .floating-logo:nth-child(even) {
    animation-delay: 2.5s;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(2deg);
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
    }

    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* ===== MAIN WRAPPER ===== */
.main-content {
    position: relative;
    z-index: 10; /* Ensures content stays above parallax container */
    background: transparent;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-4) var(--space-6);
    transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.nav.scrolled {
    background: rgba(43, 58, 140, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.nav__container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    gap: var(--space-3);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 700;
    align-items: center;
}

.nav__logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.nav__logo-text {
    color: var(--color-text-light);
    display: flex;
    gap: var(--space-2);
    align-items: baseline;
}

.nav__logo-accent {
    font-family: var(--font-accent);
    color: var(--color-primary);
    font-weight: 400;
}

.nav__links {
    display: flex;
    gap: var(--space-8);
    list-style: none;
    align-items: center;
}

.nav__links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__cta {
    background: var(--color-primary) !important;
    padding: var(--space-2) var(--space-5) !important;
    border-radius: var(--radius-full) !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav__cta::after {
    display: none !important;
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav__mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-light);
    transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-20) var(--space-6) 140px var(--space-6);
    z-index: 1;
}

.hero__content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    border: 1px solid rgba(226, 129, 3, 0.3);
    border-radius: var(--radius-full);
    background: rgba(226, 129, 3, 0.1);
}

.hero__headline {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 800;
    color: var(--color-text-light);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero__headline-accent {
    font-family: var(--font-accent);
    color: var(--color-primary);
    font-weight: 400;
    display: block;
    font-size: 1.1em;
}

.hero__subheadline {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    font-weight: 400;
}

.hero__cta-group {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.hero__trust {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-primary);
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Visual Elements */
.hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hero__circle {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero__circle--1 {
    width: 300px;
    height: 300px;
    top: 15%;
    right: 10%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.15;
    animation-delay: 0s;
}

.hero__circle--2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    background: radial-gradient(circle, var(--color-text-light) 0%, transparent 70%);
    opacity: 0.08;
    animation-delay: 2s;
}

.hero__circle--3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 15%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.1;
    animation-delay: 4s;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* Hero Bulletin */
.hero__bulletin {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    backdrop-filter: blur(10px);
    margin-top: var(--space-8);
}

.hero__bulletin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff8a00 100%);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.hero__bulletin-icon svg {
    color: white;
}

.hero__bulletin-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hero__bulletin-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-light);
}

.hero__bulletin-desc {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.hero__bulletin-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

@media (max-width: 640px) {
    .hero__bulletin {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .hero__bulletin-content {
        width: 100%;
        align-items: center;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--light {
    background: var(--color-text-light);
    color: var(--color-secondary);
    border-color: var(--color-text-light);
}

.btn--light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.btn--ghost:hover {
    background: var(--color-text-light);
    color: var(--color-secondary);
}

/* ===== SECTION BASE ===== */
.section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
}

.section__header--light .section__title {
    color: var(--color-text-light);
}

.text-accent {
    color: var(--color-primary);
}

.text-accent-light {
    font-family: var(--font-accent);
    color: var(--color-text-light);
    font-weight: 400;
}

/* ===== MISSION SECTION ===== */
.mission {
    position: relative;
    z-index: 1;
    background: var(--color-background);
    padding: var(--space-24) 0;
}

.mission__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.mission__card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.mission__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mission__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mission__card:hover::before {
    opacity: 1;
}

.mission__card--featured {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-text-light);
}

.mission__card--featured::before {
    background: var(--color-primary);
    opacity: 1;
    height: 4px;
}

.mission__card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 129, 3, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
}

.mission__card--featured .mission__card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.mission__card h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.mission__card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.mission__card--featured p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== SERVICES SECTION ===== */
.services {
    position: relative;
    z-index: 1;
    background: var(--color-secondary);
    padding: var(--space-24) 0;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(226, 129, 3, 0.08) 30%, transparent 30%);
    background-size: 60px 60px;
    pointer-events: none;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.service-card__number {
    font-family: var(--font-mono);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: rgba(226, 129, 3, 0.2);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

.service-card__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.service-card__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width var(--transition-slow);
}

.service-card:hover .service-card__line {
    width: 100%;
}

/* ===== COMMUNITY SECTION ===== */
.community {
    position: relative;
    z-index: 1;
    background: var(--color-background);
    padding: var(--space-24) 0;
}

.community__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.stat-card {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card__value {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

.stat-card__number {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-card__suffix {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-card__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.community__quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-12);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border-radius: var(--radius-xl);
    position: relative;
}

.community__quote::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-8);
    font-family: var(--font-accent);
    font-size: 120px;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
}

.community__quote p {
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.community__quote cite {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-style: normal;
    font-weight: 600;
}

/* ===== BULLETIN SECTION ===== */
.bulletin {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-12);
    backdrop-filter: blur(10px);
}

.bulletin__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff8a00 100%);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.bulletin__icon svg {
    color: white;
}

.bulletin__content {
    flex: 1;
}

.bulletin__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

.bulletin__desc {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.bulletin__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.bulletin__btn svg {
    stroke: currentColor;
}

@media (max-width: 768px) {
    .bulletin {
        flex-direction: column;
        text-align: center;
    }

    .bulletin__icon {
        width: 80px;
        height: 80px;
    }

    .bulletin__icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ===== PHOTO CAROUSEL - 3D STACKED ===== */
.carousel {
    margin-top: var(--space-16);
}

.carousel__title {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.carousel__container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.carousel__track-container {
    flex: 1;
    position: relative;
    height: 480px;
    overflow: visible;
    padding: 15px 0;
}

.carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: calc(100% - 30px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Active slide - front and center */
.carousel__slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

/* Previous slide - behind on the left */
.carousel__slide.prev {
    opacity: 0.6;
    transform: translate(-85%, -50%) scale(0.8);
    z-index: 5;
}

/* Next slide - behind on the right */
.carousel__slide.next {
    opacity: 0.6;
    transform: translate(-15%, -50%) scale(0.8);
    z-index: 5;
}

/* Far slides - hidden behind */
.carousel__slide.far-prev {
    opacity: 0;
    transform: translate(-120%, -50%) scale(0.6);
    z-index: 1;
}

.carousel__slide.far-next {
    opacity: 0;
    transform: translate(20%, -50%) scale(0.6);
    z-index: 1;
}

.carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 20;
}

.carousel__arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel__dot:hover {
    background: var(--color-primary);
    opacity: 0.7;
}

.carousel__dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive Carousel */
@media (max-width: 991px) {
    .carousel__track-container {
        height: 350px;
    }

    .carousel__slide {
        width: 75%;
    }

    .carousel__arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575px) {
    .carousel__track-container {
        height: 280px;
    }

    .carousel__slide {
        width: 85%;
    }
}

/* ===== JOIN CTA SECTION ===== */
.join {
    position: relative;
    z-index: 1;
    background: var(--color-primary);
    padding: var(--space-24) 0;
    overflow: hidden;
}

.join__bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, var(--color-secondary) 25%, transparent 25%);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.join__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.join__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.join__text {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join__cta-group {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 20, 55, 0.9);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(22, 40, 95, 0.95), rgba(11, 20, 55, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

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

.modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color var(--transition-fast), transform var(--transition-fast);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal__close:hover {
    background: transparent;
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Body scroll lock when any modal or mobile menu is open */
html:has(body.modal-open),
html:has(body.no-scroll),
body.modal-open,
body.no-scroll {
    overflow: hidden !important;
    height: 100%;
}

.modal__header {
    padding: 0.6rem 1.5rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal__header h2 {
    font-size: 1.75rem;
    color: var(--color-text-light);
    margin: 0;
}

.modal__body {
    padding: 1.5rem 2rem;
    color: var(--color-text);
}

/* Wide Modal for Privacy Policy */
.modal__content--wide {
    max-width: 1100px;
    width: 95%;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden; /* prevent outer scrollbars */
}

.modal__body--scrollable {
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem 1.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex: 1;
}

.modal__body--scrollable::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
    /* Hide scrollbar for Chrome/Safari/Opera */
}

.modal__body--scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal__body--scrollable::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.modal__body--scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

.modal__body--scrollable h3 {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.modal__body--scrollable h4 {
    color: var(--color-text-light);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal__body--scrollable p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal__body--scrollable ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal__body--scrollable ul li {
    margin-bottom: 0.5rem;
}

.modal__body--scrollable a {
    color: var(--color-primary);
    text-decoration: underline;
}

.modal__body--scrollable a:hover {
    color: var(--color-primary-dark);
}

.modal__body--scrollable code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.policy-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.policy-table-wrapper::-webkit-scrollbar {
    display: none;
}

.policy-table {
    width: 100%;
    min-width: 560px; /* Prevent columns from collapsing */
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.policy-table th,
.policy-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-table th {
    background: rgba(226, 129, 3, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.policy-table tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    background: var(--color-secondary-dark);
    padding: var(--space-16) 0 8rem; /* Increased padding to allow center-scrolling */
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__logo {
    display: flex;
    gap: var(--space-3);
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    align-items: center;
}

.footer__logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer__logo-text {
    color: var(--color-text-light);
    display: flex;
    gap: var(--space-2);
    align-items: baseline;
}

.footer__logo-accent {
    font-family: var(--font-accent);
    color: var(--color-primary);
    font-weight: 400;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.footer__links h4,
.footer__contact h4 {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.footer__links ul,
.footer__contact ul {
    list-style: none;
}

.footer__links li,
.footer__contact li {
    margin-bottom: var(--space-3);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer__contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer__contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__contact li a:hover {
    color: var(--color-primary);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .footer__brand {
        grid-column: span 2;
        margin-bottom: var(--space-8);
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    .nav {
        padding: var(--space-3) var(--space-4);
    }
    
    .nav__logo {
        gap: var(--space-2);
    }

    .nav__logo-img {
        width: 32px;
        height: 32px;
    }

    .nav__logo-text {
        font-size: var(--text-sm);
    }

    .hero__headline {
        font-size: var(--text-4xl);
    }

    .hero__trust {
        gap: var(--space-6);
    }

    .mission__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: var(--space-4);
    }

    .footer__contact li,
    .footer__links li a {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .footer__brand {
        grid-column: span 2;
        text-align: center;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer__contact li,
    .footer__links li a {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .section__container {
        padding: 0 var(--space-4);
    }

    .nav__logo-text {
        font-size: 0.75rem; /* Ensure it fits on one line */
        white-space: nowrap;
    }
    
    .nav__container {
        gap: 0.5rem;
    }

    .hero {
        padding: var(--space-16) var(--space-4) 140px var(--space-4);
    }

    .hero__cta-group,
    .join__cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero__trust {
        flex-direction: column;
        gap: var(--space-6);
    }

    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

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

    .stat-card,
    .mission__card,
    .service-card {
        padding: var(--space-6);
    }

    .stat-card__number {
        font-size: var(--text-4xl);
    }
}

/* ===== CONTACT MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--color-background);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
    z-index: 2;
}

.modal__close:hover {
    background: transparent;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.modal__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.modal__subtitle {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select {
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-surface);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-background);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.phone-input {
    display: flex;
    gap: var(--space-2);
}

.phone-input select {
    width: 110px;
    flex-shrink: 0;
}

.phone-input input {
    flex: 1;
}

.btn--full {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-4);
}

.form-message {
    text-align: center;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn--loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn--loading span {
    visibility: hidden;
}

.btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive for form */
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal__content {
        padding: var(--space-6);
    }

    .phone-input {
        flex-direction: column;
    }

    .phone-input select {
        width: 100%;
    }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: var(--space-4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner__icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-btn {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn--accept {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--accept:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.cookie-btn--decline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--decline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .nav__mobile-toggle {
        display: flex;
        /* Show toggle on mobile */
        z-index: 1001;
        /* Above the menu overlay */
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(30, 42, 110, 0.98);
        /* Deep Blue/Secondary Dark */
        backdrop-filter: blur(15px);
        transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        z-index: 1000;
        gap: var(--space-8);
    }

    .nav__links.active {
        right: 0;
    }

    .nav__links a {
        font-size: var(--text-2xl);
        font-weight: 700;
    }

    /* Hamburger Animation to X */
    .nav__mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .nav__mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.no-scroll {
        overflow: hidden;
    }
}

/* ===== DONATE BUTTON (SOSTIENICI) ===== */
.btn--donate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn--donate:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.45);
}

.btn--donate:active {
    transform: translateY(0);
}

/* ===== 5x1000 DONATE MODAL ===== */
.modal__content--donate {
    max-width: 680px;
    width: 95%;
    background: #ffffff;
    color: #1f2937;
}

.modal__header--donate {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    text-align: center;
    padding: 1.5rem 2rem 1.25rem;
    border-bottom: 2px solid #bbf7d0;
}

.donate-modal__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.modal__header--donate h2 {
    font-size: 1.6rem;
    color: #111827;
    margin: 0 0 0.4rem;
}

.donate-highlight {
    color: #16a34a;
}

.modal__header--donate p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Close button for light donate modal — no bg, dark icon */
.modal__content--donate .modal__close {
    color: rgba(0, 0, 0, 0.35);
}

.modal__content--donate .modal__close:hover {
    color: #dc2626;
}

/* Donate body */
.modal__content--donate .modal__body {
    padding: 1.5rem 1.75rem;
    color: #1f2937;
    max-height: 65vh;
    overflow-y: auto;
}

/* Explainer row */
.donate-explainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.donate-explainer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 70px;
}

.donate-explainer__num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.donate-explainer__item--accent .donate-explainer__num {
    color: #16a34a;
}

.donate-explainer__label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.donate-explainer__sep {
    font-size: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Info box */
.donate-info-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.donate-info-box h3,
.donate-steps h3 {
    color: #111827;
    font-size: 1rem;
    margin: 0 0 0.6rem;
    font-weight: 700;
}

.donate-info-box p {
    color: #374151;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Steps */
.donate-steps {
    margin-bottom: 1.25rem;
}

.donate-steps__list {
    margin: 0;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.donate-steps__list li {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.donate-steps__list li strong {
    color: #111827;
}

.donate-steps__note {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.3rem;
    font-style: italic;
}

/* Codice Fiscale box */
.donate-cf-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f9fafb;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-top: 0.6rem;
}

.donate-cf-label {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.donate-cf-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 1px;
}

/* Note */
.donate-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fffbeb;
    border-left: 3px solid #d97706;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.donate-note svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.donate-note p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

/* Thanks */
.donate-thanks {
    text-align: center;
    padding: 0.9rem;
    background: #f0fdf4;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
}

.donate-thanks p {
    margin: 0;
    font-size: 0.95rem;
    color: #166534;
}

/* Hide scrollbars on donate modal */
.modal__content--donate {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal__content--donate::-webkit-scrollbar {
    display: none;
}

.modal__content--donate .modal__body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal__content--donate .modal__body::-webkit-scrollbar {
    display: none;
}