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

:root {
    --primary: #1a1a1a;
    --accent: #ed6f04;
    --accent-hover: #d46003;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    padding: 1.5rem 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-header {
    height: 50px;
    width: auto;
}

.header-cta {
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cta:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(237, 111, 4, 0.3);
}

.header-cta:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    margin-top: 90px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    padding: 3rem 3rem 0rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gray-100);
    border-radius: 50px;
    animation: fadeIn 1s ease-out 0.3s backwards;
    border: 1px solid var(--gray-200);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-badge:hover {
    transform: scale(1.05);
}

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero h1 span {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--gray-700);
    font-weight: 400;
    line-height: 1.5;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cta-finale{
    margin-top: 3rem;
    text-align: center;
    padding: 2.5rem;
    background: var(--gray-50);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(237, 111, 4, 0.08);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 2.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary span {
    transition: transform 0.3s ease;
}

a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:focus-visible,
a.btn-primary:active {
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(237, 111, 4, 0.4);
}

.btn-primary:hover span {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.5rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

/* Video Container */
.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Section */
.section {
    padding: 4rem 150px;
}

.section .container {
    max-width: 1600px;
}

/* Riduce lo spazio tra Quote / Come funziona e "Cos'è il COI Walking Game" */
.section:has(+ #come-funziona) {
    padding-bottom: 2rem;
}

#come-funziona {
    padding-bottom: 2rem;
}

#come-funziona + .section {
    padding-top: 2rem;
}

.section-alt {
    background: var(--gray-100);
}

#cosa-si-vince {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

#cosa-si-vince .section-header {
    margin-bottom: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-tag {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gray-100);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--gray-700);
    /* max-width: none;
    width: 100%; */
    margin: 0 auto;
    line-height: 1.7;
}

/* Quote */
.quote-section {
    text-align: center;
    padding: 2rem 2.5rem;
    /* max-width: none;
    width: 100%; */
    margin: 0 auto;
    background: var(--gray-50);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    color: var(--primary);
    line-height: 1.5;
    position: relative;
    padding: 0 1rem;
}

.quote-mark {
    color: var(--accent);
    opacity: 0.3;
    font-size: 1.2em;
    vertical-align: top;
}

.quote-mark-open {
    margin-right: 0.2em;
}

.quote-mark-close {
    margin-left: 0.2em;
}

/* Toggle */
.toggle-container {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    background: var(--gray-100);
    border-radius: 50px;
    padding: 0.6rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.toggle-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.toggle-btn.active:hover {
    transform: translateY(-2px);
}

.toggle-content {
    display: none;
}

.toggle-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.cards-grid .card {
    border-left: none;
    display: flex;
    flex-direction: column;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    border-color: var(--accent);
}

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

.card:hover h3 {
    color: var(--accent);
}

.card-content {
    transition: transform 0.3s ease;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.card p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--gray-700);
}

.card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Card Icon */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 20px;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon i {
    font-size: 2rem;
}

.card-icon img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* Slot icona/logo con altezza fissa: il testo (h3) parte alla stessa altezza */
.card-icon--logo {
    width: 180px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon--logo:has(img) img {
    max-height: 112px;
    max-width: 175px;
}

.card-icon--logo:has(i) i {
    font-size: 2.75rem;
}

.card:hover .card-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(237, 111, 4, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cards Stack (Vertical Layout) */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.cards-stack .card {
    border-left: none;
}

.cards-stack .card {
    width: 100%;
    position: relative;
}

/* Role panel — unified visitor narrative */
.role-panel {
    margin-top: 4rem;
    background: white;
    border-radius: 20px;
    padding: 3rem 3.5rem;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--accent);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.role-panel-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.role-panel-body p {
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.role-panel-body p:last-child {
    margin-bottom: 0;
}

.role-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.role-trait {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.role-trait i {
    font-size: 0.8rem;
    color: var(--accent);
}

.role-trait:hover {
    border-color: var(--accent);
    color: var(--primary);
}


/* Come si gioca — steps */
.game-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.game-steps-grid .game-step:last-child {
    grid-column: 1 / -1;
}

.game-steps-grid .game-step:last-child::before {
    background: rgb(80, 161, 80);
}

.game-steps-grid .game-step:last-child:hover {
    border-color: rgb(80, 161, 80);
}

.game-step {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-step:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.game-step:hover::before {
    transform: scaleY(1);
}

.game-step > span:not(.game-step-number),
.game-step-heading > span:not(.game-step-marker) {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.game-step-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.game-step-marker {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgb(80, 161, 80);
    box-shadow: 0 4px 12px rgba(80, 161, 80, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-step:hover .game-step-marker {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgb(80, 161, 80);
}

.game-step-heading > span:not(.game-step-marker) {
    margin-bottom: 0;
    margin-left: 0;
}

.game-step .game-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    margin-left: 0;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(237, 111, 4, 0.2);
    transition: all 0.3s ease;
}

.game-step:hover .game-step-number {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(237, 111, 4, 0.4);
}

.game-step p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Walking Game intro — box con max-width (immagine + testo) */
.walking-game-intro-box {
    container-type: inline-size;
    /* max-width: 1200px; */
    /* margin: 0 auto 3.5rem;
    padding: 3rem 3.5rem; */
    background: white;
    /* margin-left: auto;
    margin-right: auto; */
    /* border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06); */
}

.walking-game-intro {
    --walking-game-image-max: 600px;
    --spazio-immagine-testo: 5rem; /* spazio immagine → descrizione (layout impilato) */
    /* --spazio-titolo-immagine: calc(var(--spazio-immagine-testo) - 24px); titolo → immagine, più stretto */
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "image title"
        "image desc";
    column-gap: var(--spazio-immagine-testo);
    row-gap: 1.25rem;
    align-items: center;
    justify-items: start;
}

.walking-game-intro-title {
    grid-area: title;
    margin: 0;
    text-align: left;
    align-self: end;
}

.walking-game-intro-description {
    grid-area: desc;
    margin: 0;
    text-align: left;
    align-self: start;
}

.walking-game-showcase {
    grid-area: image;
    margin: 0;
    width: min(100%, var(--walking-game-image-max));
    max-width: var(--walking-game-image-max);
    padding: 1.5rem 0.75rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 3rem;
}

.walking-game-showcase img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* Layout impilato (zoom alto / box stretto): titolo → immagine → descrizione */
@container (max-width: 75rem) {
    .walking-game-intro {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "title"
            "image"
            "desc";
        justify-items: center;
        row-gap: 0;
    }

    .walking-game-intro-title {
        margin-bottom: 1.5rem;
        text-align: center;
        align-self: center;
        width: 100%;
    }

    .walking-game-intro-description {
        text-align: center;
        align-self: center;
        width: 100%;
        margin-bottom: 3rem;
    }

    .walking-game-showcase {
        width: min(100%, var(--walking-game-image-max));
        margin-bottom: 3rem;
    }
}

/* Output Grid */
.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.output-grid .output-item {
    border-left: none;
}

.output-item {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.output-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.output-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.output-item:hover::before {
    transform: scaleX(1);
}

.output-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.output-icon i {
    font-size: 2.5rem;
}

.output-item:hover .output-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(237, 111, 4, 0.3);
}

.output-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Program */
#programma .section-header {
    margin-bottom: 1.5rem;
}

#programma .program-container {
    margin-top: 1.5rem;
}

#programma {
    padding-bottom: 2.5rem;
}

#partecipa {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#chi-siamo {
    padding-top: 1.35rem;
}

.program-container {
    max-width: 900px;
    margin: 4rem auto 0;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.program-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.program-header {
    background: var(--primary);
    color: white;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237, 111, 4, 0.1) 0%, transparent 70%);
}

.program-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.program-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.program-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.program-item h4::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-item:hover h4::before {
    opacity: 1;
}

.program-item {
    padding: 3rem;
    border-bottom: 1px solid var(--gray-200);
}

.program-item:last-child {
    border-bottom: none;
}

.program-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.program-item ul {
    list-style: none;
    padding-left: 0;
}

.program-item ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.program-item ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}

.program-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.program-links .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 1.3rem 2.75rem;
    font-size: 0.95rem;
    gap: 0.85rem;
    min-width: 510px;
}

/* CTA Banner */
.cta-banner {
    background: var(--primary);
    color: white;
    padding: 2rem 2rem;
    border-radius: 24px;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(237, 111, 4, 0.15) 0%, transparent 70%);
}

.cta-banner h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cta-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    /* max-width: none;
    width: 100%; */
    margin: 0 auto 2rem;
}

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(237, 111, 4, 0.4);
}

/* Startup Grid */
.startup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.startup-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.startup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.startup-logo {
    margin-bottom: 1.5rem;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.startup-logo img {
    max-height: 100%;
    max-width: 240px;
    object-fit: contain;
}

.startup-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.startup-bio {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.startup-percorso {
    flex: 1;
}

.percorso-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(237, 111, 4, 0.1);
    border-radius: 20px;
}

.startup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.startup-description {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.startup-cta {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.startup-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* CTA Cards */
.cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.cta-card {
    background: white;
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    background-color: var(--gray-50);
}

.cta-card-primary:hover {
    border-color: var(--accent);
}

.cta-card-secondary:hover {
    border-color: var(--primary);
}

.cta-card-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: var(--gray-100);
    border-radius: 30px;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-card-icon i {
    font-size: 3rem;
}

.cta-card:hover .cta-card-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(237, 111, 4, 0.3);
}

.cta-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-final-note {
    /* max-width: none;
    width: 100%; */
    margin: 3rem auto 0;
    padding: 2.5rem 3rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.cta-final-note::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.cta-final-note-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.cta-final-note p:last-child {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 5rem 3rem 0;
}

.footer-white {
    background: white;
    margin: 3rem -3rem 0;
    padding: 2rem 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-brand h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
    max-width: 9.5rem;
}

.footer-links li {
    margin-bottom: 0;
    width: 100%;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.6rem 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
}

.footer-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(3px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
}

.footer-logos-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-partner-logos {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-credits {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-credits i {
    color: var(--accent);
    margin: 0 0.3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* Press Section */
.press-section {
    margin-top: 3rem;
    padding: 1rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.press-logos img {
    height: 140px;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.press-logos img:hover {
    transform: scale(1.05);
}

.partner-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 95%;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.partner-logos-row img {
    height: 40px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
    object-position: center;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logos img {
    height: 40px;
    width: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
}

/* Responsive */
.cards-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1rem;
}

.progress-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.progress-item.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(237, 111, 4, 0.3);
}

.progress-item:nth-child(2) {
    margin-top: 0;
}



/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-card.fade-in.visible:hover {
    opacity: 1;
    transform: translateY(-10px);
}

/* Staggered Animation */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.15s; }
.fade-in:nth-child(3) { transition-delay: 0.25s; }
.fade-in:nth-child(4) { transition-delay: 0.35s; }
.fade-in:nth-child(5) { transition-delay: 0.45s; }
.fade-in:nth-child(6) { transition-delay: 0.55s; }
.fade-in:nth-child(7) { transition-delay: 0.65s; }

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.float-hover:hover {
    animation: float 0.6s ease-in-out;
}

/* Scroll Reveal Animation */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        will-change: opacity, transform;
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Selection Color */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}

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

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

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 960px) {
    .game-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-steps-grid .game-step:last-child {
        grid-column: auto;
    }

    .game-step {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .logo-header {
        height: 45px;
    }

    .header-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section:has(+ #come-funziona),
    #come-funziona {
        padding-bottom: 1.5rem;
    }

    #come-funziona + .section {
        padding-top: 1.5rem;
    }

    #cosa-si-vince {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    #programma {
        padding-bottom: 2rem;
    }

    #partecipa {
        padding-top: 1.5rem;
        padding-bottom: 1.75rem;
    }

    #chi-siamo {
        padding-top: 1.15rem;
    }

    .hero {
        padding: 2.5rem 1.5rem 1.5rem;
        margin-top: 80px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.05rem;
    }

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

    .card {
        padding: 2.5rem;
    }

    .role-panel {
        padding: 2.5rem 2rem;
    }

    .role-panel-lead {
        font-size: 1.2rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon--logo {
        width: 150px;
        height: 100px;
    }

    .card-icon--logo:has(img) img {
        max-height: 88px;
        max-width: 140px;
    }

    .card-icon--logo:has(i) i {
        font-size: 2.35rem;
    }

    .card-icon i {
        font-size: 1.8rem;
    }

    .toggle-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        max-width: 100%;
    }

    .toggle-btn {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .program-links {
        align-items: stretch;
        max-width: 100%;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .video-container iframe {
        height: 280px;
    }

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

    .startup-card {
        padding: 2rem;
    }

    .startup-logo {
        height: 100px;
    }

    .startup-logo img {
        max-width: 180px;
    }

    .press-section {
        padding: 2rem;
    }

    .press-logos {
        gap: 1.5rem;
    }

    .press-logos img {
        height: 60px;
        max-width: 160px;
    }

    .partner-logos-row {
        gap: 3rem;
    }

    .partner-logos-row img {
        max-width: 160px;
    }

    .cta-card {
        padding: 2.5rem;
    }

    .cta-card-icon {
        width: 100px;
        height: 100px;
    }

    .cta-card-icon i {
        font-size: 2.5rem;
    }

    .cta-card h3 {
        font-size: 1.5rem;
    }

    .program-container {
        margin: 2rem auto 0;
        border-radius: 20px;
    }

    .program-header {
        padding: 2.5rem;
    }

    .program-header h3 {
        font-size: 1.8rem;
    }

    .program-item {
        padding: 2.5rem;
    }

    .footer {
        padding: 3rem 1.5rem 0;
    }

    .footer-white {
        margin: 2rem -1.5rem 0;
        padding: 1.5rem;
    }

    .footer-main {
        gap: 2.5rem;
    }

    .footer-links {
        max-width: 100%;
    }

    .footer-brand h3 {
        font-size: 1.6rem;
    }

    .footer-partner-logos {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .quote-section {
        padding: 1.5rem 1rem;
    }

    .quote-section p {
        font-size: 1.1rem;
    }

    .walking-game-intro-box {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-bottom: 1rem;
    }

    .walking-game-intro {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "title"
            "image"
            "desc";
        justify-items: center;
        row-gap: 0;
    }

    .walking-game-showcase {
        /* padding: 1.5rem 1rem; */
        border-radius: 20px;
        margin-bottom: 2rem;
        /* padding: 1rem 0.5rem; */
    }

    .walking-game-intro-title,
    .walking-game-intro-description {
        text-align: center;
        align-self: center;
        width: 100%;
    }

    .walking-game-intro-description {
        margin-bottom: 0;
    }

    .output-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .output-icon {
        width: 80px;
        height: 80px;
    }

    .output-icon i {
        font-size: 2rem;
    }

    .cta-cards {
        grid-template-columns: 1fr;
    }
    
    .program-links {
        max-width: 100%;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 2rem;
    }

    .role-panel {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .role-panel-lead {
        font-size: 1.1rem;
    }

    .role-traits {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

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

    .output-item {
        padding: 2.5rem 1.5rem;
    }

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

    .cta-card {
        padding: 2rem;
    }

    .program-header {
        padding: 2rem;
    }

    .program-item {
        padding: 2rem;
    }

    .section {
        padding: 2.5rem 1.5rem;
    }

    .section:has(+ #come-funziona),
    #come-funziona {
        padding-bottom: 1.25rem;
    }

    #come-funziona + .section {
        padding-top: 1.25rem;
    }

    #cosa-si-vince {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }

    #programma {
        padding-bottom: 1.75rem;
    }

    #partecipa {
        padding-top: 1.3rem;
        padding-bottom: 1.5rem;
    }

    #chi-siamo {
        padding-top: 1.15rem;
    }
}

