/* Name: Maestra Academy
Author: Fochale */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://use.typekit.net/lvy0jtf.css");

:root {
    /* colori globali */
    --bianco: #ffffff   ;
    --grigiochiaro: #CCC6BA;
    --grigioscuro: #403D38 ;
    --nero: #000000 ;
    --arancione: #EB5E28  ;

    /* globali */
    --font-a: 'Montserrat', Arial;
    --font-b: 'Libre bodoni', Arial;
    --radius: 5px;

    /* protrait */
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;

    /* spazi */
    --space-sm: clamp(1rem, 0.93rem + 0.38vw, 1.5rem);
    --space-md: clamp(2rem, 1.7rem + 1.5vw, 4rem);
    --space-lg: clamp(4rem, 3.4rem + 3vw, 8rem);

    /* grandezze font */
    --font-body: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
    --font-sm: clamp(0.875rem, 0.83rem + 0.22vw, 1rem);
    --font-h6: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    --font-h5: clamp(1.25rem, 1.16rem + 0.47vw, 1.563rem);
    --font-h4: clamp(1.5rem, 1.37rem + 0.65vw, 1.953rem);
    --font-h3: clamp(1.75rem, 1.54rem + 1.03vw, 2.441rem);
    --font-h2: clamp(2rem, 1.7rem + 1.5vw, 3.052rem);
    --font-h1: clamp(2.375rem, 1.95rem + 2.11vw, 3.815rem);
}

html {
    font-size: 100%;
    box-sizing: border-box;
}

body {
    margin: 0px;
    background-color: var(--nero);
    height: auto;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
}

h1 {
    font-size: var(--font-h1);
    line-height: 1.1;
}

h2 {
    font-size: var(--font-h2);
}

h3 {
    font-size: var(--font-h3);
}

h4 {
    font-size: var(--font-h4);
}

h5 {
    font-size: var(--font-h5);
}

h6 {
    font-size: var(--font-h6);
}

p {
    font-family: var(--font-a);
    color: #ffffff;
    margin: 0px;
}

a {
    font-family: var(--font-a);
    color: var(--teal);
    margin: 0px;
}

li {
    font-family: var(--font-a);
    color: var(--teal);
    margin: 0px;
}

ul {
    padding: 0px;
}

/* regole testo */
.bold {
    font-weight: 700;
}

.lite {
    font-weight: 100;
}

.maiuscolo {
    text-transform: uppercase;
}

/* classi font */
.font-a {
    font-family: var(--font-a);
    font-weight: 500;
}

.font-b {
    font-family: 'Libre bodoni';
}

.linkaffiliato:hover {
    border-top-color: #a5a5a5;
    border-top-width: 1px;
    border-bottom-color: #a5a5a5;
    border-bottom-width: 1px;
    height: 60px;
    background-color: rgba(2, 2, 2, 0.16);
}

.linkaffiliato {
    border-top-color: #a5a5a5;
    border-top-width: 1px;
    border-bottom-color: #a5a5a5;
    border-bottom-width: 0.5px;
    height: 60px;
    transition: background-color 3s,;
}

.linkaffiliato:hover {
}

.nomeprodottotabella {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #ffffff;
}

label {
    font-family: 'Montserrat';
    color: #ffffff;
    font-size: 14px;
}

input {
    background-color: #212121;
    border-radius: 5px;
    border: 0.5px black solid;
    color: white;
    outline: none;
    font-family: 'Montserrat';
    transition: border-color 0.3s ease-in-out 0.1s,
    background-color 0.3s ease-in-out 0.1s,
    box-shadow 0.3s ease-in-out 0.1s;
}

input:hover,
input:focus,
inpu:active {
    outline: none;
    box-shadow: none;
    border: #ffffff 0.5px solid;
}

select {
    background-color: #212121;
    border-radius: 5px;
    border: 0.5px black solid;
    color: white;
    outline: none;
    font-family: 'Montserrat';
    transition: border-color 0.3s ease-in-out 0.1s,
    background-color 0.3s ease-in-out 0.1s,
    box-shadow 0.3s ease-in-out 0.1s;
}

select:hover,
select:focus,
select:active {
    outline: none;
    box-shadow: none;
    border: #ffffff 0.5px solid;
}

.pulsantebianco:hover {
    
}

/* Carosello ultime uscite video */
/* ====== CAROSELLO ISOLATO: tutte le classi partono con "uu-" ====== */
.uu-carosello {
    /* variabili SOLO di questo carosello (no :root, cosÃ¬ non collidi con altri) */
    --uu-r: 5px;
    --uu-shadow: 0 18px 42px rgba(0,0,0,.55);
    --uu-t: 320ms;
    --uu-overlay-non-attivo: rgba(0,0,0,.35);
    --uu-spazio-tra-slide: 50px;
    --uu-play-url: url("/wp-content/themes/maestra/assets/images/icone/playoverlay.svg");
    --uu-barra-url: url("/wp-content/themes/maestra/assets/images/lineavideo.png");
    width: 100%;
    overflow: hidden;
    padding-top: 20px;
    background: #ffffff;

    /* metti tu se serve */
    padding-bottom: 30px;
}

/* Swiper scoped SOLO dentro .uu-carosello */
.uu-carosello .uu-swiper {
    width: 100%;
    padding: 0;
    overflow: visible;
}

.uu-carosello .uu-wrapper {
    align-items: stretch;
    gap: 0 !important;

    /* NON usare gap qui */
}

.uu-carosello .uu-slide {
    width: clamp(240px, 70vw, 520px);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.uu-card {
    width: 100%;
    border-radius: var(--uu-r);
    overflow: visible;
    transform-origin: center;
    transition: transform var(--uu-t) ease, filter var(--uu-t) ease;
}

.uu-media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--uu-r);
    overflow: hidden;
    background: #000;
}

.uu-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 10;
}

/* gradiente base */
.uu-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
    pointer-events: none;
    opacity: .7;
    z-index: 15;
}

/* overlay nero solo non attivi */
.uu-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--uu-overlay-non-attivo);
    opacity: 0;
    transition: opacity var(--uu-t) ease;
    z-index: 16;
    pointer-events: none;
}

.uu-carosello .swiper-slide:not(.swiper-slide-active) .uu-media::before {
    opacity: 1;
}

/* PLAY (immagine via CSS) */
.uu-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 30;
    opacity: 0;
    transform: scale(.96);
    transition: opacity var(--uu-t) ease, transform var(--uu-t) ease;
    pointer-events: none;
}

.uu-play::before {
    content: "";
    width: 54px;
    height: 54px;
    background-image: var(--uu-play-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}

/* barra arancione SOLO attivo */
.uu-barra {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 15px;
    background-image: var(--uu-barra-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--uu-t) ease;
}

.uu-testo {
    padding: 10px 4px 0;
}

.uu-t1 {
    margin: 0 0 6px;
    font-size: 12px;
    opacity: .75;
    color: #000000;
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 14px;
}

.uu-t2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: #000000;
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 20px;
}

/* stato attivo */
.uu-carosello .swiper-slide-active .uu-card {
    transform: scale(1.04);
}

.uu-carosello .swiper-slide-active .uu-play {
    opacity: 1;
    transform: scale(1);
}

.uu-carosello .swiper-slide-active .uu-barra {
    opacity: 1;
}

/* paginazione SOLO qui */
.uu-paginazione {
    position: relative;
    margin-top: 10px;
}

/* responsive slide width */
@media (max-width: 620px){
    .uu-carosello .uu-slide {
        width: 86vw;
    }
}

@media (min-width: 768px){
    .uu-carosello .uu-slide {
        width: clamp(260px, 34vw, 520px);
    }
}

@media (min-width: 576px) {
    .suggestedvideo {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        max-width: 720px;
        margin-bottom: 50px;
    }
}

.pulsantebtn {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
    text-align: center;
}

.pulsantebtn:hover {
    font-family: 'Montserrat', sans-serif;
    background-color: #eb5e28;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

.pulsantebtnnero {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

.pulsantebtnnero:hover {
    font-family: 'Montserrat', sans-serif;
    background-color: #eb5e28;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

@media (min-width:576px) {
    .hiddenmobile {
        display: none;
    }
}

@media (max-width:575px) {
    .hiddenmobile {
        display: none;
    }
}

@media (min-width:768px) {
    .hiddenmobile {
        display: block;
    }
}

@media (min-width:768px) and (max-width:1279px) {
    .hiddendesktop {
        display: none;
    }
}

@media (min-width:1280px) {
    .hiddendesktop {
        display: none;
    }
}

@media (min-width:768px) and (max-width:1279px) {
    .hiddendesktop {
        display: none;
    }
}

/* Mobile */
.padding {
    padding-left: 20px;
    padding-right: 20px;
}

/* ≥ 576px */
@media (min-width: 576px) {
    .padding {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* ≥ 768px */
@media (min-width: 768px) {
    .padding {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* ≥ 1280px */
@media (min-width: 1280px) {
    .padding {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* ≥ 1920px */
@media (min-width: 1920px) {
    .padding {
        padding-left: 80px;
        padding-right: 80px;
    }
}

.divherovideo {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.gradientetrasparentenero {
    height: 100%;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 48%, rgba(0, 0, 0, 0.65) 48%);
}

.areasuperioreherovideo {
    height: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sopratitoloarancione {
    color: #eb5e28;
    font-weight: 500;
}

.h1herovideo {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 50px;
    text-align: center;
}

.divctas {
    padding-top: 60px;
    padding-bottom:30px;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.arancione {
    color: #eb5e28;
}

.contenitorefunzioneabbonamento {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.abbonamentonormale {
    background-color: #403d38;
    border-radius: 15px;
    border-color: rgba(255, 255, 255, 0.62);
    border-width: 1px;
    padding: 50px 30px;
    margin-top: 30px;
}

.abbonamentodiverso {
    background-color: #ccc6ba;
    border-radius: 15px;
    border-color: rgba(255, 255, 255, 0.62);
    border-width: 1px;
    padding: 20px 30px 50px;
}

.pulsanteaggiornadashboard {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #000000;
    padding: 5px 10px;
    background-color: #ffffff;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 25px;
    margin-bottom: 50px;
}

.pulsanteaggiornadashboard:hover {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #ffffff;
    padding: 5px 10px;
    background-color: #eb5e28;
    font-weight: 500;
    border-radius: 5px;
}

@media (min-width:375px) and (max-width:767px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.labelcard {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    font-weight: 400;
}

.modulocard {
    border-radius: 5px;
    background-color: #ffffff;
    border-width: 0px;
    border-color: #ffffff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.23);
    color: #535353;
    margin-top: 5px;
    font-size: 14px;
}

.modulocard:hover {
    border-radius: 5px;
    background-color: #ffffff;
    border-width: 0px;
    border-color: #ffffff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.23);
    color: #535353;
    margin-top: 5px;
    font-size: 14px;
}

.modulocard:active {
    border-radius: 5px;
    background-color: #ffffff;
    border-width: 0px;
    border-color: #ffffff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.23);
    color: #535353;
    margin-top: 5px;
    font-size: 14px;
}

.modulocard:focus {
    border-radius: 5px;
    background-color: #ffffff;
    border-width: 0px;
    border-color: #ffffff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.23);
    color: #535353;
    margin-top: 5px;
    font-size: 14px;
}

/* Sezione video gallery */
.videogallery {
    background-color: var(--nero);
}

.area1riga {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.singolovideogallery {
    display: block;
    height: 200px;
    background-color: var(--grigioscuro);
    border-radius: var(--radius);
    padding: 5px;
}

:root {
    --shadow: 0 18px 42px rgba(0,0,0,.55);
    --r: 5px;

    /* border-radius card video */
    --accent: #ff7a00;
    --t: 320ms;

    /* fluidità transizioni */
    --scale: 1.10;

    /* ingrandimento hover */
    --stroke: rgba(255,255,255,.10);
    --margine-safe: 12px;

    /* estetica demo (puoi rimpiazzare) */
    --pannello: #403D38;
}

.grigliavideo {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
}

@media (max-width:980px){
    .grigliavideo {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:620px){
    .grigliavideo {
        grid-template-columns: 1fr;
    }
}

.wrapcardvideo {
    position: relative;
}

.cardvideo {
    position: relative;
    border-radius: var(--r);
    border: 1px solid var(--stroke);
    overflow: visible;

    /* serve per far “uscire” il pannello sotto */
    transform-origin: center;
    will-change: transform;
}

.cardvideo > a {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: var(--r);
}

/* BLOCCO 16:9 */
.thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--r);

    /* arrotonda la miniatura */
}

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

.grad {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,rgba(64, 61, 56, 0) 0%, rgba(64, 61, 56, 0.7) 100%);
}

.grad:hover {
    background: none;
}

.badgefree {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 4px 7px;
    border-radius: var(--r);
    background: var(--grigiochiaro);
    border: 1px solid rgba(255,255,255,.16);
    text-transform: uppercase;
}

.badgepro {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 4px 7px;
    border-radius: var(--r);
    background: var(--nero);
    border: 1px solid rgba(255,255,255,.16);
    text-transform: uppercase;
    color: var(--bianco);
}

/* INFO BASE DENTRO LA MINIATURA */
.info-base {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5%;
    z-index: 3;
    transition: opacity var(--t) ease, transform var(--t) ease;
}

/* ICONA PLAY (solo CSS) */
.play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform: scale(.92);
    transition: opacity var(--t) ease,
    transform var(--t) ease;
}

/* cerchio di sfondo */
.play::before {
    content: "";
}

/* icona play via immagine */
.play::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 38px;
    background-image: url("/wp-content/themes/maestra/assets/images/icone/playoverlay.svg");

    /* <-- tua icona */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateX(1px);

    /* micro allineamento ottico */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

/* PANNELLO HOVER “INCOLLATO” (un tutt’uno) */
.info-hover {
    position: absolute;
    left: -1px;
    right: -1px;

    /* allinea col bordo (considera il border della card) */
    top: calc(100% - 6px);

    /* leggermente “sotto” la miniatura ma incollato */
    z-index: 4;
    margin: 1px;
    padding: 20px;
    background: var(--grigioscuro);

    /* arrotondo solo il fondo, sopra rimane “attaccato” */
    border-radius: 0 0 var(--r) var(--r);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--t) ease, transform var(--t) ease;
    pointer-events: none;

    /* evita flicker */
}

.info-hover .cat {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--accent);
}

.info-hover .tit2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    opacity: .7;
    justify-content: space-between;
}

.tag {
    font-size: 10px;
    text-transform: uppercase;
    color: white;
}

/* HOVER SOLO su dispositivi con hover reale */
@media (hover:hover) and (pointer:fine){
    .cardvideo {
        transition: transform var(--t) cubic-bezier(.2,.8,.2,1), box-shadow var(--t) ease;
    }

    .cardvideo:hover {
        z-index: 50;
        box-shadow: var(--shadow);
    }

    .cardvideo:hover .info-base {
        opacity: 0;
        transform: translateY(6px);
    }

    .cardvideo:hover .info-hover {
        opacity: 1;
        transform: translateY(0);
    }

    .cardvideo:hover .play {
        opacity: 1;
        transform: scale(1);
    }
}

.iconefooter {
    width: 32px;
    height: 32px;
}

.vocelegalefooter {
    color: #ffffff;
    font-size: 12px;
}

.vocelegalefooter:hover {
    color: #EB5E28;
    font-size: 12px;
}

/* Header */
.sezionevoci {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vocimenu {
    display: inline-flex;
    gap: 15px;
}

.sezionevoci ul {
    list-style-type: none;
}

.sezionevoci li > a {
    color: var(--bianco);
    font-size: 14px;
}

.sezionevoci li > a {
    position: relative;
    color: var(--bianco);
    font-size: 14px;
    text-decoration: none;
}

.sezionevoci li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    /* leggero distacco dal testo */
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s ease;
}

.sezionevoci li > a:hover::after {
    width: 100%;
}














/* Sezione pagina home */
/* Sezione hero */
/* HERO */
.hero {
    position: relative;
    min-height: clamp(520px, 80vh, 820px);
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* video full */
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* overlay scuro leggero sul video (facoltativo) */
.hero__overlay-video {
    position: absolute;
    inset: 0;

    /* background: rgba(0,0,0,.25) */
    z-index: 2;
}

/* contenuto sopra */
.hero__contenuto {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* contenitore centrato */
.hero__griglia {
    max-width: 100%;
    margin: 0 auto;
    min-height: inherit;
    display: grid;
    grid-template-columns: 1fr 1fr;

    /* 2 colonne */
    align-items: center;
    height: 80vh;
}

/* colonna info: allinea a destra */
.hero__colonna-info {
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

/* pannello con sfumatura */
.hero__pannello {
    width: 100%;
    padding: 48px;

    /* sfondo + sfumatura */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.29));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

/* testo */
.hero__kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .85;
}

.hero__titolo {
    margin: 0 0 12px;
    
    line-height: 1.02;
    font-weight: 900;
    font-weight: 600;
}

.hero__testo {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
    opacity: .92;
}

.hero__bottone {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 5px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .06em;
    width: min-content;
    font-family: montserrat;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 900px){
    .hero__griglia {
        grid-template-columns: 1fr;

        /* diventa 1 colonna */
        gap: 18px;
        
    }

    .hero__colonna-vuota {
        display: none;
    }

    .hero__colonna-info {
        justify-content: flex-start;
    }

    .hero__pannello {
        width: 100%;
    }
}

.paroladecorata {
    position: relative;
    font-style: italic;
    z-index: 1;
}

.paroladecorata::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -16px);
    width: 800px;
    height: 10px;
    background: url("/wp-content/themes/maestra/assets/images/baffoarancione.png") no-repeat center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}

/* Sezione chi siamo */
.rigacentrale {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.rigac1 {
    grid-column: 1;
    height: 30px;
}

.rigac2 {
    grid-column: 2;
    border-left: var(--nero) 1px solid;
}

.chisiamo {
    padding-top: 40px;
    padding-bottom: 60px;
}

.areacontenutochisiamo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Sezione ultimi corsi */
.ultimicorsi {
    background-color: var(--nero);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* Sezione categorie */
.sezionecategorie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Tablet */
@media (max-width: 1024px) {
    .sezionecategorie {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .sezionecategorie {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

.singolacategoria {
    position: relative;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
}

.bgcategorie {
    position: relative;
    height: 450px;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%),
        var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-size .6s ease;
}

.singolacategoriasuperiore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all .3s ease;
}

.bgcategorie:hover .singolacategoriasuperiore {
    opacity: 1;
    transform: translateY(0);
}

.bgcategorie:hover .titolo_categoria {
    transform: translateY(-4px);
    transition: transform .3s ease-in-out;
}

/* Sezione video gallery */
.videogallery {
    background-color: var(--nero);
}

.area1riga {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.singolovideogallery {
    display: block;
    height: 200px;
    background-color: var(--grigioscuro);
    border-radius: var(--radius);
    padding: 5px;
}

/* Sezione tag */
.areatag {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    height: auto;
    padding: 80px;
}

.tagsx {
    grid-column: 1;
    display: flex;
    flex-direction: column;
}

.tagdx {
    grid-column: 2;
    display: block;
}



/* Avvisi Woocommerce */
/* BASE COMUNE */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 16px 20px;
    margin: 0px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    border: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    outline: none !important;
}

/* RIMOZIONE BORDO BLU SELEZIONE / FOCUS */
.woocommerce-message:focus,
.woocommerce-error:focus,
.woocommerce-info:focus,
.woocommerce-message:active,
.woocommerce-error:active,
.woocommerce-info:active,
.woocommerce-message:focus-visible,
.woocommerce-error:focus-visible,
.woocommerce-info:focus-visible {
    outline: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
}

/* SUCCESS */
.woocommerce-message {
    background: #0f5132;
    color: #d1e7dd;
    padding-left: 50px;
    padding-right: 50px;
}

/* ERROR */
.woocommerce-error {
    background: #842029;
    color: #f8d7da;
    margin: 0px;
}

/* RIMOZIONE ICONA ERRORE */
.woocommerce-error::before {
    content: none !important;
    display: none !important;
    padding-left: 50px !important;
}

/* INFO */
.woocommerce-info {
    background: #055160;
    color: #cff4fc;
        padding-left: 50px;
    padding-right: 50px;
}

/* LINK DENTRO */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    color: #ffffff;
    text-decoration: underline;
    outline: none !important;
}


.woocommerce-message::before {
    content: "";
    color: #8eae1b00
}

.woocommerce-error::before,.woocommerce-info::before,.woocommerce-message::before {
    font-family: WooCommerce;
    content: "";
    content: "";
    display: inline-block;
    position: absolute;
    top: 1em;
    left: 1.5em
}

/* Gestione stati password */
.woocommerce-password-strength.short {
    margin-top: 5px;
    background-color: #e82424;
    border-color: #e35b5b;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-size: 12px;
}
.woocommerce-password-strength.bad {
    margin-top: 5px;
    background-color: #e85f24;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-size: 12px;
}

.woocommerce-password-strength.good {
    margin-top: 5px;
    background-color: #61ae1f;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-size: 12px;
}
.woocommerce-password-strength.strong {
    margin-top: 5px;
    background-color: #0d9800;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-size: 12px;
}

/* Contenuitore stripe */

.wc-stripe-upe-element {
    min-height: 300px;
}

.payment_box.payment_method_stripe {
    min-height: 300px;
}



/* Checkout */
.wp-block-woocommerce-checkout {
    container-type: inline-size;
    margin: 0;
    padding-top: 24px;
    width: 100%;
}

.wc-block-components-title.wc-block-components-title {
    border: 0;
    border-radius: 0;
    font-size: var(--wp--preset--font-size--medium,22px);
    font-weight: 500;
    line-height: 27px;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    word-break: break-word;
    color: rgb(255, 255, 255)!important;
    font-family: 'Montserrat', sans-serif;
}

.wc-block-components-form .wc-block-components-text-input input[type=email],.wc-block-components-form .wc-block-components-text-input input[type=number],.wc-block-components-form .wc-block-components-text-input input[type=password],.wc-block-components-form .wc-block-components-text-input input[type=tel],.wc-block-components-form .wc-block-components-text-input input[type=text],.wc-block-components-form .wc-block-components-text-input input[type=url],.wc-block-components-text-input input[type=email],.wc-block-components-text-input input[type=number],.wc-block-components-text-input input[type=password],.wc-block-components-text-input input[type=tel],.wc-block-components-text-input input[type=text],.wc-block-components-text-input input[type=url] {
    background-color: #212121;
    border-radius: 5px;
    border: 0.5px black solid;
    color: white;
    outline: none;
    font-family: 'Montserrat';
    transition: border-color 0.3s ease-in-out 0.1s,
    background-color 0.3s ease-in-out 0.1s,
    box-shadow 0.3s ease-in-out 0.1s;
}

.wc-block-components-form .wc-block-components-text-input input[type=email],.wc-block-components-form .wc-block-components-text-input input[type=number],.wc-block-components-form .wc-block-components-text-input input[type=password],.wc-block-components-form .wc-block-components-text-input input[type=tel],.wc-block-components-form .wc-block-components-text-input input[type=text],.wc-block-components-form .wc-block-components-text-input input[type=url],.wc-block-components-text-input input[type=email],.wc-block-components-text-input input[type=number],.wc-block-components-text-input input[type=password],.wc-block-components-text-input input[type=tel],.wc-block-components-text-input input[type=text],.wc-block-components-text-input input[type=url] {
    background-color: #212121;
    border-radius: 5px;
    border: 0.5px black solid;
    color: white;
    outline: none;
    font-family: 'Montserrat';
    transition: border-color 0.3s ease-in-out 0.1s,
    background-color 0.3s ease-in-out 0.1s,
    box-shadow 0.3s ease-in-out 0.1s;
}

.wc-block-components-form .wc-block-components-text-input input[type=email],.wc-block-components-form .wc-block-components-text-input input[type=number],.wc-block-components-form .wc-block-components-text-input input[type=password],.wc-block-components-form .wc-block-components-text-input input[type=tel],.wc-block-components-form .wc-block-components-text-input input[type=text],.wc-block-components-form .wc-block-components-text-input input[type=url],.wc-block-components-text-input input[type=email],.wc-block-components-text-input input[type=number],.wc-block-components-text-input input[type=password],.wc-block-components-text-input input[type=tel],.wc-block-components-text-input input[type=text],.wc-block-components-text-input input[type=url]:focus {
    background-color: #212121;
    border-radius: 5px;
    border: 0.5px black solid;
    color: white;
    outline: none;
    font-family: 'Montserrat';
    transition: border-color 0.3s ease-in-out 0.1s,
    background-color 0.3s ease-in-out 0.1s,
    box-shadow 0.3s ease-in-out 0.1s;
}

.wc-block-components-sidebar-layout:has(>:last-child.wp-block-woocommerce-checkout-fields-block) {
    flex-direction: row-reverse;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 40px;
}

.wc-block-components-radio-control--highlight-checked,.wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option {
    position: relative;
    background-color: #212121;
    border-radius: 5px;
    border: 0px solid transparent;
}


body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #000000;
    padding: 5px 10px;
    background-color: #ffffff;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 25px;
    border: 0px solid transparent;
    text-transform: uppercase;
}
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #ffffff;
    padding: 5px 10px;
    background-color: #eb5e28;
    font-weight: 500;
    border-radius: 5px;
    border: 0px solid transparent;
    text-transform: uppercase;
}

.wc-block-checkout__terms {
    font-size: 12px;
    line-height: 20px;
    margin: 0 0 24px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.p-PaymentAccordionButtonIcon {
    fill: #eb5e28;
    height: 1.2em;
    max-width: 2.5em;
    width: auto
}

.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill+label,.wc-block-components-form .wc-block-components-text-input.is-active label,.wc-block-components-text-input input:-webkit-autofill+label,.wc-block-components-text-input.is-active label {
    top: 6px;
    transform: scale(.82);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title {
    border: 0;
    border-radius: 0;
    flex-grow: 0;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    vertical-align: baseline;
    word-break: break-word;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 10px;
}

@container (max-width: 699px) {
    .wc-block-components-express-payment-continue-rule {
        margin: 16px 0;
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
    }
}

.wc-block-components-express-payment--checkout .wc-block-components-express-payment__event-buttons {
    grid-gap: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    margin-top: 20px;
    list-style: none
}

.wc-block-components-express-payment-continue-rule {
    align-items: center;
    display: flex;
    font-size: var(--wp--preset--font-size--small,14px);
    line-height: 20px;
    margin: 16px 0 24px;
    padding: 0;
    text-align: center;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}


.wc-blocks-components-select .wc-blocks-components-select__select {
    appearance: none;
    background: none;
    border: 0px solid hsl(0deg 0% 7% / 0%);
    border-radius: 5px;
    box-sizing: border-box;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-size: 16px;
    font-style: inherit;
    font-weight: inherit;
    height: 50px;
    letter-spacing: inherit;
    line-height: inherit;
    line-height: 25px;
    padding: 16px 9px 0;
    text-decoration: inherit;
    text-transform: inherit;
    width: 100%;
    background-color: #212121;
    font-family: 'Montserrat';
}

.wc-block-components-form .wc-block-components-text-input label,.wc-block-components-text-input label {
    color: rgb(255, 255, 255);
    cursor: text;
    font-size: inherit;
    font-size: 16px;
    font-style: inherit;
    font-weight: inherit;
    left: 10px;
    letter-spacing: inherit;
    line-height: inherit;
    line-height: 22px;
    margin: 0;
    max-width: calc(100% - 24px);
    overflow: hidden;
    position: absolute;
    text-decoration: inherit;
    text-overflow: ellipsis;
    text-transform: inherit;
    top: 25px;
    transform: translateY(-50%);
    transform-origin: top left;
    transition: all .2s ease;
    font-family: 'Montserrat', sans-serif;
}

.wc-blocks-components-select .wc-blocks-components-select__container {
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 0;
    position: relative;
    width: 100%
}

.wc-blocks-components-select .wc-blocks-components-select__label {
    font-size: inherit;
    font-size: 13px;
    font-style: inherit;
    font-weight: inherit;
    left: 10px;
    letter-spacing: inherit;
    line-height: inherit;
    line-height: 16px;
    margin: 0;
    max-width: calc(100% - 24px);
    overflow: hidden;
    position: absolute;
    text-decoration: inherit;
    text-overflow: ellipsis;
    text-transform: inherit;
    top: 6px;
    white-space: nowrap;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;

}

.wc-blocks-components-select .wc-blocks-components-select__container {
    background: #ffffff00;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 0;
    position: relative;
    width: 100%
}

.wc-block-components-address-form__address_2-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: inline-block;
    font-size: var(--wp--preset--font-size--small,14px);
    line-height: 20px;
    margin-top: 12px;
    text-align: left;
    width: 100%;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

/* Area dx */

.wp-block-woocommerce-checkout-order-summary-block {
    border: 0px solid hsla(0, 0%, 0%, 0);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: var(--wp--preset--font-size--small,14px);
    line-height: 20px;
    background-color: #403D38;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    padding: 12px 16px;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image {
    margin-top: 8px;
    padding-bottom: 16px;
    position: relative;
    width: 48px;
    display: none;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    padding: 0px 12px 12px 0px;
    word-break: break-word
}

.wc-block-components-totals-coupon__form {
    display: block;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    width: 100%
}

.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill:focus,.wc-block-components-form .wc-block-components-text-input.is-active input[type=email]:focus,.wc-block-components-form .wc-block-components-text-input.is-active input[type=number]:focus,.wc-block-components-form .wc-block-components-text-input.is-active input[type=password]:focus,.wc-block-components-form .wc-block-components-text-input.is-active input[type=tel]:focus,.wc-block-components-form .wc-block-components-text-input.is-active input[type=text]:focus,.wc-block-components-form .wc-block-components-text-input.is-active input[type=url]:focus,.wc-block-components-text-input input:-webkit-autofill:focus,.wc-block-components-text-input.is-active input[type=email]:focus,.wc-block-components-text-input.is-active input[type=number]:focus,.wc-block-components-text-input.is-active input[type=password]:focus,.wc-block-components-text-input.is-active input[type=tel]:focus,.wc-block-components-text-input.is-active input[type=text]:focus,.wc-block-components-text-input.is-active input[type=url]:focus {
    padding-left: 8.5px;
    padding-top: 24px;
    background-color:#212121;
    color:#ffffff;
}
.wc-block-components-notice-banner.is-error {
    background-color: #fff0f0;
    border-color: #cc1818;
    font-family: 'Montserrat';
}

.wc-block-checkout__payment-method .wc-block-components-radio-control.disable-radio-control .wc-block-components-radio-control__option {
    padding-left: 16px;
    background-color: #2f2f2f;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Montserrat';
    font-size: 16px;
}

.wc-block-components-notice-banner.wc-block-components-notice-snackbar.is-error,.wc-block-components-notice-banner.wc-block-components-notice-snackbar.is-info,.wc-block-components-notice-banner.wc-block-components-notice-snackbar.is-success,.wc-block-components-notice-snackbar-list .wc-block-components-notice-banner.is-error,.wc-block-components-notice-snackbar-list .wc-block-components-notice-banner.is-info,.wc-block-components-notice-snackbar-list .wc-block-components-notice-banner.is-success {
    border-color: transparent;
    background-color: #eb5e28;
    border: 0px solid transparent;
    font-family: 'Montserrat';
    color: black;
    
}

.wc-block-components-notice-banner.is-info>svg {
    background-color:#000000;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before {
    background:#eb5e28;
    border-radius: 50%;
    content: "";
    display: block;
    height: 10px;
    left: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 10px
}

.wc-block-components-radio-control__description-group .wc-block-components-radio-control__description,.wc-block-components-radio-control__description-group .wc-block-components-radio-control__label,.wc-block-components-radio-control__label-group .wc-block-components-radio-control__description,.wc-block-components-radio-control__label-group .wc-block-components-radio-control__label {
    flex-grow: 1;
    color:rgb(255, 255, 255);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.wc-block-components-address-card {
    align-items: flex-start;
    border: 1px solid hsla(0,0%,7%,.11);
    border-radius: 4px;
    display: flex;
    font-size: var(--wp--preset--font-size--small,14px);
    justify-content: flex-start;
    line-height: 20px;
    margin: 0;
    padding: 16px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    background-color: #212121;
}

.wc-block-components-address-card address .wc-block-components-address-card__address-section--secondary {
    color: #ffffff;
}

.wc-block-components-sidebar-layout .wc-block-components-main {
    box-sizing: border-box;
    margin: 0;
    padding-right: 5px;
    width: 65%;
}

/* Account */
:where(.woocommerce) .select2-container .select2-dropdown,:where(.woocommerce) .select2-container .select2-selection {
    background-color: #212121;
    border: 0px solid transparent;
    border-radius: var(--wc-form-border-radius,4px);
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}
.select2-container--default .select2-selection--single {
    background-color: #212121;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    border: 0px solid transparent;
    color: #ffffff;
}

:where(.woocommerce) .select2-container .select2-selection--single .select2-selection__rendered {
    padding: .5em;
    line-height: normal;
    box-sizing: border-box;
    color: var(--wc-form-color-text,#444);
    font-weight: 400;
    color: #ffffff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #eb5e28;
    color: #000000
}

/* Sezione abbonamneto view subscriptions */

.woocommerce table.shop_table {
    border: 1px solid rgba(255, 255, 255, 0.272);
    text-align: left;
    width: 100%;
    border-collapse: separate;
    border-radius: 5px;
    margin-top: 50px;
    margin-bottom: 20px;
    background-color: #212121;
    color: white;
    font-family: 'Montserrat';
}

.subscription-auto-renew-toggle__i {
	width: 32px;
	border: 2px solid #00ba8a;
	background-color: #00ba8a;
	display: inline-block;
	text-indent: -9999px;
	border-radius: 10em;
	position: relative;
	margin-top: -1px;
	vertical-align: text-top;
}

.subscription-auto-renew-toggle--off .subscription-auto-renew-toggle__i {
	border-color: #e85f24;
	background-color: #e85f24;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #ffffff;
    padding: 10px 15px;
    background-color: #e85f24;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
    margin-bottom: 5px;
}

.subscription-auto-renew-toggle__i {
    background-color: #e85f24 !important;
    border-color: #e85f24 !important;
}


/* Effetto parallax immagini */

.parallax-wrapper {
  position: relative;
  overflow: hidden;
}

.parallax-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.parallax-content {
  position: relative;
  z-index: 2;
}



.contattisx {
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}


.contattidx {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
}