/**
* Componenti condivisi - Restyling UX/CRO
* Usano solo le variabili di tokens.css e le classi con prefisso tl-,
* quindi non interferiscono con gli stili del template (main.css / site.css).
*/

/*--------------------------------------------------------------
# Pulsanti
--------------------------------------------------------------*/
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--tl-space-2);
    height: var(--tl-btn-height);
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--tl-radius-pill);
    background: transparent;
    color: var(--tl-text);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-base);
    line-height: var(--tl-lh-base);
    font-weight: var(--tl-font-weight-regular);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

    .tl-btn:focus-visible {
        outline: 2px solid var(--tl-navy);
        outline-offset: 2px;
    }

    .tl-btn:disabled,
    .tl-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.tl-btn--primary {
    background: var(--tl-yellow);
    color: var(--tl-text);
}

    .tl-btn--primary:hover {
        filter: brightness(0.95);
        color: var(--tl-text);
    }

.tl-btn--outline {
    background: var(--tl-surface);
    border-color: var(--tl-border-strong);
}

    .tl-btn--outline:hover {
        background: var(--tl-surface-alt);
        color: var(--tl-text);
    }

.tl-btn--secondary {
    background: var(--tl-surface-alt);
}

    .tl-btn--secondary:hover {
        border-color: var(--tl-navy);
        color: var(--tl-text);
    }

.tl-btn--lg {
    height: var(--tl-btn-height-lg);
    font-size: var(--tl-fs-lg);
    line-height: var(--tl-lh-lg);
}

.tl-btn--block {
    width: 100%;
}

/*--------------------------------------------------------------
# Chip (filtri rapidi, scelte)
--------------------------------------------------------------*/
.tl-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--tl-space-2);
    height: var(--tl-chip-height);
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--tl-radius-pill);
    background: var(--tl-surface-alt);
    color: var(--tl-navy);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-base);
    line-height: var(--tl-lh-base);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .tl-chip:hover {
        border-color: var(--tl-navy);
        color: var(--tl-navy);
    }

    .tl-chip.is-active,
    .tl-chip[aria-pressed="true"] {
        background: var(--tl-yellow);
        color: var(--tl-text);
    }

.tl-chip--outline {
    background: var(--tl-surface);
    border-color: var(--tl-border-strong);
    color: var(--tl-text);
}

/* Riga di chip scorrevole in orizzontale, con freccia "avanti" (components.js) */
.tl-chip-scroller {
    position: relative;
}

.tl-chip-scroller__track {
    position: relative;
    display: flex;
    gap: var(--tl-space-2);
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .tl-chip-scroller__track::-webkit-scrollbar {
        display: none;
    }

/* Sfumatura che segnala altri chip a destra */
.tl-chip-scroller.has-more::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--tl-surface) 60%);
    pointer-events: none;
}

.tl-chip-scroller__next {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tl-chip-height);
    height: var(--tl-chip-height);
    border: 0;
    border-radius: 50%;
    background: var(--tl-surface-alt);
    color: var(--tl-navy);
    transform: translateY(-50%);
}

/*--------------------------------------------------------------
# Griglia di card: 4 colonne su 1280px, poi 3, 2, 1
--------------------------------------------------------------*/
.tl-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--tl-space-4);
}

/*--------------------------------------------------------------
# Badge
--------------------------------------------------------------*/
.tl-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--tl-badge-height);
    padding: 0 12px;
    border-radius: var(--tl-radius-pill);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-xs);
    line-height: var(--tl-lh-xs);
    font-weight: var(--tl-font-weight-regular);
    white-space: nowrap;
}

.tl-badge--navy {
    background: var(--tl-navy);
    color: var(--tl-text-inverse);
}

.tl-badge--yellow {
    background: var(--tl-yellow);
    color: var(--tl-text);
}

/* Su immagine: categoria della card */
.tl-badge--light {
    height: var(--tl-chip-on-image-height);
    background: var(--tl-chip-on-image);
    color: var(--tl-text);
}

/*--------------------------------------------------------------
# Card prodotto
--------------------------------------------------------------*/
.tl-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

    .tl-card-link:hover {
        color: inherit;
    }

.tl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--tl-surface);
    border: 1px solid var(--tl-border);
    border-radius: var(--tl-radius-card);
    font-family: var(--tl-font-family);
    color: var(--tl-text);
    transition: box-shadow 0.2s ease;
}

.tl-card-link:hover .tl-card,
.tl-card-link:focus-visible .tl-card {
    box-shadow: var(--tl-shadow-sm);
}

.tl-card__media {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 312 / 212;
    border-bottom: 4px solid var(--tl-yellow);
    background: var(--tl-surface-alt);
}

    /* Fuori dal flusso: altrimenti un'immagine verticale allunga il riquadro
       (nel flex in colonna min-height:auto prevale su aspect-ratio) */
    .tl-card__media img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.tl-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: flex-start;
    gap: var(--tl-space-1);
}

    .tl-card__badges .tl-badge--yellow {
        margin-left: auto;
    }

.tl-card__category {
    position: absolute;
    left: 12px;
    bottom: 10px;
}

/* Il div.wishlist resta perché lo usa site.js */
.tl-card .wishlist {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tl-chip-on-image);
    color: var(--tl-text);
    cursor: pointer;
}

.tl-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 13px 13px 12px;
}

.tl-card__title {
    display: -webkit-box;
    margin: 0 0 var(--tl-space-2);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-lg);
    line-height: var(--tl-lh-lg);
    font-weight: var(--tl-font-weight-medium);
    color: var(--tl-text);
}

.tl-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: var(--tl-fs-sm);
    line-height: var(--tl-lh-sm);
    color: var(--tl-text-muted);
}

.tl-card__flags {
    display: flex;
    gap: var(--tl-space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

    .tl-card__flags img {
        display: block;
        width: auto;
        height: 13px;
    }

.tl-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--tl-space-4);
}

.tl-card__price {
    margin-left: auto;
    text-align: right;
    font-size: var(--tl-fs-base);
    line-height: var(--tl-lh-base);
}

.tl-card__price-old {
    display: block;
    font-size: var(--tl-fs-sm);
    color: var(--tl-text-muted);
    text-decoration: line-through;
}

.tl-card__price-amount {
    font-size: var(--tl-fs-h3);
    line-height: 1;
    font-weight: var(--tl-font-weight-medium);
    color: var(--tl-navy);
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
.tl-label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--tl-fs-sm);
    line-height: var(--tl-lh-sm);
    font-weight: var(--tl-font-weight-medium);
    color: var(--tl-text);
}

.tl-input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--tl-border-muted);
    border-radius: var(--tl-radius-sm);
    background: var(--tl-surface);
    color: var(--tl-text);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-sm);
}

    .tl-input:focus {
        border-color: var(--tl-navy);
        outline: 2px solid rgba(var(--tl-navy-rgb), 0.15);
    }

.was-validated .tl-input:invalid {
    border-color: var(--tl-red);
}

.tl-hint {
    margin: 6px 0 0;
    font-size: var(--tl-fs-xs);
    line-height: var(--tl-lh-xs);
    color: var(--tl-text-muted);
}

/*--------------------------------------------------------------
# Box informativo (cancellazione, biglietti nominativi)
--------------------------------------------------------------*/
.tl-info {
    display: flex;
    align-items: flex-start;
    gap: var(--tl-space-3);
    padding: var(--tl-space-3);
    border-radius: 6px;
    background: var(--tl-surface-info);
    font-size: var(--tl-fs-sm);
    line-height: var(--tl-lh-sm);
    color: var(--tl-text);
}

    .tl-info > .bi {
        flex-shrink: 0;
        font-size: 26px;
        line-height: 1;
        color: var(--tl-blue);
    }

    .tl-info strong {
        display: block;
        margin-bottom: 4px;
        font-weight: var(--tl-font-weight-medium);
    }

    .tl-info p {
        margin: 0;
    }

/*--------------------------------------------------------------
# Prezzi di carrello e checkout
--------------------------------------------------------------*/
.tl-price {
    font-size: var(--tl-fs-md);
    line-height: var(--tl-lh-md);
    font-weight: var(--tl-font-weight-medium);
    color: var(--tl-red);
    white-space: nowrap;
}

.tl-price--lg {
    font-size: var(--tl-fs-h1);
    line-height: 1;
}

.tl-price-old {
    margin-right: var(--tl-space-1);
    font-size: var(--tl-fs-sm);
    color: var(--tl-text-muted);
    text-decoration: line-through;
}

/*--------------------------------------------------------------
# Esperienza nel carrello: righe di dettaglio e riga compatta
--------------------------------------------------------------*/
.tl-order-details {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--tl-fs-xs);
    line-height: var(--tl-lh-xs);
    color: var(--tl-text);
}

    .tl-order-details li {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 0;
    }

    .tl-order-details .bi {
        width: 14px;
        color: var(--tl-text);
    }

.tl-order-details--lines li {
    padding: 6px 0;
    border-bottom: 1px solid var(--tl-border);
}

.tl-order-item {
    display: flex;
    gap: var(--tl-space-4);
    padding: var(--tl-space-4) 0;
    border-bottom: 1px solid var(--tl-border-muted);
}

.tl-order-item__thumb {
    flex-shrink: 0;
    width: 63px;
    height: 63px;
    border-radius: var(--tl-radius-sm);
    object-fit: cover;
}

.tl-order-item__body {
    flex: 1;
    min-width: 0;
}

.tl-order-item__title {
    margin: 0 0 6px;
    font-size: var(--tl-fs-base);
    line-height: var(--tl-lh-base);
    font-weight: var(--tl-font-weight-medium);
}

.tl-order-item__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--tl-space-2);
}

.tl-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--tl-text);
    font-size: 20px;
}

    .tl-icon-button:hover {
        color: var(--tl-red);
    }

/*--------------------------------------------------------------
# Rassicurazioni: metodi di pagamento e cancellazione
--------------------------------------------------------------*/
.tl-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tl-space-2);
    margin: var(--tl-space-4) 0;
    font-size: var(--tl-fs-xs);
}

    .tl-pay .fa-brands {
        font-size: 28px;
        color: var(--tl-blue-dark);
    }

/*--------------------------------------------------------------
# Box "Perché scegliere T-Light"
--------------------------------------------------------------*/
.tl-why {
    padding: var(--tl-space-5);
    border: 1px solid var(--tl-border-muted);
    border-radius: var(--tl-radius-card);
    font-family: var(--tl-font-family);
}

.tl-why__title {
    margin: 0 0 var(--tl-space-5);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-h1);
    line-height: var(--tl-lh-h1);
    font-weight: var(--tl-font-weight-medium);
    color: var(--tl-navy);
}

.tl-why__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .tl-why__list li {
        display: flex;
        gap: var(--tl-space-3);
    }

        .tl-why__list li + li {
            margin-top: var(--tl-space-4);
        }

    .tl-why__list .bi {
        flex-shrink: 0;
        font-size: 32px;
        line-height: 1;
        color: var(--tl-blue);
    }

    .tl-why__list strong {
        display: block;
        font-size: var(--tl-fs-base);
        font-weight: var(--tl-font-weight-medium);
    }

    .tl-why__list p {
        margin: 2px 0 0;
        font-size: var(--tl-fs-sm);
        line-height: var(--tl-lh-sm);
        color: var(--tl-text-muted);
    }

/*--------------------------------------------------------------
# Stato vuoto (nessun risultato, carrello vuoto)
--------------------------------------------------------------*/
.tl-empty {
    padding: var(--tl-space-6) 0;
    text-align: center;
    font-family: var(--tl-font-family);
    color: var(--tl-text-muted);
}

    .tl-empty p {
        margin-bottom: var(--tl-space-4);
    }

/*--------------------------------------------------------------
# Mini-carrello (offcanvas dell'header)
--------------------------------------------------------------*/
.tl-minicart {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: var(--tl-font-family);
}

.tl-minicart__items {
    flex: 1;
    overflow-y: auto;
}

.tl-minicart__actions {
    display: flex;
    flex-direction: column;
    gap: var(--tl-space-2);
    padding-top: var(--tl-space-4);
}

    .tl-minicart__actions .tl-summary__total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: var(--tl-space-2);
    }

/*--------------------------------------------------------------
# Barra sticky in basso (totale del carrello, prezzo della scheda prodotto).
# Base: sempre su mobile, su desktop solo quando l'elemento osservato esce dallo schermo.
# --auto: a ogni larghezza solo quando l'elemento osservato esce dallo schermo.
--------------------------------------------------------------*/
.tl-sticky-total {
    position: fixed;
    z-index: 1030;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--tl-space-3) 0;
    background: var(--tl-blue-dark);
    color: var(--tl-text-inverse);
    transition: transform 0.25s ease;
}

.tl-sticky-total__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tl-space-4);
}

.tl-sticky-total__amount {
    font-size: var(--tl-fs-base);
    white-space: nowrap;
}

    .tl-sticky-total__amount strong {
        font-size: var(--tl-fs-h3);
        font-weight: var(--tl-font-weight-medium);
    }

.tl-sticky-total .tl-btn {
    min-width: 160px;
}

/* La barra non deve coprire il fondo del footer */
body:has(.tl-sticky-total) {
    padding-bottom: 80px;
}

.tl-sticky-total--auto {
    transform: translateY(100%);
}

    .tl-sticky-total--auto.is-shown {
        transform: none;
    }

@media (min-width: 768px) {
    .tl-sticky-total .tl-btn {
        min-width: 267px;
    }

    .tl-sticky-total__amount {
        font-size: var(--tl-fs-lg);
    }

        .tl-sticky-total__amount strong {
            font-size: var(--tl-fs-h1);
        }
}

@media (min-width: 992px) {
    .tl-sticky-total {
        transform: translateY(100%);
    }

        .tl-sticky-total.is-shown {
            transform: none;
        }
}

/*--------------------------------------------------------------
# Titolo di sezione e schede
--------------------------------------------------------------*/
.tl-section-title {
    margin: 0 0 var(--tl-space-5);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-h1);
    line-height: var(--tl-lh-h1);
    font-weight: var(--tl-font-weight-medium);
    color: var(--tl-navy);
    text-align: center;
}

/* Titolo principale di pagina (archivio destinazioni, pagina destinazione) */
.tl-section-title--page {
    font-size: 36px;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .tl-section-title--page {
        font-size: var(--tl-fs-hero);
        line-height: var(--tl-lh-hero);
    }
}

.tl-section-subtitle {
    max-width: 640px;
    margin: calc(-1 * var(--tl-space-3)) auto var(--tl-space-5);
    font-size: var(--tl-fs-base);
    line-height: 1.4;
    text-align: center;
}

.tl-tabs {
    display: flex;
    justify-content: flex-start;
    gap: var(--tl-space-5);
    margin-bottom: var(--tl-space-5);
    overflow-x: auto;
    border-bottom: 1px solid var(--tl-border-muted);
    scrollbar-width: none;
}

/* Centrate quando ci stanno, scorrevoli da sinistra quando no (justify-content: center taglierebbe la prima) */
.tl-tabs__tab:first-child {
    margin-left: auto;
}

.tl-tabs__tab:last-child {
    margin-right: auto;
}

.tl-tabs__tab {
    flex-shrink: 0;
    padding: var(--tl-space-2) var(--tl-space-1);
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--tl-text);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-md);
}

    .tl-tabs__tab.active {
        border-bottom-color: var(--tl-yellow);
        font-weight: var(--tl-font-weight-medium);
    }

/*--------------------------------------------------------------
# "Scopri i luoghi più popolari" (PopularPlaces)
--------------------------------------------------------------*/
.tl-popular {
    padding: 60px 0;
    background: var(--tl-surface-subtle);
}

.tl-popular__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
    gap: var(--tl-space-3);
}

    .tl-popular__links .tl-chip {
        justify-content: center;
        height: 38px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tl-popular__links:not(.is-expanded) .tl-popular__extra {
        display: none;
    }

/*--------------------------------------------------------------
# Hero con immagine di sfondo (Home, landing)
--------------------------------------------------------------*/
.tl-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: var(--tl-space-6) 0;
    background: var(--tl-navy) var(--tl-hero-image, none) center / cover no-repeat;
    color: var(--tl-text-inverse);
    font-family: var(--tl-font-family);
}

    .tl-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
    }

    .tl-hero > .tl-container {
        position: relative;
    }

.tl-hero__title {
    max-width: 720px;
    margin: 0 0 var(--tl-space-3);
    font-family: var(--tl-font-family);
    font-size: 36px;
    line-height: 1.1;
    font-weight: var(--tl-font-weight-medium);
    color: inherit;
}

.tl-hero__subtitle {
    max-width: 560px;
    margin: 0 0 var(--tl-space-5);
    font-size: var(--tl-fs-md);
    line-height: 1.35;
}

/* Variante centrata (landing): testo al centro, velatura uniforme */
.tl-hero--center {
    min-height: 337px;
    text-align: center;
}

    .tl-hero--center::before {
        background: rgba(0, 0, 0, 0.35);
    }

    .tl-hero--center .tl-hero__title,
    .tl-hero--center .tl-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

/* Ricerca dell'hero (misure dal Figma): campo bianco 522x52 senza bordo,
   pulsante 120x44 blu notte che lascia 4px di bianco tutt'intorno.
   Doppia classe: .tl-search è in layout.css, caricato dopo questo file */
.tl-search.tl-search--hero {
    max-width: 522px;
    height: 52px;
    padding: 0 4px 0 24px;
    border: 0;
}

    .tl-search--hero .tl-search__input {
        padding: 0 var(--tl-space-3) 0 0;
        font-size: var(--tl-fs-xs);
        color: var(--tl-text);
    }

        .tl-search--hero .tl-search__input::placeholder {
            color: var(--tl-text-muted);
            opacity: 1;
        }

    .tl-search--hero .tl-search__submit {
        flex-shrink: 0;
        min-width: 120px;
        height: 44px;
        padding: 0 var(--tl-space-3);
        border-radius: 22px;
        background: var(--tl-navy-dark);
        color: var(--tl-text-inverse);
        font-size: var(--tl-fs-base);
        line-height: var(--tl-lh-base);
        font-weight: var(--tl-font-weight-medium);
    }

        .tl-search--hero .tl-search__submit:hover {
            filter: brightness(1.25);
            color: var(--tl-text-inverse);
        }

.tl-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tl-space-2);
    margin-top: var(--tl-space-3);
}

    .tl-hero__chips .tl-chip {
        height: 26px;
        padding: 0 18px;
        border-color: var(--tl-border);
        background: var(--tl-chip-on-image);
        color: var(--tl-text);
        font-size: var(--tl-fs-xs);
    }

.tl-hero__note {
    display: flex;
    align-items: center;
    gap: var(--tl-space-2);
    margin: var(--tl-space-6) 0 0;
    font-size: var(--tl-fs-xs);
}

    .tl-hero__note .bi {
        color: var(--tl-yellow);
    }

@media (min-width: 768px) {
    .tl-hero {
        min-height: 586px;
    }

    .tl-hero__title {
        font-size: var(--tl-fs-hero);
        line-height: var(--tl-lh-hero);
    }

    .tl-hero__subtitle {
        font-size: var(--tl-fs-lg);
    }

    .tl-hero--center {
        min-height: 337px;
    }
}

/*--------------------------------------------------------------
# Sezioni di pagina
--------------------------------------------------------------*/
.tl-section {
    padding: 60px 0;
    font-family: var(--tl-font-family);
}

.tl-section--alt {
    background: var(--tl-surface-subtle);
}

.tl-section__link {
    display: block;
    margin: calc(-1 * var(--tl-space-3)) 0 var(--tl-space-5);
    color: var(--tl-text);
    font-size: var(--tl-fs-base);
    font-weight: var(--tl-font-weight-medium);
    text-align: center;
}

    .tl-section__link span {
        text-decoration: underline;
    }

/*--------------------------------------------------------------
# Carosello: scorrimento nativo (scroll-snap), frecce e pallini da components.js
--------------------------------------------------------------*/
.tl-carousel {
    position: relative;
}

.tl-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: var(--tl-space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .tl-carousel__track::-webkit-scrollbar {
        display: none;
    }

    .tl-carousel__track > * {
        scroll-snap-align: start;
    }

.tl-carousel--small .tl-carousel__track {
    grid-auto-columns: 45%;
}

.tl-carousel__nav {
    position: absolute;
    z-index: 1;
    visibility: hidden; /* su mobile si scorre col dito: solo pallini */
    top: 50%;
    right: -14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--tl-border-strong);
    border-radius: 50%;
    background: var(--tl-surface);
    color: var(--tl-text);
    transform: translateY(-50%);
}

.tl-carousel__nav--prev {
    left: -14px;
    right: auto;
}

.tl-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: var(--tl-space-5);
}

    .tl-carousel__dots button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: var(--tl-border);
    }

        .tl-carousel__dots button.is-active {
            background: var(--tl-yellow);
        }

@media (min-width: 768px) {
    .tl-carousel__nav {
        visibility: visible;
    }

    .tl-carousel__track {
        grid-auto-columns: calc((100% - 2 * var(--tl-space-4)) / 3);
    }

    .tl-carousel--small .tl-carousel__track {
        grid-auto-columns: calc((100% - 3 * var(--tl-space-4)) / 4);
    }
}

@media (min-width: 1200px) {
    .tl-carousel__track {
        grid-auto-columns: calc((100% - 3 * var(--tl-space-4)) / 4);
    }

    .tl-carousel--small .tl-carousel__track {
        grid-auto-columns: calc((100% - 5 * var(--tl-space-4)) / 6);
    }
}

/*--------------------------------------------------------------
# Card destinazione: immagine con il nome in sovrimpressione
--------------------------------------------------------------*/
.tl-dest-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 148 / 172;
    border-radius: var(--tl-radius-card);
    background: var(--tl-navy);
    color: var(--tl-text-inverse);
    text-decoration: none;
}

    .tl-dest-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .tl-dest-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 55%);
    }

    .tl-dest-card:hover {
        color: var(--tl-text-inverse);
    }

        .tl-dest-card:hover img {
            transform: scale(1.04);
        }

.tl-dest-card__name {
    position: absolute;
    z-index: 1;
    left: var(--tl-space-2);
    right: var(--tl-space-2);
    bottom: var(--tl-space-4);
    font-family: var(--tl-font-family);
    font-size: var(--tl-fs-lg);
    font-weight: var(--tl-font-weight-medium);
    text-align: center;
}

.tl-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: var(--tl-space-4);
}

/*--------------------------------------------------------------
# Perché prenotare (landing): quattro vantaggi con icona
--------------------------------------------------------------*/
.tl-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tl-space-5) var(--tl-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

    .tl-values .bi {
        display: block;
        margin-bottom: var(--tl-space-3);
        font-size: 40px;
        color: var(--tl-navy);
    }

    .tl-values strong {
        display: block;
        font-size: var(--tl-fs-md);
        font-weight: var(--tl-font-weight-medium);
    }

    .tl-values span {
        font-size: var(--tl-fs-base);
    }

@media (min-width: 768px) {
    .tl-values {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Riga di chip centrata (filtri di una sezione) */
.tl-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--tl-space-2);
    margin-bottom: var(--tl-space-6);
}

/* Testo introduttivo della Home (Strapi: Homepage > Chi siamo) */
.tl-intro {
    text-align: center;
}

.tl-intro__title {
    max-width: 800px;
    margin: 0 auto var(--tl-space-2);
    font-size: var(--tl-fs-lg);
    line-height: 1.3;
    font-weight: var(--tl-font-weight-medium);
}

.tl-intro__text {
    max-width: 760px;
    margin: 0 auto var(--tl-space-5);
    font-size: var(--tl-fs-lg);
    line-height: 1.3;
}

    .tl-intro__text > :last-child {
        margin-bottom: 0;
    }

.tl-intro .tl-btn {
    height: 44px;
    text-transform: uppercase;
    font-weight: var(--tl-font-weight-medium);
}
