/* ==========================================================================
   Zenana — fix tecnici build statico (iniettato in ogni pagina)
   ========================================================================== */

/* --- LOGO: sempre proporzioni corrette --------------------------------------
   La classe .h50 forza height:50px senza vincolare la larghezza: il logo
   (SVG 500x245) si allargava a 500px (header EN/DE + footer ovunque) e, dove
   la colonna e' stretta, si schiacciava. Come nella versione IT (corretta),
   usiamo height:auto + max-height (cap) cosi' le proporzioni sono sempre ok. */
img[src$="logo.svg"],
img[src$="logo_w.svg"] {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 50px !important;
}
/* header mobile: logo un filo piu' piccolo, come da markup originale */
.header img[src$="logo.svg"] {
    max-height: 40px !important;
}

/* WebP: il wrapper <picture> deve essere trasparente per il layout
   (l'<img> si comporta come figlio diretto del contenitore originale) */
picture {
    display: contents;
}

/* --- COOKIE BANNER: resta barra fissa in basso anche su mobile ---------------
   cookiecuttr.css @media(max-width:480px) lo rende position:relative;float:left,
   facendolo fluire in alto e COPRIRE l'header/hamburger (menu non apribile).
   Lo riportiamo a barra fissa in basso, che non ostacola la navigazione. */
@media screen and (max-width: 480px) {
    .cc-cookies {
        position: fixed !important;
        float: none !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }
}

/* --- HERO: titoli grandi, marcati, moderni ----------------------------------
   Le scritte sulle slider-image erano piccole e sottili: piu' grandi (clamp
   responsive), peso 800, uppercase, spaziatura e ombra per leggibilita'. */
.sliderTitle {
    font-size: clamp(2.6rem, 6.5vw, 5.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 1px 4px rgba(0, 0, 0, .5);
    margin: 0 !important;
}
.sliderSubtitle {
    font-size: clamp(1rem, 2vw, 1.45rem) !important;
    font-weight: 400 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
    margin-top: .6rem !important;
}
/* overlay scuro sfumato su TUTTA la hero (desktop e mobile): profondita' +
   titolo leggibile. Il gradiente copre l'intera slide; il testo sta sopra. */
.flexslider .slides > li {
    position: relative;
}
.flexslider .slides > li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .30) 45%, rgba(0, 0, 0, .72) 100%);
    z-index: 1;
    pointer-events: none;
}
.flexslider .flex-caption {
    position: relative;
    z-index: 2;
}
/* mobile: hero un filo piu' alta cosi' il titolo grande respira */
@media screen and (max-width: 600px) {
    .sliderTitle {
        font-size: clamp(2rem, 11vw, 3.2rem) !important;
        letter-spacing: 1px;
    }
    .sliderSubtitle {
        letter-spacing: 2px;
    }
}

/* --- NEWSLETTER band (footer): testo a sinistra, form a destra in linea ------ */
.nl-band {
    padding: 30px 0 !important;
}
.nl-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.nl-text {
    flex: 1 1 300px;
    min-width: 240px;
    text-align: left;
}
.nl-text h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}
.nl-text p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}
.nl-form {
    flex: 1 1 380px;
    min-width: 280px;
    max-width: 520px;
    margin: 0;
}
.nl-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 5px 5px 5px 6px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .20);
}
.nl-pill input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    padding: 11px 16px;
    font-size: 15px;
    color: #333;
}
.nl-btn {
    background: #74253c;
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: 11px 26px;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s ease;
}
.nl-btn:hover {
    opacity: .88;
}
.nl-priv {
    display: block;
    margin: 9px 4px 0;
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .8);
}
.nl-priv a {
    color: #fff;
    text-decoration: underline;
}
@media screen and (max-width: 768px) {
    .nl-wrap {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    .nl-text {
        text-align: center;
        flex-basis: auto;
    }
    .nl-form {
        width: 100%;
        max-width: 440px;
        flex-basis: auto;
    }
    .nl-priv {
        text-align: center;
    }
}

/* --- FORM coerenti (richiesta info, contatti) via classe .zform:
   input arrotondati, focus bordeaux, bottone come la newsletter. --------------- */
.zform .form-control {
    border: 1px solid #d9cfd2;
    border-radius: 8px;
    padding: 11px 14px;
    height: auto;
    font-size: 15px;
    color: #333;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.zform .form-control:focus {
    border-color: #74253c;
    box-shadow: 0 0 0 3px rgba(116, 37, 60, .12);
    outline: none;
}
.zform textarea.form-control {
    min-height: 120px;
}
.zform label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    letter-spacing: .2px;
}
.zform input[type="submit"],
.zform button[type="submit"] {
    background: #74253c !important;
    color: #fff !important;
    font-weight: 700;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 34px !important;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(116, 37, 60, .22);
    transition: opacity .2s ease;
}
.zform input[type="submit"]:hover,
.zform button[type="submit"]:hover {
    opacity: .9;
}

/* --- GALLERY foto (stessa modalita' di /lo-stile/): tessera QUADRATA con
   immagine centrata (background-cover), angoli arrotondati, zoom on hover,
   click -> lightbox fancybox. Le classi .square/.contentsquare sono le stesse
   usate dal tema su /lo-stile/, qui rese globali per le pagine guida. --------- */
.square {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}
.square:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}
.contentsquare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    transition: transform .45s ease;
    cursor: zoom-in;
}
a:hover .contentsquare {
    transform: scale(1.06);
}
