 @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap');

 :root {
     --accent: #d4af37;
     --bg-light: #e6e6e6;
     --bg-dark: #000000;
 }

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

 body {
     font-family: 'Oswald';
     line-height: 1.45;
     color: #fff;
     background: var(--bg-light);
     overflow-x: hidden;
 }

 body {
     opacity: 0;
     animation: pageFadeIn 0.5s ease-out forwards;
 }

 @keyframes pageFadeIn {
     from {
         opacity: 0;
         transform: translateY(10px);
     }

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

 a {
     text-decoration: none;
     color: inherit
 }

 /* ================================================== */
 /* HEADER E NAVBAR (Stile Originale + Responsività) */
 /* ================================================== */
 header {
     position: sticky;
     /* Mantiene la navbar in alto durante lo scroll */
     top: 0;
     z-index: 999;
     background: #121212;
     color: #fff;
     padding: 10px 0;
     /* Aggiunto padding per l'estetica */
 }

 .container-header {
     max-width: 1100px;
     margin: 0 auto;
     padding: 0 20px;
     /* Padding laterale per non incollare ai bordi */
 }

 .topbar {
     display: flex;
     align-items: center;
     justify-content: space-between;
     width: 100%;
 }

 .logo-link {
     text-decoration: none;
     color: inherit;
 }

 .logo-title {
     font-size: 17px;
     font-weight: 600;
     margin: 0;
     line-height: 1.2;
     white-space: nowrap;
     letter-spacing: 2px;
 }

 .logo-subtitle {
     font-size: 12px;
     font-weight: 400;
     text-transform: uppercase;
     margin-top: 5px;
     line-height: 1;
     white-space: nowrap;
     letter-spacing: 1px;
     padding-left: 60px;
 }

 nav ul {
     list-style: none;
     display: flex;
     gap: 18px;
     margin: 0;
 }

 nav a {
     font-size: 15px;
     color: #fff;
     transition: color 0.3s ease;
     letter-spacing: 2px;
 }

 nav a:hover {
     color: #ffc400;
     /* Colore dorato per l'hover */
 }

 .cta-group {
     display: flex;
     align-items: center;
     gap: 15px;
 }

 .cta-btn {
     padding: 12px 28px;
     background-color: black;
     color: #FFD700;
     border: 2px solid #FFD700;
     border-radius: 0;
     text-decoration: none;
     font-weight: bold;
     font-size: 0.8rem;
     transition: 0.3s;
     white-space: nowrap;
 }

 .cta-btn:hover {
     background-color: #FFD700 !important;
     color: black !important;
 }

 .social-icon {
     width: 28px;
     /* Dimensione unificata */
     height: 28px;
     display: inline-block
 }

 /* --- MEDIA QUERY PER RESPONSIVITÀ HEADER --- */
 @media (max-width: 1024px) {
     .topbar {
         flex-wrap: wrap;
         /* Permette agli elementi di andare a capo */
         justify-content: center;
         gap: 20px;
     }

     header {
         height: auto;
         /* Altezza automatica per contenere tutto */
         padding: 20px 0;
     }

     nav {
         order: 3;
         /* Mette la navigazione per ultima */
         width: 100%;
         justify-content: center;
         display: flex;
     }
 }

 @media (max-width: 480px) {
     nav ul {
         flex-direction: column;
         /* Menu in colonna su schermi piccoli */
         align-items: center;
         gap: 15px;
     }

     .cta-group {
         flex-direction: column;
     }
 }

 /* ================================================== */
 /* STILI PER HAMBURGER MENU E DROPDOWN MOBILE         */
 /* ================================================== */
 .hamburger-menu {
     display: none;
     /* Nascosto di default su desktop */
     flex-direction: column;
     justify-content: space-around;
     width: 30px;
     height: 25px;
     background: transparent;
     border: none;
     cursor: pointer;
     padding: 0;
     z-index: 1001;
     /* Assicura che sia sopra altri elementi */
 }

 .hamburger-bar {
     width: 100%;
     height: 3px;
     background-color: #fff;
     border-radius: 2px;
     transition: all 0.3s ease-in-out;
 }

 /* Stili per il contenitore del menu */
 .menu-content {
     display: flex;
     align-items: center;
     gap: 18px;
     /* Mantiene lo spazio tra nav e cta-group su desktop */
 }


 @media (max-width: 1024px) {

     /* Mostra l'hamburger e riorganizza il topbar */
     .hamburger-menu {
         display: flex;
     }

     .topbar {
         justify-content: space-between;
         /* Logo a sinistra, hamburger a destra */
         flex-wrap: nowrap;
     }

     header {
         position: relative;
         /* Necessario per posizionare il menu dropdown */
     }

     /* Nascondi il menu di default */
     .menu-content {
         display: none;
         position: absolute;
         top: 100%;
         /* Si posiziona sotto l'header */
         left: 0;
         width: 100%;
         background-color: #121212;
         padding: 20px;
         box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
     }

     /* Quando il menu è aperto */
     .menu-content.is-open {
         display: flex;
         flex-direction: column;
         align-items: center;
         gap: 25px;
     }

     /* Rimuovi l'ordine precedente e nascondi nav e cta-group di base */
     nav,
     .cta-group {
         order: initial;
         width: auto;
         justify-content: center;
         display: flex;
         /* Sovrascrivi display:none se presente */
     }

     /* Adatta gli elementi interni per la vista a colonna */
     nav ul {
         flex-direction: column;
         align-items: center;
         gap: 20px;
         width: 100%;
     }

     .cta-group {
         flex-direction: column;
         gap: 20px;
     }

     /* Animazione hamburger -> X */
     .hamburger-menu.is-active .hamburger-bar:nth-child(1) {
         transform: translateY(8px) rotate(45deg);
     }

     .hamburger-menu.is-active .hamburger-bar:nth-child(2) {
         opacity: 0;
     }

     .hamburger-menu.is-active .hamburger-bar:nth-child(3) {
         transform: translateY(-8px) rotate(-45deg);
     }
 }

 /* --- FINE SEZIONE HEADER --- */

 .hero {
     display: grid;
     grid-template-columns: 1fr;
     gap: 24px;
     padding: 56px 20px;
     text-align: center;
     background: var(--bg-light);
     color: #000
 }

 .hero h1 {
     font-size: 34px;
     margin: 0
 }

 .hero p {
     margin: 12px auto;
     color: #333;
     max-width: 760px
 }

 .section {
     padding: 36px 20px;
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.6s ease-out
 }

 .section.visible {
     opacity: 1;
     transform: translateY(0)
 }

 .section.light {
     background: var(--bg-light);
     color: #000
 }

 .section.dark {
     background: var(--bg-dark);
     color: #fff
 }

 footer {
     background: var(--bg-dark);
     color: #fff;
     padding: 28px 20px
 }

 .footer-grid {
     max-width: 1100px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     flex-wrap: wrap;
     align-items: center;
     gap: 20px
 }

 .footer-social a {
     margin-left: 10px
 }

 @media(min-width:800px) {
     .hero {
         grid-template-columns: 1fr 420px;
         text-align: left;
         align-items: center
     }
 }

 #the-unit {
     position: relative;
     color: white;
     max-width: 900px;
     margin: 60px auto;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
     font-family: Arial, sans-serif;
 }

 .carousel-slide {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-size: cover;
     background-position: center;
     filter: brightness(0.5);
     transition: opacity 1s ease-in-out;
     opacity: 0;
 }

 .carousel-slide.active {
     opacity: 1;
 }

 #the-unit .content {
     position: relative;
     z-index: 2;
     padding: 40px 30px;
     text-align: center;
 }

 #the-unit h2 {
     font-size: 3rem;
     margin-bottom: 20px;
     font-weight: 700;
 }

 #the-unit p {
     font-size: 1.25rem;
     max-width: 700px;
     margin: auto;
 }

 .section-experience-alliance {
     background-color: #e6e6e6;
     padding: 50px 0;
     display: flex;
     justify-content: center;
 }

 .container-experience-alliance {
     max-width: 1200px;
     margin: 0 20px;
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     background-color: #e6e6e6;
 }

 .image-container-experience {
     flex: 1;
     max-width: 50%;
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 1s ease-out, transform 1s ease-out;
 }

 .image-container-experience img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .content-container-experience {
     flex: 1;
     padding: 50px;
 }

 .subtitle-experience-alliance {
     font-weight: 700;
     font-size: 1rem;
     text-transform: uppercase;
     color: #000;
     margin: 0;
     line-height: 1;
 }

 .subtitle-alliance {
     font-weight: 700;
     font-size: 1.5rem;
     text-transform: uppercase;
     color: #000;
     margin: 0;
     line-height: 1;
 }

 .title-experience-alliance {
     font-weight: 900;
     font-size: 3rem;
     text-transform: uppercase;
     color: #ffc400;
     line-height: 1;
     margin-bottom: 20px;
 }

 .text-experience-alliance {
     font-weight: 400;
     font-size: 1rem;
     line-height: 1.6;
     margin-bottom: 20px;
     color: #333;
 }

 .btn-experience-alliance {
     display: inline-block;
     padding: 15px 30px;
     font-weight: 700;
     text-transform: uppercase;
     text-decoration: none;
     color: #333;
     border: 2px solid #333;
     transition: all 0.3s ease;
 }

 .btn-experience-alliance:hover {
     background-color: #333;
     color: #fff;
 }

 .section-classes-alliance {
     background-color: #0d0d0d;
     color: #fff;
     padding: 80px 0;
     text-align: center;
     position: relative;
     z-index: 1;
     background-image: url('images/Eagle 2024 branca.png');
     background-repeat: no-repeat;
     background-position: center;
     background-size: contain;
     background-attachment: fixed;
 }

 .section-classes-alliance::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.7);
     z-index: -1;
 }

 .subtitle-classes-alliance {
     font-weight: 700;
     text-transform: uppercase;
     color: #fff;
     margin: 0;
     font-size: 1.2rem;
 }

 .title-classes-alliance {
     font-weight: 900;
     font-size: 3.5rem;
     text-transform: uppercase;
     color: #ffc400;
     margin: 0 0 50px 0;
 }

 .carousel-content-wrapper {
     position: relative;
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     align-items: center;
 }

 .nav-button {
     background-color: transparent;
     border: none;
     color: #fff;
     font-size: 2rem;
     cursor: pointer;
     padding: 10px;
     transition: color 0.3s, transform 0.3s;
     z-index: 10;
 }

 .nav-button:hover {
     color: #ffc400;
     transform: scale(1.1);
 }

 .nav-button:active {
     color: #d11e38;
 }

 .carousel-track-wrapper {
     overflow: hidden;
     width: 100%;
 }

 .carousel-track {
     display: flex;
     overflow-x: hidden;
     scroll-behavior: smooth;
     -webkit-overflow-scrolling: touch;
     width: 100%;
     height: 250px;
 }

 .card-alliance {
     flex: 0 0 auto;
     width: calc(33.333% - 20px);
     height: 200px;
     box-sizing: border-box;
     margin: 0 10px;
     background-color: #000;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
     position: relative;
     background-size: cover;
     background-position: center;
 }

 .card-alliance:nth-of-type(1) {
     background-image: url('images/image00094.jpeg');
 }

 .card-alliance:nth-of-type(2) {
     background-image: url('images/image00063.jpeg');
 }

 .card-alliance:nth-of-type(3) {
     background-image: url('images/IMG_0960.jpeg');
 }

 .card-alliance:nth-of-type(4) {
     background-image: url('images/batista.jpg');
 }

 .card-alliance:nth-of-type(5) {
     background-image: url('images/CRIANÇAS - V.O 1.JPG');
 }

 .card-alliance:nth-of-type(6) {
     background-image: url('images/B6CB4DBB-A105-4640-9E0E-4433DF12B9E3.JPG');
 }

 .card-alliance:nth-of-type(7) {
     background-image: url('images/lezioni private.jpeg');
 }

 .card-info {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     align-items: center;
     padding: 20px;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
     word-wrap: break-word;
 }

 .card-info h3 {
     font-size: 0.8rem;
     text-transform: uppercase;
     font-weight: 400;
     margin: 0;
 }

 .card-info h4 {
     font-size: 1.5rem;
     text-transform: uppercase;
     font-weight: 700;
     color: #ffc400;
     margin: 5px 0 0 0;
 }

 [data-animation] {
     opacity: 0;
     transition: opacity 1s ease-out, transform 1s ease-out;
 }

 [data-animation="slide-left"] {
     transform: translateX(-50px);
 }

 [data-animation="slide-right"] {
     transform: translateX(50px);
 }

 [data-animation="fade-up"] {
     transform: translateY(20px);
 }

 .is-visible {
     opacity: 1;
     transform: translate(0, 0);
 }

 .section-founders {
     background-color: #000;
     color: #fff;
     padding: 50px 0;
 }

 .container-founders {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     flex-direction: row;
     align-items: center;
     flex-wrap: wrap;
 }

 .image-container-founders {
     flex: 1;
     max-width: 60%;
 }

 .image-container-founders img {
     width: 100%;
     height: auto;
     display: block;
 }

 .content-container-founders {
     flex: 1;
     max-width: 40%;
     padding: 50px;
     text-align: left;
 }

 .subtitle-founders {
     font-weight: 700;
     font-size: 1.5rem;
     text-transform: uppercase;
     color: #fff;
     margin: 0;
 }

 .title-founders {
     font-weight: 900;
     font-size: 3.5rem;
     text-transform: uppercase;
     color: #ffc400;
     margin: 0 0 30px 0;
     line-height: 1;
 }

 .stats-container {
     display: flex;
     flex-wrap: wrap;
     margin-top: 20px;
 }

 .stat-item {
     flex: 1;
     text-align: center;
     margin: 10px;
 }

 .stat-number {
     font-size: 3rem;
     font-weight: 900;
     color: #fff;
     line-height: 1;
 }

 .stat-label {
     font-size: 0.8rem;
     text-transform: uppercase;
     color: #fff;
     margin-top: 5px;
 }

 .full-width-image-section {
     width: 100%;
     height: 500px;
     background-image: url('images/mappa_unita_orizzontale_07_08 (2).jpg');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
 }

 .text-overlay {
     color: #fff;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
 }

 .students-text {
     font-size: 3rem;
     font-weight: 900;
     margin: 0;
 }

 .affiliates-box {
     background-color: #ffc400;
     color: #000;
     padding: 10px 20px;
     margin-top: 10px;
     display: inline-block;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
 }

 .affiliates-text {
     font-size: 1rem;
     font-weight: 700;
     text-transform: uppercase;
     margin: 0;
 }

 .section-contact {
     background-color: #0d0d0d;
     color: #fff;
     padding: 80px 20px;
     position: relative;
 }

 .section-contact::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-image: url('images/Logos Alliance mesmo arquivo-03.png');
     background-size: contain;
     background-position: center;
     background-repeat: no-repeat;
     opacity: 0.1;
 }

 .container-contact {
     position: relative;
     z-index: 1;
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
 }

 .address-column {
     flex: 1;
     min-width: 280px;
 }

 .contact-column {
     flex: 1;
     min-width: 280px;
 }

 .address-column h3 {
     font-size: 1.5rem;
     text-transform: uppercase;
     color: #ffc400;
     margin-bottom: 20px;
 }

 .address-column p,
 .contact-column a {
     font-family: 'Roboto', sans-serif;
     font-size: 1rem;
     line-height: 1.6;
     color: #fff;
     text-decoration: none;
     display: block;
     margin-bottom: 10px;
 }

 .contact-column a {
     display: flex;
     align-items: center;
 }

 .contact-column h3 {
     font-size: 1.5rem;
     text-transform: uppercase;
     color: #ffc400;
     margin-bottom: 20px;
 }

 .contact-column svg {
     margin-right: 10px;
     fill: #ffc400;
 }

 .social-icons {
     display: flex;
     gap: 15px;
     margin-top: 10px;
 }

 .social-icons a {
     color: #fff;
     transition: color 0.3s;
 }

 .social-icons a:hover {
     color: #ffc400;
 }

 .social-icons svg {
     width: 24px;
     height: 24px;
     fill: currentColor;
 }

 .footer {
     background-color: #000;
     color: #fff;
     padding: 20px;
     text-align: center;
 }

 .footer p {
     margin: 0;
     font-family: 'Roboto', sans-serif;
     font-size: 0.9rem;
     color: #fff;
 }

 /* ========================================================== */
 /* --- RESPONSIVITÀ (NUOVO CODICE AGGIUNTO/MODIFICATO) --- */
 /* ========================================================== */

 @media (max-width: 1024px) {
     .hero h1 {
         font-size: 2.2rem !important;
         /* Riduci dimensione per il titolo hero */
     }
 }

 @media (max-width: 900px) {

     /* EXPERIENCE SECTION */
     .container-experience-alliance {
         flex-direction: column;
     }

     .image-container-experience,
     .content-container-experience {
         max-width: 100%;
     }

     .content-container-experience {
         padding: 30px;
         text-align: center;
         /* Centra testo su mobile */
     }

     /* FOUNDERS SECTION */
     .container-founders {
         flex-direction: column;
         text-align: center;
     }

     .image-container-founders,
     .content-container-founders {
         max-width: 100%;
         padding: 20px;
     }

     .content-container-founders {
         text-align: center;
     }

     .stats-container {
         justify-content: center;
     }

     /* CONTACT SECTION */
     .container-contact {
         flex-direction: column;
         gap: 40px;
     }

     .address-column,
     .contact-column {
         /* Rimuovi margini fissi che rompevano il layout */
         margin-left: 0 !important;
         min-width: 100%;
     }

     /* MAP SECTION (Modifica classi Tailwind) */
     .w-full.lg\:w-1\/2 {
         width: 100%;
         /* Assicura che le colonne diventino 100% su mobile */
     }

     .container.mx-auto.px-4.py-16.flex.flex-col.lg\:flex-row {
         flex-direction: column;
         /* Impila mappa e testo */
     }
 }

 @media (max-width: 768px) {

     /* COURSES SECTION */
     .card-alliance {
         width: calc(50% - 20px);
         /* Due card per riga */
     }
 }

 @media (max-width: 480px) {

     /* COURSES SECTION */
     .card-alliance {
         width: calc(100% - 20px);
         /* Una card per riga */
     }

     /* IMAGE OVERLAY TEXT */
     .students-text {
         font-size: 2.5rem;
         /* Riduci la dimensione del testo sui numeri */
     }
 }

 /* --- FINE RESPONSIVITÀ --- */

 .modal-content {
     background-color: transparent;
     border: none;
     position: relative;
     /* ESSENZIALE per l'absolute positioning del bottone */
 }

 /* Stile per il bottone di chiusura (massima visibilità e area cliccabile) */
 .modal-content .btn-close {
     position: absolute;
     top: 15px;
     right: 15px;
     z-index: 9999;
     /* Z-INDEX MOLTO ALTO per superare l'immagine su mobile */
     background-color: #121212;
     --bs-btn-close-color: #fff;
     /* Colore della 'X' bianca (Bootstrap 5) */
     opacity: 1;
     border-radius: 50%;
     padding: 10px;
     /* Aumenta l'area toccabile */
     box-shadow: 0 0 10px rgba(113, 112, 112, 0.5);
 }

 .modal-content .btn-close:hover {
     background-color: #d4af37;
     --bs-btn-close-color: #000;
 }

 .modal-body {
     padding: 0;
     display: flex;
     justify-content: center;
     align-items: center;
     max-height: 90vh;
     /* Il padding è 0, il che permette all'immagine di riempire tutto lo spazio */
 }

 .modal-body img {
     width: auto;
     height: 100%;
     max-width: 100%;
     object-fit: contain;
 }

 .modal-backdrop {
     opacity: 0.8 !important;
 }

 .card-link-wrapper {
     text-decoration: none;
     color: inherit;
     display: inline-block;
     margin: 0 10px;
     width: 300px;
 }

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

 .card-link-wrapper:hover .card-alliance {
     transform: translateY(-5px);
 }


 /* PROGRAMMI */

 :root {
     --primary-color: #f7a81b;
     --accent: #d4af37;
     --bg-light: #f7f7f7;
     --bg-dark: #121212;
     --text-dark: #333333;
     --text-light: #ffffff;
     --font-title: 'Oswald', sans-serif;
     --font-body: 'Roboto', sans-serif;
 }

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

 body {
     font-family: 'Oswald';
     line-height: 1.6;
     color: #fff;
     background: var(--bg-dark);
     overflow-x: hidden;
     scroll-behavior: smooth;
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 /* ================================================== */
 /* HEADER E NAVBAR (Stile Originale + Responsività) */
 /* ================================================== */
 header {
     position: sticky;
     /* Mantiene la navbar in alto durante lo scroll */
     top: 0;
     z-index: 999;
     background: #121212;
     color: #fff;
     padding: 10px 0;
     /* Aggiunto padding per l'estetica */
 }

 .container-header {
     max-width: 1100px;
     margin: 0 auto;
     padding: 0 20px;
     /* Padding laterale per non incollare ai bordi */
 }

 .topbar {
     display: flex;
     align-items: center;
     justify-content: space-between;
     width: 100%;
 }

 .logo-link {
     text-decoration: none;
     color: inherit;
 }

 .logo-title {
     font-size: 17px;
     font-weight: 600;
     margin: 0;
     line-height: 1.2;
     white-space: nowrap;
     letter-spacing: 2px;
 }

 .logo-subtitle {
     font-size: 12px;
     font-weight: 400;
     text-transform: uppercase;
     margin-top: 5px;
     line-height: 1;
     white-space: nowrap;
     letter-spacing: 1px;
     padding-left: 60px;
 }

 nav ul {
     list-style: none;
     display: flex;
     gap: 18px;
     margin: 0;
 }

 nav a {
     font-size: 15px;
     color: #fff;
     transition: color 0.3s ease;
     letter-spacing: 2px;
 }

 nav a:hover {
     color: #ffc400;
     /* Colore dorato per l'hover */
 }

 .cta-group {
     display: flex;
     align-items: center;
     gap: 15px;
 }

 .cta-btn {
     padding: 12px 28px;
     background-color: black;
     color: #FFD700;
     border: 2px solid #FFD700;
     border-radius: 0;
     text-decoration: none;
     font-weight: bold;
     font-size: 0.8rem;
     transition: 0.3s;
     white-space: nowrap;
 }

 .cta-btn:hover {
     background-color: #FFD700 !important;
     color: black !important;
 }

 .social-icon {
     width: 28px;
     /* Dimensione unificata */
     height: 28px;
     display: inline-block
 }

 /* --- MEDIA QUERY PER RESPONSIVITÀ --- */
 @media (max-width: 1024px) {
     .topbar {
         flex-wrap: wrap;
         /* Permette agli elementi di andare a capo */
         justify-content: center;
         gap: 20px;
     }

     header {
         height: auto;
         /* Altezza automatica per contenere tutto */
         padding: 20px 0;
     }

     nav {
         order: 3;
         /* Mette la navigazione per ultima */
         width: 100%;
         justify-content: center;
         display: flex;
     }
 }

 @media (max-width: 480px) {
     nav ul {
         flex-direction: column;
         /* Menu in colonna su schermi piccoli */
         align-items: center;
         gap: 15px;
     }

     .cta-group {
         flex-direction: column;
     }
 }

 /* ================================================== */
 /* STILI PER HAMBURGER MENU E DROPDOWN MOBILE         */
 /* ================================================== */
 .hamburger-menu {
     display: none;
     /* Nascosto di default su desktop */
     flex-direction: column;
     justify-content: space-around;
     width: 30px;
     height: 25px;
     background: transparent;
     border: none;
     cursor: pointer;
     padding: 0;
     z-index: 1001;
     /* Assicura che sia sopra altri elementi */
 }

 .hamburger-bar {
     width: 100%;
     height: 3px;
     background-color: #fff;
     border-radius: 2px;
     transition: all 0.3s ease-in-out;
 }

 /* Stili per il contenitore del menu */
 .menu-content {
     display: flex;
     align-items: center;
     gap: 18px;
     /* Mantiene lo spazio tra nav e cta-group su desktop */
 }


 @media (max-width: 1024px) {

     /* Mostra l'hamburger e riorganizza il topbar */
     .hamburger-menu {
         display: flex;
     }

     .topbar {
         justify-content: space-between;
         /* Logo a sinistra, hamburger a destra */
         flex-wrap: nowrap;
     }

     header {
         position: relative;
         /* Necessario per posizionare il menu dropdown */
     }

     /* Nascondi il menu di default */
     .menu-content {
         display: none;
         position: absolute;
         top: 100%;
         /* Si posiziona sotto l'header */
         left: 0;
         width: 100%;
         background-color: #121212;
         padding: 20px;
         box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
     }

     /* Quando il menu è aperto */
     .menu-content.is-open {
         display: flex;
         flex-direction: column;
         align-items: center;
         gap: 25px;
     }

     /* Rimuovi l'ordine precedente e nascondi nav e cta-group di base */
     nav,
     .cta-group {
         order: initial;
         width: auto;
         justify-content: center;
         display: flex;
         /* Sovrascrivi display:none se presente */
     }

     /* Adatta gli elementi interni per la vista a colonna */
     nav ul {
         flex-direction: column;
         align-items: center;
         gap: 20px;
         width: 100%;
     }

     .cta-group {
         flex-direction: column;
         gap: 20px;
     }

     /* Animazione hamburger -> X */
     .hamburger-menu.is-active .hamburger-bar:nth-child(1) {
         transform: translateY(8px) rotate(45deg);
     }

     .hamburger-menu.is-active .hamburger-bar:nth-child(2) {
         opacity: 0;
     }

     .hamburger-menu.is-active .hamburger-bar:nth-child(3) {
         transform: translateY(-8px) rotate(-45deg);
     }
 }

 /* --- FINE SEZIONE HEADER --- */

 .hero-programs-container {
     background: url('placeholder_bg.jpg') no-repeat right center;
     background-size: cover;
     background-color: var(--bg-dark);
     padding: 100px 5%;
     min-height: 600px;
     display: flex;
     align-items: center;
 }

 .hero-programs-content {
     max-width: 800px;
 }

 .section-title {
     font-family: var(--font-title);
     font-size: 30px;
     font-weight: 400;
     margin-bottom: -15px;
     letter-spacing: 2px;
     text-transform: uppercase;
 }

 .main-title {
     font-family: var(--font-title);
     font-size: 60px;
     font-weight: 700;
     color: var(--primary-color);
     margin-bottom: 25px;
     text-transform: uppercase;
 }

 .description-text {
     font-weight: 300;
     margin-bottom: 40px;
 }

 .program-list {
     display: flex;
     flex-wrap: wrap;
     gap: 20px 30px;
     font-size: 14px;
     text-transform: uppercase;
     font-weight: 700;
 }

 .program-item {
     display: flex;
     align-items: center;
     color: #aaaaaa;
 }

 .program-item .icon {
     font-style: normal;
     font-size: 16px;
     color: var(--primary-color);
     margin-right: 5px;
 }

 .program-item .alliance-check {
     display: inline-block;
     width: 20px;
     height: 20px;
     border-radius: 50%;
     background-color: var(--accent);
     margin-right: 8px;
     position: relative;
     overflow: hidden;
     flex-shrink: 0;
 }

 .program-item .alliance-check::before {
     content: "✓";
     color: #121212;
     font-family: sans-serif;
     font-size: 14px;
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     line-height: 1;
 }

 .program-item {
     color: #fff;
 }

 .program-item:hover {
     color: var(--accent);
 }

 .section-program {
     background-color: var(--bg-light);
     color: var(--text-dark);
     padding: 80px 5%;
     border-top: 1px solid #cccccc;
     scroll-margin-top: 120px;
     /* Spazio per la navbar sticky */
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.8s ease-out, transform 0.8s ease-out;
 }

 .section-program.is-visible {
     opacity: 1;
     transform: translateY(0);
 }

 .container-program {
     max-width: 900px;
     margin: 0 auto;
     display: flex;
     gap: 80px;
     align-items: center;
 }

 .image-col {
     flex-shrink: 0;
     width: 45%;
     overflow: hidden;
 }

 .image-col img {
     width: 100%;
     height: auto;
     display: block;
     transition: transform 0.4s ease-out;
 }

 .text-col {
     flex-grow: 1;
     padding-right: 20px;
 }

 .subtitle-program {
     font-family: var(--font-title);
     font-size: 25px;
     font-weight: 400;
     margin-bottom: -10px;
     letter-spacing: 2px;
     text-transform: uppercase;
     color: #444444;
 }

 .title-program {
     font-family: var(--font-title);
     font-size: 50px;
     font-weight: 700;
     color: var(--accent);
     margin-bottom: 25px;
     text-transform: uppercase;
 }

 .description-program {
     line-height: 1.6;
     font-weight: 300;
     font-family: var(--font-body);
     color: #555555;
 }

 .section-program.reverse .container-program {
     flex-direction: row-reverse;
 }

 @media (max-width: 768px) {
     .container-program {
         flex-direction: column;
         gap: 30px;
     }

     .image-col,
     .text-col {
         max-width: 100%;
         width: 100%;
     }

     .section-program.reverse .container-program {
         flex-direction: column;
     }

     .hero-programs-container {
         padding: 50px 5%;
     }

     .main-title,
     .title-program {
         font-size: 40px;
     }
 }

 .modal-content {
     background-color: transparent;
     border: none;
     position: relative;
     /* ESSENZIALE per l'absolute positioning del bottone */
 }

 /* Stile per il bottone di chiusura (massima visibilità e area cliccabile) */
 .modal-content .btn-close {
     position: absolute;
     top: 15px;
     right: 15px;
     z-index: 9999;
     /* Z-INDEX MOLTO ALTO per superare l'immagine su mobile */
     background-color: #121212;
     --bs-btn-close-color: #fff;
     /* Colore della 'X' bianca (Bootstrap 5) */
     opacity: 1;
     border-radius: 50%;
     padding: 10px;
     /* Aumenta l'area toccabile */
     box-shadow: 0 0 10px rgba(113, 112, 112, 0.5);
 }

 .modal-content .btn-close:hover {
     background-color: #d4af37;
     --bs-btn-close-color: #000;
 }

 .modal-body {
     padding: 0;
     display: flex;
     justify-content: center;
     align-items: center;
     max-height: 90vh;
     /* Il padding è 0, il che permette all'immagine di riempire tutto lo spazio */
 }

 .modal-body img {
     width: auto;
     height: 100%;
     max-width: 100%;
     object-fit: contain;
 }

 .modal-backdrop {
     opacity: 0.8 !important;
 }