window.dataLayer = window.dataLayer || [];
  function gtag() {
}
/* Card corsi Hydra: stessa altezza */
.wp-block-columns > .wp-block-column.hydra-card {
    align-self: stretch;
}
/* CARD ORARI – ACADEMIA HYDRA */

.hydra-orari-card {
    background: #eeeeee;
    border-top: 3px solid #c4161c;
    padding: 28px 22px 26px 22px;
    box-sizing: border-box;
    min-height: 455px;
}

/* Titolo del giorno */
.hydra-orari-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #c8c8c8;
}

/* Blocchi dei singoli corsi */
.hydra-orari-card p {
    margin-top: 0;
    margin-bottom: 26px;
}

/* Evita spazio inutile dopo l'ultimo corso */
.hydra-orari-card p:last-child {
    margin-bottom: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .hydra-orari-card {
        padding: 24px 20px;
        min-height: auto;
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .hydra-orari-card {
        padding: 22px 18px;
        min-height: auto;
    }

    .hydra-orari-card h3 {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .hydra-orari-card p {
        margin-bottom: 22px;
    }
}
/* =========================
   HERO HOME – ACADEMIA HYDRA
   ========================= */

/* Fa uscire la Hero dal contenitore stretto del tema */
.hydra-home-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;
}

/* Mantiene il contenuto della Hero ordinato e leggibile */
.hydra-home-hero .wp-block-cover__inner-container {
    width: min(1100px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}
/* Neutralizza gli sfondi automatici del template Front Page di Edin */
body.page-template-page-templatesfront-page-php #content,
body.page-template-page-templatesfront-page-php #content > .hero,
body.page-template-page-templatesfront-page-php #content > .hero.without-featured-image,
body.page-template-page-templatesfront-page-php #quaternary {
    background: #ffffff !important;
    background-color: #ffffff !important;
}
/* =========================
   SEZIONE PERCORSO HOME
   ========================= */

.hydra-percorso {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;

    background: #111 !important;
    color: #fff;

    padding-top: 64px;
    padding-bottom: 64px;
}

/* Mantiene il contenuto interno ordinato */
.hydra-percorso > * {
    width: min(1100px, calc(100% - 48px));
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Testi */
.hydra-percorso h2,
.hydra-percorso h3,
.hydra-percorso p {
    color: #fff;
}

/* Spaziatura del titolo */
.hydra-percorso h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Riga INIZIA / MIGLIORA / COMPETI */
.hydra-percorso .wp-block-columns {
    margin-top: 40px;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .hydra-percorso {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hydra-percorso > * {
        width: calc(100% - 32px);
    }
}
/* =========================
   SEZIONE PIÙ DI UNA PALESTRA
   ========================= */

.hydra-intro {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;

    background: #fff !important;
    color: #111;

    padding-top: 48px;
    padding-bottom: 48px;
}

/* Contenuto interno:
   stessa larghezza della sezione nera */
.hydra-intro > * {
    width: min(1100px, calc(100% - 48px));
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Colore testi */
.hydra-intro h2,
.hydra-intro h3,
.hydra-intro p {
    color: #111;
}

/* Mobile */
@media (max-width: 768px) {
    .hydra-intro {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hydra-intro > * {
        width: calc(100% - 32px);
    }
}
/* =========================
   CTA PROVA GRATUITA
   ========================= */

.hydra-prova {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;

    background: #111 !important;
    color: #fff;

    padding-top: 48px;
    padding-bottom: 48px;
}

/* CTA PROVA - SEZIONE BIANCA */

.hydra-prova {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box;

    background: #fff !important;
    color: #111 !important;

    padding-top: 55px;
    padding-bottom: 55px;
}

/* Mantiene il contenuto allineato alle altre sezioni */
.hydra-prova > * {
    width: min(1100px, calc(100% - 48px));
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Testi neri */
.hydra-prova h2,
.hydra-prova h3,
.hydra-prova p {
    color: #111 !important;
}

/* Titolo */
.hydra-prova h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Prima lezione gratuita */
.hydra-prova h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

/* Testo */
.hydra-prova p {
    margin-bottom: 26px;
}

@media (max-width: 768px) {
    .hydra-prova {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hydra-prova > * {
        width: calc(100% - 32px);
    }
}
/* ========================================
   FOOTER ACADEMIA HYDRA
   ======================================== */

#tertiary,
.footer-widget-area,
#colophon,
.site-footer {
    background: #111111 !important;
    color: #ffffff !important;
}

/* Testi footer */
#tertiary,
#tertiary p,
#tertiary span,
#tertiary li,
#tertiary address,
#colophon,
#colophon p {
    color: #ffffff !important;
}

/* Titoli delle tre colonne */
#tertiary .widget-title {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Link */
#tertiary a,
#colophon a {
    color: #ffffff !important;
}

/* Link al passaggio del mouse */
#tertiary a:hover,
#colophon a:hover {
    color: #d51020 !important;
}

/* Linee del menu */
#tertiary .widget_nav_menu li {
    border-color: #333333 !important;
}
/* SEZIONE VUOI PROVARE - altezza più compatta */

.hydra-prova {
    padding-top: 25px !important;
    padding-bottom: 0px !important;
    min-height: 0 !important;
    height: auto !important;
}

.hydra-prova > *:first-child {
    margin-top: 0 !important;
}

.hydra-prova > *:last-child {
    margin-bottom: 0 !important;
}
.hydra-corsi-intro {
    max-width: 1000px;
    margin: 0 auto;
}

.hydra-corsi-intro::before {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #d20a1e;
    margin-bottom: 25px;
}

.hydra-corsi-intro h1 {
    margin-bottom: 20px;
}
/* =========================================================
   I NOSTRI CORSI - GRIGLIA DEFINITIVA
   ========================================================= */


/* ---------- GRIGLIA 3 COLONNE ---------- */

.hydra-courses-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 32px !important;

    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;

    align-items: stretch !important;
}


/* Neutralizza il layout Colonne di Gutenberg / Edin */

.hydra-courses-grid > .wp-block-column {
    width: auto !important;
    flex: none !important;
    flex-basis: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
}


/* =========================================================
   SINGOLA CARD
   ========================================================= */

.hydra-courses-grid .hydra-course-card {
    width: 100% !important;
    height: 100% !important;

    flex: 1 1 auto !important;

    display: grid !important;

    /* 
       Riga 1 = foto
       Riga 2 = titolo
       Riga 3 = descrizione elastica
       Riga 4 = pulsanti
    */
    grid-template-rows: auto auto 1fr auto !important;

    background: #ffffff !important;

    border: 1px solid #e5e5e5 !important;
    box-sizing: border-box !important;

    padding: 0 0 28px 0 !important;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* Compatibilità con eventuale wrapper inserito da Edin */

.hydra-course-card > .wp-block-group__inner-container {
    height: 100% !important;

    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
}


/* =========================================================
   FOTO
   ========================================================= */

.hydra-course-card .wp-block-image {
    width: 100% !important;

    margin: 0 0 22px 0 !important;
    padding: 0 !important;

    overflow: hidden;
}

.hydra-course-card .wp-block-image img {
    display: block;

    width: 100% !important;
    height: 260px !important;

    object-fit: cover;

    transition: transform 0.35s ease;
}


/* =========================================================
   TITOLO
   ========================================================= */

.hydra-course-card h3 {
    margin: 0 28px 14px 28px !important;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;

    text-align: center;

    color: #111111 !important;
}


/* =========================================================
   DESCRIZIONE
   ========================================================= */

.hydra-course-card p {
    margin: 0 28px 22px 28px !important;

    line-height: 1.55;

    text-align: center;

    color: #222222 !important;

    /* Occupa lo spazio centrale disponibile */
    align-self: stretch;
}


/* =========================================================
   PULSANTI
   ========================================================= */

.hydra-course-card .wp-block-buttons {
    width: auto !important;

    margin: 0 28px !important;
    padding-top: 18px !important;

    align-self: end !important;

    display: flex !important;

    justify-content: center !important;
    align-items: center !important;

    gap: 10px !important;
}


/* Singolo pulsante */

.hydra-course-card .wp-block-button {
    margin: 0 !important;
}


/* Aspetto pulsante */

.hydra-course-card .wp-block-button__link {
    display: inline-block;

    background: #d20a1e !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 0 !important;

    padding: 12px 20px !important;

    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   HOVER - SOLO DISPOSITIVI CON MOUSE
   ========================================================= */

@media (hover: hover) {

    .hydra-course-card:hover {
        transform: translateY(-6px);

        box-shadow:
            0 12px 28px rgba(0, 0, 0, 0.12);
    }

    .hydra-course-card:hover .wp-block-image img {
        transform: scale(1.035);
    }

    .hydra-course-card .wp-block-button__link:hover {
        background: #a90818 !important;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) and (min-width: 782px) {

    .hydra-courses-grid {
        gap: 22px !important;
    }

    .hydra-course-card .wp-block-image img {
        height: 220px !important;
    }

    .hydra-course-card h3 {
        margin-left: 20px !important;
        margin-right: 20px !important;

        font-size: 21px;
    }

    .hydra-course-card p {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .hydra-course-card .wp-block-buttons {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }

    .hydra-course-card .wp-block-button__link {
        padding: 11px 15px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 781px) {

    .hydra-courses-grid {
        grid-template-columns: 1fr !important;

        gap: 25px !important;
    }

    .hydra-courses-grid > .wp-block-column {
        width: 100% !important;
    }

    .hydra-course-card {
        width: 100% !important;
    }

    .hydra-course-card .wp-block-image img {
        height: 240px !important;
    }

    .hydra-course-card h3 {
        font-size: 22px;
    }

    .hydra-course-card .wp-block-buttons {
        flex-wrap: wrap !important;
    }

    .hydra-course-card .wp-block-button__link {
        padding: 11px 16px !important;
    }
}
/* =========================================================
   FIX DEFINITIVO ALLINEAMENTO PULSANTI CARD
   ========================================================= */

@media (min-width: 782px) {

    /* Tutte le card hanno la stessa altezza reale */
    .hydra-course-card {
        position: relative !important;
        height: 610px !important;
        min-height: 610px !important;

        padding-bottom: 90px !important;
        box-sizing: border-box !important;
    }

    /* Il blocco pulsanti viene ancorato al fondo */
    .hydra-course-card .wp-block-buttons {
        position: absolute !important;

        left: 28px !important;
        right: 28px !important;
        bottom: 28px !important;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }
}


/* MOBILE: card di altezza naturale */
@media (max-width: 781px) {

    .hydra-course-card {
        position: relative !important;

        height: auto !important;
        min-height: 0 !important;

        padding-bottom: 28px !important;
    }

    .hydra-course-card .wp-block-buttons {
        position: static !important;

        margin: 20px 28px 0 !important;
        padding: 0 !important;
    }
}
/* HOME - riduce lo spazio vuoto sotto il menu */
.home .site-header,
.home .header-wrapper,
.home .site-branding {
    margin-bottom: 0 !important;
}

.home .site-header {
    padding-bottom: 0px !important;
}

/* HOME - avvicina la Hero al menu */
.hydra-home-hero {
    margin-top: -100px !important;
}
.hydra-contact-intro::before {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #D20A1E;
    margin-bottom: 25px;
}
/* CTA FINALE - PAGINA CONTATTI */

.hydra-contact-cta {
    background-color: #111111;
    color: #ffffff;

    /* Full width reale */
    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    /* Spaziatura interna */
    padding: 60px max(50px, calc((100vw - 1100px) / 2));
    margin-top: 60px;
    box-sizing: border-box;
}

.hydra-contact-cta h2,
.hydra-contact-cta h3,
.hydra-contact-cta p {
    color: #ffffff;
}

.hydra-contact-cta h2 {
    margin-top: 0;
}

.hydra-contact-cta .wp-block-button__link {
    background-color: #D20A1E;
    color: #ffffff;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.hydra-contact-cta .wp-block-button__link:hover {
    background-color: #a90818;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
    .hydra-contact-cta {
        padding: 45px 25px;
    }
}
.hydra-contact-cta {
    background-color: #111111;
    color: #ffffff;

    width: 100vw;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding-top: 55px;
    padding-bottom: 55px;

    /* allinea il contenuto alla pagina */
    padding-left: calc((100vw - 800px) / 2);
    padding-right: calc((100vw - 800px) / 2);

    margin-top: 60px;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    .hydra-contact-cta {
        padding: 40px 25px;
    }
}
/* PAGINA CONTATTI - SPAZIATURE FINALI */

.page-id-12 .hydra-contact-cta {
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

.page-id-12 #tertiary,
.page-id-12 .footer-widget-area {
    margin-top: 0 !important;
    padding-top: 20px !important;
}
/* CONTATTI - elimina spazio dopo la CTA */

.page-id-12 .hydra-contact-cta {
    margin-bottom: 0 !important;
}

/* Il blocco che contiene la CTA non deve lasciare spazio sotto */
.page-id-12 .hydra-contact-cta:last-child {
    padding-bottom: 0 !important;
}

/* Rimuove margini/padding finali dal contenuto della pagina */
.page-id-12 .entry-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page-id-12 article,
.page-id-12 .site-main,
.page-id-12 main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Il footer parte subito dopo il contenuto */
.page-id-12 footer,
.page-id-12 #colophon {
    margin-top: 0 !important;
}
/* Nasconde l'area modifica/metadati sotto la pagina Contatti */
.page-id-12 .entry-footer {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-id-12 .edit-link {
    display: none !important;
}
/* Più spazio sotto la CTA della pagina Contatti */
.page-id-12 .hydra-contact-cta {
    padding-bottom: 140px !important;
}
/* SPAZIO TRA CTA CONTATTI E FOOTER */
.page-id-12 #tertiary,
.page-id-12 #colophon {
    padding-top: 100px !important;
}