/* =========================================================
   Rolando Barbiere – revisione SEO / CTA (nov 2026)
   File aggiuntivo: non modifica style.css.
   ========================================================= */

/* ---------- 1. Titoli: stesso aspetto di prima, gerarchia corretta ----------
   Prima: 12 <h1> + <h2> "etichetta" (FILOSOFIA, STORIA...).
   Ora:  1 solo <h1> nella hero; titoli di sezione = h2.h-titolo;
         etichette = p.h-label. Gli stili replicano quelli originali. */
.cd-section .h-titolo {
    font-family: 'Ultra', serif;
    font-weight: 300;
    font-size: 20px;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.cd-section .h-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

@media only screen and (min-width: 768px) {
    .cd-section .h-titolo { font-size: 1.7rem; }
}

@media only screen and (min-width: 319px) and (max-width: 736px) {
    .cd-section .h-titolo { font-size: 1rem !important; }
}

@media only screen and (max-width: 480px) {
    .cd-section .altri-servizi-convenire { font-size: 15px; }
}

/* Prezzi: prima erano <h3>, ora <p> con lo stesso aspetto */
.cd-section p.prezzo-voce {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: normal;
    margin: 0;
}

.cd-section .menu-panel p.prezzo-voce {
    font-size: 18px;
    font-weight: 600;
}

/* ---------- 2. Hero: H1 e sottotitolo ---------- */
.intro-foto .hero-titolo {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 28px 0 6px 0;
}

.intro-foto .hero-sottotitolo {
    font-size: 13px;
    letter-spacing: 1px;
    opacity: .85;
    margin-bottom: 0;
}

.hero-cta {
    margin: 26px 0 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- 3. Pulsanti ---------- */
.btn-prenota,
.btn-secondario {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn-prenota {
    background-color: #ca5a44;
    border: 2px solid #ca5a44;
    color: #fff !important;
}

.btn-prenota:hover,
.btn-prenota:focus {
    background-color: #a04533;
    border-color: #a04533;
    color: #fff !important;
}

.btn-secondario {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff !important;
}

.btn-secondario:hover,
.btn-secondario:focus {
    background: #fff;
    color: #3d3a40 !important;
}

.btn-prenota:focus-visible,
.btn-secondario:focus-visible,
.cta-fissa:focus-visible,
.cta-bar__item:focus-visible {
    outline: 3px solid #f2b8ab;
    outline-offset: 2px;
}

/* ---------- 4. CTA fissa in alto a destra (desktop) ---------- */
.cta-fissa {
    position: fixed;
    top: 34px;
    right: 44px;
    z-index: 1001;
    padding: 11px 24px;
    border-radius: 0;
    background-color: #ca5a44;
    color: #fff !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: background-color .2s;
}

.cta-fissa:hover,
.cta-fissa:focus { background-color: #a04533; }

/* ---------- 5. Barra CTA in basso (mobile / tablet) ---------- */
.cta-bar { display: none; }

@media only screen and (max-width: 1199px) {
    .cta-fissa { display: none; }

    .cta-bar {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;              /* sopra la cornice bianca #bottom */
        z-index: 1001;
        background: #3d3a40;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .cta-bar__item {
        flex: 1 1 0;
        text-align: center;
        padding: 15px 4px;
        color: #fff !important;
        font-family: 'Open Sans', sans-serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        text-decoration: none !important;
        border-left: 1px solid rgba(255, 255, 255, .15);
    }

    .cta-bar__item:first-child { border-left: 0; }

    .cta-bar__item--main {
        flex-grow: 1.4;
        background: #ca5a44;
    }

    /* spazio in fondo alla pagina perché la barra non copra il footer */
    body { padding-bottom: 60px; }

    /* barra nascosta quando il menu laterale è aperto */
    .drawer-open .cta-bar { display: none; }

    /* pulsante preferenze cookie di Iubenda: alzato sopra la barra CTA.
       Selettore volutamente "pesante" per vincere sugli stili di Iubenda
       (.iubenda-tp-btn:not([data-tp-nostyle]) ... con !important) */
    html body .iubenda-tp-btn.iubenda-tp-btn.iubenda-tp-btn,
    html body .iubenda-tp-btn.iubenda-tp-btn[data-tp-float],
    html body .iubenda-tp-btn.iubenda-tp-btn[data-tp-anchored] {
        top: auto !important;
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
        z-index: 1000 !important;
    }
}

/* ---------- 6. Menu laterale ---------- */
.menu-cta {
    clear: both;
    text-align: center;
    padding: 10px 10px 0;
}

.menu-cta .btn-prenota {
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 12px;
    letter-spacing: 1.2px;
}

/* ---------- 7. Servizi: CTA sotto il listino ---------- */
/* il blocco finale ora segue le card invece di essere in posizione assoluta */
.tariffe .testo-chiusura {
    position: relative;
    bottom: auto;
    float: none;
    clear: both;
    padding: 30px 15px 50px;
}

.testo-chiusura .btn-prenota { margin-top: 14px; }

/* ---------- 8. Contatti ---------- */
.contatti address.indirizzo {
    font-style: normal;
    margin-bottom: 20px;
}

.contatti .link-mappa {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: #ca5a44 !important;
}

.contatti .btn-prenota { margin: 4px 0 6px; }

.contatti p.oppure {
    margin: 14px 0 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- 9. FAQ ---------- */
.faq {
    background-color: #f8f7f6;
    padding: 6em 0;
    min-height: 0;
}

.faq .testo-centrato { text-align: center; }

.faq-lista {
    max-width: 760px;
    margin: 40px auto 0;
}

.faq details {
    border-bottom: 1px solid #2b2626;
    padding: 18px 4px;
}

.faq details:first-child { border-top: 1px solid #2b2626; }

.faq summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 34px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    color: #3d3a40;
    line-height: 1.4;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: -4px;
    font-size: 24px;
    font-weight: 300;
    color: #ca5a44;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.faq details a { color: #ca5a44; font-weight: 600; }

.faq-cta { margin-top: 40px; }

@media only screen and (max-width: 480px) {
    .btn-prenota,
    .btn-secondario {
        padding: 13px 22px;
        font-size: 12px;
        letter-spacing: 1.2px;
    }
}

.intro-foto .hero-titolo,
.intro-foto .hero-sottotitolo { text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

@media only screen and (max-width: 1199px) {
    .faq { padding: 3em 15px; }
}

/* ---------- 10. Performance: hero in JPG (1,4 MB -> vedi file) ---------- */
.intro-foto {
    background-image: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url(../img/ROLANDO2.jpg);
}

/* ---------- Footer contatti: tre colonne allineate ---------- */
.contatti .container { display: flex; flex-wrap: wrap; }
.contatti .footer-col { margin-bottom: 40px; }
.contatti .footer-col .h-titolo { white-space: nowrap; }
.contatti .footer-col .linea-destra { width: 200px; margin-left: 0; }
.contatti .indirizzo { margin-top: 10px; }
.contatti .social { margin: 24px 0 0; padding: 0; text-align: left; }
.contatti .social li:first-child { margin-left: 0; }

.contatti .tabella-orari { margin: 10px 0 0; width: 100%; }
.contatti .tabella-orari td { padding: 8px 10px; }

.footer-newsletter { margin-top: 36px; }
.footer-sottotitolo {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #3d3a40;
    margin: 0 0 8px;
}
.btn-secondario.btn-scuro {
    border-color: #3d3a40;
    color: #3d3a40 !important;
}
.btn-secondario.btn-scuro:hover,
.btn-secondario.btn-scuro:focus {
    background: #3d3a40;
    color: #fff !important;
}

.contatti .footer-col .email { margin-top: 10px; }

@media only screen and (max-width: 991px) {
    .contatti .footer-col .h-titolo { white-space: normal; }
}
.contatti .tabella-orari td { white-space: nowrap; }

/* Pulsanti contatti (Prenota / Chiama / WhatsApp) */
.contatti-pulsanti { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contatti-pulsanti .btn-prenota { margin: 0; min-width: 260px; text-align: center; }
@media only screen and (max-width: 480px) {
    .contatti-pulsanti { align-items: stretch; }
    .contatti-pulsanti .btn-prenota { min-width: 0; }
}

/* Palo da barbiere accanto agli orari (tutte le larghezze;
   style.css lo nascondeva sotto i 1200px con !important) */
.contatti .tabella-orari {
    position: relative;
    margin-left: 75px;
    width: calc(100% - 75px);
    border-width: 16px;
    font-size: 14px;
}
.contatti .tabella-orari td { padding: 7px 8px; }
.contatti .tabella-orari:before {
    content: '' !important;
    display: block !important;
    position: absolute;
    left: -106px;
    top: 50%;
    transform: translateY(-50%);
    width: 115px;
    height: 240px;
    margin: 0;
    background: url(../img/contatti-rolando.png) no-repeat center / contain;
}
@media only screen and (max-width: 480px) {
    .contatti .tabella-orari {
        margin-left: 55px;
        width: calc(100% - 55px);
        border-width: 12px;
        font-size: 13px;
    }
    .contatti .tabella-orari td { padding: 6px 5px; }
    .contatti .tabella-orari:before { left: -78px; width: 84px; height: 176px; }
}

/* Icone social ridotte del 20% */
.social img { max-width: 26px; }
.social li { width: 38px; }
.social-menu img { max-width: 16px; }
.social-menu li { width: 24px; }
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .contatti .tabella-orari {
        margin-left: 62px;
        width: calc(100% - 62px);
        border-width: 10px;
        font-size: 12px;
    }
    .contatti .tabella-orari td { padding: 6px 5px; }
    .contatti .tabella-orari:before { left: -82px; width: 88px; height: 184px; }
}

/* FAQ su due colonne (desktop e tablet) */
@media only screen and (min-width: 768px) {
    .faq-lista {
        max-width: 1100px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
        align-items: stretch;
    }
    .faq details:nth-child(2) { border-top: 1px solid #2b2626; }
}
