/* ─── STATS BAR WRAPPER ─────────────────────────────────────── */
.stats-bar-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 1.5rem;
}

.stats-bar {
    width: 100%;
}

.stats-logo-slot {
    position: absolute;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slot-inner {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slot-img {
    width: 200%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 800px) {
    .stats-bar-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stats-logo-slot {
        width: auto;
    }
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #D4002A;
    --blue: #1A3A8F;
    --red2: #B8001F;
    --blue2: #0F2566;
    --white: #ffffff;
    --light: #e8ecf8;
    --text: #1a1a2e;
    --muted: #5a6480;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: #e8ecf8;
    color: var(--text);
    overflow-x: hidden;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--red2) 0%, var(--red) 30%, var(--blue) 70%, var(--blue2) 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    animation: blobMove 12s ease-in-out infinite alternate;
}

.hero::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff4060, transparent 70%);
    top: -200px;
    left: -150px;
}

.hero::after {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #4a7fff, transparent 70%);
    bottom: 50px;
    right: -100px;
    animation-delay: -6s;
}

@keyframes blobMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, 20px) scale(1.1);
    }
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    animation: fadeDown 1s ease 0.2s both;
}

.hero h1 span {
    background: linear-gradient(90deg, #ffdd57, #ff9a3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    margin-top: 1.4rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    animation: fadeDown 1s ease 0.35s both;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    margin-top: -2px;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

/* ─── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
    background: linear-gradient(#e8ecf8, #e8ecf8) padding-box,
        linear-gradient(135deg, var(--red) 0%, var(--blue) 100%) border-box;
    border: 3px solid transparent;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(26, 58, 143, 0.08);
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
}

.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    min-width: 150px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
section {
    padding: 6rem 1.5rem;
    background: #e8ecf8;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-title .accent {
    background: linear-gradient(90deg, var(--red), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 750px;
}

/* ─── COSA È ────────────────────────────────────────────────── */
#cosa-e {
    padding-bottom: 2rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 850px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.intro-card {
    background: linear-gradient(135deg, var(--red), var(--blue));
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #fff;
    box-shadow: 0 20px 60px rgba(26, 58, 143, 0.25);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.intro-card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.intro-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro-card p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.intro-card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ─── ATTIVITÀ ──────────────────────────────────────────────── */
.activities-bg {
    background: #e8ecf8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* removed divider style */

.activities-bg {
    background: #e8ecf8;
    padding-bottom: 3rem;
}

#requisiti {
    padding-top: 3rem;
}

.activity-card {
    /* AGGIORNATO: Box interni impostati su bianco puro */
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    /* Ombra più pronunciata e morbida per dare profondità sul fondo chiaro */
    box-shadow: 0 10px 40px rgba(26, 58, 143, 0.06);
    border-top: 5px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.activity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 58, 143, 0.14);
}

.activity-card:nth-child(1) {
    border-top-color: var(--red);
    transition-delay: 0.05s;
}

.activity-card:nth-child(2) {
    border-top-color: #6b3fa0;
    transition-delay: 0.1s;
}

.activity-card:nth-child(3) {
    border-top-color: var(--blue);
    transition-delay: 0.15s;
}

.activity-card:nth-child(4) {
    border-top-color: #e05c00;
    transition-delay: 0.2s;
}

.activity-card:nth-child(5) {
    border-top-color: #0a8a5e;
    transition-delay: 0.25s;
}

.activity-card:nth-child(6) {
    border-top-color: #c0002a;
    transition-delay: 0.3s;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.activity-card:nth-child(1) .card-icon {
    background: rgba(212, 0, 42, 0.1);
}

.activity-card:nth-child(2) .card-icon {
    background: rgba(107, 63, 160, 0.1);
}

.activity-card:nth-child(3) .card-icon {
    background: rgba(26, 58, 143, 0.1);
}

.activity-card:nth-child(4) .card-icon {
    background: rgba(224, 92, 0, 0.1);
}

.activity-card:nth-child(5) .card-icon {
    background: rgba(10, 138, 94, 0.1);
}

.activity-card:nth-child(6) .card-icon {
    background: rgba(192, 0, 42, 0.1);
}

/* Testi scuri ad alto contrasto per risaltare sul bianco delle card */
.activity-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.activity-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── REQUISITI ─────────────────────────────────────────────── */
.timeline {
    margin-top: 4rem;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red), var(--blue));
    border-radius: 4px;
}

.tl-item {
    position: relative;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.tl-dot {
    position: absolute;
    left: -62px;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--blue));
    border: 4px solid #e8ecf8;
    box-shadow: 0 0 0 4px rgba(26, 58, 143, 0.1);
    z-index: 2;
}

.tl-item h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.tl-item p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── BENEFICI ──────────────────────────────────────────────── */
.benefits-bg {
    background: linear-gradient(90deg, var(--blue2) 0%, var(--blue) 35%, var(--red) 100%);
    position: relative;
    overflow: hidden;
}

.benefits-bg .section-title {
    color: #fff;
}

.benefits-bg .section-title .accent {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    justify-content: center;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    color: #fff;
    text-align: center;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    opacity: 0;
    transform: scale(0.9);
}

.benefit-card.visible {
    opacity: 1;
    transform: scale(1);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    display: block;
}

.benefit-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #fff;
}

.benefit-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.7;
}

/* ─── STEPS (COME CANDIDARSI) [CONGELATO / BLOCCATO] ────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--blue2) 0%, var(--blue) 35%, var(--red) 100%);
    border-radius: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 58, 143, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 290px;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 58, 143, 0.25);
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin: 0 auto 1.8rem;
    font-size: 1.5rem;
    color: var(--blue2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.step-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.step-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}