/* ==========================================================================
   STYLE.CSS - KARATE PATAVIUM (Versione Ottimizzata e Ripulita)
   - Zero duplicati e sintassi corretta
   - Rimozione @import (inserire link nel <head> dell'HTML per velocità)
   - Navbar uniformata con sfondo nero solido (#0f0f0f)
   - Box Contatti con altezze uguali (align-items: stretch)
   ========================================================================== */

/* 1. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: 'Cinzel', serif;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f6f2ea;
    color: #222;
    line-height: 1.7;
    overflow-x: hidden;
    /* NOVITÀ: Blocca lo scroll orizzontale su tutti i dispositivi */
    width: 100%;
}

/* NOVITÀ: Regola universale per la gestione responsiva dei media */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-container video {
    height: 100%;
}

/* 2. NAVBAR UNIFORMATA (Sfondo nero solido per identica resa su tutte le pagine) */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: #0f0f0f;
    border-bottom: 2px solid #b30000;
    z-index: 999;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #b30000;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.texth1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0px 0px 30px rgba(0, 0, 0, 0.6);
}

.video-container {
    position: relative;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url(/foto/k3.webp);
    background-size: cover;
    background-position: right center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 60px 20px;
}

.container-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

.mail-btn {
    width: 100%;
    text-align: center;
    display: block;
    padding: 18px;
    font-size: 1.1rem;
    background-color: #b30000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(179, 0, 0, 0.2);
}

.mail-btn:hover {
    background-color: #7d0000;
    transform: translateY(-3px);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.video-container .content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}


.overlay {
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero h2 {
    color: #d93025;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.hero p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../foto/k3.webp") !important;
    background-size: cover;
    background-position: center bottom;
    padding: 140px 20px 60px 20px;
    color: white;
    text-align: center;
    position: relative;
}

sensei-taira {
    float: left;
    /* Sposta la foto a sinistra e fa avvolgere il testo */
    margin-right: 20px;
    /* Spazio tra la foto e il testo a destra */
    margin-bottom: 15px;
    /* Spazio sotto la foto nel caso il testo scenda */
}

.scroll-down-arrow {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #8e0000;
    width: 44px;
    height: 44px;
    animation: pulse-arrow 2s infinite;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.scroll-down-arrow:hover {
    color: #b30000;
    opacity: 1;
}

.scroll-down-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes pulse-arrow {
    0% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, 15px);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-header p {
    color: #ccc;
    font-size: 1.1rem;
}

/* 4. BOTTONI & LINK */
.btn {
    display: inline-block;
    padding: 30px 60px;
    background: #b30000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    background-color: #8e0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(179, 0, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #b30000;
    color: #b30000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #b30000;
    color: white;
}

.link-more {
    display: inline-block;
    margin-top: 20px;
    color: #b30000;
    text-decoration: none;
    font-weight: bold;
}

.link-more:hover {
    color: #7d0000;
}

/* 5. STRUTTURA LAYOUT & SEZIONI GENERALI */
section {
    padding: 1rem;
}

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

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

sensei-split::after {
    content: "";
    display: table;
    clear: both;
}

/* Stile e posizionamento della foto per avvolgere il testo */
.sensei-taira {
    float: left;
    /* Sposta la foto a sinistra e avvolge il testo */
    width: 40%;
    /* Regola la larghezza della foto (es. 40% del contenitore) */
    margin-right: 30px;
    /* Spazio vuoto a destra della foto */
    margin-bottom: 20px;
    /* Spazio vuoto sotto la foto */
}

/* Assicura che l'immagine rispetti la larghezza del suo contenitore */
.sensei-taira img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.about {
    position: relative;
    background: white;
}

.about h2,
.benefici h2,
.corsi-preview h2,
.team h2,
.about-page h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    position: relative;
}

.about h2::after,
.benefici h2::after,
.corsi-preview h2::after,
.team h2::after,
.about-page h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #b30000;
    margin-top: 10px;
}

.about p,
.about-page p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-top: -15px;
}

/* SCHEDE (CARDS) */
.card {
    background: #ece5d8;
    padding: 30px;
    border-radius: 4px;
    border-top: 4px solid #b30000;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card-corso {
    background: white;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
}

.card-corso:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-corso h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #111;
}

/* 6. PAGINA CHI SIAMO & SENSEI */
.about-page {
    background: white;
    padding: 80px 20px;
}

.align-center {
    align-items: center;
}

.values-list {
    list-style: none;
}

.values-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.values-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b30000;
    font-weight: bold;
}

.card-instructor {
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-instructor h3 {
    font-size: 1.6rem;
}

.card-instructor .role {
    color: #b30000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.dojo-section {
    background: white;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
}

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

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 6. PAGINA CHI SIAMO & SENSEI */
.sensei-section {
    background: #f6f2ea;
}

.sensei-split {
    gap: 50px;
}



.sensei-intro {
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    margin-bottom: 25px;
    border-left: 3px solid #b30000;
    padding-left: 15px;
}

.sensei-block {
    margin-bottom: 25px;
}

.sensei-block h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #111;
}

.cert-list {
    list-style: none;
    padding-left: 0;
}

.cert-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05rem;
}

.cert-list li::before {
    content: "🥋";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #b30000;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.sensei-section {
    background: #f6f2ea;
}

.sensei-split {
    gap: 50px;
}

.sensei-photo {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.sensei-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 4px;
    border-bottom: 5px solid #b30000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.sensei-photo:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sensei-photo-2 {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.sensei-photo-2 img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 4px;
    border-bottom: 5px solid #b30000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.7s ease, box-shadow 0.7s ease;
    object-position: 80% 50%;
    /* Allinea a destra al centro in verticale */
}

.sensei-photo-2:hover img {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sensei-intro {
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    margin-bottom: 25px;
    border-left: 3px solid #b30000;
    padding-left: 15px;
}

.sensei-block {
    margin-bottom: 25px;
}

.sensei-block h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #111;
}

.cert-list {
    list-style: none;
    padding-left: 0;
}

.cert-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05rem;
}

.cert-list li::before {
    content: "🥋";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

.about-btn {
    margin-top: 30px;
}

/* 7. PAGINA CORSI DETTAGLIO */
.courses-page {
    padding: 60px 20px;
}

.course-detail {
    background: white;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-left: 5px solid #b30000;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.course-detail:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #d93025;
}

.course-detail h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.corsi-text {
    padding: 1rem;
}

.age-badge {
    display: inline-block;
    background: #ece5d8;
    padding: 3px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

.course-detail h3 {
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.course-detail ul {
    padding-left: 20px;
}

.course-detail li {
    margin-bottom: 8px;
}

/* 8. PAGINA CONTATTI & GRIGLIA EQUILIBRATA */
.contact-page-content {
    padding: 80px 20px;
    background: white;
}

.info-items p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: stretch;
}

.contact-sidebar {
    display: contents !important;
}

.info-card {
    grid-column: 2;
    grid-row: 1;
    background: #ffffff;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-form-container {
    grid-column: 1;
    grid-row: 1;
    background: #ffffff;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-card:hover,
.contact-form-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.contact-form-container h2 {
    margin-bottom: 25px;
}

.reviews-box {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #4285F4;
    box-sizing: border-box;
}

.reviews-box .review-card {
    background: #fdfcf9;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 0;
}

/* ==========================================================================
   NUOVI STILI CORSI & GALLERIA (AGGIORNATI)
   ========================================================================== */

/* 1. ALLARGHIAMO IL CONTENITORE PER DARE PIU' RESPIRO */
.container.courses-page {
    max-width: 1800px !important;
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
}

.course-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 2. GESTIONE CORRETTA DELL'ALTERNANZA E DELLE PROPORZIONI SU PC */
@media (min-width: 769px) {

    /* CORSI DISPARI: Testo a sinistra (Largo), Foto a destra (Strette) */
    /* CORSI DISPARI */
    .course-detail:nth-child(odd) .grid-2 {
        grid-template-columns: 2.2fr 1fr;
        align-items: stretch;
        /* Pareggia l'altezza della colonna foto con quella del testo */
    }

    /* CORSI PARI */
    .course-detail:nth-child(even) .grid-2 {
        grid-template-columns: 1fr 2.2fr;
        align-items: stretch;
        /* Pareggia l'altezza della colonna foto con quella del testo */
    }

    /* ...mantieni le tue regole order qui in mezzo... */

    /* SCROLL DINAMICO ADATTIVO ALL'ARTICLE */
    .course-detail .course-gallery {
        height: 0;
        /* Il trucco: impedisce alle foto di dettare l'altezza totale del box */
        min-height: 100%;
        /* Costringe la galleria a estendersi solo per l'altezza dettata dal testo */
        overflow-y: auto;
        padding: 0 10px;
    }

    /* Correggiamo la classe .course-gallery */
    .course-detail:nth-child(even) .course-text {
        order: 2;
    }

    .course-detail:nth-child(even) .course-gallery {
        order: 1;
    }

    .reviews-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .reviews-header {
        grid-column: 1 / -1;
    }

    .reviews-box>a {
        grid-column: 1 / -1;
        text-align: center;
    }
}

.slider-wrapper img,
.slide img {
    cursor: pointer;
}

/* Stile della barra di scorrimento (per PC) */
.course-gallery::-webkit-scrollbar {
    width: 6px;
}

.course-gallery::-webkit-scrollbar-track {
    background: #ece5d8;
    border-radius: 4px;
}

.course-gallery::-webkit-scrollbar-thumb {
    background: #b30000;
    border-radius: 4px;
}

/* 4. FOTO PICCOLE E UNIFORMI (Meno "Bulky") */
.course-gallery img {
    width: 100%;
    max-width: 350px;
    /* Le foto non diventeranno mai troppo invadenti */
    aspect-ratio: 16 / 9;
    /* Le manteniamo quadrate perfette */
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
    border-bottom: 3px solid #b30000;
    margin-bottom: 15px;
    /* Spazio tra le foto durante lo scroll */
}

/* MODALE MOBILE */
.mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    overflow-y: auto;
}

.close-modal {
    position: fixed;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.cookie-policy-btn {
    color: #b30000;
    text-decoration: underline;
    font-size: 0.9rem;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 70px 20px 40px 20px;
}

.modal-content img {
    width: 100%;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .course-gallery {
        max-height: none;
        padding-right: 0;

        /* Nuove impostazioni per lo scroll orizzontale */
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .course-gallery img {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-bottom: 0;
        max-width: none;
        cursor: pointer;
    }

    .course-gallery::-webkit-scrollbar {
        height: 6px;
    }

    .course-gallery::-webkit-scrollbar-track {
        background: #ece5d8;
        border-radius: 4px;
    }

    .course-gallery::-webkit-scrollbar-thumb {
        background: #b30000;
        border-radius: 4px;
    }
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366;
    color: #ffffff !important;
    text-decoration: none;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 15px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background-color: #20ba56;
    transform: translateY(-3px);
}

.whatsapp-btn svg {
    width: 22px;
    height: 22px;
}

.map-section {
    margin: 80px 0 40px 0;
}

.map-wrapper {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    background: #eee;
}

.map-wrapper iframe {
    display: block;
    width: 100% !important;
    height: 450px;
    max-height: 60vh;
    border: none;
}

.map-link-external {
    color: #b30000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.map-link-external:hover {
    text-decoration: underline;
}

/* 9. FOOTER & CTA */
.cta {
    background: #111;
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
}

footer {
    background: #111;
    color: #999;
    padding: 25px;
    text-align: center;
    font-size: 0.9rem;
}

.faq-section {
    margin: 60px 0 20px 0;
}

.faq {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.faq-h2 {
    font-size: 1.5rem;
    color: #111;
    font-family: 'Cinzel', serif;
    text-align: center;
    margin-bottom: 35px;
}

.faq-item {
    transition: all 0.3s ease;
    background: white;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-top: 3px solid #b30000;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.faq-item h4 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-family: 'Cinzel', serif;
}

.contact-header h1 {
    font-size: 2.5rem;
    text-align: center;
    padding-top: 2rem;
}

.contact-header p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ==========================================================================
   ALTRI STILI (Pergamena, Social Links, Fade-Up)
   ========================================================================== */

.pergamena {
    background-color: #eee2c5;
    background-image:
        repeating-linear-gradient(0deg,
            rgba(120, 90, 50, 0.025) 0px,
            rgba(120, 90, 50, 0.025) 1px,
            transparent 1px,
            transparent 4px),
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 6px),
        radial-gradient(circle at 30% 20%,
            rgba(255, 255, 255, 0.3),
            transparent 40%);
    box-shadow: inset 0 0 50px rgba(80, 50, 20, 0.10);
}

.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1.05rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.social-link.facebook {
    background-color: #3b5998;
    box-shadow: 0 4px 15px rgba(59, 89, 152, 0.15);
}

.social-link.youtube {
    background-color: #b30000;
    box-shadow: 0 4px 15px rgba(179, 0, 0, 0.15);
}

.social-link.gmaps {
    background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
    background-size: 200% 200%;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.25);
    border: none;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* 10. MEDIA QUERIES RESPONSIVE */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-card {
        grid-column: 1;
        grid-row: 2;
    }

    .contact-form-container {
        grid-column: 1;
        grid-row: 1;
        padding: 30px 25px;
    }

    .reviews-box {
        grid-column: 1;
        grid-row: 3;
        padding: 25px 20px;
        display: block;
    }

    .reviews-box .review-card {
        margin-bottom: 15px;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f0f0f;
    color: #fff;
    padding: 20px;
    z-index: 10000;
    display: none;
    /* Mostrato dinamicamente dal JavaScript */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
    border-top: 2px solid #b30000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    color: #eaeaea;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.btn-cookie {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    flex: 1;
    max-width: 200px;
}

.btn-accept {
    background-color: #b30000;
    color: white;
}

.btn-accept:hover {
    background-color: #8e0000;
    transform: translateY(-2px);
}

.btn-reject {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

.btn-reject:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.powered-link {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
    
}

.powered-link:hover .fr {
    color: orange;
}

.powered-link:hover .web {
    color: blue;
}

.powered-link:hover .sol {
    color: white;
}

/* (Opzionale) Aggiunge una transizione fluida per il cambio colore */
.powered-link span {
    transition: color 0.3s ease;
}

/* --- REGOLE SOLO PER MOBILE E TABLET (Sotto i 768px) --- */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 20px 70px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 1rem;
    }


    @media (min-width: 900px) {
        .cookie-content {
            flex-direction: row;
            justify-content: space-between;
            text-align: left;
        }

        .cookie-buttons {
            width: auto;
            justify-content: flex-end;
        }
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    section,
    .about-page,
    .contact-page-content {
        padding: 60px 20px;
    }

    .about h2,
    .benefici h2,
    .corsi-preview h2,
    .team h2,
    .about-page h2 {
        font-size: 2rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
        box-sizing: border-box;
    }

    /* NAVBAR MOBILE */
    .nav-links {
        position: absolute;
        top: 71px;
        left: 0;
        width: 100%;
        background: #0f0f0f;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 30px 0;
        display: none;
        border-bottom: 2px solid #b30000;
        z-index: 998;
    }

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

    .hamburger.active {
        z-index: 999;
        color: whitesmoke;
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
        color: whitesmoke;
        font-size: 2.5rem;
    }

    /* SENSEI SPLIT MOBILE */
    .sensei-split {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sensei-photo {
        max-width: 100%;
        order: 1;
    }

    .sensei-info {
        order: 2;
    }

    .slider-wrapper {
        max-width: 100%;
    }

    /* VIDEO CONTAINER MOBILE */
    .video-container {
        min-height: 60vh;
        height: calc(100vh - 71px);
        height: calc(100dvh - 71px);
        padding: 90px 15px 40px 15px;
    }

    .video-container .texth1 h1 {
        font-size: 2.3rem;
        margin-bottom: 10px;
    }

    .video-container .texth1 h2 {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .contact-form-container {
        padding: 25px 20px;
    }
}