/* RESET + BASE  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

/* CONTAINER & GRID */
.container {
    width: min(92%, 1240px);
    margin-inline: auto;
}

/* HEADER & NAV */
.header {
    position: fixed;
    inset-block-start: 0;
    inline-size: 100%;
    z-index: 1000;
    background: rgba(29, 58, 138, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-block-end: 1px solid rgba(255,255,255,0.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 1.1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-img {
    height: 46px;
    transition: transform 0.28s ease;
}

.logo-img:hover {
    transform: scale(1.1) rotate(8deg);
}

.logo-text {
    color: #ff9800;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.6rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.25s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    block-size: 2px;
    background: #ff9800;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.28s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff9800;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    isolation: isolate;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.68) 55%, rgba(0,0,0,0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    inset-inline: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 3;
    padding-inline: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.65);
}

.hero-content h1 {
    font-size: clamp(5.5rem, 11vw, 9.5rem);
    font-weight: 900;
    color: #ff9800;
    line-height: 0.88;
    margin-bottom: 1.2rem;
    letter-spacing: -4px;
}

.lead {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 400;
    max-width: 860px;
    margin-bottom: 0.8rem;
}

.subtitle {
    font-size: 1.4rem;
    opacity: 0.92;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff9800;
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.5);
    background: #fb8c00;
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.35);
    color: white;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
    transition: all 0.3s ease;
    user-select: none;
}

.slider-arrow:hover {
    background: rgba(255, 152, 0, 0.75);
    transform: translateY(-50%) scale(1.15);
}

.slider-arrow.prev { left: 25px; }
.slider-arrow.next { right: 25px; }

.slider-controls {
    position: absolute;
    left: 50%;
    bottom: 3.5rem;
    transform: translateX(-50%);
    display: flex;
    gap: 1.2rem;
    z-index: 4;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #ff9800;
    transform: scale(1.4);
}

/* SEZIONI COMUNI */
   
main.page-main {
    padding-top: 140px; /* spazio per header fisso */
}

.section {
    padding: 9rem 0 7rem;
}

.section-title {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 4rem;
}

.light-bg {
    background: white;
}

/* Intro / Come gioca (index) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.gameplay-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    transition: transform 0.4s ease;
}

.gameplay-img:hover {
    transform: scale(1.03);
}

.img-caption {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Features (index) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
}

.feature-card {
    background: white;
    padding: 2.4rem 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    text-align: center;
    transition: all 0.32s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3.6rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.9rem;
    color: #1e40af;
}

/* Chi siamo & Descrizione malattia */
.chisiamo, .descrizione-malattia {
    padding: 10rem 0 8rem;
}

.testo-gruppo, .testo-malattia {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.18rem;
}

.testo-gruppo p, .testo-malattia p {
    margin-bottom: 1.6rem;
}

.nota-finale {
    margin-top: 3.5rem;
    padding: 2rem;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.22rem;
    text-align: center;
}

/* FOOTER  */
.footer {
    background: #1e3a8a;
    color: white;
    text-align: center;
    padding: 3.5rem 1rem 2.5rem;
}

.footer p {
    margin: 0.6rem 0;
    font-size: 1.1rem;
    opacity: 0.92;
}

.footer p:first-child {
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 7.8rem; }
    .lead           { font-size: 2.2rem; }
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar        { flex-direction: column; gap: 1.3rem; padding-block: 1.4rem; }
    .nav-links     { flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
    .hero          { min-height: 640px; }
    .hero-content h1 { font-size: 5.8rem; }
    .section       { padding: 6rem 0 5rem; }
    .section-title { font-size: 2.6rem; }
    .slider-arrow  { width: 50px; height: 50px; font-size: 1.8rem; }
    .slider-arrow.prev { left: 12px; }
    .slider-arrow.next { right: 12px; }
}

/* CONTATTI */

.contatti-section {
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.38rem;
    color: #4b5563;
    max-width: 720px;
    margin: 0 auto 4.5rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.32s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}

.team-photo-placeholder {
    height: 220px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.08);
}

.team-card h3 {
    font-size: 1.65rem;
    color: #1e40af;
    margin: 1.4rem 1.2rem 0.6rem;
}

.role {
    color: #6b7280;
    font-size: 1.05rem;
    margin-bottom: 1.3rem;
    font-weight: 500;
}

.contact-info {
    padding: 0 1.6rem 2rem;
}

.contact-info p {
    margin: 0.9rem 0;
    font-size: 1.05rem;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contatti-section {
        padding: 7rem 0 5rem;
    }
    .section-subtitle {
        font-size: 1.22rem;
        padding: 0 1rem;
    }
}

/* CONTATTI – miglioramenti per centrare meglio i contatti */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem 2rem;
    justify-items: center;          /* centra orizzontalmente le card */
}

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.32s ease;
    text-align: center;
    width: 100%;
    max-width: 380px;               /* limita la larghezza massima */
}

.contact-info {
    padding: 0 2rem 2.2rem;
}

.contact-info p {
    margin: 1.1rem 0;
    font-size: 1.08rem;
    line-height: 1.5;
}

.contact-info strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #1e40af;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Su schermi piccoli torna a una colonna sola */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
    
    .team-card {
        max-width: 420px;
    }
}

.contact-info p {
    margin: 1.1rem 0;
    font-size: 1.08rem;
    line-height: 1.5;
}

.contact-info strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #1e40af;
    font-weight: 600;
}

.contact-info a {
    color: #c13584;               /* colore tipico Instagram */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #a92c6e;
    text-decoration: underline;
}

/* Opzionale: piccolo spazio extra tra le righe */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;                  /* aumenta leggermente lo spazio verticale tra le due righe */
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;          /* spazio verticale tra le due righe */
}

.team-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem 3rem;     /* spazio orizzontale tra le card nella stessa riga */
    justify-items: center;
}

.team-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.32s ease;
    text-align: center;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}

/* Mobile: tutto si impila */
@media (max-width: 800px) {
    .team-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.highlight-orange {
    color: #ff9800 !important;
    font-weight: 600;
}

/* Opzionale: rendi i link social più vivaci quando hover */
.contact-info a {
    color: #2563eb;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #ff9800;
    text-decoration: underline;
}

.contact-info {
    padding: 0 1.8rem 1.8rem;     /* meno padding sotto */
}

.contact-info p {
    margin: 0.6rem 0;             /* spazio verticale molto ridotto tra le righe */
    font-size: 1.05rem;
    line-height: 1.4;
}

.contact-info strong {
    margin-right: 0.4rem;         /* piccolo spazio solo dopo i : */
    color: #ff9800;
    font-weight: 600;
}

/* Opzionale: se vuoi ancora più compatto */
.team-card {
    padding-bottom: 1.2rem;       /* meno spazio sotto l'ultima riga */
}

/* CONTATTI – nomi e ruoli in blu, etichette in arancione */

.highlight-blue {
    color: #1e40af !important;   /* stesso blu dei titoli di sezione */
    font-weight: 700;
}

.highlight-orange {
    color: #ff9800 !important;
    font-weight: 600;
}

/* Mantieni i link con hover coerente */
.contact-info a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #ff9800;
    text-decoration: underline;
}

/* PANORAMICA SCUOLA (contatti) */

.school-overview {
    max-width: 820px;
    margin: 0 auto 5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.school-title {
    font-size: 2.6rem;
    color: #1e40af;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.school-lead {
    font-size: 1.38rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.school-content {
    font-size: 1.12rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: left;
}

.school-content p {
    margin-bottom: 1.6rem;
}

.school-timeline {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: grid;
    gap: 1rem;
}

.school-timeline li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.08rem;
}

.school-timeline .year {
    min-width: 110px;
    font-weight: 600;
    color: #ff9800;
    background: #fff7ed;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.school-closing {
    font-style: italic;
    font-size: 1.22rem;
    color: #1e40af;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ff980022;
}

/* Responsive */
@media (max-width: 768px) {
    .school-title   { font-size: 2.2rem; }
    .school-lead    { font-size: 1.28rem; }
    .school-timeline .year { min-width: 90px; font-size: 0.95rem; }
}

/*PANORAMICA SCUOLA (contatti) – testo giustificato */

.school-overview {
    max-width: 820px;
    margin: 0 auto 5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.school-title {
    font-size: 2.6rem;
    color: #1e40af;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.school-lead {
    font-size: 1.38rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.school-content {
    font-size: 1.12rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: justify;          /* ← testo giustificato qui */
    hyphens: auto;                /* ← opzionale: migliora la divisione sillabica in italiano */
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.school-content p {
    margin-bottom: 1.6rem;
}

/* Per evitare che l'ultima riga sembri troppo corta (opzionale ma consigliato) */
.school-content p:last-child {
    margin-bottom: 0;
}

/* La timeline resta centrata o allineata a sinistra, come preferisci */
.school-timeline {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
    display: grid;
    gap: 1rem;
    text-align: left;             /* timeline meglio allineata a sinistra */
}

.school-timeline li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.08rem;
}

.school-timeline .year {
    min-width: 110px;
    font-weight: 600;
    color: #ff9800;
    background: #fff7ed;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.school-closing {
    font-style: italic;
    font-size: 1.22rem;
    color: #1e40af;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #ff980022;
    text-align: center;           /* chiusura centrata per enfasi */
}

/* Responsive */
@media (max-width: 768px) {
    .school-title   { font-size: 2.2rem; }
    .school-lead    { font-size: 1.28rem; }
    .school-content { font-size: 1.05rem; }
    .school-timeline .year { min-width: 90px; font-size: 0.95rem; }
}

/* PAGINA PROGETTO */

.progetto-section {
    padding: 10rem 0 8rem;
}

.progetto-subtitle {
    font-size: 2.2rem;
    color: #1e40af;
    text-align: center;
    margin: 1rem 0 2.5rem;
    font-weight: 600;
}

.progetto-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

.progetto-content p {
    margin-bottom: 1.8rem;
}

.progetto-features {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
}

.progetto-features li {
    margin-bottom: 1.1rem;
    padding-left: 1.8rem;
    position: relative;
}

.progetto-features li::before {
    content: "→";
    color: #ff9800;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-item {
    background: #f0f7ff;
    padding: 1.8rem 1.4rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-6px);
}

.benefit-icon {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: #ff9800;
}

.progetto-conclusion {
    font-size: 1.28rem;
    font-weight: 500;
    color: #1e40af;
    text-align: center;
    margin-top: 3.5rem;
    padding: 2rem;
    background: #f0f7ff;
    border-radius: 16px;
    border-left: 6px solid #ff9800;
}

/* Responsive */
@media (max-width: 768px) {
    .progetto-subtitle { font-size: 1.9rem; }
    .progetto-content  { font-size: 1.08rem; }
}

/* BENEFICI IN CERCHIO (pagina Progetto) */

.benefits-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 3rem;
    margin: 3rem 0;
    padding: 1rem 0;
}

.benefit-circle {
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transition: all 0.35s ease;
}

.benefit-circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff980022 0%, #ff980044 100%);
    border: 3px solid #ff9800;
    z-index: -1;
    transition: all 0.35s ease;
}

.benefit-circle:hover::before {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.circle-icon {
    font-size: 4.2rem;
    margin-bottom: 1rem;
    color: #ff9800;
    line-height: 1;
}

.benefit-circle p {
    font-size: 1.05rem;
    line-height: 1.4;
    color: #1e40af;
    font-weight: 500;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .benefits-circles {
        gap: 2rem 2.5rem;
    }
    
    .benefit-circle {
        width: 160px;
        height: 160px;
    }
    
    .circle-icon {
        font-size: 3.8rem;
    }
    
    .benefit-circle p {
        font-size: 0.98rem;
    }
}

@media (max-width: 600px) {
    .benefits-circles {
        flex-direction: column;
        align-items: center;
        gap: 2.8rem;
    }
    
    .benefit-circle {
        width: 200px;
        height: 200px;
    }
    
    .circle-icon {
        font-size: 4.5rem;
    }
}

/* CHI SIAMO – versione dinamica */

/* Animazioni generali */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up  { animation: fadeUp 0.9s ease-out forwards; }
.animate-fade-in  { animation: fadeIn 1.2s ease-out forwards; }
.animate-slide-left  { animation: slideLeft 1s ease-out forwards; }
.animate-slide-right { animation: slideRight 1s ease-out forwards; }

/* Hero introduttivo */
.team-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,152,0,0.18) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(3.8rem, 9vw, 6.5rem);
    margin-bottom: 1.2rem;
}

.highlight {
    color: #ff9800;
}

.lead {
    font-size: clamp(1.5rem, 4vw, 2rem);
    max-width: 780px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Immagine principale del team */
.team-image-container {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.team-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    padding: 2.5rem 2rem 1.5rem;
    color: white;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
}

/* Card del team */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin: 5rem 0;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    text-align: center;
    padding-bottom: 2rem;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.card-photo {
    height: 220px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.7rem;
    margin: 1.4rem 0 0.6rem;
    color: #1e40af;
}

.role {
    color: #ff9800;
    font-weight: 600;
    font-size: 1.15rem;
}

/* Timeline */
.project-timeline {
    max-width: 800px;
    margin: 6rem auto 0;
    text-align: center;
}

.project-timeline h3 {
    font-size: 2.2rem;
    color: #1e40af;
    margin-bottom: 3rem;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: #f8fafc;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: #ff9800;
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-content h4 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    color: #1e40af;
}

.timeline-content p {
    margin: 0;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 900px) {
    .team-hero { padding: 9rem 0 6rem; }
    .team-cards-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .timeline-item { flex-direction: column; text-align: center; gap: 1.2rem; }
    .timeline-dot { margin: 0 auto; }
}

.team-section {
    padding: 8rem 0 10rem;  /* più spazio in basso per far "respirare" l'immagine finale */
}

.team-image-container {
    max-width: 1000px;      /* un po' più larga per impatto visivo */
    margin: 5rem auto 0;    /* margine superiore maggiore */
    border-radius: 32px;    /* angoli più arrotondati */
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    position: relative;
}

.team-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.team-image-container:hover .team-main-img {
    transform: scale(1.04);  /* leggero zoom al hover */
}

/* CHI SIAMO – versione bianca + super dinamica */

/* Animazioni più morbide */
@keyframes pop {
    0%   { opacity: 0; transform: scale(0.85) translateY(30px); }
    60%  { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-pop { animation: pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* Intestazione bianca semplice ma impattante */
.intro-header {
    text-align: center;
    padding: 6rem 0 3rem;
}

.intro-header h1 {
    font-size: clamp(4rem, 10vw, 7.2rem);
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 1.2rem;
    line-height: 0.92;
}

.highlight-orange {
    color: #ff9800;
}

.intro-lead {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    color: #374151;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Card con stagger e hover più dinamico */
.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.8rem;
    margin: 4rem 0 6rem;
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

.card-photo {
    height: 240px;
    background: #f1f5f9;
}

.card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .card-photo img {
    transform: scale(1.08);
}

.team-card h3 {
    font-size: 1.75rem;
    margin: 1.5rem 0 0.5rem;
    color: #1e40af;
}

.role {
    color: #ff9800;
    font-weight: 600;
    font-size: 1.18rem;
}

/* Timeline con linea animata */
.project-timeline {
    max-width: 900px;
    margin: 0 auto 6rem;
    text-align: center;
}

.project-timeline h3 {
    font-size: 2.4rem;
    color: #1e40af;
    margin-bottom: 3.5rem;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #ff9800 0%, #ffb74d 100%);
    transform: translateX(-50%);
    animation: growLine 2.5s ease-out forwards;
}

@keyframes growLine {
    from { height: 0; }
    to   { height: 100%; }
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8fafc;
    padding: 1.8rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    position: relative;
}

.timeline-dot {
    width: 22px;
    height: 22px;
    background: white;
    border: 4px solid #ff9800;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 2;
}

.timeline-content h4 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
    color: #1e40af;
}

.timeline-content p {
    margin: 0;
    color: #4b5563;
}

/* Immagine finale grande */
.team-image-final {
    max-width: 1100px;
    margin: 4rem auto 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
    position: relative;
}

.team-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.team-image-final:hover .team-main-img {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 2rem 1.5rem;
    color: white;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline-item { flex-direction: column; text-align: center; gap: 1.4rem; }
    .timeline-line { left: 30px; }
    .timeline-dot { margin: 0 auto; }
}

/* CHI SIAMO – modifiche richieste */

/* Titolo vicinissimo al navbar */
.intro-header {
    text-align: center;
    padding: 3rem 0 4rem;          /* padding superiore ridotto drasticamente */
}

.intro-header h1 {
    font-size: clamp(4.8rem, 11vw, 8.5rem);
    font-weight: 900;
    color: #1e40af;
    margin: 0;
    line-height: 0.9;
}

.highlight-orange {
    color: #ff9800;
}

.intro-lead {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: #374151;
    max-width: 780px;
    margin: 1.5rem auto 0;
}

/* Testo centrale (blocco più stretto) */
.team-story {
    max-width: 720px;               /* più stretto per centrare meglio */
    margin: 0 auto 3rem;
    font-size: 1.18rem;
    line-height: 1.85;
    color: #374151;
    text-align: center;             /* tutto centrato */
}

.team-story p {
    margin-bottom: 1.8rem;
}

/* Spazio extra prima della timeline */
.spacer {
    height: 6rem;                   /* distanza maggiore */
}

/* Timeline più carina */
.project-timeline {
    max-width: 900px;
    margin: 0 auto 7rem;
    text-align: center;
}

.project-timeline h3 {
    font-size: 2.6rem;
    color: #1e40af;
    margin-bottom: 4rem;
    position: relative;
}

.project-timeline h3::after {
    content: "";
    width: 120px;
    height: 4px;
    background: #ff9800;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-container {
    position: relative;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 5px;
    background: linear-gradient(to bottom, #ff9800, #ffb74d, #ff9800);
    transform: translateX(-50%);
    border-radius: 5px;
    animation: growLine 2.8s ease-out forwards;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: white;
    padding: 1.8rem 2.2rem;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-8px);
}

.timeline-dot {
    width: 60px;
    height: 60px;
    background: white;
    border: 5px solid #ff9800;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255,152,0,0.3);
    z-index: 2;
}

.dot-icon {
    font-size: 2.2rem;
}

.timeline-content h4 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #1e40af;
}

.timeline-content p {
    margin: 0;
    color: #4b5563;
    font-size: 1.1rem;
}

/* Immagine finale (invariata) */
.team-image-final {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.22);
    position: relative;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .timeline-line {
        left: 30px;
    }
}

/* Titolo vicinissimo al navbar */
.intro-header {
    text-align: center;
    padding: 1.5rem 0 4rem;          /* ← ridotto drasticamente il padding sopra */
}

.intro-header h1 {
    font-size: clamp(5rem, 12vw, 9rem);
    font-weight: 900;
    color: #1e40af;
    margin: 0;
    line-height: 0.9;
}

/* Testo introduttivo – più centrato e stretto */
.team-story {
    max-width: 680px;                 /* ← più stretto per centrare meglio */
    margin: 0 auto 4rem;              /* margini automatici per centrare */
    font-size: 1.18rem;
    line-height: 1.85;
    color: #374151;
    text-align: center;               /* tutto il testo centrato */
}

.team-story p {
    margin-bottom: 1.8rem;
}

/* Spazio extra prima della timeline */
.spacer {
    height: 8rem;                     /* ← più spazio per allontanare */
}

/* Titolo timeline centrato e più evidente */
.project-timeline h3 {
    font-size: 2.8rem;
    color: #1e40af;
    margin-bottom: 4.5rem;
    position: relative;
    text-align: center;
}

.project-timeline h3::after {
    content: "";
    width: 140px;
    height: 5px;
    background: #ff9800;
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* Immagine finale centrata */
.team-image-final {
    max-width: 1000px;
    margin: 5rem auto 0;              /* margine superiore maggiore + centrato */
}

/* Titolo SUPER attaccato alla navbar */
.intro-header {
    text-align: center;
    padding: 0.5rem 0 3.5rem;     /* ← quasi zero sopra, solo un filo per respiro */
    margin-top: 0;
}

.intro-header h1 {
    font-size: clamp(4.5rem, 11vw, 8rem);
    font-weight: 900;
    color: #1e40af;
    margin: 0;
    line-height: 0.9;
}

/* Assicurati che il main non aggiunga padding extra sopra */
.page-main {
    padding-top: 0 !important;     /* ← forza zero padding sopra il main */
}

/* Il resto rimane invariato */
.team-story {
    max-width: 680px;
    margin: 0 auto 3rem;
    font-size: 1.18rem;
    line-height: 1.85;
    color: #374151;
    text-align: center;
}

.spacer {
    height: 7rem;                 /* distanza dalla timeline */
}

.project-timeline h3 {
    text-align: center;
    font-size: 2.8rem;
    color: #1e40af;
    margin-bottom: 4rem;
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 160px;                 /* ← larghezza delle barre laterali */
    z-index: -2;
    pointer-events: none;
}

body::before {
    left: 0;
    background: linear-gradient(to bottom, #ff980022, #ffb74d11);
}

body::after {
    right: 0;
    background: linear-gradient(to bottom, #ff980022, #ffb74d11);
}

/* Impedisce che il contenuto centrale venga coperto su schermi stretti */
@media (max-width: 1100px) {
    body::before,
    body::after {
        width: 200px;              /* barre più strette su tablet */
    }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        display: none;            /* spariscono su mobile */
    }
}

/* TIMELINE – FLICK CARDS STYLE (originale e giocosa) */

.project-timeline {
    max-width: 1100px;
    margin: 0 auto 7rem;
    text-align: center;
}

.project-timeline h3 {
    font-size: 2.8rem;
    color: #1e40af;
    margin-bottom: 5rem;
    position: relative;
}

.project-timeline h3::after {
    content: "";
    width: 160px;
    height: 6px;
    background: #ff9800;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.flick-timeline {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;           /* permette stacking su schermi piccoli */
}

.flick-step {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    perspective: 1200px;       /* per effetto 3D della rotazione */
}

.flick-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 12px 32px rgba(0,0,0,0.12),
        0 2px 8px rgba(255,152,0,0.15);
    transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(3deg) translateY(10px);
    transform-origin: center bottom;
}

.flick-step:nth-child(2) .flick-card { transform: rotate(-4deg) translateY(15px); }
.flick-step:nth-child(3) .flick-card { transform: rotate(5deg) translateY(8px); }

.flick-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.06);
    box-shadow: 
        0 28px 60px rgba(0,0,0,0.22),
        0 8px 20px rgba(255,152,0,0.3);
}

.card-front {
    padding: 2.2rem 1.8rem;
    text-align: center;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.6s ease;
}

.flick-card:hover .card-front {
    transform: rotateX(8deg);   /* piccolo effetto flip/tilt 3D */
}

.step-icon {
    font-size: 4.8rem;
    margin-bottom: 1.1rem;
    color: #ff9800;
    line-height: 1;
}

.flick-card h4 {
    font-size: 1.65rem;
    color: #1e40af;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.flick-card p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

/* Linea di connessione "filo di memoria" – solo tra le card su desktop */
.flick-timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, #ff980055 20%, #ff980055 80%, transparent);
    background-size: 12px 3px;
    background-repeat: repeat-x;
    z-index: -1;
    transform: translateY(-50%);
}

/* Animazione stagger entrata */
.flick-step {
    opacity: 0;
    transform: translateY(60px);
    animation: fadeUpCard 0.9s ease-out forwards;
}

.flick-step:nth-child(1) { animation-delay: 0.3s; }
.flick-step:nth-child(2) { animation-delay: 0.55s; }
.flick-step:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: stacking verticale + linea sparita */
@media (max-width: 900px) {
    .flick-timeline {
        flex-direction: column;
        gap: 5rem;
        align-items: center;
    }
    
    .flick-timeline::before {
        display: none;
    }
    
    .flick-card {
        transform: rotate(0deg) translateY(0) !important;
        max-width: 420px;
    }
    
    .flick-step {
        width: 100%;
    }
}

/* PAGINA DESCRIZIONE SM – VIAGGIO NELLA MIELINA (originale & visivo) */

.journey-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
    opacity: 0;
}

.journey-step.reverse {
    flex-direction: row-reverse;
}

.step-visual {
    flex: 1;
    position: relative;
}

.journey-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.6s ease;
}

.journey-step:hover .journey-img {
    transform: scale(1.04);
}

.step-label {
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e40af;
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.step-text {
    flex: 1.2;
    font-size: 1.22rem;
    line-height: 1.8;
}

.step-text h3 {
    color: #1e40af;
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
}

.symptoms-list, .therapies-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.symptoms-list li, .therapies-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.symptoms-list li::before, .therapies-list li::before {
    content: "•";
    color: #ff9800;
    position: absolute;
    left: 0;
    font-size: 1.8rem;
    line-height: 1;
}

.evolution-types {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.type-box {
    background: #eff6ff;
    padding: 1rem 1.6rem;
    border-radius: 12px;
    border-left: 5px solid #ff9800;
    font-weight: 600;
}

.small-note {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
}

.highlight-block {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 6rem;
    box-shadow: 0 20px 60px rgba(30,64,175,0.25);
}

.final-logo {
    height: 120px;
    margin-bottom: 2rem;
}

.btn-primary {
    margin-top: 2rem;
    background: #ff9800;
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
}

/* Animazioni fade-up */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 900px) {
    .journey-step, .journey-step.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .step-label {
        position: static;
        transform: none;
        margin: 1rem auto 0;
    }
    
    .symptoms-infographic {
        max-height: 400px;
        object-fit: contain;
    }
}

/* PAGINA PROGETTO – VERSIONE CINEMATICA 2026 (ultra originale) */

/* Sfondo neurale leggero */
.progetto-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 50%, #f9fafb 100%);
    position: relative;
    overflow: hidden;
}

.progetto-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0 50 Q25 30 50 50 T100 50" fill="none" stroke="%23ff980022" stroke-width="2"/></svg>') repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* Hero titolo con typewriter */
.progetto-hero {
    text-align: center;
    padding: 2rem 0 5rem;
}

.progetto-main-title {
    font-size: clamp(4.5rem, 12vw, 9rem);
    font-weight: 900;
    color: #1e40af;
    line-height: 0.92;
    margin: 0;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 6px solid #ff9800;
    white-space: nowrap;
    animation: typing 3.5s steps(7, end) forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to   { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50%      { border-color: #ff9800 }
}

.subtitle-glow {
    font-size: clamp(2rem, 6vw, 3.8rem);
    color: #ff9800;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255,152,0,0.5);
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    from { text-shadow: 0 0 20px rgba(255,152,0,0.4); }
    to   { text-shadow: 0 0 60px rgba(255,152,0,0.9); }
}

.progetto-lead {
    font-size: 1.6rem;
    color: #4b5563;
    max-width: 720px;
    margin: 2rem auto 0;
    font-weight: 500;
}

/* Scudi accessibilità */
.accessibility-shields {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
}

.shield {
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}

.shield:hover {
    transform: translateY(-16px) scale(1.12);
    box-shadow: 0 30px 70px rgba(255,152,0,0.25);
}

.shield::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -60px;
    background: #1e40af;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.shield:hover::after {
    bottom: 100%;
    opacity: 1;
    transform: translateY(-10px);
}

.shield-icon {
    font-size: 3.8rem;
    color: #ff9800;
    margin-bottom: 0.8rem;
}

.shield-text {
    font-weight: 700;
    color: #1e40af;
    font-size: 1.15rem;
}

/* Cerchi potenziati con orbita */
.benefits-title {
    text-align: center;
    font-size: 2.4rem;
    color: #1e40af;
    margin: 5rem 0 4rem;
    position: relative;
}

.benefits-title::after {
    content: "";
    width: 140px;
    height: 5px;
    background: #ff9800;
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.benefits-circles.enhanced {
    gap: 3.5rem 4rem;
}

.benefit-circle {
    width: 200px;
    height: 200px;
    border: 4px solid #ff980044;
    background: white;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    position: relative;
}

.benefit-circle:hover {
    transform: translateY(-20px) rotate(5deg) scale(1.1);
    border-color: #ff9800;
    box-shadow: 0 30px 80px rgba(255,152,0,0.35);
}

.orbit-1 { animation: floatOrbit1 12s infinite ease-in-out; }
.orbit-2 { animation: floatOrbit2 14s infinite ease-in-out; }
.orbit-3 { animation: floatOrbit3 16s infinite ease-in-out; }
.orbit-4 { animation: floatOrbit4 13s infinite ease-in-out; }

@keyframes floatOrbit1 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(20px,-15px) rotate(3deg); } }
@keyframes floatOrbit2 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-15px,25px) rotate(-4deg); } }
@keyframes floatOrbit3 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(18px,12px) rotate(5deg); } }
@keyframes floatOrbit4 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-22px,-10px) rotate(-3deg); } }

/* Blocco conclusione luminoso */
.progetto-conclusion-block {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 5rem 3rem;
    border-radius: 32px;
    overflow: hidden;
    text-align: center;
    margin: 6rem auto 4rem;
    max-width: 900px;
    box-shadow: 0 30px 80px rgba(30,64,175,0.4);
}

.conclusion-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    animation: glowRotate 20s linear infinite;
    pointer-events: none; 
}

@keyframes glowRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progetto-conclusion-block blockquote {
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 2rem;
    line-height: 1.4;
}

.conclusion-text {
    font-size: 1.4rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.btn-glow {
    background: #ff9800;
    color: white;
    padding: 1.4rem 3.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(245,158,11,0.5);
    transition: all 0.4s ease;
}

.btn-glow:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 60px rgba(245,158,11,0.7);
}

/* Responsive */
@media (max-width: 900px) {
    .accessibility-shields { gap: 1.5rem; }
    .shield { width: 140px; height: 140px; }
    .shield-icon { font-size: 3rem; }
    .benefits-circles { gap: 3rem 2rem; }
    .benefit-circle { width: 170px; height: 170px; }
}

.mission-statement {
    text-align: center;
}

/* IMMAGINE SOTTO IL TITOLO GAMEABILITY (hero visual)*/

.gameability-visual {
    max-width: 900px;
    margin: 3.5rem auto 4rem;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30,64,175,0.25);
    animation: fadeUp 1.2s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-game-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.gameability-visual:hover .hero-game-img {
    transform: scale(1.04);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: white;
    padding: 2.5rem 2rem 1.2rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Animazione fade-up per l'immagine */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive – l'immagine si adatta bene anche su mobile */
@media (max-width: 900px) {
    .gameability-visual {
        margin: 2.5rem auto 3.5rem;
        border-radius: 16px;
    }
    
    .img-caption {
        font-size: 1.1rem;
        padding: 2rem 1.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .hero-game-img {
        border-radius: 12px;
    }
}

/* Griglia 2 colonne */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Rimuovi le righe intermedie */
.team-row {
    display: contents;
}


.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

.team-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ff9800;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background: white;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.06);
}

.team-card h3 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.3rem;
    color: #1e40af;
}

.role {
    font-size: 0.95rem;
    color: #ff9800;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
}

.contact-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}
