/* ============================================================
   VARIABILI
   ============================================================ */

:root {
    --ff-main: "Plus Jakarta Sans", sans-serif;

    --fw-soft: 200;
    --fw-regular: 400;
    --fw-bold: 600;
    --fw-xbold: 900;

    --fs-ultra: 3rem;
    --fs-big: 1.5rem;
    --fs-normal: 1rem;
    --fs-small: 0.8rem;
    --fs-nano: 0.5rem;

    --primary-purple: #9d34da;
    --primary-blue: #00c6ff;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray: #999999;
    --dark: #0f172a;
    --red: #e74c3c;
    --green: #2ecc71;

    --black-10: #00000010;
    --black-50: #00000080;
    --purple-50: #9d34da80;
    --blue-50: #00c6ff80;

    --black-shadow: 0 0.625rem 1.5625rem var(--black-50);
    --purple-shadow: 0 0.625rem 1.5625rem var(--purple-50);
    --blue-shadow: 0 0.625rem 1.5625rem var(--blue-50);
    --transition: all 0.3s ease;

    --fs-nav-title: clamp(1rem, 4vw, 1.6rem);
    --fs-hero: clamp(2.2rem, 10vw, 5rem);
    --fs-hero-sub: clamp(0.9rem, 4vw, 1.3rem);
    --fs-cq-number: 30cqw;

}

.txt-blue {
    color: var(--primary-blue);
}

.txt-purple {
    color: var(--primary-purple);
}

.txt-green {
    color: var(--green);
}

.txt-red {
    color: var(--red);
}


strong {
    color: inherit;
    font-weight: 800;
}

/* ============================================================
   BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-main);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    padding-top: 70px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--white);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 5%;
    z-index: 1500;
    border-bottom: 6px solid var(--primary-purple);
}

.nav-logo-container {
    display: flex;
    justify-content: flex-start;
}

.nav-title-container {
    display: flex;
    justify-content: center;
}

.nav-title {
    visibility: hidden;
    opacity: 0;
    font-size: var(--fs-nav-title);
    font-weight: var(--fw-xbold);
    letter-spacing: -1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.navbar.show-text .nav-title {
    visibility: visible;
    opacity: 1;
}

.nav-hamburger-container {
    display: flex;
    justify-content: flex-end;
}


.hamburger {
    cursor: pointer;
    color: var(--primary-purple);
    user-select: none;
}

.nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 25px;
    z-index: 1400;
}

.nav-links.active {
    left: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: var(--fw-xbold);
    font-size: var(--fs-big);
    transition: 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}



/* ============================================================
    HERO
   ============================================================ */

.hero-header {
    height: calc(100vh - 70px);
    height: calc(100svh - 70px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-bottom: 6px solid var(--primary-purple);
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: -30px;
    width: 100%;
}

#mainTitle {
    font-size: var(--fs-hero);
    font-weight: var(--fw-xbold);
    line-height: 1.1;
    text-transform: uppercase;
    padding: 0 10px;
    overflow: hidden; 
}

.txt-blue, .txt-purple {
    display: inline-block;
    opacity: 0;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.txt-blue {
    animation-name: slideFromRight;
    animation-delay: 0.2s;
}

.txt-purple {
    animation-name: slideFromLeft;
    animation-delay: 0.2s;
}

.nerd-subtitle {
    font-size: var(--fs-hero-sub);
    font-weight: var(--fw-soft);
    color: var(--gray);
    max-width: 90%;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.btn-scroll-purple {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: var(--purple-shadow);
    transition: all 0.3s ease;
    z-index: 10;
    animation: bounceIn 1.5s ease-out forwards;
    animation-delay: 1.2s;
}

.btn-scroll-purple i {
    font-size: var(--fs-icon-ultra);
    line-height: 0;
}

@keyframes slideFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) translateY(0); }
    30% { transform: translateX(-50%) translateY(-20px); }
    50% { transform: translateX(-50%) translateY(0); }
    70% { transform: translateX(-50%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   STRUTTURA
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 20px;
    width: 100%;
}

section:nth-of-type(odd) {
    background-color: var(--gray-light);
}

section:nth-of-type(even) {
    background-color: var(--white);
}


.section-header {
    text-align: center;
    margin-bottom: 50px;
    flex-direction: column;
}

.section-header h2 {
    font-size: var(--fs-ultra);
    font-weight: var(--fw-xbold);
    text-transform: uppercase;
    color: var(--primary-blue);
}



.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0;
}

/* ============================================================
   GRID
   ============================================================ */

.grid-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-3i {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}


@media (max-width: 992px) {
    .grid-1 { grid-template-columns: repeat(1, 1fr); }
    .grid-2 { grid-template-columns: repeat(1, 1fr); }
    .grid-3 { grid-template-columns: repeat(1, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }

}






/* ============================================================
   CARD NORMALE
   ============================================================ */
.card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    border-bottom: 6px solid var(--primary-purple);
    box-shadow: var(--black-shadow);
    text-decoration: none;
    color: inherit;
}


.card h4 {
    color: var(--primary-purple);
    font-size: var(--fs-big);
    margin-bottom: 10px;
    font-weight: var(--fw-bold);
}

.card p {
    font-size: var(--fs-normal);
    font-weight: var(--fw-regular);
}



.card li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    list-style: none;
    text-align: left;

}

.card li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: var(--primary-purple);
    font-size: var(--fs-normal);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    /* Deve essere uguale al line-height del testo del body */
    padding-top: 2px;
    /* Opzionale: piccolo aggiustamento ottico se l'icona sembra troppo alta */
}



/* ============================================================
   CARD ACT
   ============================================================ */
/* ============================================================
    CARD ACT - Flip Effect
   ============================================================ */

.grid-3d {
    perspective: 1200px; /* Aumentato per un effetto 3D più realistico */
}

.act-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    cursor: pointer;
}

.act-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.5s ease-in-out;
    transform-style: preserve-3d;
}

/* Quando JS aggiunge questa classe allo scroll */
.act-card.is-visible .act-inner {
    transform: rotateY(180deg);
}

.act-front, .act-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Fondamentale: nasconde il lato opposto */
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--black-shadow);
}

.act-front {
    background-size: cover;
    background-position: center;
    z-index: 2; /* Davanti */
    transform: rotateY(0deg);
}

.act-back {
    background-color: var(--white);
    color: var(--primary-purple);
    transform: rotateY(180deg); /* Già ruotato */
    z-index: 1;
    border-bottom: 6px solid var(--primary-purple);
}

.act-content {
    text-align: center;
    padding: 15px;
}

.act-content i {
    font-size: 50px; /* Assicurati che le icone siano grandi */
    color: var(--primary-purple);
    display: block;
    margin-bottom: 10px;
}

.act-content h4 {
    font-size: var(--fs-big);
    color: var(--primary-purple);
    font-weight: var(--fw-bold);
    margin: 0;
    text-transform: uppercase;
}

/* ============================================================
   FAQ CARD
   ============================================================ */

.faq-card {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-content {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border-bottom: 6px solid var(--primary-purple);
    box-shadow: var(--black-shadow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: var(--fw-bold);
    color: var(--primary-purple);
    font-size: var(--fs-big);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
    padding: 0 30px;
    font-size: var(--fs-normal);
    font-weight: var(--fw-regular);
}

.faq-content.active .faq-answer {
    max-height: 800px;
    /* Altezza sufficiente a contenere il testo */
    padding: 0 30px 30px;
}

/* ============================================================
   PULSANTI
   ============================================================ */



.contact-btn-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    box-shadow: var(--black-shadow);
}

.contact-btn-circle i {
    color: var(--white);
    font-size: var(--fs-big);
    line-height: 1;
    margin: 0;
}

.contact-btn-circle:hover {
    transform: scale(1.1);
    box-shadow: var(--black-shadow);
}


.btn-primary {
    background-color: var(--primary-blue);
    margin-top: 16px;
    font-size: var(--fs-small);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: var(--fw-bold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
    box-shadow: var(--black-shadow);
    border: none;
    text-transform: uppercase;
    justify-content: center;
    white-space: nowrap;
}


.btn-primary i {
    color: var(--white);
    font-size: var(--fs-small);
    line-height: 1;
    flex-shrink: 0;

}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--black-shadow);
    filter: brightness(1.1);
}


.btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-purple);
    color: var(--white);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-circle:hover {
    transform: scale(1.1);
    box-shadow: var(--black-shadow);
}

.btn-circle i {
    font-size: var(--fs-big);
    font-weight: var(--fw-regular);
    line-height: 1;
}



/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    border-bottom: 6px solid var(--primary-purple);
    box-shadow: var(--black-shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 50px 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background-color: var(--white);
    color: var(--black);
    padding: 40px 40px;
    text-align: center;
    border-top: 6px solid var(--primary-purple);
}

footer p {
    margin-top: 10px;
    opacity: 0.5;
    font-size: var(--fs-small);
}

/* ============================================================
   EVENTO - STRUTTURA PRINCIPALE
   ============================================================ */

.card-event {
    display: block;
    text-align: left;
}

.card-event h3 {
    color: var(--primary-blue);
    font-weight: var(--fw-regular);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    width: 100%;
}

.event-logo-col, 
.event-info-col {
    flex: 0 0 100px;
    width: 100px;
    display: flex;
    align-items: center;
}

.event-info-col {
    justify-content: flex-end;
}



.event-info-col a.number-circle-container {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.event-info-col a.number-circle-container:hover {
    transform: scale(1.05);
}





.event-info-col .number-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.event-info-col .number-overlay i {
    font-size: 2.8rem;
    line-height: 1;
    display: block;
}

.event-info-col .number-overlay i:last-child {
    margin-left: -32px;
}



.banner-grid-right {
    flex: 0 1 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.banner-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.banner-row.row-doppia .banner-col {
    flex: 1;
}

.banner-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-col span {
    display: block;
    font-size: var(--fs-big);
    font-weight: var(--fw-bold);
    color: var(--primary-purple);
    margin-bottom: 2px;
}

.banner-col p {
    margin: 0;
    font-size: var(--fs-normal);
}

.banner-sep {
    height: 1px;
    background-color: var(--black-50);
    width: 60%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .card-event {
        padding: 20px 15px;
    }

    .event-layout {
        gap: 10px;
        flex-wrap: nowrap;
    }

    .event-logo-col, 
    .event-info-col {
        flex: 0 0 70px;
        width: 70px;
        justify-content: center;
    }

    .event-info-col .number-overlay i {
        font-size: 2rem;
    }
    
    .event-info-col .number-overlay i:last-child {
        margin-left: -22px;
    }

    .number-overlay {
        font-size: 1.2rem;
    }

    .banner-grid-right {
        flex: 1;
        gap: 8px;
    }

    .banner-row {
        gap: 10px;
    }

    .banner-sep {
        width: 90%;
    }
}

/* ============================================================
   LISTA EVENTI
   ============================================================ */


.past-table {
    width: 100%;
    border-collapse: collapse;
}

.past-table tr {
    border-bottom: 1px solid var(--black-50);
}

.past-table tr:last-child {
    border-bottom: none;
}

.past-table th, 
.past-table td {
    padding: 12px 10px;
    vertical-align: middle;
}

.past-table th {
    color: var(--primary-purple);
    font-weight: var(--fw-bold);
    font-size: var(--fs-big);
    text-align: left;
}

.past-table tfoot {
    color: var(--primary-purple);
    font-weight: var(--fw-xbold);
    font-size: var(--fs-big);
}

.past-table p {
    font-weight: var(--fw-regular);
    font-size: var(--fs-normal);
    margin: 0;
}

.past-table td.col-icon-center {
    text-align: center;
}

.past-table .col-icon-center i {
    color: var(--primary-purple);
    font-size: var(--fs-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}


/* Allineamento righe tabella */
.past-table td.td-logo, 
.past-table td.td-dx {
    width: 80px; /* Dimensione fissa per logo e bottone */
    text-align: center;
}

.past-table td.td-dx {
    text-align: right; /* Forza il bottone a destra */
}


.past-table td.td-dx p {
    font-weight: var(--fw-bold);
}

/* Controllo dimensioni interne */
.past-table .number-circle-container {
    width: 70px; /* Dimensione cerchio uniforme */
    display: inline-block;
}

/* Allineamento verticale del testo */
.past-table td.td-info {
    text-align: center;
    vertical-align: middle;
}



/* ============================================================
   BOTTONE
   ============================================================ */

.digit-cyan {
    color: var(--primary-blue);
}

.digit-purple {
    color: var(--primary-purple);
}

.icon-overlap {
    margin-left: -15px; 
}

.number-circle-container {
    position: relative;
    display: inline-block;
    width: 100%;
    container-type: inline-size;
}

.circle-bg-img {
    display: block;
    width: 100%;
    height: auto;
}

.number-overlay {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -48%);
    font-size: var(--fs-cq-number);
    font-family: sans-serif;
    font-weight: var(--fw-regular);
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ============================================================
   CARD PARTECIPANTI
   ============================================================ */

/* Card partecipante con altezza controllata */
.card-participant {
    padding: 0 15px;      /* Padding orizzontale */
    height: 52px;         /* Altezza fissa coerente con il resto del sito */
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;     /* Fondamentale per il contenitore */
}

/* Manteniamo le tue specifiche per H4 */
.card-participant h4 {
    margin: 0;
    text-transform: none;
    font-size: var(--fs-normal);
    font-weight: var(--fw-regular);
    flex-shrink: 0;       /* Impedisce al numero di restringersi */
}

/* Manteniamo le tue specifiche per P e aggiungiamo il troncamento */
.card-participant p {
    margin: 0;
    font-size: var(--fs-normal);
    color: var(--dark);
    font-weight: var(--fw-regular);
    text-transform: none;
    
    /* Regole di troncamento integrate */
    flex: 1;              /* Occupa lo spazio rimanente */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;         /* Cruciale per evitare espansione */
}

/* Manteniamo l'icona fissa */
.status-icon-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.card-participant.is-empty {
    opacity: 0.6;
    border-bottom-color: var(--gray) ;
}

.card-participant.is-empty p {
    color: var(--gray) ;
}

/* .status-icon-container {
    margin-left: auto;
    display: flex;
    align-items: center;
} */

.status-icon-container i {
    color: var(--primary-purple);
    font-size: var(--fs-small);
    line-height: 1;
}

/* ============================================================
   CARD CAR
   ============================================================ */

.grid-swipe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .grid-swipe {
        display: flex; /* Trasforma la grid in un flexbox */
        flex-wrap: nowrap; /* Impedisce alle card di andare a capo */
        overflow-x: auto; /* Abilita lo scroll orizzontale */
        scroll-snap-type: x mandatory; /* Attiva l'aggancio automatico */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Scroll fluido su iOS */
        padding: 20px; /* Spazio per non tagliare le ombre */
        gap: 20px;
        margin: 0 -20px; /* Estende lo scroll fino ai bordi dello schermo */
    }

    .car-card {
        flex: 0 0 100%; /* Ogni card occupa l'85% della larghezza (mostra un pezzo della successiva) */
        scroll-snap-align: center; /* La card si ferma al centro dello schermo */
        margin-bottom: 20px; /* Spazio per l'ombra inferiore */
    }

    /* Nasconde la scrollbar per un look più pulito */
    .grid-swipe::-webkit-scrollbar {
        display: none;
    }
    .grid-swipe {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.car-header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-arrow {
    display: none;
}

.car-header-nav {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-arrow {
        display: inline-flex;
        color: var(--primary-purple);
        /* opacity: 0.5; */
    font-weight: var(--fw-bold);
    font-size: var(--fs-ultra);
        cursor: pointer;
    }

    .car-header-nav {
        justify-content: space-between; 
    }
}


.button-action {
    background-color: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-weight: var(--fw-regular);
    font-size: var(--fs-normal);
    font-family: var(--ff-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--black-shadow);
    text-transform: uppercase;
    padding: 12px 15px;
}

.button-action i {
    color: var(--white);
    font-size: var(--fs-normal);
}

.button-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: var(--black-shadow);
}

.section-header .button-action {
    margin-top: 25px; 
}

.btn-full {
    width: 100%;
    padding: 16px;
}

.btn-half {
    flex: 1;
}

.btn-add-passenger-grid {
    width: 100%;
    height: 100%;
    min-height: 52px;
    border-radius: 12px;
    box-shadow: var(--black-shadow);
    border-bottom: 6px solid var(--primary-purple);
}

.car-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-top: -10px;
}

.car-admin-row {
    display: flex;
    width: 100%;
    gap: 10px;
    /* margin-top: 10px; */
    margin-bottom: 30px;
}

/* .car-card h4 {
    text-align: center;
    margin-bottom: 15px;
} */

/* .car-info-list {
    margin: 10px 0;
    padding: 0;
    list-style: none;
} */

.car-info-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.car-info-list li i {
    color: var(--primary-purple);
    font-size: var(--fs-normal);
    font-weight: var(--fw-regular);
}

.car-card p {
    text-align: left;
    font-weight: var(--fw-regular);
    font-size: var(--fs-normal);
    margin: 0;
}

.passenger-title {
    margin: 10px 0 15px 0;
    font-size: var(--fs-normal);
    text-align: center;
}

.passenger-grid-fixed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.passenger-box {
    background-color: var(--white);
    border-bottom: 6px solid var(--primary-purple);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    box-shadow: var(--black-shadow);
}

.passenger-box p {
    font-size: var(--fs-normal);
    font-weight: var(--fw-regular);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-disabled {
    background-color: var(--primary-purple);
    border-bottom: 6px solid var(--primary-purple);
    box-shadow: var(--black-shadow);
    opacity: 0.4; 
    filter: contrast(0.8) brightness(0.8);
    pointer-events: none;
}

.remove-icon {
    color: var(--primary-purple);
    font-size: var(--fs-normal);
    cursor: pointer;
    transition: var(--transition);
}




/* ============================================================
   SEZIONE MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: var(--black-shadow);
}

.modal-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--primary-purple);
    font-size: var(--fs-big);
}

.modal-title {
    position: relative;
    padding-bottom: 15px; /* Spazio tra il testo e la riga */
    margin-bottom: 20px;
}

.modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;          /* Parte dal 5% del bordo sinistro */
    width: 90%;        /* Copre il 90% della larghezza (quasi tutto) */
    height: 3px; /* Spessore della riga */
    background-color: var(--primary-purple); /* Usa la tua variabile viola */
    border-radius: 2px;
}

.modal-title h4 {
    /* color: var(--primary-purple); */
    /* font-size: 1.3rem; */
    /* font-weight: bold; */
    margin: 0;
}

/* ============================================================
   SEZIONE INPUT
   ============================================================ */
.modal-form-custom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form-custom label {
    font-weight: var(--fw-bold);;
    font-size: var(--fs-normal);
    color: var(--primary-purple);
    margin-bottom: -15px;
    margin-left: 5px;
}

.modal-form-custom input,
.modal-form-custom select {
    width: 100%;
    padding: 14px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: var(--fs-normal);
    background-color: #fafafa;
}

.modal-form-custom input:focus,
.modal-form-custom select:focus {
    outline: none;
    border-color: var(--primary-purple);
    background-color: #ffffff;
}


.modal-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-full-action {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-purple);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   Parallax
   ============================================================ */


.parallax-container {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0);
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

@media (max-width: 992px) {
    .parallax-container { height: 300px; }
}


/* ============================================================
   MODAL SPESA
   ============================================================ */
/* Titolo del Modal (Troncato se troppo lungo) */
#spesaModalTitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Riga Prodotto: gestione dello spazio */
.detail-row-populated {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.detail-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Allinea in alto */
    gap: 10px;               /* Spazio minimo tra nome e prezzo */
}

/* Nome prodotto: va a capo se tocca il prezzo */
.item-article-title {
    font-weight: var(--fw-regular);
    font-size: var(--fs-normal);
    flex: 1;                 /* Occupa tutto lo spazio disponibile */
    word-wrap: break-word;   /* Va a capo se la parola è troppo lunga */
    text-align: left;
}

/* Prezzo: mantiene la sua dimensione */
.detail-price {
    font-weight: var(--fw-bold);
    color: var(--black);
    flex-shrink: 0;          /* Impedisce al prezzo di rimpicciolirsi */
    text-align: right;
}

/* Sottotitolo: allineato a sinistra */
.item-article-subtitle {
    font-size: var(--fs-small);
    color: #888;
    margin-top: 4px;
    text-align: left;
}
/* ============================================================
   ICONE
   ============================================================ */
.icona-info {
    font-size: var(--fs-normal);
    font-weight: var(--fw-soft);
    color: var(--primary-purple);
    vertical-align: middle;
    margin-left: 6px;  /* Spazio tra il testo e l'icona */
    cursor: help;      /* Indica che è un elemento informativo */
    display: inline-flex;
    align-items: center;
}

/* ============================================================
   MODAL LUOGO
   ============================================================ */

   /* ============================================================
   DETTAGLIO LUOGO & ICONA INFO
   ============================================================ */



/* Riga Azioni Contatti */
.modal-actions-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

