/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

@media (max-width: 768px) {
    .separate-containers .inside-article {
        padding: 30px 20px !important;
    }
}

ol, ul {
    margin: 0 0 1.5em 1.3em;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Spazio tra i due campi */
  margin-bottom: 15px;
}

.column-half {
  flex: 1;
  min-width: 250px; /* Diventa a colonna singola su schermi piccoli */
}
/* Impedisce a WPBakery di lasciare le righe nascoste */
.vc_row.vc_hidden {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.gslide-inline .ginlined-content {
    overflow: hidden;
}

.glightbox-container .gp-video-lightbox-box {
    width: 100% !important;
    max-width: 100% !important;
}
.glightbox-container .gslide-media {
    width: 100% !important;
    max-width: 100% !important;
}
.glightbox-container .gp-video-lightbox-box {
    width: 100% !important;
    max-width: 100% !important;
}
/* ==========================================================================
   POSIZIONAMENTO E COVER PER VIDEO WEBM / MP4
   ========================================================================== */

/* Contenitore Sfondo */
.slide-bg,
.gp-corsi-card-bg,
.gp-corsi-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0c0c0c;
}
h3.gp-progetto-title {
    text-transform: none;
}
div#gSlideDesc_0 {
    font-weight: 600;
}
/* Tag Video WebM / MP4 a schermo intero senza deformazioni */
.slide-bg video.bg-video,
.gp-corsi-card-bg video.bg-video,
.gp-corsi-slide-bg video.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Riempie il contenitore come background-size: cover */
    object-position: center center;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Overlay semitrasparente (non deve mai essere nero pieno) */
.slide-bg .slide-overlay,
.gp-corsi-card-bg .slide-overlay,
.gp-corsi-slide-bg .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Gradi di trasparenza */
    z-index: 2;
    pointer-events: none;
}





.single-corsi .slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(0 0 0 / 0%), rgb(0 0 0 / 0%), rgba(0, 0, 0, 112%));
}
footer.entry-meta {
    display: none;
}
.vc_tta-panel-heading {
    border-width: 1px 0 0 0 !important;
    border-color: #ababab !important;
    padding: 5px 0 10px 0;
}
.vc_tta-panel-body {
    border: none !important;
}

/* =========================================
   HERO SLIDER - GENERATEPRESS & WPBAKERY
   ========================================= */

/* Forza il Full-width in uscita dal container di GeneratePress */
.gp-hero-slider-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.gp-hero-swiper {
    width: 100%;
    /* Proporzioni Desktop 1280:540 */
    aspect-ratio: 1280 / 540; 
}

/* Base della Slide */
.gp-hero-swiper .swiper-slide {
    position: relative;
    display: flex;
align-items: flex-end; /* Allinea il contenitore in basso */
    justify-content: center; /* Mantiene il contenitore centrato orizzontalmente */
    margin-bottom: 60px; /* Regola questa misura per la distanza dal fondo */
}
.slide-content {
    margin-bottom: 30px;
max-width: 79%;
}

/* Sfondo Immagine/Video e Overlay */
.slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.slide-bg video, .slide-bg .bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
}
.slide-bg .bg-image {
    background-size: cover; background-position: center;
}
.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Scurisce lo sfondo per far leggere i testi */
}

/* Container del Contenuto (Testi + Frecce) */
.slide-content-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px; /* Allineamento col container del sito */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Allinea i testi e frecce a sinistra. Usa 'center' per centrare */
}

/* Tipografia */
.slide-title {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.slide-subtitle {
    color: #00F2A9;
    font-size: clamp(1.8rem, 3.5vw, 3.1rem);
    font-weight: 500;
    margin: 0 0 25px 0;
text-transform: none;
}

/* =========================================
   Controlli Navigazione (Frecce + Contatore)
   ========================================= */
.gp-slider-controls {
    display: flex;
    align-items: center;
    gap: 20px; /* Spazio tra il blocco frecce e il contatore */
    margin-top: 10px;
}

.slider-arrows-group {
    display: flex;
    border: 1px solid #ffffff; /* Bordo esterno del rettangolo unito */
}

.nav-arrow {
    width: 55px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Linea divisoria tra le due frecce */
.nav-arrow.prev-arrow {
    border-right: 1px solid #ffffff;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Leggero feedback visivo al passaggio del mouse */
}

.slider-counter {
    color: #00F2A9; /* Colore verde acqua richiesto */
    font-size: 1.4rem;
    font-weight: 700; /* Testo in grassetto */
    font-family: inherit;
    letter-spacing: 1px;
}

/* -----------------------------------------
   MEDIA QUERY MOBILE
   ----------------------------------------- */
@media (max-width: 768px) {
    .gp-hero-swiper {
        /* Proporzioni Mobile 393:404 */
        aspect-ratio: 393 / 404; 
    }
}
/* =========================================
   Credits in alto a destra
   ========================================= */
.slide-credits {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.45); /* Sfondo scuro semi-trasparente */
    color: #ffffff; /* Testo bianco */
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Allineamento al container su schermi molto grandi (opzionale) 
   Se preferisci che i credits non vadano all'estrema destra dello schermo
   ma rimangano allineati con i testi, scommenta queste righe:
*/
/*
@media (min-width: 1240px) {
    .slide-credits {
        right: calc((100vw - 1200px) / 2 + 20px);
    }
}
*/

/* =========================================
   WPBakery Text Block - Desktop vs Mobile
   ========================================= */

/* Di base, nascondi il testo mobile su Desktop */
.gp-mobile-text {
    display: none;
}

/* Regole per schermi Mobile e Tablet portrait (fino a 768px) */
@media (max-width: 768px) {
    .gp-desktop-text {
        display: none !important;
    }
    
    .gp-mobile-text {
        display: block !important;
    }
}
/* =========================================
   CORSI HERO SLIDER - STILI DEDICATI
   ========================================= */

.gp-corsi-hero-wrapper .gp-corsi-hero-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 540; /* Proporzioni Desktop */
    display: flex;
    align-items: flex-end; /* Sposta il contenuto in basso */
    justify-content: center;
    padding-bottom: 50px;
    overflow: hidden;
}

/* Contenitore interno dei testi */
.corsi-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 1. Icona del Corso */
.corsi-hero-icon {
    margin-bottom: 12px;
}
.corsi-hero-icon img {
    max-height: 38px;
    width: auto;
    display: block;
}

/* 2. Tipo di Corso (Badge verde acqua con testo nero maiuscolo) */
.corsi-hero-badge {
    background-color: #17FFC4; /* Sfondo richiesto */
    color: #000000; /* Testo nero */
    text-transform: uppercase; /* Tutto maiuscolo */
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* 3. Titolo principale del corso */
.corsi-hero-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.05;
}

/* 4. Descrizione breve */
.corsi-hero-desc {
    color: #00F2A9; /* Colore verde/azzurro */
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

/* -----------------------------------------
   MEDIA QUERY MOBILE
   ----------------------------------------- */
@media (max-width: 768px) {
    .gp-corsi-hero-wrapper .gp-corsi-hero-inner {
        aspect-ratio: 393 / 404; /* Proporzioni Mobile */
        padding-bottom: 35px;
    }
}
/* =========================================
   TABELLA SCHEDA CORSO (<dl class="sch">)
   ========================================= */

dl.sch {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne su Desktop */
    gap: 25px 35px; /* Distanza verticale / orizzontale tra gli elementi */
    width: 100%;
    margin: 30px 0;
    padding: 0;
}

/* Singolo elemento (riga/cella della scheda) */
dl.sch .sch-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8e6; /* Linea grigia sottile inferiore */
}

/* Etichetta (Titolo della voce) */
dl.sch dt {
    color: #008075; /* Verde acqua/ottanio dell'allegato */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 130px; /* Larghezza fissa dell'etichetta per perfetto allineamento */
    flex-shrink: 0;
    margin: 0;
    line-height: 1.35;
}

/* Valore della voce */
dl.sch dd {
    color: #111111;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

/* Stile speciale per l'azione/pulsante (es: "Richiedi costi e agevolazioni →") */
dl.sch dd .clk {
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    border-bottom: 2px solid #000000; /* Sottolineatura marcata */
    padding-bottom: 2px;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.2s ease;
}

dl.sch dd .clk:hover {
    opacity: 0.75;
}

/* -----------------------------------------
   RESPONSIVE (Tablet & Mobile)
   ----------------------------------------- */
@media (max-width: 992px) {
    dl.sch {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su Tablet */
    }
}

@media (max-width: 600px) {
    dl.sch {
        grid-template-columns: 1fr; /* 1 colonna su Mobile */
        gap: 15px;
    }
    
    dl.sch dt {
        width: 110px;
    }
}
/* =========================================
   LISTA NUMERATA (4 COLONNE CON NUMERO VERDE)
   ========================================= */

.gp-numbered-list-wrapper {
    width: 100%;
    margin: 30px 0;
}

/* Griglia a 4 colonne */
.gp-numbered-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Singola colonna */
.gp-numbered-item {
    border-top: 2px solid #000000; /* Linea nera in alto per ogni elemento */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Header con Numero + Titolo affiancati */
.gp-numbered-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
}

/* Numero Verde (01, 02, ecc.) */
.gp-numbered-num {
    color: #008075; /* Colore verde/ottanio */
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

/* Titolo del blocco */
.gp-numbered-title {
    color: #000000;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Descrizione */
.gp-numbered-desc {
    color: #444444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gp-numbered-desc p {
    margin: 0 0 10px 0;
}

.gp-numbered-desc p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   RESPONSIVE (Tablet e Mobile)
   ----------------------------------------- */
@media (max-width: 992px) {
    .gp-numbered-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
        gap: 30px 20px;
    }
}

@media (max-width: 600px) {
    .gp-numbered-grid {
        grid-template-columns: 1fr; /* 1 colonna su smartphone */
        gap: 25px;
    }
}
/* =========================================
   SLIDER PROGETTI CORSO
   ========================================= */

.gp-progetti-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 30px 0;
}

/* Card Progetto (Proporzioni 292:365) */
.gp-progetto-card {
display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 292 / 365;
    overflow: hidden;
    text-decoration: none;
    background-color: #111111;
}

.gp-progetto-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gp-progetto-card:hover .gp-progetto-bg {
    transform: scale(1.05); /* Effetto leggero zoom al passaggio del mouse */
}

/* Overlay sfumato per rendere i testi perfettamente leggibili */
.gp-progetto-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* Contenitore Testi in basso nella scheda */
.gp-progetto-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Categoria (Verde acqua brillante) */
.gp-progetto-cat {
    color: #00F2A9; /* Colore verde acqua dello screenshot */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Titolo del Progetto */
.gp-progetto-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
}

/* =========================================
   CONTROLLI DI NAVIGAZIONE (In basso a SX)
   ========================================= */
.gp-progetti-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

/* Frecce Circolari Verdi */
.gp-progetti-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #00F2A9; /* Cerchio verde */
    border: none;
    color: #000000; /* Freccia nera */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0;
padding-bottom: 6px;
}

.gp-progetti-nav:hover {
    background-color: #17FFC4;
    transform: scale(1.05);
}

/* Contatore (es: 1 / 4) */
.gp-progetti-counter {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}
/* =========================================
   SLIDER TESTIMONIANZE (Layout Foto + Testo)
   ========================================= */

.gp-testimonianze-slider-wrapper {
    width: 100%;
    margin: 30px 0;
}

/* Singola Slide */
.gp-testimonial-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 0;
}

/* Foto a sinistra (Rotonda) */
.gp-testimonial-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gp-testimonial-placeholder {
    color: #888888;
    font-size: 0.85rem;
}

/* Contenuto a destra: Nome evidenziato + Testo in linea */
.gp-testimonial-content {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #111111;
}

/* Badge / Evidenziatore per il Nome */
.gp-testimonial-name {
    background-color: #00f2a9;
    color: #000000;
    font-weight: 700;
    padding: 2px 6px;
    margin-right: 8px;
    display: inline-block;
}

.gp-testimonial-text {
    display: inline;
}

/* Responsive per Mobile */
@media (max-width: 600px) {
    .gp-testimonial-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* =========================================
   CONTROLLI FRECCE TESTIMONIANZE (Stile Progetti)
   ========================================= */

.gp-testimonianze-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.gp-testimonianze-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #000000;
    color: #000000; /* Freccia nera */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding-bottom: 5px;
}

.gp-testimonianze-nav:hover {
    background-color: #000000;
    color: #fff;
}
/* =========================================
   GRIGLIA CORSI HOMEPAGE (3 Colonne)
   ========================================= */

.gp-corsi-grid-wrapper {
    width: 100%;
    margin: 30px 0;
}

/* Griglia max 3 elementi per riga */
.gp-corsi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Card Quadrata (1:1) */
.gp-corsi-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Rapporto d'aspetto quadrato */
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    background-color: #111111;
}

/* Sfondo Video / Immagine */
.gp-corsi-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.gp-corsi-card-bg .bg-img {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.gp-corsi-card-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.gp-corsi-card:hover .bg-img {
    transform: scale(1.04);
}

/* Overlay sfumato per leggibilità del testo */
.gp-corsi-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%);
    z-index: 2;
}

/* Credits in alto a destra */
.gp-corsi-card-credits {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Contenitore informazioni in basso a sinistra */
.gp-corsi-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 22px;
    box-sizing: border-box;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 1. Icona del corso */
.gp-corsi-card-icon {
    margin-bottom: 10px;
}

.gp-corsi-card-icon img {
    max-height: 32px;
    width: auto;
    display: block;
}

/* 2. Tipo di corso (Targhetta verde #17ffc4 con testo nero maiuscolo) */
.gp-corsi-card-badge {
    background-color: #17ffc4;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: inline-block;
}

/* 3. Titolo del corso */
.gp-corsi-card-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    line-height: 1.15;
}

/* 4. Riassunto e Freccia */
.gp-corsi-card-footer {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.gp-corsi-card-excerpt {
    color: #e0e0e0;
    font-size: 0.88rem;
    line-height: 1.35;
    margin: 0;
    flex-grow: 1;
}

/* Freccia in basso a destra color #17ffc4 */
.gp-corsi-card-arrow {
    color: #17ffc4;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gp-corsi-card:hover .gp-corsi-card-arrow {
    transform: translateX(4px);
}

/* -----------------------------------------
   RESPONSIVE (Tablet e Mobile)
   ----------------------------------------- */
@media (max-width: 992px) {
    .gp-corsi-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
    }
}

@media (max-width: 600px) {
    .gp-corsi-grid {
        grid-template-columns: 1fr; /* 1 colonna su mobile */
    }
}

/* ==========================================================================
   MENU MOBILE FULLSCREEN OVERLAY (Fix Selettori e Specificità)
   ========================================================================== */

/* 1. Nascosto di default su qualsiasi schermo (senza !important per evitare blocchi) */
#gp-mobile-menu-overlay {
    display: none;
}

/* 2. Regole attive solo su Mobile (<= 768px) */
@media (max-width: 768px) {

    /* Nasconde la tendina nativa di GP e il widget header su mobile */
    #site-navigation .main-nav,
    #mobile-menu-control-wrapper .main-nav,
    .inside-header .header-widget {
        display: none !important;
    }

    /* Struttura Overlay Fullscreen */
    #gp-mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #0c0c0c;
        z-index: 9999999;
        box-sizing: border-box;
    }

    /* Mostra l'overlay quando JS aggiunge la classe .is-open */
    #gp-mobile-menu-overlay.is-open {
        display: block !important;
    }

    /* Contenitore Interno a flusso naturale */
    .gp-mobile-menu-content {
        position: relative;
        width: 100%;
        min-height: 100vh;
        padding: 40px 25px 30px 25px;
        display: block;
        box-sizing: border-box;
        overflow-y: auto;
    }

    /* Pulsante di Chiusura (X in alto a destra) */
    .gp-mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 34px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
        padding: 5px;
        z-index: 10;
    }

    /* Lista Voci Principali del Menu */
    .gp-mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 15px 0 0 0;
    }

    .gp-mobile-menu-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 14px 0;
    }

    .gp-mobile-menu-list > li > a,
    .gp-mobile-group-title {
        color: #ffffff;
        font-size: 1.35rem;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
        display: block;
        letter-spacing: 0.5px;
        line-height: 1.25;
    }

    /* Sottomenu Corsi */
    .gp-mobile-sublist {
        list-style: none;
        padding: 12px 0 4px 0;
        margin: 0;
    }

    .gp-mobile-sublist li {
        margin-bottom: 10px;
    }

    .gp-mobile-sublist li:last-child {
        margin-bottom: 0;
    }

    .gp-mobile-sublist a {
        color: #17FFC4;
        font-size: 1.05rem;
        font-weight: 600;
        text-decoration: none;
        display: block;
        line-height: 1.35;
    }

    .gp-mobile-sublist a:hover {
        opacity: 0.8;
    }

    /* Pulsante CTA Verde (Posizionato subito sotto l'ultima voce CONTATTI) */
    .gp-mobile-menu-bottom {
        width: 100%;
        margin-top: 25px;
        padding-top: 0;
    }

    .gp-mobile-cta-btn {
        display: block;
        width: 100%;
        background-color: #17FFC4;
        color: #000000;
        font-size: 1rem;
        font-weight: 700;
        text-align: center;
        padding: 15px 10px;
        text-decoration: none;
        box-sizing: border-box;
        border: none;
        transition: background-color 0.2s ease;
    }

    .gp-mobile-cta-btn:hover {
        background-color: #11BE92;
    }

}
.single-post .vc_btn3-container.whitebtn.vc_btn3-left.vc_do_btn {
    margin-top: 0 !important;
    margin-bottom: 60px !important;
}
.single-post .footer-element {
        display: none;
    }

/* =========================================
   HERO BANNER SCURO SINGOLA NEWS
   ========================================= */

/* Contenitore Full Width Sfondo Scuro */
.gp-news-hero-wrapper {
    background-color: #0c0c0c;
    width: 100%;
    padding: 130px 0 90px 0;
    box-sizing: border-box;
}

.gp-news-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Riga 1: Bianco Maiuscolo Extra Bold */
.gp-news-hero-riga1 {
    color: #ffffff !important;
    font-size: 3.8rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.5px;
}

/* Riga 2: Verde Acqua (#17FFC4) */
.gp-news-hero-riga2 {
    color: #17FFC4;
    font-size: 3.6rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Nasconde il titolo H1 predefinito di GeneratePress nel corpo della pagina */
.single-post .entry-header {
    display: none !important;
}

/* Adjustments Responsive per Mobile */
@media (max-width: 768px) {
    .gp-news-hero-wrapper {
        padding: 70px 20px 50px 20px;
    }
    
    .gp-news-hero-riga1 {
        font-size: 2.2rem;
    }
    
    .gp-news-hero-riga2 {
        font-size: 2.0rem;
    }
}
/* =========================================
   ELENCO NEWS (PAGINA NEWS)
   ========================================= */

.gp-news-list-wrapper {
    width: 100%;
    margin: 30px 0;
}

.gp-news-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Singola riga della news */
.gp-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: #111111;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.gp-news-item:hover {
    background-color: rgba(23, 255, 196, 0.04);
}

/* Titolo a Sinistra */
.gp-news-item-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    transition: color 0.2s ease;
text-transform: none;
}

.gp-news-item:hover .gp-news-item-title h3 {
    color: #000000;
}

/* Contenitore Destra (Data + Freccia) */
.gp-news-item-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

/* Data dell'evento */
.gp-news-item-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666666;
}

/* Freccia Verde #17FFC4 */
.gp-news-item-arrow {
    font-size: 1.4rem;
    font-weight: 700;
    color: #17FFC4;
    transition: transform 0.2s ease;
}

.gp-news-item:hover .gp-news-item-arrow {
    transform: translateX(6px);
}

/* =========================================
   PAGINATORE
   ========================================= */

.gp-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.gp-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    color: #111111;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Pagina Corrente attiva in Verde #17FFC4 */
.gp-news-pagination .page-numbers.current {
    background-color: #17FFC4;
    color: #000000;
    font-weight: 700;
}

.gp-news-pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}

.gp-news-pagination .prev,
.gp-news-pagination .next {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .gp-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gp-news-item-meta {
        width: 100%;
        justify-content: space-between;
    }
}
/* ==========================================================================
   SCORRIMENTO COMPLETO IMMAGINI (Senza Zoom / Ritaglio)
   Elementi: Griglia Corsi Homepage, Corsi Hero Slider e Hero Pagine Corsi
   ========================================================================== */

.gp-corsi-card-bg .bg-img,
.gp-corsi-slide-bg .bg-img,
.gp-corsi-hero-wrapper .slide-bg .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
overflow: hidden;
    background-color: #0c0c0c;
    
    /* Mantiene l'altezza del contenitore e la larghezza proporzionale originale */
    background-size: auto 100% !important;
    background-repeat: no-repeat;
    background-position: 0% center; /* Parte dall'estremità sinistra reale della foto */
    
    /* Animazione da bordo sinistro (0%) a bordo destro (100%) */
    animation: panFullImage 45s linear infinite alternate;
    will-change: background-position;
}

/* Animazione fluida da limite Sinistro a limite Destro */
@keyframes panFullImage {
    0% {
        background-position: 0% center;   /* Bordo sinistro della foto */
    }
    100% {
        background-position: 100% center; /* Bordo destro della foto */
    }
}
/* ==========================================================================
   STILE E RIDIMENSIONAMENTO VIDEO SFONDO (WebM / MP4)
   ========================================================================== */

.slide-bg video.bg-video,
.gp-corsi-card-bg video.bg-video,
.gp-corsi-slide-bg video.bg-video,
.gp-corsi-hero-wrapper .slide-bg video.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Garantisce la copertura totale senza deformazioni */
    object-position: center center;
    z-index: 1;
    pointer-events: none; /* Impedisce interazioni col mouse sul video */
}

/* L'overlay scuro deve rimanere sopra al video */
.slide-bg .slide-overlay,
.gp-corsi-card-bg .slide-overlay,
.gp-corsi-slide-bg .slide-overlay {
    z-index: 2;
}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
    color: var(--contrast);
    background-color: #ffffff;
    border-color: #000000;
}
form.wpcf7-form.init p {
    margin-bottom: 12px;
}
.wpcf7-list-item {
    margin: 0;
    padding: 15px 0;
}
button, input[type=button], input[type=reset], input[type=submit] {
    background: #000000;
}
label {
    font-size: 16px;
    font-weight: 800;
}
input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    width: 100%;
}
.header-widget .vc_do_btn {
    margin-bottom: 0;
}






/* ==========================================================================
   HERO SLIDER - ANTISALTELLO DEFINITIVO (FORZATURA TOTALE)
   ========================================================================== */

/* 1. Container principale */
.gp-hero-slider-global-wrapper {
    position: relative;
    width: 100%;
    height: 450px; 
}

/* 2. Sfondo Globale Fullscreen */
.hero-global-bg {
    position: absolute;
    top: 0;
    width: 100vw;
    left: calc( -50vw + 50% );
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-global-bg video {
    width: 100vw; 
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-global-bg .slide-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

/* 3. Swiper testi: nascosto preventivamente */
.gp-hero-global-swiper {
    position: relative;
    z-index: 10;
    width: 100%; 
    height: 100%;
    background: transparent !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

/* Si attiva solo quando lo script dà l'ok */
.gp-hero-global-swiper.slider-ready {
    opacity: 1;
    visibility: visible;
}

.gp-hero-global-swiper .swiper-wrapper {
    height: 100%;
}

.gp-hero-global-swiper .swiper-slide {
    position: relative;
    width: 100%; 
    height: 100%;
    background: transparent !important;
    display: flex !important;
    align-items: center;
}

.gp-hero-global-swiper .slide-content-container {
    width: 100%;
}

/* Sicurezza anti-scroll orizzontale */
body {
    overflow-x: hidden;
}