/* ====== RESET E BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Georgia', serif;
    overflow-x: hidden;
    background-color: #f3e9e0;
}

/* ====== COLORI PALETTE ====== */
:root {
    --color-beige: #f3e9e0;
    --color-beige-dark: #ebba8d;
    --color-brown: #7B542F;
    --color-brown-dark: #A16D28;
    --color-green: #233f2c;
    --color-green-dark: #163a22;
    --color-teal: #27d8c0;
    --color-text: #233f2c;
}

/* ====== SIDEBAR PERCORSI ====== */
.carousel-sidebar {
    position: fixed;
    right: -700px;
    top: 0;
    width: 700px;
    height: 100vh;
    background-color: var(--color-beige);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    padding-top: 60px;
}

.carousel-sidebar.open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--color-brown);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 40px 30px;
    text-align: center;
}

.sidebar-content h2 {
    color: var(--color-text);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.3;
}

.sidebar-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.sidebar-content p {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(235, 186, 141, 0.1);
    border-radius: 8px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.sidebar-btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--color-brown);
    color: var(--color-beige);
    border: 2px solid var(--color-brown);
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.sidebar-btn:hover {
    background-color: var(--color-beige-dark);
    color: #000000;
    border: 2px solid var(--color-beige-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(35, 63, 44, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color-beige);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--color-beige-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-beige);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-beige-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-beige-dark);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ====== SEZIONI PRINCIPALI ====== */
.container {
    display: flex;
    min-height: 85vh;
    padding-left: 15rem;
    padding-top: 10rem;
    padding-bottom: 8rem;
    padding-right: 15rem;
}

.background-black {
    background-color: var(--color-beige);
}

.background-white {
    background-color: var(--color-green-dark);
}

.container-percorsi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-beige);
    padding: 5rem 2rem;
    min-height: auto;
}

.container-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 35rem;
    padding-right: 35rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.container-comoitaliano {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 35rem;
    padding-right: 35rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
    min-height: 60vh;
}

.container-image-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ====== HERO SECTION ====== */
.background-video {
    display: block;
    object-fit: cover;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    height: 80hv;
}

.center-section {
    flex: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    width: 100%;
}

.background-blur {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(6px);
}

/* ====== IMMAGINI ====== */
.doctor-image {
    max-width: 90%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeInRight 0.8s ease;
}

/* ====== TESTI E TITOLI ====== */
.content {
    text-align: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease;
}

.content-left {
    text-align: left;
    animation: fadeInUp 0.8s ease;
}

.content-center {
    text-align: center;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

.title {
    color: var(--color-brown-dark);
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 80px;
    text-align: center;
}

.title-t {
    color: var(--color-beige);
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-align: center;
}

.title-footer {
    color: var(--color-green-dark);
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 80px;
    text-align: center;
}

.pre-subtitle {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.subtitle {
    color: var(--color-text);
    font-size: 3rem;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 400;
}

.subtitle-a {
    color: var(--color-beige);
    font-size: 3rem;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 400;
}

.subtitle-como {
    color: var(--color-beige);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.text {
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
}

.text-t {
    color: var(--color-beige);
    max-width: 720px;
    font-size: 1.15rem;
    position: relative;
}

.text-a {
    color: var(--color-beige);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
}

.text-list {
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
    margin-bottom: 20px;
}

.text-list-a {
    color: var(--color-beige);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
    margin-bottom: 20px;
}

.text-como {
    color: var(--color-beige);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
    padding-right: 60px;
    margin-bottom: 30px;
}

.text-recensioni {
    color: var(--color-beige);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
    padding-bottom: 30px;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ====== STRUTTURA SEZIONI ====== */
.left-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    min-height: auto;
}

.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ====== GALLERIA IMMAGINI ABOUT ====== */

.about-img-box-large {
    flex: 1;
    height: 650px;

    max-height: 700px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-img-box-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Effetto hover premium */
.about-img-box-large:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

/* ===== Dots ===== */
.carousel-dots {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(235, 186, 141, 0.35);
    /* beige tenue in trasparenza */
    cursor: pointer;
    border: none;
    transition: all 0.35s ease;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.08);
}

.dot.active {
    width: 26px;
    height: 10px;
    border-radius: 12px;
    background-color: #ebba8d;
    /* beige caldo coerente con la palette */
    box-shadow: 0 0 8px rgba(235, 186, 141, 0.5);
    transform: scale(1.05);
}

.dot:hover {
    background-color: rgba(235, 186, 141, 0.55);
    transform: scale(1.1);
}


/* ====== COMO ITALIANO ====== */
.background-como {
    background-color: var(--color-text);
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
}

.container-como {
    display: flex;
    min-height: 95vh;
    max-height: 95vh;
    padding-left: 15rem;
    padding-top: 5rem;
    padding-bottom: 8rem;
    padding-right: 15rem;
}

.image-container-como {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.image-wrapper {
    position: relative;
    width: 30%;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-wrapper:hover img {
    filter: blur(4px);
}

.overlay-text {
    color: var(--color-beige);
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* ===== CAROUSEL PERCORSI ===== */
.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
    padding-top: 20px;
}

.carousel-viewport-percorsi {
    overflow: hidden;
    width: 100%;
}

.carousel-track-percorsi {
    display: flex;
    gap: 20px;
    transition: transform .4s cubic-bezier(.25, .8, .25, 1);
    will-change: transform;
}

.carousel-item-box {
    flex: 0 0 calc(25% - 20px);
    border-radius: 18px;
    overflow: visible;
    height: auto;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.carousel-item-box:hover {
    transform: translateY(-8px);
    transform: scale(1.02);
    filter: brightness(0.98);
}

.img-cover-carousel {
    height: 550px !important;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.img-cover-carousel {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.carousel-item-info {
    padding: 12px 8px;
    text-align: center;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carousel-item-title {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

.carousel-item-price {
    color: var(--color-brown);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.img-cover-carousel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-item-box:hover .img-cover-carousel {
    transform: scale(1.05);
    filter: brightness(0.95);
}


/* Pulsanti Carosello */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 119, 89, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(74, 119, 89, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* ====== BOTTONI ====== */
.doc-button {
    position: relative;
    right: 20%;
    padding: 25px 55px;
    background-color: var(--color-brown);
    color: var(--color-beige-dark);
    border: 2px solid var(--color-brown);
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 100px;
}

.doc-button:hover {
    background-color: var(--color-beige-dark);
    color: #000000;
    border: 2px solid var(--color-beige-dark);
    transform: translateY(-3px);
}

.cita-button {
    position: relative;
    left: 15%;
    margin-left: 30px;
    padding: 25px 55px;
    background-color: var(--color-green-dark);
    color: var(--color-beige);
    border: 2px solid var(--color-text);
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 100px;
}

.cita-button:hover {
    background-color: var(--color-teal);
    color: #ffffff;
    border: 2px solid var(--color-teal);
    transform: translateY(-3px);
}

/* ====== SEZIONE DOVE MI TROVO ====== */
.container-dove {
    display: flex;
    flex-direction: column;
    background-color: var(--color-beige);
    color: var(--color-text);
    padding: 5rem 15rem;
    min-height: auto;
}

.left-dove {
    width: 100%;
    text-align: left;
    margin-bottom: 3rem;
}

.map-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* ====== SEZIONE RECENSIONI ====== */
.container-recensioni {
    background-color: var(--color-green-dark);
    color: var(--color-beige);
    padding: 7rem 4rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Titolo “Recensioni dei Pazienti” */
.container-recensioni .subtitle {
    color: var(--color-beige);
    font-size: 3.4rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Testo descrittivo */
.text-recensioni {
    color: var(--color-beige);
    font-size: 1.6rem;
    line-height: 2.1;
    max-width: 900px;
    margin-bottom: 4rem;
    position: relative;
}

/* Griglia delle recensioni */
.recensioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin-bottom: 3rem;
}

/* Card recensioni */
.review-card {
    background-color: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    padding: 40px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

/* Header recensione */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-name {
    font-weight: bold;
    font-size: 1.5rem;
    color: #2e2e2e;
}

.review-stars {
    color: var(--color-teal);
    font-size: 1.7rem;
    letter-spacing: 2px;
}

/* Data */
.review-date {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 16px;
}

/* Testo della recensione */
.review-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.9;
    font-style: italic;
}

/* Link “Leggi tutte le recensioni” */
.recensioni-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.4rem;
    color: var(--color-beige);
    text-decoration: none;
    border: 3px solid var(--color-beige);
    padding: 15px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.recensioni-link:hover {
    background-color: var(--color-beige);
    color: var(--color-text);
    transform: translateY(-3px);
}

/* ====== CONTACT FORM SECTION ====== */
.contact-container {
    max-width: 900px;
    margin: 3.5rem auto;
    /* centrato orizzontalmente e con spacing verticale */
    text-align: left;
    /* come le altre sezioni (testo allineato a sinistra) */
}

/* righe per rendere il layout a due colonne sui campi sopra */
.form-row {
    display: flex;
    gap: 1.5rem;
}

/* singoli gruppi di campo */
.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 1.05rem;
    color: var(--color-beige);
    margin-bottom: 8px;
    font-weight: 600;
}

/* campi input/textarea */
.form-group input,
.form-group textarea {
    padding: 14px;
    border: 2px solid var(--color-brown);
    border-radius: 10px;
    background-color: var(--color-beige);
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-brown-dark);
    box-shadow: 0 0 8px rgba(161, 109, 40, 0.20);
    background-color: #fffaf5;
}

/* bottone */
.form-button {
    padding: 16px 42px;
    background-color: var(--color-brown);
    color: var(--color-beige);
    border: 2px solid var(--color-brown);
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-block;
    margin-top: 8px;
}

.form-button:hover {
    background-color: var(--color-beige-dark);
    color: #000;
    border-color: var(--color-beige-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* assicurarsi che la sezione non erediti altezza fissa della .container */
#contatti {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    min-height: auto;
    /* override se .container imposta min-height */
}

/* ====== FOOTER ====== */
.site-footer {
    background-color: var(--color-beige);
    color: var(--color-beige);
    padding: 4rem 10rem 2rem;
    font-family: 'Georgia', serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-title {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-green-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-green);
}

.footer-column p,
.footer-column a {
    font-size: 1rem;
    color: var(--color-green-dark);
    text-decoration: none;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icons img {
    width: 45px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.payment-icons img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-green-dark);
}

.animate {
    will-change: opacity, transform;
    backface-visibility: hidden;
}

/* ==================================
   TIPOGRAFIA TESTI – DESKTOP
   ================================== */

/* corpo testo base */
.text,
.text-a,
.text-como,
.text-recensioni {
    font-size: 1.15rem;
    line-height: 1.75;
    letter-spacing: 0.2px;
}

/* testi più lunghi / descrittivi */
.text-list,
.text-list-a {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* testi secondari (date, microcopy) */
.review-date {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ==================================
   RECENSIONI – DESKTOP RESTORE
   ================================== */

.container-recensioni {
    padding: 7rem 4rem;
    overflow: visible;
}

.recensioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    overflow: visible;
}

.review-card {
    width: auto;
    max-width: none;
}

/* ==============================
   NAVBAR – DESKTOP CLEAN
   ============================== */

.navbar {
    height: 72px;
    padding: 0 3rem;
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

body.no-scroll {
    overflow: hidden;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease;
    z-index: 1500;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-open {
    overflow: hidden;
    padding-right: env(safe-area-inset-right);
}

.carousel-sidebar.open~body,
body:has(.carousel-sidebar.open) {
    overflow: hidden !important;
}

.sidebar-overlay.open {
    overscroll-behavior: contain;
}

/* HERO COMO PIÙ BASSA */

.como-hero {
    min-height: 60vh;
    max-height: 60vh;
}

/* immagine centrale */

.hero-como-image {
    max-width: 320px;
    width: 70%;
    height: auto;
    margin: auto;
    display: block;
    animation: fadeInUp 1s ease;
}

.logo-como {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 220px;
    height: auto;
    opacity: 0.95;
}

.hero-como-logo {
    width: 420px;
    max-width: 80%;
    height: auto;
    margin-bottom: 0px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content p {
    margin-top: 6px;
}



/* ====== ANIMAZIONI ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 2rem 1rem;
        min-height: auto;
        max-height: none;
    }

    .carousel-item-box {
        flex: 0 0 calc(33.333% - 15px);
        height: 450px;
    }

    .container-dove {
        padding: 4rem 5rem;
    }

    .site-footer {
        padding: 3rem 4rem 2rem;
    }

    .container-como {
        flex-direction: column;
        padding: 5rem 5rem;
    }

    .image-container-como {
        flex-direction: column;
        gap: 20px;
    }

    .image-wrapper {
        width: 100%;
        max-width: 500px;
        height: 280px;
    }
}

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

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .subtitle {
        font-size: 1.8rem;
        padding-left: 20px;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .text,
    .text-como {
        font-size: 1.05rem;
        line-height: 1.7;
        padding-left: 20px;
        padding-right: 20px;
    }

    .doc-button,
    .cita-button {
        padding: 18px 40px;
        font-size: 1.1rem;
        position: static;
        margin: 15px auto;
        left: 0;
        right: 0;
        display: block;
        width: 85%;
        max-width: 400px;
    }

    .carousel-item-box {
        flex: 0 0 calc(50% - 10px);
        height: 350px;
    }

    .carousel-sidebar {
        width: 100%;
        right: -100%;
    }

    .sidebar-content {
        padding: 40px 20px;
    }

    .container-dove {
        padding: 3rem 1.5rem;
    }

    .map-container iframe {
        height: 350px;
    }

    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .site-footer {
        padding: 3rem 2rem;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .container-como {
        padding: 3rem 1.5rem;
    }

    .image-wrapper {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .carousel-item-box {
        flex: 0 0 100%;
        height: 300px;
    }

    .title {
        font-size: 2.2rem;
        margin-bottom: 30px;
        letter-spacing: 0.05em;
    }

    .subtitle {
        font-size: 1.5rem;
        padding-left: 15px;
    }

    .text,
    .text-como,
    .text-t,
    .text-a {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .doc-button,
    .cita-button {
        padding: 16px 30px;
        font-size: 1rem;
        width: 90%;
        max-width: none;
        margin: 12px auto;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 6px 12px;
    }

    .container-dove {
        padding: 2rem 0.5rem;
    }

    .container-como {
        padding: 2rem 0.5rem;
        min-height: auto;
    }

    .image-container-como {
        padding: 0 10px;
        gap: 15px;
    }

    .image-wrapper {
        width: 100%;
        height: 220px;
    }

    .overlay-text {
        font-size: 1.2rem;
        padding: 10px;
    }

    .carousel-container {
        width: 100%;
    }

    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-column p,
    .footer-links a {
        font-size: 0.9rem;
    }

    .payment-icons img {
        width: 35px;
    }

    .subtitle-como {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        font-size: 0.95rem;
    }
}

/* REGOLE MOBILE (QUELLE NUOVE) */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    /* NAVBAR */
    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(35, 63, 44, 0.98);
        flex-direction: column;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem;
        text-align: center;
    }


    .title {
        font-size: 2.6rem;
        margin-bottom: 2rem;
    }

    .doc-button,
    .cita-button {
        width: 100%;
        margin: 0.5rem 0;
        padding: 16px;
        font-size: 1.1rem;
        position: static;
    }

    /* CONTAINER */
    .container,
    .container-about,
    .container-como,
    .container-dove {
        padding: 4rem 1.2rem;
        min-height: auto;
        max-height: none;
    }

    /* ABOUT GALLERY */
    .about-gallery-large {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-img-box-large {
        height: 320px;
    }

    /* CAROUSEL */
    .carousel-item-box {
        flex: 0 0 85%;
    }

    .carousel-btn {
        display: none;
    }

    /* SIDEBAR */
    .carousel-sidebar {
        width: 100%;
        right: -100%;
    }

    /* RECENSIONI */
    .recensioni-grid {
        padding-left: 7.5%;
        padding-right: 7.5%;
    }

    .review-card {
        padding: 25px;
    }

    /* FORM */
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .recensioni-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .recensioni-grid::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        opacity: 1;
        transform: none;
    }
}


@media (min-width: 769px) {

    .animate {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .animate.show {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ===========================
   MOBILE FIRST FIX DEFINITIVO
   =========================== */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* NAVBAR */
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-green-dark);
        flex-direction: column;
        gap: 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* CONTAINER GLOBALI */
    .container,
    .container-about,
    .container-comoitaliano,
    .container-como,
    .container-dove {
        padding: 6rem 1.5rem 4rem;
        min-height: auto;
        max-height: none;
    }

    /* HERO */
    .background-video {
        position: absolute;
        height: 100%;
    }

    .center-section {
        min-height: 100vh;
        padding: 6rem 1rem;
    }

    .title {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }

    .title-t {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }

    .doc-button,
    .cita-button {
        position: static;
        width: 100%;
        margin: 0.5rem 0;
        padding: 18px;
        font-size: 1.1rem;
    }

    /* ABOUT */
    .left-section,
    .right-section {
        flex-direction: column;
        min-height: auto;
    }

    .doctor-image {
        height: auto;
        max-width: 90%;
        margin: 2rem auto 0;
    }

    /* COMO ITALIANO – immagini */
    .image-container-como {
        flex-direction: column;
        gap: 20px;
    }

    .image-wrapper {
        width: 100%;
        height: 300px;
    }

    /* CAROUSEL PERCORSI */
    .carousel-container {
        width: 100%;
    }

    .carousel-track-percorsi {
        gap: 16px;
    }

    .carousel-item-box {
        flex: 0 0 80%;
    }

    .img-cover-carousel {
        height: 300px;
    }

    .carousel-btn {
        display: none;
    }

    /* SIDEBAR PERCORSI */
    .carousel-sidebar {
        width: 100%;
        right: -100%;
    }

    .carousel-sidebar.open {
        right: 0;
    }

    /* RECENSIONI */
    .recensioni-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
    }

    .review-card {
        min-width: 85%;
        scroll-snap-align: start;
    }

    /* MAPPA */
    .map-container iframe {
        height: 300px;
    }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .title-footer {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* ======================
   FIX VIDEO HERO MOBILE
   ====================== */

@media (max-width: 768px) {

    .hero {
        position: relative;
        min-height: 100vh;
        overflow: hidden;
    }

    .background-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* FONDAMENTALE */
        z-index: -1;
        display: block;
    }

    /* Rimuoviamo effetti che uccidono il video su mobile */
    .background-blur {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.35);
    }

    .center-section {
        position: relative;
        z-index: 2;
    }
}

/* ==============================
   RECENSIONI – SWIPE APPLE STYLE
   ============================== */

@media (max-width: 768px) {

    .container-recensioni {
        padding: 5rem 1.5rem;
    }

    .recensioni-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }

    .recensioni-grid::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
        padding: 28px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        transition: transform 0.3s ease;
    }

    .review-card:active {
        transform: scale(0.98);
    }

    .review-header {
        margin-bottom: 12px;
    }

    .review-name {
        font-size: 1.25rem;
    }

    .review-stars {
        font-size: 1.4rem;
    }

    .review-date {
        font-size: 0.95rem;
    }

    .review-text {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    /* dots */
    .review-dots {
        display: flex;
        justify-content: center;
        margin-top: 18px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.35);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .dot.active {
        width: 22px;
        border-radius: 10px;
        background-color: #ffffff;
    }
}

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .container-recensioni {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 5rem 0;
        /* niente padding laterale */
        overflow: hidden;
    }

    .container-recensioni .content {
        padding: 0 1.5rem;
        /* padding SOLO al contenuto testuale */
        box-sizing: border-box;
    }

    .recensioni-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        padding-left: 1.5rem;
        padding-right: 1.5rem;

        width: 100%;
        box-sizing: border-box;
    }

    .recensioni-grid::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        flex: 0 0 calc(100vw - 3rem);
        /* ← CHIAVE */
        max-width: calc(100vw - 3rem);
        scroll-snap-align: center;

        box-sizing: border-box;
        padding: 28px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .review-dots {
        display: flex;
        justify-content: center;
        margin-top: 18px;
        gap: 8px;
    }
}

/* =====================================
   GLOBAL MOBILE OVERFLOW KILLER
   ===================================== */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* NESSUNA sezione può allargare la viewport */
    section,
    div {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* kill flex overflow */
    .background-como,
    .container-recensioni,
    .container,
    .container-about,
    .container-comoitaliano,
    .container-dove {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* lo swipe vive SOLO qui */
    .recensioni-grid {
        overflow-x: auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================
   RECENSIONI – MOBILE MINIMAL (POLISH)
   ========================================== */

@media (max-width: 768px) {

    /* SEZIONE */
    .container-recensioni {
        padding: 4rem 0;
        overflow: hidden;
    }

    .container-recensioni .content {
        padding: 0 1.5rem;
    }

    /* TRACK */
    .recensioni-grid {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        padding: 1rem 1.5rem 2rem;
    }

    .recensioni-grid::-webkit-scrollbar {
        display: none;
    }

    /* CARD */
    .review-card {
        flex: 0 0 88%;
        max-width: 88%;
        scroll-snap-align: center;

        background: #ffffff;
        border-radius: 22px;
        padding: 24px;

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        box-sizing: border-box;
    }

    /* TESTI */
    .review-name {
        font-size: 1.15rem;
        font-weight: 600;
    }

    .review-stars {
        font-size: 1.2rem;
        color: var(--color-teal);
    }

    .review-date {
        font-size: 0.85rem;
        opacity: 0.6;
    }

    .review-text {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-top: 0.5rem;
    }

    /* DOTS – MINIMAL */
    .review-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 8px;
    }

    .dot {
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: rgba(255, 255, 255, 0.35);
        transition: all 0.3s ease;
    }

    .dot.active {
        background: #ffffff;
    }

    /* CTA – RIDIMENSIONATA */
    .recensioni-link {
        margin-top: 2.5rem;
        font-size: 1rem;
        padding: 10px 22px;
        border-width: 2px;
        border-radius: 30px;
    }
}

/* ==================================
   RECENSIONI – DOTS SOTTO LE CARD
   ================================== */

@media (max-width: 768px) {

    /* togliamo i dots dal flusso dello swipe */
    .recensioni-grid .review-dots {
        display: none;
    }

    /* riposizioniamo i dots come elemento separato */
    .container-recensioni .review-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 14px;
        padding: 0 1.5rem;
    }
}

/* ==================================
   RECENSIONI – COMPACT VERTICAL RHYTHM
   ================================== */

@media (max-width: 768px) {

    /* sezione generale */
    .container-recensioni {
        padding: 3rem 0;
    }

    /* titolo e testo introduttivo */
    .container-recensioni .subtitle {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .text-recensioni {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.8rem;
    }

    /* swipe area */
    .recensioni-grid {
        padding-top: 0.5rem;
        padding-bottom: 1.2rem;
    }

    /* card */
    .review-card {
        padding: 20px;
    }

    /* dots */
    .review-dots {
        margin-top: 6px;
    }

    /* CTA */
    .recensioni-link {
        margin-top: 1.8rem;
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

/* ==================================
   TIPOGRAFIA TESTI – MOBILE
   ================================== */

@media (max-width: 768px) {

    /* corpo testo base mobile */
    .text,
    .text-a,
    .text-como,
    .text-recensioni {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    /* testi lunghi */
    .text-list,
    .text-list-a {
        font-size: 1rem;
        line-height: 1.75;
    }

    /* micro-testi */
    .review-date {
        font-size: 0.85rem;
    }
}

/* ==================================
   PERCORSI ATRIGNA – SWIPE MOBILE
   ================================== */

@media (max-width: 768px) {

    /* viewport */
    .carousel-viewport-percorsi {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem;
    }

    .carousel-viewport-percorsi::-webkit-scrollbar {
        display: none;
    }

    /* track */
    .carousel-track-percorsi {
        display: flex;
        gap: 16px;
        transform: none !important;
        /* disattiva movimento JS */
        will-change: scroll-position;
    }

    /* card */
    .carousel-item-box {
        flex: 0 0 85%;
        max-width: 100%;
        scroll-snap-align: center;
    }

    .img-cover-carousel {
        height: 450px;
    }

    /* pulsanti inutili su mobile */
    .carousel-btn {
        display: none;
    }
}

/* ==================================
   FOOTER – MOBILE REFINED
   ================================== */

@media (max-width: 768px) {

    .site-footer {
        padding: 3rem 1.5rem 2rem;
        text-align: center;
    }

    /* titolo */
    .title-footer {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 2rem;
        letter-spacing: 0.08em;
    }

    /* layout colonne */
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        max-width: 360px;
    }

    /* titoli colonna */
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        opacity: 0.85;
    }

    /* link e testi */
    .footer-links li {
        margin-bottom: 0.4rem;
    }

    .footer-links a,
    .footer-column p,
    .footer-column a {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* pagamenti */
    .payment-icons {
        justify-content: center;
        gap: 12px;
        margin-top: 0.5rem;
    }

    .payment-icons img {
        height: 22px;
        width: auto;
        opacity: 0.9;
    }

    /* footer bottom */
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
        font-size: 0.8rem;
        opacity: 0.7;
    }
}

/* ==========================================
   RECENSIONI – DESKTOP HARD RESET (FINALE)
   ========================================== */

@media (min-width: 769px) {

    .container-recensioni {
        display: block !important;
        padding: 7rem 4rem !important;
        overflow: visible !important;
        min-height: auto !important;
        height: auto !important;
        background-color: var(--color-green-dark);
    }

    .container-recensioni .content {
        display: block !important;
        width: 100% !important;
        max-width: 1400px;
        margin: 0 auto;
    }

    .recensioni-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
        gap: 40px !important;
        overflow: visible !important;
        transform: none !important;
        padding: 0 !important;
    }

    .review-card {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .review-dots {
        display: none !important;
    }
}

/* =========================================
   NAVBAR MOBILE – CENTER SAFE LAYOUT
   ========================================= */

@media (max-width: 768px) {

    /* HEADER */
    header.navbar {
        position: sticky;
        top: 0;
        z-index: 1000;

        height: 52px;
        width: 100%;

        background-color: var(--color-green-dark);
        margin: 0;
        padding: 0;
    }

    /* CONTENITORE A 3 COLONNE */
    .navbar-container {
        height: 52px;
        width: 100%;
        padding: 0 0.5rem;

        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    /* SINISTRA: HAMBURGER */
    .navbar-left {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .mobile-menu-btn {
        width: 32px;
        height: 32px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        background: none;
        border: none;
        padding: 0;
        margin: 0;

        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 2.5px;
        background-color: #ffffff;
        border-radius: 2px;
    }

    /* CENTRO: LOGO (CENTRATO REALE) */
    .logo {
        justify-self: center;

        font-size: 1rem;
        line-height: 1;
        color: #ffffff;
        padding-left: 3rem;

        white-space: nowrap;
        text-align: center;
    }

    /* DESTRA: SPAZIO FANTASMA */
    .navbar-container::after {
        content: "";
        width: 32px;
        /* stessa larghezza hamburger */
        height: 32px;
    }

    /* MENU A TENDINA */
    .nav-links {
        position: absolute;
        top: 52px;
        left: 0;

        width: 100%;
        margin: 0;
        padding: 0;

        background-color: var(--color-green-dark);

        display: flex;
        flex-direction: column;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 260px;
    }

    .nav-links li {
        padding: 0.9rem 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a {
        font-size: 1.05rem;
        color: #ffffff;
        text-decoration: none;
    }
}

/* ====== SIDEBAR PERCORSI: versione completa e consolidata ====== */
.carousel-item-box {
    cursor: pointer;
}

.sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.16);
}

.carousel-sidebar {
    position: fixed;
    top: 0;
    right: 0;

    width: min(720px, 92vw);
    height: 100vh;

    background: var(--color-beige);

    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.2, 1);

    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.carousel-sidebar.open {
    transform: translateX(0);
}


.sidebar-content {
    padding: 3rem 2rem 2rem;
}

@media (max-width: 768px) {
    .sidebar-overlay {
        background-color: rgba(0, 0, 0, 0.22);
    }

    .carousel-sidebar {
        left: 0;
        right: 0;
        top: auto;
        bottom: -100%;
        width: 100%;
        height: 82vh;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
        transition: bottom 0.35s ease;
        padding-top: 0;
        overflow-y: auto;
    }

    .carousel-sidebar.open {
        right: 0;
        bottom: 0;
    }

    .sidebar-inner {
        overflow: visible;
        max-height: none;
    }

    .sidebar-content {
        padding: 3.5rem 1rem 1.25rem;
    }

    .sidebar-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.9rem;
    }

    .sidebar-content img {
        height: 190px;
        margin-bottom: 0.9rem;
    }

    .sidebar-content p {
        font-size: 0.98rem;
        line-height: 1.65;
        margin-bottom: 1rem;
        max-height: none;
        overflow: visible;
        background-color: transparent;
        padding: 0;
    }

    .sidebar-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem;
    }

    .close-btn {
        top: 0.6rem;
        right: 0.8rem;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .16);

        opacity: 0;
        pointer-events: none;

        transition: opacity .25s ease;
        z-index: 1500;
    }

    .sidebar-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
        touch-action: none;
    }

    .como-hero {
        min-height: 40vh;
        max-height: 40vh;
    }

    /* immagine centrale */

    .hero-como-image {
        max-width: 320px;
        width: 70%;
        height: auto;
        margin: auto;
        display: block;
        animation: fadeInUp 1s ease;
    }

}

@media (max-width: 768px) {

    .hero {
        position: relative;
        overflow: hidden;
    }

    .background-video {
        position: absolute !important;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0 !important;
    }

    .center-section {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 768px) {

    .hero {
        position: relative;
        overflow: hidden;
    }

    .background-video {
        position: absolute !important;
        inset: 0;
        width: 100%;
        height: 80%;
        object-fit: cover;
    }
}


.hero {
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.center-section {
    position: relative;
    z-index: 2;
}

/* ============================= */
/* ===== COMO ITALIANO ========= */
/* ============================= */

/* HERO */

.como-hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.como-hero video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.como-hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.como-hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.como-hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* SEZIONI */

.como-section {
    padding: 40px;
}

.como-container {
    max-width: 1200px;
    margin: auto;
}

.como-center {
    text-align: center;
}

/* 2 COLONNE */

.como-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.como-two-columns img {
    width: 100%;
    border-radius: 12px;
}

/* GRID */

.como-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.como-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* CARD */

.como-card {
    padding: 35px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
}

.background-white .como-card {
    background: #f5f5f5;
}

.como-card:hover {
    transform: translateY(-6px);
}

/* FUSION TABLE */

.como-fusion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}

.como-fusion div {
    padding: 18px;
    border-bottom: 1px solid #ddd;
}

/* STATISTICHE */

.como-stat {
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1.8;
    position: relative;
}

/* QUOTE */

.como-quote {
    padding: 120px 20px;
    text-align: center;
    font-size: 1.8rem;
    font-style: italic;
    color: #fff;
}

.background-como .como-quote {
    background: transparent;
}

/* CTA BUTTON (coerente con il tuo stile) */

.como-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    background: #b89d6f;
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.como-btn:hover {
    background: #9d855d;
}

/* FORM */

.como-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 500px;
    margin: 40px auto 0;
}

.como-form input,
.como-form textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .como-two-columns {
        grid-template-columns: 1fr;
    }

    .como-grid-3 {
        grid-template-columns: 1fr;
    }

    .como-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .como-hero-overlay h1 {
        font-size: 2rem;
    }
}

/* ============================= */
/* HERO VIDEO FULL SCREEN UPGRADE */
/* ============================= */

.hero-como-full {
    position: relative;
    height: 90vh;
    /* Occupa tutta l’altezza */
    min-height: 750px;
    /* Su desktop grande */
    overflow: hidden;
}

.hero-como-full .background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-soft {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(0, 0, 0, 0.55) 100%);
}


.hero-como-full .title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.hero-como-full .text {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 20px 0;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-text {
    color: var(--color-green-dark);
    flex: 1;
    font-size: 18px;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

.why-section {
    padding: 120px 20px;
    max-width: 1200px;
    margin: auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-card {
    background: var(--color-beige);
    padding: 40px 35px;
    border-radius: 14px;
    border: 1px solid var(--color-green-dark);
    transition: all 0.35s ease;
    position: relative;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.why-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.why-card p {
    line-height: 1.6;
    font-size: 16px;
}

@media (max-width:900px) {

    .about-row {
        flex-direction: column;
        gap: 30px;
        margin: 60px 0;
    }

    .about-row.reverse {
        flex-direction: column;
    }

}

/* FIX SEZIONE BENEFICI MOBILE */
@media (max-width: 768px) {

    .como-grid-3 {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .como-stat {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .como-stat.text {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {

    .logo-como {
        width: 120px;
        /* logo più piccolo */
        top: 20px;
        /* più vicino al bordo */
        right: 20px;
        opacity: 0.9;
    }

}

@media (max-width:768px) {

    .container-como {
        position: relative;
        padding-top: 190px;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
        min-height: auto;
    }

    .logo-como {
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: auto;
        opacity: 0.95;
    }

    .subtitle-como {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .text-como {
        text-align: center;
        padding: 0;
        margin-bottom: 35px;
        font-size: 1.05rem;
        line-height: 1.7;
    }

}

@media (max-width:768px) {

    .image-container-como {
        flex-direction: column;
        gap: 18px;
    }

    .image-wrapper {
        width: 100%;
        height: 240px;
    }

}

@media (max-width:768px) {

    .hero-como-logo {
        width: 220px;
    }

}

@media (max-width:768px) {

    .hero-como-logo {
        width: 240px;
    }

    .hero-content .text-t {
        font-size: 1.1rem;
    }

}

@media (max-width:768px) {

    .carousel-item-box {
        overflow: hidden;
    }

    .carousel-item-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

}

/* BOOK */

.book {
    position: relative;
    width: 350px;
    height: 450px;
    margin: 50px auto;
    perspective: 2000px;
}

.book-pages {
    position: relative;
    width: 100%;
    height: 100%;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: transform 0.8s;
}

.page div {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 40px;
    background: #111;
    color: white;
    backface-visibility: hidden;
    border: 1px solid #333;
}

.page .back {
    transform: rotateY(180deg);
}

#page1:checked~.book-pages .page1 {
    transform: rotateY(-180deg);
}

#page2:checked~.book-pages .page2 {
    transform: rotateY(-180deg);
}

.next,
.prev {
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
}

.prev {
    left: 20px;
    right: auto;
}

input[type="checkbox"] {
    display: none;
}

/* ===== OTTIMIZZAZIONE MOBILE SEZIONE PERCHÉ SCEGLIERE ME ===== */

@media (max-width: 768px) {

    .container-why {
        padding: 80px 20px 100px 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 35px;
    }

    .why-card {
        padding: 28px 24px;
        border-radius: 10px;
    }

    .why-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .why-card p {
        font-size: 15px;
        line-height: 1.6;
    }

}

.about-section {
    width: 100%;
    padding: 120px 8vw;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 120px;
    margin-bottom: 140px;
}

@media (max-width:768px) {

    .about-section {
        padding: 80px 20px;
    }

    .about-row {
        flex-direction: column;
        gap: 35px;
        margin-bottom: 80px;
    }

}

.about-section {
    width: 100%;
    padding: 120px 8vw;
}

.about-block {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 120px;
    align-items: center;
    margin-bottom: 140px;
}

.about-block.reverse {
    grid-template-columns: 1fr 1.3fr;
}

.about-text {
    font-size: 19px;
    line-height: 1.8;
    color: var(--color-green-dark);
}

.about-text p {
    margin-bottom: 22px;
}

.about-image img {
    width: 100%;
    height: 80%;
    border-radius: 14px;
    display: block;
}

@media (max-width:768px) {

    .about-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-block.reverse {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 80px 20px;
    }

}

/* ===== ABOUT SECTION (DESKTOP FIX) ===== */

.about-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 6rem;
}

/* alternanza layout */
.about-block.reverse {
    grid-template-columns: 1fr 1.2fr;
}

/* testo */
.about-text {
    font-size: 1.15rem;
    line-height: 1.85;
}

/* IMMAGINE – CHIAVE */
.about-image {
    width: 100%;
    height: 520px;
    /* 🔥 dimensione fissa */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 uniforma tutte */
    display: block;
}

@media (max-width: 768px) {

    .about-block,
    .about-block.reverse {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 3rem;
    }

    .about-image {
        height: 260px;
    }

    .about-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

/* ===== PONTE TRA CULTURE – FIX IMMAGINI ===== */

.como-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.como-image-grid>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CONTENITORE IMMAGINE */
.como-img {
    width: 100%;
    height: 500px;
    /* 🔥 dimensione giusta */
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* testo sotto */
.como-image-grid p {
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

/* ====== BOTTONE SCOPRI DI PIÙ ====== */
.scopri-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 36px;
    background-color: var(--color-brown);
    color: var(--color-beige);
    border: 2px solid var(--color-brown);
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scopri-btn:hover {
    background-color: var(--color-beige-dark);
    color: #000;
    transform: translateY(-3px);
}

/* versione chiara (per Como Italiano) */
.scopri-btn.light {
    background-color: transparent;
    border: 2px solid var(--color-beige);
    color: var(--color-beige);
}

.scopri-btn.light:hover {
    background-color: var(--color-beige);
    color: var(--color-text);
}

/* wrapper bottone COMO */
.como-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {

    .como-btn-wrapper {
        margin-top: 20px;
    }

}

.form-success {
    display: none;
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(39, 216, 192, 0.1);
    border: 1px solid var(--color-teal);
    color: var(--color-text);
    font-size: 1.1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.form-success.active {
    display: block;
}

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

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

/* ===== SUCCESS MESSAGE MIGLIORATO ===== */

.form-success {
    display: none;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;

    background: transparent;
    box-shadow: none;
    border: none;

    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.form-success.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.success-box {
    background: #fdf8f3;
    /* beige chiarissimo */
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    color: #233f2c;
    /* verde scuro */
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(35, 63, 44, 0.1);
    animation: smoothPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes smoothPop {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Icona */
.success-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    background-color: #27d8c0;
    /* colore accento */
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    transform: scale(0.6);
    opacity: 0;
    animation: iconPop 0.4s ease forwards;
    animation-delay: 0.2s;
}

@keyframes iconPop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Titolo */
.success-box h3 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Testo */
.success-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #233f2c;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .como-image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .como-img {
        aspect-ratio: 16 / 10;
        /* più orizzontali su mobile */
    }
}

/* FIX MOBILE CAROUSEL */
@media (max-width: 768px) {

    .carousel-track-percorsi {
        display: flex;
    }

    .carousel-item-box {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-item-info {
        display: block;
        text-align: center;
        padding: 10px 5px;
    }

}