/* ===================================================================
   Ruggero Marconi Immobiliare, Child Theme CSS
   v2.8.83 - 2026-04-26 (S22 Contatti: hero text rem→px, layout CSS Grid form+orari+dettagli+mappa)
   v2.8.82 - 2026-04-26 (S22 FIX fascia bianca: 13E-2 esclude page-id-8725, il suo hero custom non necessita 250px offset)
   v2.8.81 - 2026-04-26 (S22 FIX Galleria Storica: hero fullscreen min-height + font sizes + nasconde page-hero-title)
   - Section 32: nasconde .entry-header.blog-post-entry-header sulle
     4 pagine con hero Elementor (Come Lavoriamo 7892, Il Territorio
     8863, L'Agenzia 8717, Galleria Storica 8725). La barra gold
     era il titolo pagina RealHomes iniettato dal template default,
     ridondante su pagine con hero Elementor proprio.
   v2.8.63 - 2026-04-20 (S15 H1 SR-ONLY INJECTION)
   - Section 31 helper .page-hero-title (screen-reader-only).
     Accoppiato al filtro the_content in functions.php v2.8.63
     che inietta un H1 semantico nascosto su 4 pagine prive
     di H1: Come Lavoriamo 7892, Galleria Storica 8725,
     L'Agenzia 8717, Contatti 155. Fix audit S15 H1 missing.
   v2.8.62 — 2026-04-20 (S15 PADDING INNER PAGES MOBILE — fix S11-P2.3)
   - Section 13E-2 estesa con @media (max-width: 768px) che porta
     padding-top inner pages :first-child da 250px a 72px su mobile.
     Risolve il task storico S11-P2.3 ("Inner pages padding-top mobile")
     e neutralizza il falso positivo "Come Lavoriamo padding 250px"
     emerso dall'audit S14.
   - Section 30A rimossa: era un fix chirurgico sulla sola Come Lavoriamo
     che non riusciva a battere la specificity 0,5,1 di 13E-2. Ora che
     13E-2 e' responsive a monte, 30A e' obsoleta.
   - Section 30B conservata (Submit Property hide cross-device).
   v2.8.61 — 2026-04-20 (S13 PRE-DEMO CLEANUP)
   Consolidated from snippets #22, #25, #26, #43, #52, #53, #65, #66
   SECTION 10 v5: Visual Harmony + Dark section exceptions
   v2.8.44 (S10): Section 27 homepage agents grid (Ruggero hero / 3 / Valentina)
                  + CTA hide on 4 professionisti (scope S1: solo homepage)
   SECTION 11: Accessibility & WCAG AA compliance
   v2.8.47 (S11): Rimosso @import Font Awesome render-blocking (gia' enqueued
                  via wp_enqueue_style in functions.php). Fix performance FCP.
   v2.8.48 (S12): MOBILE ARMONIA audit.
                  - Rimossa regola killer Section 9 (.elementor-heading-title
                    1.4rem !important) che schiacciava H1 hero a 14px.
                  - Aggiunto token H1 mancante in Section 10 (48px / 28px mobile).
                  - Scale-down H1 responsive in Section 11E + breakpoint 400px.
                  - Nuova Section 28: hero homepage altezza mobile + header
                    safe-area (hamburger visibile, phone block comprimibile).
   v2.8.49 (S12i2): ARMONIA MOBILE radical rework (feedback Valerio: "non c'e'
                    aria, padding, header improponibile").
                  - Section 28A v2: hero mobile con padding-top 72px / bottom
                    56px, container max-width 560px, padding laterale 24px,
                    margin H1->text 20px, text->CTA 28px, line-height text 1.55.
                  - Section 28B v2: header mobile nasconde TUTTO il blocco
                    .rh_menu__user (phone + icon user), hamburger sempre visibile
                    con margin-right 16px, z-index 10. WhatsApp floating (Sec 24)
                    garantisce contatto persistente.
                  - Selettore hero corretto: elementor-element-a6052e1 (non a605).
   v2.8.50 (S12i3): HEADER MOBILE rework (feedback Valerio: "logo troppo piccolo,
                    no burger menu, no mobile button").
                  - Section 28C: logo mobile 70px (era 50, +40% per presenza brand).
                  - Section 28D: hamburger visibile sul serio (barre 26x3 erano
                    25x1!), bianco puro, touch zone 48x48 con bg traslucido e
                    border-radius 10px.
                  - Section 28E: header bg da rgba(10,25,47,0.97) a
                    rgba(22,44,82,0.95) + box-shadow 0 3px 14px per stacco hero.
                  - Section 28B v3: mobile button tap-to-call. Phone block reso
                    pulsante 44x44 icona telefono FA6; href riscritto a tel: via
                    js/child-custom.js (era wa.me, duplicava floating). Floating
                    WhatsApp resta in basso destra: due canali distinti.
                  - NB: scope 28C/D/E allargato da body.home a tutto il sito
                    (coerenza header cross-page).
   v2.8.51 (S12i4): FIX specificita' post-verifica live v2.8.50.
                  - 28B v4: content ::before da FA escape (\f095) a SVG data URI
                    inline (parser CSS non aveva renderizzato la glyph PUA).
                  - 28C v2: logo selectors con chain html>body+wrapper per battere
                    regola parent con specificita' maggiore di 50px.
                  - 28E v2: header bg con html>body+tag+3 classi per vincere
                    rule parent RealHomes che sopravviveva con specificita' 3.
                  - 28F nuovo: layout header flex row allineato + gap 8px tra
                    tap-to-call e hamburger (evita sovrapposizione).
                  - JS Section 13 v2 (in js/child-custom.js v2.4.1): usa
                    querySelectorAll su tutti i phone blocks (erano 3 nel DOM:
                    main + sticky + duplicato, solo 1 convertito).
   v2.8.52 (S12i5): FIX due header simultanei + layout hamburger.
                  - 28G nuovo: RealHomes renderizza in mobile SIA
                    rh_temp_header_responsive_view SIA rh_temp_header_large_screens
                    sovrapposti (bug parent). Nasconde forzatamente il secondo
                    su <=768px. Root cause del "contact-number visibile +
                    hamburger invisibile" diagnosticato live.
                  - 28F neutralizzato: il flex-row forzato su rh_header__wrap
                    aveva destabilizzato il posizionamento del hamburger
                    (rect Y=20, sopra l'header a Y=46). Rimosso.
                  - 28B v5: boost specificita' font-size 0 su contact-number
                    con chain html>body + color transparent + text-indent -9999px
                    (il testo "+39 392 6550070" rimaneva a 9px visibile).
   v2.8.53 (S12i6): FIX hamburger fluttuante sopra header.
                  - Diagnosi live post-v2.8.52: .main-menu (wrapper del
                    hamburger) renderizzato da RealHomes con position:absolute
                    top:-5px margin-top:-21.5px. Il hamburger finiva a Y=20,
                    fuori dall'header (che inizia a Y=46). Causa: il parent
                    posiziona .main-menu come blocco desktop assoluto senza
                    override per mobile.
                  - 28H nuovo: su <=768px forza .rh_header position:relative
                    (ancora per l'absolute), poi riposiziona .main-menu con
                    top:11px right:68px (12 padding + 44 phone + 12 gap).
                    Cosi' hamburger centrato verticalmente nell'header,
                    affiancato al tap-to-call, no sovrapposizione.
   v2.8.54 (S12i7): POLISH finale mobile header.
                  - Diagnosi live post-v2.8.53: .rh_menu__user wrapper aveva
                    background rgb(26,26,26) applicato dal parent, che
                    appariva come riquadro NERO pieno attorno al phone button
                    (rovina l'armonia del bg blu trasparente). Rimosso con
                    specificita' html>body (28B v6) e aggiunto a .rh_menu
                    stesso per sicurezza.
                  - 28H v2: right di .main-menu da 68px a 76px (12 padding
                    + 44 phone + 20 gap) per respirabilita' visiva tra
                    hamburger e tap-to-call (era gap 2px, serrato).
   v2.8.55 (S12i8): LOGO leggibile su mobile.
                  - Feedback Valerio post-v2.8.54: "il logo non si legge
                    ancora, e' piccolo". Il testo "MARCONI IMMOBILIARE"
                    sotto il monogramma RM a 70px era illeggibile.
                  - 28C v3: logo height da 70px a 90px (+28%). La larghezza
                    proporzionale diventa ~135px, rimane ampio spazio sul
                    viewport 390 (135 logo + 12 padding + 48 hamburger +
                    20 gap + 44 phone + 12 padding = 271px, resta respiro).
                  - Hamburger centrato verticalmente rispetto al nuovo
                    header effettivo (logo wrapper gia' 100px alto, bg blu
                    si estende attorno al logo).
   v2.8.58 (S12 REBUILD): Abbandonato approccio stratificato Section 28.
                  - Feedback Valerio: 10 iterazioni di patch su Section 28
                    hanno accumulato toppe CSS senza risolvere strutturalmente.
                    Serve rebuild mobile-first con design tokens + CSS Grid.
                  - Section 29 NUOVA: mobile header rebuild clean.
                    Design tokens (--rmi-*) + grid layout (auto 1fr auto) +
                    reset controllato del parent RealHomes. Touch targets 48,
                    header 96 con rapporto logo/header 0.71 (68/96).
                  - Section 28B-H considerate obsolete (resteranno in file
                    fino a verifica live 29, poi cleanup in v2.8.59).
                  - 28A (hero padding mobile) mantenuta, non tocca l'header.
   v2.8.61 (S13 PRE-DEMO CLEANUP): fix post-audit Playwright mobile
                  pre-presentazione cliente (iPhone 12 Pro 390x844).
                  - 30A: pagina Come Lavoriamo (page-id-7892) aveva prima
                    section Elementor 92eeb1f con padding-top:250px su mobile
                    (anomalia vs 0-72px su tutte le altre pagine). Forzato
                    a 72px via body.page-id-7892 scope, @media max-width
                    768px. Coerente con hero homepage.
                  - 30B: rincalzo Submit Property hide. L'audit conferma
                    bottoni gia' visible=false in tutte le 8 pagine (via
                    regole Section 1 e parent theme) ma restano 3 elementi
                    <a href*="submit-property"> nel DOM per pagina.
                    Aggiunto display:none+visibility:hidden cross-device
                    per ridurre noise HTML/SEO e garantire che non
                    riappaiano mai in caso di regressione CSS parent.
                  - Fix applicati live senza CSS: email L'Agenzia
                    (tempocasa -> ruggeromarconi) via REST + Elementor
                    save JS API, e telefono footer +39 06 908 9110
                    -> +39 392 6550070 via admin-ajax save-widget.
                  - Todo post-demo: H1 mancanti su 4 pagine (Come
                    Lavoriamo, Galleria, L'Agenzia, Contatti) via
                    Elementor content; JSON-LD schema.org telephone
                    e alternateName Tempocasa Formello; CORS font errors.
   v2.8.60 (S12 SPECIFICITY-BOOST): fix post-audit Playwright locale.
                  - Audit iPhone 12 via playwright-mobile-audit.mjs rivela:
                    (a) logo img renderizzato a 50px (parent RealHomes vince
                        con max-height:50px), target era 68px token;
                    (b) contact-number con fontSize:9px color:white (parent
                        vince Section 29.7), il numero resta invisibile solo
                        per effetto clipping (text-indent+overflow), non per
                        reset pulito del font.
                  - Fix: boost specificity su 29.3 (selettore esteso a 0,5,5
                    con chain html body header.rh_header.X .rh_header__wrap
                    .rh_logo .rh_logo_inner a img) e 29.7 (0,6,4 con chain
                    .rh_menu .rh_menu__user .rh_menu__user_phone).
                  - Nessuna nuova regola, solo selettori piu' lunghi per
                    vincere il parent. Section 29 resta unica fonte di
                    verita', design tokens invariati.
   v2.8.59 (S12 CLEANUP): FIX logo clippato + rimozione stratificazione.
                  - Feedback Valerio post-v2.8.58: "solo la posizione del
                    logo e' ancora non corretta". Diagnosi: Section 28C
                    (linea 3166) forzava img logo a height/max/min 110px
                    con specificita' 0,5,3 — batteva Section 29.3 (0,4,3).
                    Logo renderizzato a 110px dentro header 96px -> testa
                    clippata in alto (il monogramma "RM" appariva come "iVi").
                  - Fix strutturale: rimosse fisicamente tutte le regole
                    Section 28B, 28C, 28D, 28E, 28F, 28G, 28B v5, 28H che
                    erano superseded da Section 29 ma ancora attive con
                    specificita' parassita sul render. Section 29 ora e'
                    unica fonte di verita' per mobile header.
                  - 28A (hero padding mobile homepage) conservata: non
                    tocca header, resta valida.
   v2.8.57 (S12i10): FIX logo tagliato in alto.
                  - Diagnosi live post-v2.8.56: header a 120px (ok) ma
                    .rh_header__wrap aveva max-height:70px forzato dal parent.
                    Logo wrapper con padding:15px + logoInner 110px = 140px
                    totali, sbordava 20px SOPRA l'header (Y=26 vs header
                    top Y=46). La parte superiore del monogramma RM veniva
                    tagliata dalla titlebar (appariva come "IVI").
                  - 28I v2: .rh_header__wrap max-height:none, height:auto,
                    min-height:120px, align-items:center, padding simmetrico.
                  - 28K nuovo: .rh_logo_wrapper padding:0, align-self:center
                    per mantenere il logo dentro i confini dell'header.
   v2.8.56 (S12i9): HEADER piu' alto + pulsanti allineati a destra.
                  - Feedback Valerio post-v2.8.55: "logo piu' grande
                    recuperando un po' di altezza sulla header bar,
                    pulsanti vanno allineati correttamente sulla destra".
                  - 28C v4: logo height da 90px a 110px (+22%).
                  - 28I nuovo: header min-height 110px (da 70) per
                    accogliere il logo senza sbordi. Padding simmetrico.
                  - 28J nuovo: phone (.rh_menu__user) forzato position
                    absolute top:50% translateY(-50%) right:12px.
                    Hamburger (.main-menu) absolute right:72px stesso
                    centering. Gap 16px tra i due, entrambi ancorati al
                    bordo destro dell'header.
   =================================================================== */

/* ===================================================================
   SECTION 1: TYPOGRAPHY & CORE STYLES
   =================================================================== */

/* Force Playfair Display on all headings */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.rh_section__title,
.elementor-widget-heading .elementor-heading-title,
.elementor-element .elementor-heading-title,
h1.elementor-heading-title,
h2.elementor-heading-title,
h3.elementor-heading-title,
h4.elementor-heading-title,
h5.elementor-heading-title,
h6.elementor-heading-title {
    font-family: 'Playfair Display', serif !important;
}

/* Global typography improvements */
.rh_section__title, h2.rh_section__title, .rh_section__heading {
    font-weight: 700 !important;
}
.rh_section p, .rh_content p, .rh_page__content p {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

/* Selection color */
::selection {
    background-color: #c4943e;
    color: #ffffff;
}

/* ===================================================================
   SECTION 2: LAYOUT FIX — Overflow & Constraints
   From #25 (Fix Layout Shift)
   =================================================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Hide compare properties floating widget */
.rh_wrapper_properties_compare {
    display: none !important;
}

/* Contain slider arrows within viewport */
.flex-next.nav-buttons {
    right: 10px !important;
}
.flex-prev.nav-buttons {
    left: 10px !important;
}

/* Ensure all major containers stay within bounds */
.rh_wrap,
.rh_section,
#rh_slider__home,
.rh_header,
.rh_footer,
.rh_cta,
section,
.elementor-section {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Force full-width sections to stay within viewport */
.elementor-section-full_width,
.elementor-section.elementor-section-stretched {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* ===================================================================
   SECTION 3: HEADER FIX
   From #52 (Header Overlap Fix)
   =================================================================== */

/* Target: all elementor_header_footer pages EXCEPT homepage */
.page-template-elementor_header_footer:not(.page-id-105) .rh_long_screen_header_temp + div {
    padding-top: 160px !important;
}

/* ===================================================================
   SECTION 4: FOOTER LAYOUT FIX
   From #26, #53 (Footer Layout Fix)
   =================================================================== */

/* Footer logo: resize */
.rh_footer__logo img {
    max-width: 200px !important;
    height: auto !important;
    width: auto !important;
}

/* Main footer: flex container with centered content (max 1280px) */
.rh_footer {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    padding-left: max(30px, calc((100% - 1280px) / 2)) !important;
    padding-right: max(30px, calc((100% - 1280px) / 2)) !important;
    border-top: 3px solid #c8a45a !important;
}

/* Footer wraps: remove their individual max-width/margin centering */
.rh_footer .rh_footer__wrap {
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Top wrap (logo + social): first column ~33% */
.rh_footer__wrap.rh_footer__top_wrap {
    width: 33.333% !important;
    flex: 0 0 33.333% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 0 15px 20px 0 !important;
    order: 1 !important;
}

/* Widgets wrap: columns 2-3 ~66% */
.rh_footer__wrap.rh_footer__widgets_wrap {
    width: 66.666% !important;
    flex: 0 0 66.666% !important;
    padding: 0 !important;
    order: 2 !important;
}

/* Hide empty first widget column */
.rh_footer__widgets.columns-3:first-child {
    display: none !important;
}

/* Remaining 2 widget columns: each 50% */
.rh_footer__widgets.columns-3:nth-child(2),
.rh_footer__widgets.columns-3:nth-child(3) {
    width: 50% !important;
}

/* Bottom bar: full width */
.rh_footer__wrap.rh_footer__bottom_wrap {
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 3 !important;
}

/* Legal links: proper footer ordering */
footer.rh_footer > .ux-legal-links {
    order: 4 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
}

.ux-legal-links {
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 16px;
}
.ux-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 12px;
}
.ux-legal-links a:hover {
    color: #c8a45a;
}

/* Social icons styling */
.rh_footer__social {
    display: flex !important;
    gap: 12px !important;
}
.rh_footer__social a {
    font-size: 18px !important;
}

/* Sticky Header: constrain content width */
.rh_mod_sticky_header {
    padding-left: max(2rem, calc((100% - 1280px) / 2)) !important;
    padding-right: max(2rem, calc((100% - 1280px) / 2)) !important;
    box-sizing: border-box !important;
}

/* Mobile responsive footer */
@media (max-width: 767px) {
    .rh_footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .rh_footer__wrap.rh_footer__top_wrap {
        width: 100% !important;
        flex: 0 0 100% !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 0 20px !important;
    }
    .rh_footer__wrap.rh_footer__widgets_wrap {
        width: 100% !important;
        flex: 0 0 100% !important;
        flex-direction: column !important;
    }
    .rh_footer__widgets.columns-3:nth-child(2),
    .rh_footer__widgets.columns-3:nth-child(3) {
        width: 100% !important;
        padding-bottom: 20px !important;
    }
    .rh_mod_sticky_header {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ===================================================================
   SECTION 5: AGENT DESIGNATION
   From #22 (Agent Designation Injector)
   =================================================================== */

.rh_agent_title_designation {
    font-size: 14px;
    color: #1ea69a;
    font-style: italic;
    margin-top: -5px;
    margin-bottom: 5px;
    text-align: center;
}

/* ===================================================================
   SECTION 6: UX DESIGN BOOST — Page-Specific Styles
   From #43 (UX Design Boost)
   =================================================================== */

/* Font Awesome 6 caricato via wp_enqueue_style in functions.php (v6.5.0). */
/* Rimosso @import render-blocking — audit S11, 2026-04-19. */

/* === COME LAVORIAMO (page-id-7892) === */
body.page-id-7892 .elementor-section {
    transition: opacity 0.3s ease;
}
body.page-id-7892 .elementor-widget-heading .elementor-heading-title {
    position: relative;
    padding-bottom: 12px;
}
body.page-id-7892 .elementor-widget-heading .elementor-heading-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1a3a5c, #c8a45a);
    border-radius: 2px;
}
body.page-id-7892 .ux-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a5c, #234b73);
    color: #c8a45a;
    font-size: 28px;
    margin: 0 auto 18px;
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

/* === L'AGENZIA (page-id-8717) === */
body.page-id-8717 .ux-value-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 16px;
}
body.page-id-8717 .ux-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
body.page-id-8717 .ux-value-card i {
    font-size: 32px;
    color: #c8a45a;
    margin-bottom: 12px;
    display: block;
}
body.page-id-8717 .ux-value-card h4 {
    font-size: 16px;
    color: #1a3a5c;
    margin: 0;
    font-weight: 600;
}
body.page-id-8717 .ux-counter-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 32px 0;
    background: linear-gradient(135deg, #1a3a5c, #234b73);
    border-radius: 12px;
    margin: 24px 0;
}
body.page-id-8717 .ux-counter-item {
    text-align: center;
    color: #fff;
}
body.page-id-8717 .ux-counter-item .number {
    font-size: 42px;
    font-weight: 700;
    color: #c8a45a;
    display: block;
    line-height: 1.2;
}
body.page-id-8717 .ux-counter-item .label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

/* === CONTATTI (page-id-155) === */
body.page-id-155 .ux-hours-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border-left: 4px solid #c8a45a;
}
body.page-id-155 .ux-hours-box h4 {
    color: #1a3a5c;
    margin: 0 0 12px;
    font-size: 18px;
}
body.page-id-155 .ux-hours-box p {
    margin: 4px 0;
    color: #444;
}
body.page-id-155 .ux-hours-box i {
    color: #c8a45a;
    margin-right: 8px;
}

/* === GALLERIA STORICA (page-id-8725) === */
body.page-id-8725 .ux-placeholder-card {
    background: linear-gradient(135deg, #f0f2f5, #e8eaed);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 24px;
    border: 2px dashed #c8a45a;
}
body.page-id-8725 .ux-placeholder-card i {
    font-size: 48px;
    color: #c8a45a;
    margin-bottom: 16px;
    display: block;
}
body.page-id-8725 .ux-placeholder-card h3 {
    color: #1a3a5c;
    font-size: 20px;
    margin: 0 0 8px;
}
body.page-id-8725 .ux-placeholder-card p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ── Galleria Storica: hero full-width (fix contenitore boxed 920px) ── */
/* Specificità 0,4,1 per battere body.page:not(.home) .e-con-boxed > .e-con-inner !important (0,4,0) */
body.page-id-8725.page .elementor-element-1d53b5f {
    padding: 0 !important;
}
body.page-id-8725.page .e-con-boxed.elementor-element-1d53b5f > .e-con-inner {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── Galleria Storica: nasconde il titolo di pagina RealHomes (gap bianco sopra l'hero) ── */
body.page-id-8725 .page-hero-title {
    display: none !important;
}

/* ===================================================================
   SECTION 7: DESIGN SYSTEM IMPROVEMENTS
   From #65 (Design System) — Color system & Components
   =================================================================== */

/* Global color variables */
:root {
    --rh-global-color-primary: #c4943e;
    --rh-global-color-primary-dark: #b0832f;
    --rh-global-color-primary-rgb: 196, 148, 62;
}

/* Primary buttons */
.rhea-btn-primary, a.rhea-btn-primary, button.rhea-btn-primary,
.rhea_search_form_button, .rh_btn--primary {
    background-color: #c4943e !important;
    border-color: #c4943e !important;
    color: #fff !important;
}
.rhea-btn-primary::before, a.rhea-btn-primary::before,
button.rhea-btn-primary::before, .rhea_search_form_button::before,
.rh_btn--primary::before {
    background-color: #c4943e !important;
}
.rhea-btn-primary:hover, a.rhea-btn-primary:hover,
button.rhea-btn-primary:hover, .rhea_search_form_button:hover,
.rh_btn--primary:hover {
    background-color: #b0832f !important;
    border-color: #b0832f !important;
}
.rhea-btn-primary:hover::before, a.rhea-btn-primary:hover::before,
button.rhea-btn-primary:hover::before, .rhea_search_form_button:hover::before,
.rh_btn--primary:hover::before {
    background-color: #b0832f !important;
}

/* Compare Properties bar (existing, preserved) */
.rh_compare__submit .rh-compare-submit-btn,
.rh_compare .rh_compare__submit a {
    background-color: #c4943e;
    border-color: #c4943e;
    color: #ffffff;
}
.rh_compare__submit .rh-compare-submit-btn:hover,
.rh_compare .rh_compare__submit a:hover {
    background-color: #a37832;
    border-color: #a37832;
}

/* Overlay labels & status badges */
.rh_overlay__label span, .rh_prop_card .rh_overlay__label span,
span.status-label, .rhea_property_status span {
    background-color: #c4943e !important;
}

/* Agent cards */
.rh_agent_card .rh_agent_card__details a.rh_agent_card__link,
.agent-contact-btn, a.agent-btn {
    background-color: #c4943e !important;
    border-color: #c4943e !important;
    color: #fff !important;
}

/* Custom buttons */
.rhea-custom-button.default, button.rhea-custom-button.default,
.rhea-custom-button, button.rhea-custom-button {
    background-color: #c4943e !important;
    border-color: #c4943e !important;
    color: #fff !important;
}
.rhea-custom-button.default:hover, button.rhea-custom-button.default:hover {
    background-color: #b0832f !important;
    border-color: #b0832f !important;
}

/* Slider components */
.ui-slider-range.ui-widget-header {
    background-color: #c4943e !important;
    background-image: none !important;
}
.ui-slider-handle.ui-state-default {
    background-color: #c4943e !important;
    background-image: none !important;
    border-color: #c4943e !important;
}

/* Hide redundant search filter fields */
.rhea-field-type-prefix,
.rhea-field-type-country,
.rhea-field-type-city,
.rhea-field-type-state,
.rhea-field-type-address,
.rhea-field-type-source,
.rhea-field-type-agent,
.rhea-field-type-agent-name,
.rhea-field-type-zip {
    display: none !important;
}

/* Scroll-to-top button (preserved) */
#scroll-top {
    background-color: #c4943e;
}
#scroll-top:hover {
    background-color: #a37832;
}

/* Partner grid styling */
.rm-partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.rm-partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 160px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rm-partner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.rm-partner-item img {
    max-height: 40px;
    width: auto;
    filter: grayscale(30%);
    transition: filter 0.2s;
}
.rm-partner-item:hover img {
    filter: grayscale(0%);
}

/* ===================================================================
   SECTION 8: CONTENT INTEGRATION
   From #66 (Content Integration) — Page content sections
   =================================================================== */

.rm-content-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 30px;
}
.rm-content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 20px;
    text-align: center;
}
.rm-content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2332;
    margin: 25px 0 10px;
}
.rm-content-section p {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 15px;
}
.rm-content-section .rm-accent {
    color: #c4943e;
}

/* Steps grid (Come Lavoriamo) */
.rm-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}
.rm-step-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border-top: 3px solid #c4943e;
}
.rm-step-card .rm-step-num {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: #c4943e;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}
.rm-step-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Services grid (L'Agenzia) */
.rm-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}
.rm-service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.rm-service-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.rm-service-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 4px;
}
.rm-service-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Quote box */
.rm-quote-box {
    background: #1a2332;
    color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}
.rm-quote-box .rm-quote-author {
    font-style: normal;
    font-size: 14px;
    color: #c4943e;
    margin-top: 12px;
}

/* Content integration responsive */
@media (max-width: 768px) {
    .rm-steps-grid {
        grid-template-columns: 1fr;
    }
    .rm-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   SECTION 9: RESPONSIVE & MOBILE OVERRIDES
   v2.8.48: rimossa regola killer `.elementor-heading-title { 1.4rem !important }`
            che schiacciava TUTTI i titoli Elementor a 14px (base 10px x 1.4)
            incluso l'H1 hero. H1/H2/H3/H4 mobile sono ora gestiti nella
            Section 11E (scale-down mirati per tipo) + Section 10 (H1 token).
   =================================================================== */

/* Fallback mobile per heading-title legacy fuori dai widget Elementor
   (es. blocchi HTML, CSS snippet ereditati). Scope .rh_section e niente
   !important: non tocca i widget Elementor, che hanno regole Section
   10/11E piu' specifiche. */
@media (max-width: 768px) {
    body.wp-theme-realhomes .rh_section .elementor-heading-title:not([class*="elementor-element-"]) {
        font-size: 1.8rem;
    }
}

/* ===================================================================
   SECTION 10: VISUAL HARMONY — Design Token Override v5
   v2.7: Audit completo WCAG AA + dark section exceptions
   Strategia specificità: body.wp-theme-realhomes → (0,3,1)
   Child CSS position 33 > Elementor inline position 12
   =================================================================== */

/* ─────────────────────────────────────────────────────────────────
   A. HEADING COLOR — Navy #1a2332 (default su sfondo chiaro)
   ───────────────────────────────────────────────────────────────── */

body.wp-theme-realhomes .elementor-widget-heading .elementor-heading-title,
body.wp-theme-realhomes h1.elementor-heading-title,
body.wp-theme-realhomes h2.elementor-heading-title,
body.wp-theme-realhomes h3.elementor-heading-title,
body.wp-theme-realhomes h4.elementor-heading-title {
    color: #1a2332 !important;
}

/* H1 standard: 48px / 700 (hero + page titles)
   v2.8.48: aggiunto token H1 che mancava nella v5. Scope body.wp-theme-realhomes
   + .elementor-widget-heading garantisce specificity (0,3,2) — vince contro
   Elementor inline (0,3,1) e contro la Section 9 mobile fallback (0,3,1). */
body.wp-theme-realhomes .elementor-widget-heading h1.elementor-heading-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
}

/* H2 standard: 36px / 700 */
body.wp-theme-realhomes .elementor-widget-heading h2.elementor-heading-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
}

/* H3 standard */
body.wp-theme-realhomes .elementor-widget-heading h3.elementor-heading-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
}

/* H4 standard */
body.wp-theme-realhomes .elementor-widget-heading h4.elementor-heading-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

/* ─────────────────────────────────────────────────────────────────
   A2. DARK SECTIONS — Heading + text bianchi
   Pattern: sezioni con sfondo scuro (overlay, bg-color, bg-image)
   Approccio ibrido: selettori strutturali + ID per sezioni senza
   attributi inline (es. bg via classe Elementor)
   ───────────────────────────────────────────────────────────────── */

/* Strutturale: sezioni con overlay scuro hanno sempre testo bianco */
body.wp-theme-realhomes .elementor-section:has(.elementor-background-overlay) .elementor-heading-title {
    color: #ffffff !important;
}
body.wp-theme-realhomes .elementor-section:has(.elementor-background-overlay) .elementor-widget-text-editor p,
body.wp-theme-realhomes .elementor-section:has(.elementor-background-overlay) .elementor-widget-text-editor li,
body.wp-theme-realhomes .elementor-section:has(.elementor-background-overlay) .elementor-widget-text-editor span {
    color: rgba(255, 255, 255, 0.9) !important;
}
body.wp-theme-realhomes .elementor-section:has(.elementor-background-overlay) .elementor-button {
    border-color: #ffffff !important;
}

/* Strutturale: sezioni con background-color navy inline */
body.wp-theme-realhomes .elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-heading-title,
body.wp-theme-realhomes .elementor-section[style*="background-color:rgb(26,35,50)"] .elementor-heading-title,
body.wp-theme-realhomes .elementor-section[style*="background-color: #1a2332"] .elementor-heading-title,
body.wp-theme-realhomes .e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-heading-title,
body.wp-theme-realhomes .e-con[style*="background-color: #1a2332"] .elementor-heading-title {
    color: #ffffff !important;
}

/* --- ID-specific: sezioni con bg scuro via classe Elementor (non inline) --- */

/* Come Lavoriamo (7892): Hero — bg-image villa-piscina + overlay scuro */
body.wp-theme-realhomes .elementor-element-92eeb1f .elementor-heading-title {
    color: #ffffff !important;
}
body.wp-theme-realhomes .elementor-element-92eeb1f .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Come Lavoriamo (7892): "Chi vende" — bg-image pool + overlay scuro */
body.wp-theme-realhomes .elementor-element-8e40a2d .elementor-heading-title {
    color: #ffffff !important;
}
body.wp-theme-realhomes .elementor-element-8e40a2d .elementor-widget-text-editor p,
body.wp-theme-realhomes .elementor-element-8e40a2d .elementor-widget-text-editor li {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* L'Agenzia (8717): Hero — bg rgb(26,26,46) via classe */
body.wp-theme-realhomes .elementor-element-831e8cd .elementor-heading-title {
    color: #ffffff !important;
}
body.wp-theme-realhomes .elementor-element-831e8cd .elementor-widget-text-editor p,
body.wp-theme-realhomes .elementor-element-831e8cd p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* L'Agenzia (8717): "I nostri valori" — bg rgb(26,26,46) via classe
   STRUTTURA: sezione scura > e-con-inner > widget 193a68a (bg: #f8f9fa) > H2 + card
   L'H2 è DENTRO il widget con bg chiaro — quindi testo navy, non bianco.
   Il bg scuro della sezione fa da cornice esterna. */
body.wp-theme-realhomes .elementor-element-2271058 .elementor-heading-title {
    color: #ffffff !important; /* fix post-snippet: heading direttamente su bg navy */
}
/* .cl-valore-card rimosso — snippet #56 disattivato */

/* L'Agenzia (8717): Quote Ruggero — bg rgb(26,35,50) via classe */
body.wp-theme-realhomes .elementor-element-1ab2bb3 p,
body.wp-theme-realhomes .elementor-element-1ab2bb3 span,
body.wp-theme-realhomes .elementor-element-1ab2bb3 .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Homepage (105): "Dal 2005 aiutiamo" — bg-image + overlay */
body.wp-theme-realhomes .elementor-element-4dac6eff .elementor-heading-title {
    color: #ffffff !important;
}
body.wp-theme-realhomes .elementor-element-4dac6eff .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ─────────────────────────────────────────────────────────────────
   B. BODY TEXT — Standard 16px / #4a4f54 / lh 1.6
   Darkened from #64696f to #4a4f54 for WCAG AA (ratio 7.2:1)
   ───────────────────────────────────────────────────────────────── */

.elementor-widget-text-editor .elementor-widget-container p,
.elementor-widget-text-editor .elementor-widget-container li {
    font-size: 16px !important;
    color: #4a4f54 !important;
    line-height: 1.6 !important;
}

/* Fix specifico L'Agenzia — overwrite residual light colors */
.page-id-8717 .elementor-widget-container p {
    color: #4a4f54 !important;
}

/* Eccezione: corpo su sfondo navy (inline o classe) */
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-widget-text-editor p,
.e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Footer text */
.elementor-location-footer .elementor-widget-text-editor p,
#footer .elementor-widget-text-editor p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ─────────────────────────────────────────────────────────────────
   C. ICON-BOX — Circle badge (navy bg + gold icon)
   ───────────────────────────────────────────────────────────────── */

/* Contenitore circolare */
.elementor-icon-box-icon .elementor-icon,
.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon {
    background-color: #1a2332 !important;
    border-radius: 50% !important;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    color: #c4943e !important;
}

/* Icona oro — i (Font Awesome) e svg (Elementor Pro) */
.elementor-icon-box-icon .elementor-icon i,
.elementor-icon-box-icon .elementor-icon svg,
.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon i,
.elementor-widget-icon-box .elementor-icon-box-icon .elementor-icon svg {
    color: #c4943e !important;
    fill: #c4943e !important;
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 1 !important;
}

/* Titolo icon-box */
.elementor-icon-box-title,
.elementor-icon-box-title a,
.elementor-icon-box-title span {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

/* Descrizione icon-box */
.elementor-icon-box-description {
    font-size: 14px !important;
    color: #4a4f54 !important;
    line-height: 1.5 !important;
}

/* Eccezione sfondo navy: cerchio oro + icona navy */
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-icon,
.e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-icon {
    background-color: #c4943e !important;
}
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-icon i,
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-icon svg,
.e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-icon i,
.e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-icon svg {
    color: #1a2332 !important;
    fill: #1a2332 !important;
}

/* Titoli e testi icon-box su sfondo navy */
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-icon-box-title,
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-icon-box-title a,
.e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-icon-box-title {
    color: #ffffff !important;
}
.elementor-section[style*="background-color: rgb(26, 35, 50)"] .elementor-icon-box-description,
.e-con[style*="background-color: rgb(26, 35, 50)"] .elementor-icon-box-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ─────────────────────────────────────────────────────────────────
   D. SERVIZI A 360° (L'Agenzia) — Layout 2 colonne
   ───────────────────────────────────────────────────────────────── */

.page-id-8717 .elementor-col-100 .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    align-items: flex-start !important;
}
.page-id-8717 .elementor-col-100 .elementor-widget-icon-box {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
}

/* Fix v2.8.11: display grid sul container — flex non risolve correttamente
   flex-basis % in presenza del padding laterale (AP#18). Grid con 1fr
   calcola le tracks DOPO il padding, dando 460px esatti per colonna. */
body.page-id-8717 .elementor-element-07c6233,
body.page-id-8717 .elementor-element-395b621 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 767px) {
    .page-id-8717 .elementor-col-100 .elementor-widget-icon-box {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    body.page-id-8717 .elementor-element-07c6233,
    body.page-id-8717 .elementor-element-395b621 {
        grid-template-columns: 1fr !important;
    }
}

/* ─────────────────────────────────────────────────────────────────
   E. SPAZIO BIANCO FANTASMA
   ───────────────────────────────────────────────────────────────── */

.elementor-section:empty,
.elementor-section > .elementor-container:empty {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.elementor-section {
    min-height: unset !important;
}

.elementor-section:last-of-type {
    margin-bottom: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────
   F. PULSANTI — Normalizzazione oro
   ───────────────────────────────────────────────────────────────── */

.rh-advance-search-form button[type="submit"],
.rh-advance-search-form input[type="submit"],
.rh_search_widget--form button[type="submit"],
.rh_search_widget--form input[type="submit"],
.half-map-properties-search button[type="submit"],
.rh-map-search-form button[type="submit"],
#submit-basic-search-form,
#submit-advance-search-form,
button#searchsubmit,
.rhea-submit-btn,
input.rhea-submit-btn,
.rh_map_search_submit,
.rhea-advance-search-form .rhea-submit-form {
    background-color: #c4943e !important;
    background-image: none !important;
    border-color: #c4943e !important;
    color: #ffffff !important;
}
.rh-advance-search-form button[type="submit"]:hover,
.rh_search_widget--form button[type="submit"]:hover {
    background-color: #b0832f !important;
    border-color: #b0832f !important;
}

a.rh-compare-btn, .rh-compare-btn,
.property_compare_link a,
a.view_all_agent_btn, .view_all_agent_btn,
.rh_contact_agent .rhea-btn,
.rh_agent_full_profile a.rh-btn {
    background-color: #c4943e !important;
    border-color: #c4943e !important;
    color: #ffffff !important;
}

a[style*="background-color: rgb(0, 84, 165)"],
a[style*="background-color: #0054a5"],
button[style*="background-color: rgb(0, 84, 165)"] {
    background-color: #c4943e !important;
    border-color: #c4943e !important;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────────────
   G. FOOTER & PROPERTY CARDS
   ───────────────────────────────────────────────────────────────── */

.elementor-location-footer h3.elementor-heading-title,
#footer h3.elementor-heading-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.rh_prop_card__heading a,
.rh_prop_card .rh_prop_card__heading,
.property_listing .listing_unit_title a,
.rhea-property-title a {
    font-weight: 700 !important;
}

/* Footer bottom bar: fix contrasto #64696f su #0054a5 → bianco */
.rh_footer__bottom_wrap p,
.rh_footer__bottom_wrap a,
.rh_footer__bottom_wrap span,
.elementor-location-footer .elementor-section:last-child p,
.elementor-location-footer .elementor-section:last-child a {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ===================================================================
   SECTION 11: ACCESSIBILITY & WCAG AA COMPLIANCE
   Audit 2026-03-18 — Fix sistematici contrasto, font size, focus
   =================================================================== */

/* ─────────────────────────────────────────────────────────────────
   11A. MINIMUM FONT SIZES — Nessun testo sotto 13px
   Fix: H4 10px (.cl-diff-card, valori, team), span 8.2px (territory)
   ───────────────────────────────────────────────────────────────── */

/* "Perché siamo diversi" cards (Come Lavoriamo — .cl-diff-card) */
.cl-diff-card h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
    line-height: 1.3 !important;
}
.cl-diff-card p,
.cl-diff-card span {
    font-size: 14px !important;
    color: #4a4f54 !important;
    line-height: 1.5 !important;
}

/* "I nostri valori" (L'Agenzia — sezione 2271058, widget con testo minuscolo) */
body.wp-theme-realhomes .elementor-element-2271058 h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
}
body.wp-theme-realhomes .elementor-element-2271058 p {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Team member names — widget Elementor 41d58b4 */
body.wp-theme-realhomes .elementor-element-41d58b4 h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
}

/* Team role labels (Titolare/Agente) — troppo piccoli e basso contrasto */
body.wp-theme-realhomes .elementor-element-41d58b4 span {
    font-size: 13px !important;
    color: #7a6a3d !important;  /* Darkened gold — ratio 4.5:1 on white */
}

/* Territory descriptions (Come Lavoriamo — .cl-zona inside .cl-territorio-grid) */
.cl-zona span,
.cl-zona p,
.cl-territorio-grid span {
    font-size: 13px !important;
    color: #4a4f54 !important;
    line-height: 1.4 !important;
}
.cl-zona h4,
.cl-zona strong {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
}

/* ─────────────────────────────────────────────────────────────────
   11A2. CODE SNIPPETS INJECTED CONTENT — Font size fix
   Contenuti iniettati via JS (#54 Come Lavoriamo, #56 L'Agenzia)
   usano classi .cl-* con font troppo piccoli (10.5-10.8px)
   ───────────────────────────────────────────────────────────────── */

/* Tutte le classi .cl-* da Code Snippets injection: forza font leggibile */
.cl-section-content p,
.cl-section-content span,
.cl-section-content li,
.cl-chi-siamo-enhanced p,
.cl-chi-siamo-enhanced span,
.cl-cta-text p,
.cl-cta-text span {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #4a4f54 !important;
}

/* Team member bios — 8.8px → 13px minimum */
body.page-id-8717 .elementor-element-9c09557 p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #4a4f54 !important;
}

/* Come Lavoriamo: paragrafi Elementor text-editor */
body.page-id-7892 .elementor-widget-text-editor p {
    color: #4a4f54 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* L'Agenzia: paragrafi Elementor text-editor */
body.page-id-8717 .elementor-widget-text-editor p {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* ─────────────────────────────────────────────────────────────────
   11A3. HOMEPAGE — Font & Color Normalization
   RealHomes native sections use different colors/sizes
   ───────────────────────────────────────────────────────────────── */

/* Homepage H2s nativi RealHomes: #1a1a1a → brand navy #1a2332 */
body.page-id-105 .rh_section__title,
body.page-id-105 h2.rh_section__title {
    color: #1a2332 !important;
}

/* Homepage subtitles: #808080 → #4a4f54 per contrasto */
body.page-id-105 .rh_section__subtitle,
body.page-id-105 .rh_section__desc,
body.page-id-105 .rh_section p {
    color: #555555 !important;
}

/* Homepage property prices: blue #0054a6 → dark gold #7a6a3d
   Actual classes: .rh_prop_card__price_sty (not __price) */
body.page-id-105 .rh_prop_card__price_sty,
body.page-id-105 p.rh_prop_card__price_sty,
.rh_prop_card__price_sty {
    color: #7a6a3d !important;
    font-weight: 700 !important;
}

/* Homepage hero overlay: subtitle 11px → 16px
   From Code Snippets #51 (.ux-hero-overlay inside slider) */
.ux-hero-overlay p,
.ux-hero-overlay span {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* "Chiamaci" links on agent cards: gold on light bg → dark gold */
.rh_agent_card .rh_agent_card__link,
.rh_agent_card a[href*="tel:"],
.rh_agent_card .rh_agent_card__contact a {
    color: #7a6a3d !important;
}
.rh_agent_card .rh_agent_card__link:hover,
.rh_agent_card a[href*="tel:"]:hover {
    color: #c4943e !important;
}

/* ─────────────────────────────────────────────────────────────────
   11A4. ALIGNMENT NORMALIZATION
   ───────────────────────────────────────────────────────────────── */

/* L'Agenzia "Chi siamo": align intro paragraphs same as body (left/start) */
body.page-id-8717 .elementor-element-6d21517 .cl-section-content p {
    text-align: left !important;
}

/* ─────────────────────────────────────────────────────────────────
   11B. COLOR CONTRAST FIXES — WCAG AA (4.5:1 normal, 3:1 large)
   ───────────────────────────────────────────────────────────────── */

/* Fix: oro #c4943e su bianco → ratio solo 2.74. Per TESTO, uso #7a6a3d (ratio 4.67:1)
   L'oro rimane per backgrounds e accenti decorativi, ma per testo su bg chiaro serve più scuro */

/* Property page: section headings (Descrizione, Caratteristiche, etc.) */
.rh_property__heading,
.rh_property__heading h4,
h4.rh_property__heading {
    color: #1a2332 !important;
    font-weight: 700 !important;
}

/* Property price: darken gold text for readability */
.rh_prop_card__price_wrap .rh_prop_card__price span,
.rh_prop_card__price,
.rh-property-price,
p.price,
.property-current-price {
    color: #7a6a3d !important;
    font-weight: 700 !important;
}

/* Property detail values: #808080 → #555 (ratio 7.5:1 on white) */
.rh_property__row .rh_property__meta span,
.rh_property__additional .rh_property__meta span,
.rh_property__features li span,
.rh_property__detail .rh_property__detail_value {
    color: #555555 !important;
}

/* Property ID: gold → navy for readability */
.rh_property__id span,
.rh_property__id p {
    color: #555555 !important;
}

/* Navigation menu contrast fix
   Struttura: .rh_menu__main/.rh_menu__responsive (non __main_menu)
   Due stati: sticky (bg scuro #303030) e main/scroll (bg chiaro #f7f7f7) */

/* Sticky header (bg scuro): link e LI chiari */
.rh_sticky_header_menu .rh_menu__main li a,
.rh_sticky_header_menu .rh_menu__responsive li a,
.rh_sticky_header_menu .menu-item a {
    color: #e0e0e0 !important;
}
.rh_sticky_header_menu .menu-item {
    color: #e0e0e0 !important;
}

/* Main header (bg chiaro ~#f7f7f7): fix white-on-white → navy */
.rh_menu .rh_menu__main li a,
.rh_menu .rh_menu__responsive li a,
.rh_menu .menu-item a,
nav.main-menu .menu-item a {
    color: #1a2332 !important;
}
.rh_menu .menu-item,
nav.main-menu .menu-item {
    color: #1a2332 !important;
}
.rh_menu .menu-item a:hover,
nav.main-menu .menu-item a:hover {
    color: #c4943e !important;
}

/* WhatsApp button/link: darken green bg for AA contrast with white text
   Il bottone WA su questo sito è un plain <a> (non .elementor-button) */
a[href*="wa.me"],
a[href*="whatsapp.com"],
.elementor-button[style*="background-color: rgb(37, 211, 102)"],
.elementor-button[style*="background-color:#25d366"] {
    background-color: #128C7E !important;  /* WhatsApp teal — ratio 4.6:1 with white */
    border-color: #128C7E !important;
    color: #ffffff !important;
}
a[href*="wa.me"]:hover,
a[href*="whatsapp.com"]:hover {
    background-color: #075E54 !important;
    border-color: #075E54 !important;
}

/* "Non ci limitiamo" e testi simili da Code Snippets — forza #4a4f54 */
body.page-id-8717 .elementor-widget-text-editor p {
    color: #4a4f54 !important;
}

/* "Vieni a trovarci" e sezioni con testo bianco su bg light (residui) —
   forza colore scuro dove il bg è chiaro */
body.wp-theme-realhomes .elementor-element-8ead2ed p,
body.wp-theme-realhomes .elementor-element-8ead2ed span {
    color: #4a4f54 !important;
}
body.wp-theme-realhomes .elementor-element-8ead2ed .elementor-heading-title {
    color: #1a2332 !important;
}

/* ─────────────────────────────────────────────────────────────────
   11C. HEADING COLOR NORMALIZATION
   Fix: some headings use #1a3a5c instead of brand #1a2332
   ───────────────────────────────────────────────────────────────── */

/* Force ALL non-Elementor H4s that use #1a3a5c to brand navy */
h4[style*="color: rgb(26, 58, 92)"],
h4[style*="color:#1a3a5c"] {
    color: #1a2332 !important;
}

/* Contatti: "Orari di Apertura" H4 */
body.page-id-155 .ux-hours-box h4 {
    color: #1a2332 !important;
}

/* ─────────────────────────────────────────────────────────────────
   11D. FOCUS STATES — Keyboard navigation visibility
   WCAG 2.4.7: Focus visible (Level AA)
   ───────────────────────────────────────────────────────────────── */

/* Focus ring: oro su tutti gli elementi interattivi */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.elementor-button:focus-visible {
    outline: 2px solid #c4943e !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(196, 148, 62, 0.25) !important;
}

/* Skip link for keyboard users */
.skip-link:focus {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 100000 !important;
    background: #c4943e !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    font-size: 16px !important;
    border-radius: 4px !important;
}

/* ─────────────────────────────────────────────────────────────────
   11E. RESPONSIVE FIXES
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    /* Heading sizes scale down
       v2.8.48: aggiunto H1 scale-down (da 48 a 28px) per ripristinare
       gerarchia visiva mobile dopo rimozione regola killer Section 9. */
    body.wp-theme-realhomes .elementor-widget-heading h1.elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    body.wp-theme-realhomes .elementor-widget-heading h2.elementor-heading-title {
        font-size: 28px !important;
    }
    body.wp-theme-realhomes .elementor-widget-heading h3.elementor-heading-title {
        font-size: 20px !important;
    }

    /* Ensure minimum touch target size (44x44px) */
    .elementor-button,
    .rhea-btn-primary,
    button[type="submit"],
    .rh_btn--primary {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 10px 20px !important;
    }

    /* Nav menu on mobile: ensure readability */
    .rh_menu__main_menu li a {
        font-size: 16px !important;
        padding: 10px 15px !important;
    }
}

/* v2.8.48: viewport molto piccoli (<=400px) — riduzione ulteriore H1 hero */
@media (max-width: 400px) {
    body.wp-theme-realhomes .elementor-widget-heading h1.elementor-heading-title {
        font-size: 26px !important;
    }
}

/* ─────────────────────────────────────────────────────────────────
   12. INNER PAGES — CONTENT WIDTH & TEXT ALIGNMENT
   Tutte le pagine interne (body.page:not(.home)) | v2.8.9
   ───────────────────────────────────────────────────────────────── */

/* 12A. Max-width 920px — e-con-boxed sections (hanno .e-con-inner built-in)
   Elementor gestisce già il centering via margin: auto sull'inner.
   Copre: L'Agenzia (8717), Galleria Storica (8725), Contatti (155) */
body.page:not(.home) .e-con-boxed > .e-con-inner {
    max-width: 920px !important;
}

/* 12A2. Max-width 920px — e-con-full sections su L'Agenzia (8717)
   Queste sezioni NON hanno .e-con-inner: bg full-width, content padding.
   Tecnica: padding laterale = (100% - 920px) / 2 → virtual inner container.
   ⚠️ I container interni usano display:grid (non flex): flex-basis %
   non risolve correttamente con il padding laterale → wrapping. Grid sì.
   Vedere AP#18. Il bg rimane full-width (coerente con le boxed sections).
   max() garantisce min 20px di gutter su viewport < 920px (responsive). */
body.page-id-8717 .elementor-element-4f48904,
body.page-id-8717 .elementor-element-07c6233,
body.page-id-8717 .elementor-element-395b621,
body.page-id-8717 .elementor-element-1ab2bb3 {
    padding-left: max(20px, calc((100% - 920px) / 2)) !important;
    padding-right: max(20px, calc((100% - 920px) / 2)) !important;
    box-sizing: border-box !important;
}

/* 12B. Max-width 920px — vecchio Elementor colonne (Come Lavoriamo 7892)
   Sostituisce il default 1100-1140px sui .elementor-container boxed */
body.page-id-7892 .elementor-container {
    max-width: 920px !important;
}

/* 12C. Left-align — Elementor text-editor widgets (tutte le pagine interne) */
body.page:not(.home) .elementor-widget-text-editor p {
    text-align: left !important;
}

/* 12D. Left-align — Code Snippets injected content (.cl-* classes) */
body.page:not(.home) .cl-section-content p,
body.page:not(.home) .cl-chi-siamo-enhanced p,
body.page:not(.home) .cl-hero-intro p,
body.page:not(.home) .cl-cta-text p {
    text-align: left !important;
}

/* 12D2. Fix allineamento cl-chi-siamo-enhanced — box centrato con max-width
   da Code Snippets impedisce l'allineamento con heading e testo circostante.
   Override: full-width, no auto-margin, allineato al content area (920px). */
body.page-id-8717 .cl-chi-siamo-enhanced {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 12E. Eccezioni center — sezioni con logica centrata (L'Agenzia 8717) */
/* Hero subtitle */
body.page-id-8717 .elementor-element-831e8cd .elementor-widget-text-editor p,
/* I nostri numeri — display statistiche */
body.page-id-8717 .elementor-element-f61c318 .elementor-widget-text-editor p,
/* Quote testimonial Ruggero */
body.page-id-8717 .elementor-element-1ab2bb3 .elementor-widget-text-editor p,
/* CTA "Vieni a trovarci" */
body.page-id-8717 .elementor-element-8ead2ed .elementor-widget-text-editor p,
/* CTA description (cl-cta-text): sezione centrata, testo deve seguire
   NB: specificità (0,3,2) necessaria — uso parent ID 8ead2ed come boost */
body.page-id-8717 .elementor-element-8ead2ed .cl-cta-text p,
/* Servizi 360° intro (5d3a75f): heading centrato, desc deve seguire
   NB: .elementor-widget-text-editor in compound (no spazio) porta a (0,3,2) */
body.page-id-8717 .elementor-element-5d3a75f.elementor-widget-text-editor p {
    text-align: center !important;
}

/* 12F. Eccezioni center — sezioni CTA (Come Lavoriamo 7892) */
/* "Sei curioso? Parliamone." — dark bg CTA */
body.page-id-7892 .elementor-element-6e9138d .elementor-widget-text-editor p,
body.page-id-7892 .elementor-element-6aa348b .elementor-widget-text-editor p {
    text-align: center !important;
}

/* 12G. Card descriptions keep centered — tutte le pagine interne
   Icon-boxes Elementor, diff-cards, zone-grid, valori-cards, team-cards */
body.page:not(.home) .elementor-icon-box-description p,
body.page:not(.home) .cl-diff-card p,
body.page:not(.home) .cl-zona p,
body.page:not(.home) .cl-valore-card p,
body.page:not(.home) .cl-team-card p {
    text-align: center !important;
}



/* ===================================================================
   SECTION 13: Homepage nativa — migrazione snippet #39 e #51
   Aggiunto v2.8.16 — 2026-03-19
   Sostituisce CSS di:
   - snippet #51 (Galleria Storica + Hero): hero overlay homepage
   - snippet #39 (Fix Homepage v2): partner padding, agenti CTA phone
   =================================================================== */

/* 13A. Hero overlay — sezione slider (snippet #51 → nativo)
   FIX v2.8.18: il widget HTML (ux105ov1) ha position:relative per default →
   l'overlay risultava height:0 e top:1012 (sotto lo slider).
   Soluzione: reset position:static sul widget-div per far risalire
   l'ancoraggio absolute al .elementor-widget-wrap (960px di altezza).
   Testo centrato + sfondo semi-opaco per leggibilità. */

/* 1. Reset positioning sul widget HTML per sbloccare l'ancoraggio */
.page-id-105 .elementor-element-ux105ov1 {
    position: static !important;
}
/* 2. Garantisce che widget-wrap sia il riferimento per position:absolute */
.page-id-105 .elementor-element-a6052e1 .elementor-widget-wrap {
    position: relative !important;
}
/* 3. Overlay centrato e visibile */
.page-id-105 .ux-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 35, 58, 0.52);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    z-index: 100;
    pointer-events: none;
    box-sizing: border-box;
}
.page-id-105 .ux-hero-overlay h2 {
    color: #fff;
    font-size: 3.6rem;
    font-weight: 800;
    margin: 0 0 18px 0;
    text-shadow: 0 3px 18px rgba(0,0,0,0.55);
    max-width: 820px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.page-id-105 .ux-hero-overlay p {
    color: rgba(255,255,255,0.92);
    font-size: 1.25rem;
    margin: 0 0 32px 0;
    max-width: 640px;
    line-height: 1.65;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.page-id-105 .ux-hero-overlay .ux-hero-cta {
    display: inline-block;
    pointer-events: auto;
    background: #c8a45a;
    color: #fff;
    padding: 16px 44px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-shadow: none;
}
.page-id-105 .ux-hero-overlay .ux-hero-cta:hover {
    background: #b8944a;
    color: #fff !important;
    transform: translateY(-2px);
}

/* 13B. Partner section — padding ridotto (snippet #39 → nativo) */
.page-id-105 .elementor-element-21db2ac {
    padding-top: 30px !important;
    padding-bottom: 20px !important;
}
.page-id-105 .elementor-element-21db2ac > .elementor-shape-bottom svg {
    height: 30px !important;
}

/* 13C. Agenti — bottone WhatsApp + obfuscazione email — v2.8.36
   JS (functions.php §agent-cta) converte tel: → wa.me e obfusca email.
   CSS qui si occupa solo dello stile visivo del risultato. */

/* Bottone WhatsApp (verde) su tutti i widget agente */
.rh_agent__info.phone.number a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 10px 22px !important;
    background: #25D366 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: 0.01em !important;
    transition: background 0.25s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
}
.rh_agent__info.phone.number a:hover {
    background: #1aad53 !important;
    color: #fff !important;
}
/* Icona WhatsApp SVG inline via ::before */
.rh_agent__info.phone.number a::before {
    content: '';
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347z'/%3E%3Cpath d='M11.994 0C5.372 0 0 5.373 0 12c0 2.117.554 4.103 1.522 5.83L.057 23.07a.75.75 0 00.906.919l5.34-1.437A11.954 11.954 0 0012.006 24C18.628 24 24 18.627 24 12S18.616 0 11.994 0zm.012 21.894a9.847 9.847 0 01-5.031-1.378l-.36-.214-3.733 1.004.99-3.645-.235-.374A9.848 9.848 0 012.106 12c0-5.454 4.436-9.889 9.9-9.889 5.453 0 9.888 4.435 9.888 9.889 0 5.454-4.435 9.894-9.888 9.894z'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* Email agenti — testo obfuscato via JS: link diventa "Inviami un'email" con icona */
a.rh_agent__email {
    font-size: 13px !important;
    color: #666 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 4px !important;
    transition: color 0.2s ease !important;
}
a.rh_agent__email:hover {
    color: #0a192f !important;
    text-decoration: underline !important;
}


/* ===================================================================
   SECTION 13D: Homepage header — menu leggibilità + phone styling
   Aggiunto v2.8.28 — 2026-03-23
   Obiettivo: menu links bianchi con text-shadow su header trasparente;
   rimozione sfondo verde WhatsApp dal numero di telefono in header
   =================================================================== */

/* 13D-1. Menu links: bianco + text-shadow su hero slider (homepage) */
.page-id-105 .rh_header_var_1 .rh_menu__main > li > a {
    color: #fff !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.75) !important;
}
.page-id-105 .rh_header_var_1 .rh_menu__main > li > a:hover {
    color: #c8a45a !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}

/* 13D-2. Numero di telefono: rimuovi sfondo verde WhatsApp — globale */
.rh_menu__user_phone .contact-number {
    background: transparent !important;
}
/* Homepage: colore bianco su header trasparente */
.page-id-105 .rh_menu__user_phone .contact-number {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    font-weight: 600 !important;
}

/* 13D-3. Icona WhatsApp: bianca su header trasparente (homepage) */
.page-id-105 .rh_menu__user_phone .icon-whatsapp path {
    fill: rgba(255,255,255,0.92) !important;
}

/* 13D-4. Voce di menu attiva: rimuovi box dark navy, usa gold come indicatore */
.rh_header_var_1 ul.rh_menu__main > .current-menu-item > a,
.rh_header_var_1 ul.rh_menu__main > .current-menu-ancestor > a {
    background: transparent !important;
    color: #c8a45a !important;
}
/* Homepage: mantieni bianco (poi hover in gold già gestito da 13D-1) */
.page-id-105 .rh_header_var_1 .rh_menu__main > li.current-menu-item > a,
.page-id-105 .rh_header_var_1 .rh_menu__main > li.current-menu-ancestor > a {
    color: #c8a45a !important;
}

/* 13D-5. RIMOSSO in v2.8.25 — sostituito da 13E (hero estesa sotto header) */
/* 13D-6. Inner pages: menu links bianchi nell'header trasparente
   Necessario perché la regola globale .rh_menu .rh_menu__main li a { color: #1a2332 }
   sovrascriveva il bianco del tema. Applicato a tutte le pagine non-homepage. */
body:not(.page-id-105) .rh_header_var_1 .rh_menu__main > li > a {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55) !important;
}
body:not(.page-id-105) .rh_header_var_1 .rh_menu__main > li > a:hover {
    color: #c8a45a !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}
/* 13D-6b. Inner pages: telefono bianco nell'header trasparente */
body:not(.page-id-105) .rh_menu__user_phone .contact-number {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
body:not(.page-id-105) .rh_menu__user_phone .icon-whatsapp path {
    fill: rgba(255,255,255,0.92) !important;
}



/* ===================================================================
   SECTION 13E: Inner pages — hero estesa sotto l'header (= homepage master)
   Aggiunto v2.8.25 — 2026-03-23
   Obiettivo: replicare il comportamento della homepage dove lo slider
   inizia a y=32 (dietro l'header trasparente). Risolve il gap visivo
   causato da padding-top: 160px sul wrapper Elementor delle inner pages.
   =================================================================== */

/* 13E-1. Elementor wrapper inner pages: azzera il padding che crea il gap */
body.page-template-elementor_header_footer:not(.page-id-105) .rh_wrap > .elementor {
    padding-top: 0 !important;
}

/* 13E-2. Primo figlio Elementor: assorbe lo spazio come padding-top.
   Il background della sezione ora riempie da y=32 dietro l'header,
   il contenuto appare appena sotto l'header (come la homepage).
   Escluse: page-id-105 (homepage), page-id-8725 (Galleria Storica, ha hero custom gs-hero). */
body.page-template-elementor_header_footer:not(.page-id-105):not(.page-id-8725) .rh_wrap > .elementor > *:first-child {
    padding-top: 250px !important;
    min-height: 500px !important;
}

/* 13E-2b (v2.8.62, S15). Mobile override: su viewport <=768px il
   padding 250px e' eccessivo (30% schermo vuoto). Scende a 72px
   coerente con hero homepage. Stesso selettore di 13E-2 (stessa
   specificity 0,5,1) dentro media query, vince per ordine di cascata.
   Chiude task storico S11-P2.3. */
@media (max-width: 768px) {
    body.page-template-elementor_header_footer:not(.page-id-105):not(.page-id-8725) .rh_wrap > .elementor > *:first-child {
        padding-top: 72px !important;
        min-height: auto !important;
    }
}

/* 13E-3. Pagine senza hero scuro (Galleria Storica):
   header solid dark — no gradiente artificiale su sfondo chiaro
   NB: Contatti (155) rimosso da v2.8.27 — ha ora banner fotografico (→ 16B) */
body.page-id-8725 .rh_header_var_1 {
    background: rgba(10, 25, 47, 0.95) !important;
}

/* ===================================================================
   SECTION 14: Galleria Storica — CSS snippet nativo (migrazione #51)
   Aggiunto v2.8.17 — 2026-03-19
   Sostituisce CSS di snippet #51 (Galleria Storica + Hero) per page-id-8725
   NB: la parte JS (badge "VENDUTO" + icona house) NON migrata →
       degradazione accettata in attesa di foto reali (INT-17)
   =================================================================== */

/* 14A. Card hover animation — Galleria Storica */
.page-id-8725 .ux-card-enhanced {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.page-id-8725 .ux-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,58,92,0.18);
}

/* 14B. Badge "VENDUTO" */
.page-id-8725 .ux-venduto-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #c8a45a;
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
}

/* 14C. Label "Foto in aggiornamento" */
.page-id-8725 .ux-photo-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* ===================================================================
   SECTION 15: Footer — rimozione bordo dorato + layout bottom bar
   Aggiunto v2.8.21 — aggiornato v2.8.28 — 2026-03-23
   =================================================================== */

/* 15A. Rimuovi bordo dorato superiore */
.rh_footer {
    border-top: none !important;
}

/* 15B. Sposta copyright + designed-by sotto la linea, insieme a privacy/cookie */
.rh_footer .rh_footer__bottom_wrap {
    order: 5 !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 0 4px !important;
}
.rh_footer .rh_footer__bottom_wrap .copyrights,
.rh_footer .rh_footer__bottom_wrap .designed-by {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 !important;
}
.rh_footer .rh_footer__bottom_wrap .rh-footer-bottom-items-separator {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 13px !important;
}

/* ===================================================================
   SECTION 16: Foto team — hero L'Agenzia + banner Contatti
   Aggiunto v2.8.27 — 2026-03-23
   Immagine: wp-content/uploads/imgi_1_87e734bf258a2eb9dbe31b28c507a3e4-cover.webp
   Photo credit: Ilenia Paracino
   =================================================================== */

/* 16A. L'Agenzia — foto team come sfondo hero Elementor
   Override del background scuro flat presente nel primo blocco Elementor.
   Mantiene padding-top:250px e min-height:500px da 13E-2. */
body.page-id-8717 .rh_wrap > .elementor > *:first-child {
    background-image:
        linear-gradient(rgba(10,25,47,0.62) 0%, rgba(10,25,47,0.42) 55%, rgba(10,25,47,0.55) 100%),
        url('https://ruggeromarconi.it/wp-content/uploads/imgi_1_87e734bf258a2eb9dbe31b28c507a3e4-cover.webp') !important;
    background-size: cover !important;
    background-position: center 18% !important;
}

/* 16B. Contatti — foto team come banner fotografico (rh_banner)
   Il banner è nel DOM a top=32 ma privo di bg (tema non applica il meta).
   Altezza aumentata a 520px per mostrare ~270px di foto sotto l'header. */
body.page-id-155 .rh_banner {
    background-image:
        linear-gradient(rgba(10,25,47,0.62) 0%, rgba(10,25,47,0.42) 55%, rgba(10,25,47,0.55) 100%),
        url('https://ruggeromarconi.it/wp-content/uploads/imgi_1_87e734bf258a2eb9dbe31b28c507a3e4-cover.webp') !important;
    background-size: cover !important;
    background-position: center 18% !important;
    min-height: 520px !important;
}

/* 16B-2. Contatti — header trasparente sul banner (rimuove il solid dark di 13E-3) */
body.page-id-155 .rh_header_var_1 {
    background: transparent !important;
}

/* 16C. Contatti — CTA hero: titolo + sottotitolo sovrapposti alla foto team
   Testo via CSS pseudo-element (banner è vuoto nel DOM).
   Layout: flex column, testo centrato, ancorato in basso a 70px. */
body.page-id-155 .rh_banner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 24px 72px !important;
}

body.page-id-155 .rh_banner::before {
    content: "Parlaci della tua nuova casa.";
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
    line-height: 1.25;
}

body.page-id-155 .rh_banner::after {
    content: "Siamo a Formello dal 2005. Ti ascoltiamo, poi ti consigliamo.";
    color: rgba(255,255,255,0.88);
    font-family: Inter, sans-serif;
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
    margin-top: 14px;
    max-width: 480px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* 16C-2. Nascondi il titolo "Contatti" dal corpo pagina (sostituito dalla hero CTA) */
body.page-id-155 .rh_page__head {
    display: none !important;
}

/* 16D. Contatti — layout unificato form + orari + dettagli + mappa
   CSS Grid a 2 colonne: sinistra=form (span 2 righe), destra=orari poi dettagli, sotto=mappa.
   Aggiunto v2.8.83 — 2026-04-26 (S22)
   Fix width 100% su form e figli (override tema, colonna grid piena) — S22 continuazione */
body.page-id-155 .rh_contact__wrap {
    display: grid !important;
    grid-template-columns: 58% 42% !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
    gap: 0 !important;
}

body.page-id-155 .rh_contact__form,
body.page-id-155 .rh_contact__form section#contact-form,
body.page-id-155 .rh_contact__form .contact-form {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

body.page-id-155 .rh_contact__form {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    padding-right: 52px !important;
    border-right: 1px solid #e8e3d9 !important;
    box-sizing: border-box !important;
}

body.page-id-155 .ux-hours-box {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-left: 52px !important;
    margin-top: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-left: none !important;
    box-sizing: border-box !important;
}

body.page-id-155 .rh_contact__details {
    grid-column: 2 !important;
    grid-row: 2 !important;
    padding-left: 52px !important;
    padding-top: 32px !important;
    box-sizing: border-box !important;
}

body.page-id-155 .rh_contact__map {
    grid-column: 1 / 3 !important;
    grid-row: 3 !important;
    margin-top: 52px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* 16D-mobile: <768px — 1 colonna */
@media (max-width: 768px) {
    body.page-id-155 .rh_contact__wrap {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
    body.page-id-155 .rh_contact__form { grid-column: 1 !important; grid-row: 1 !important; padding-right: 0 !important; border-right: none !important; border-bottom: 1px solid #e8e3d9 !important; padding-bottom: 32px !important; }
    body.page-id-155 .ux-hours-box { grid-column: 1 !important; grid-row: 2 !important; padding-left: 0 !important; padding-top: 32px !important; }
    body.page-id-155 .rh_contact__details { grid-column: 1 !important; grid-row: 3 !important; padding-left: 0 !important; padding-top: 24px !important; }
    body.page-id-155 .rh_contact__map { grid-column: 1 !important; grid-row: 4 !important; }
}

/* ===================================================================
   SECTION 17: L'Agenzia (8717) — Layout & Visual polish
   Aggiunto v2.8.28 — 2026-03-23
   Fix: Chi siamo heading centrato, team 2-col grid + card styling,
   valori 2-col grid, responsive mobile.
   =================================================================== */

/* 17A. Chi siamo — heading h2 centrato (widget 7c864e2) */
body.page-id-8717 .elementor-element-7c864e2 .elementor-heading-title {
    text-align: center;
}

/* 17B. Chi siamo — blocco testo centrato nell'area 920px
   I <p> hanno inline max-width:800px ma nessun margin:auto → partono da sx.
   Workaround: flex column + align-items center sul container widget */
body.page-id-8717 .elementor-element-b29bc6c .elementor-widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.page-id-8717 .elementor-element-b29bc6c p {
    width: 100%;
}

/* 17C. Team — layout 2 colonne
   .e-con-inner contiene: h2 (41d58b4) + intro (484b43b) + 5 card
   AP#13: grid su .e-con-inner; heading/subtitle span full-width */
body.page-id-8717 .elementor-element-9c09557 > .e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 24px !important;
    row-gap: 20px !important;
    align-items: start !important;
}
body.page-id-8717 .elementor-element-41d58b4,
body.page-id-8717 .elementor-element-484b43b {
    grid-column: 1 / -1 !important;
}
/* 5° membro (Valentina Rocchi) sola nell'ultima riga — centrata */
body.page-id-8717 .elementor-element-5f753d3 {
    grid-column: 1 / -1 !important;
    max-width: calc(50% - 12px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

/* 17D. Team — card styling
   Inline styles su > div: max-width, margin, border-bottom → servono !important */
body.page-id-8717 .elementor-element-5b05d05 .elementor-widget-container > div,
body.page-id-8717 .elementor-element-f6a75d4 .elementor-widget-container > div,
body.page-id-8717 .elementor-element-36eca72 .elementor-widget-container > div,
body.page-id-8717 .elementor-element-fbbe296 .elementor-widget-container > div,
body.page-id-8717 .elementor-element-5f753d3 .elementor-widget-container > div {
    background: #f9f8f5 !important;
    border-radius: 12px !important;
    padding: 24px 24px 20px !important;
    border-bottom: none !important;
    margin: 0 !important;
    max-width: none !important;
    box-shadow: 0 2px 14px rgba(26,35,50,0.07) !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* 17E. Valori — 2 colonne
   Widget 64bcc11: unico text-editor con 4 value-div inline.
   Il parent div ha inline max-width:800px; margin:20px auto 0 → lo estendiamo */
body.page-id-8717 .elementor-element-64bcc11 > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 36px !important;
    max-width: 900px !important;
    margin: 20px auto 0 !important;
}
body.page-id-8717 .elementor-element-64bcc11 > div > div {
    margin-bottom: 0 !important;
    padding: 20px 22px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

/* 17F. Responsive — 1 colonna su mobile */
@media (max-width: 767px) {
    body.page-id-8717 .elementor-element-9c09557 > .e-con-inner {
        grid-template-columns: 1fr !important;
    }
    body.page-id-8717 .elementor-element-5f753d3 {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.page-id-8717 .elementor-element-64bcc11 > div {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   SECTION 18: Come Lavoriamo (7892) — "Ci trovi anche su" portal strip
   v2.8.31 — 2026-03-23
   ============================================= */

.cl-portals-strip {
    padding: 60px 20px 64px;
    background: #f9f8f5;
    text-align: center;
    border-top: 1px solid #e8e4dc;
}

.cl-portals-strip .cl-portals-heading {
    font-family: var(--e-global-typography-primary-font-family, 'Playfair Display', serif);
    font-size: 28px;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.cl-portals-strip .cl-portals-subtitle {
    font-size: 15px;
    color: #555555;
    margin: 0 0 36px;
    line-height: 1.5;
}

.cl-portals-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}

.cl-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e8e4dc;
    border-radius: 10px;
    padding: 11px 20px;
    text-decoration: none !important;
    color: #1a2332 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    box-shadow: 0 1px 6px rgba(26, 35, 50, 0.06);
    cursor: pointer;
}

.cl-portal-badge:hover {
    box-shadow: 0 5px 18px rgba(26, 35, 50, 0.13);
    transform: translateY(-2px);
    border-color: #c4943e;
    color: #1a2332 !important;
    text-decoration: none !important;
}

.cl-portal-badge img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* Section 18 — Responsive */
@media (max-width: 767px) {
    .cl-portals-strip {
        padding: 48px 16px 52px;
    }
    .cl-portals-strip .cl-portals-heading {
        font-size: 22px;
    }
    .cl-portals-grid {
        gap: 10px;
    }
    .cl-portal-badge {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }
    .cl-portal-badge img {
        width: 20px;
        height: 20px;
    }
}

/* =============================================
   SECTION 19: Hero images — Come Lavoriamo (7892) + Contatti (155)
   v2.8.32 — 2026-03-23
   ============================================= */

/* 19A. Come Lavoriamo — hero esterno Carfi drone (DJI_0010b) */
body.page-id-7892 .elementor-element-92eeb1f {
    background-image: url('/wp-content/uploads/2026/03/hero-come-lavoriamo.jpg') !important;
    background-position: center 40% !important;
}

/* 19B. Contatti — villa rossa vialetto alberato (xxl-5) */
body.page-id-155 .rh_banner {
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.62) 0%, rgba(10, 25, 47, 0.42) 55%, rgba(10, 25, 47, 0.55) 100%),
        url('/wp-content/uploads/2026/03/hero-contatti.jpg') !important;
    background-position: center 35% !important;
}

/* =============================================
   SECTION 20: Header — Homepage large vs Inner pages sticky-only
   + Galleria Storica lightbox z-index fix
   v2.8.33 — 2026-03-23
   ============================================= */

/* ── 20A. PAGINE INTERNE: nascondi header grande ─────────────
   body.home = homepage → header grande resta invariato
   body:not(.home) = tutte le altre pagine → solo sticky      */
body:not(.home) .rh_header {
    display: none !important;
}

/* ── 20B. PAGINE INTERNE: sticky sempre visibile da subito ── */
body:not(.home) .rh_mod_sticky_header {
    opacity: 1 !important;
    z-index: 9999 !important;
    transition: box-shadow 0.3s ease !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.32) !important;
}

/* Offset admin bar su pagine interne (utenti loggati) */
body.admin-bar:not(.home) .rh_mod_sticky_header {
    top: 32px !important;
}

/* Senza admin bar: top 0 */
body:not(.admin-bar):not(.home) .rh_mod_sticky_header {
    top: 0 !important;
}

/* ── 20C. HOMEPAGE: sticky z-index ridotto (lightbox può sovrapporsi) ── */
/* Il lightbox Galleria Storica ha z-index 2147483648 — sopra questo */
body.home .rh_mod_sticky_header.sticked {
    z-index: 9999 !important;
}

/* ── 20D. Scroll-padding per anchor link su pagine interne ── */
/* Evita che il contenuto target finisca sotto lo sticky       */
body:not(.home) {
    scroll-padding-top: 135px;
}
body.admin-bar:not(.home) {
    scroll-padding-top: 167px; /* 32 admin bar + 135 sticky */
}

/* ── 20E. GALLERIA STORICA — lightbox z-index sopra tutto ─── */
/* Il sticky del tema usa z-index 2147483647 (INT32 MAX).      */
/* Impostiamo il lightbox a +1 in modo che stia sempre sopra.  */
.gs-lb {
    z-index: 2147483648 !important;
}
.gs-lb__close {
    z-index: 2147483649 !important;
}

/* ── 20F. Sticky logo più leggibile su pagine interne ───────── */
body:not(.home) .rh_mod_sticky_header .rh_sticky_header_logo {
    max-width: 140px !important;
    min-height: 68px !important;
    padding: 0.9rem 0 !important;
}
body:not(.home) .rh_sticky_header_container {
    min-height: 80px !important;
}

/* ── 20F. Responsive ─────────────────────────────────────────── */
@media (max-width: 782px) {
    /* Mobile admin bar è 46px */
    body.admin-bar:not(.home) .rh_mod_sticky_header {
        top: 46px !important;
    }
    body.admin-bar:not(.home) {
        scroll-padding-top: 181px; /* 46 + 135 */
    }
}

/* =============================================
   SECTION 21: Page Hero Slider — Come Lavoriamo + Contatti
   v2.8.35 — 2026-03-23
   Slider multi-immagine con Ken Burns effect.
   Sostituisce il singolo ::before KB di v2.8.34.
   JS injection tramite wp_footer in functions.php.
   Come Lavoriamo (7892): ph-slider iniettato in .elementor-element-92eeb1f
   Contatti (155): ph-slider + .hero-gradient iniettati in .rh_banner
   ============================================= */

/* ── Ken Burns keyframes (globali — usati da ph-slider e gs-slider) ── */
@keyframes gsKB1 {
    0%   { transform: scale(1.05) translate(0%, 0%); }
    100% { transform: scale(1.18) translate(-1.8%, -1%); }
}
@keyframes gsKB2 {
    0%   { transform: scale(1.14) translate(-1.2%, 0%); }
    100% { transform: scale(1.04) translate(1.8%, 1.2%); }
}
@keyframes gsKB3 {
    0%   { transform: scale(1.06) translate(1%, 0.4%); }
    100% { transform: scale(1.17) translate(-0.6%, -1.2%); }
}

/* ── Page Hero Slider component (.ph-slider) ── */
.ph-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.ph-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ph-slide--active { opacity: 1; }
.ph-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: 9s ease-in-out 0s 1 normal both running gsKB1;
}
.ph-slide.ph-kb2 img { animation-name: gsKB2; }
.ph-slide.ph-kb3 img { animation-name: gsKB3; }

/* ── 21A. Come Lavoriamo — Elementor section 92eeb1f ── */
body.page-id-7892 .elementor-element-92eeb1f {
    background-image: none !important;
    overflow: hidden !important;
}
body.page-id-7892 .elementor-element-92eeb1f > .elementor-background-overlay {
    z-index: 1 !important;
}
body.page-id-7892 .elementor-element-92eeb1f > .elementor-container {
    position: relative !important;
    z-index: 2 !important;
}

/* ── 21B. Contatti — rh_banner ── */
body.page-id-155 .rh_banner {
    background-image: none !important;
    overflow: hidden !important;
}
body.page-id-155 .rh_banner .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 25, 47, 0.62) 0%, rgba(10, 25, 47, 0.42) 55%, rgba(10, 25, 47, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
}
body.page-id-155 .rh_banner::before,
body.page-id-155 .rh_banner::after {
    position: relative !important;
    z-index: 3 !important;
}

/* =============================================
   SECTION 22: Servizi Professionali — card con immagine
   v2.8.35 — 2026-03-23
   Sostituisce icone SVG Elementor icon-box con card immagine+testo.
   Sezioni 4643d4f (riga 1: Foto, Video, VT) e 995d1c0 (riga 2: Drone, Mutui, Arch.)
   Immagini stock da Pexels — uploads/2026/03/serv-*.jpg
   ============================================= */

/* ── 22A. Colonna card padding ── */
body.page-id-7892 .elementor-element-4643d4f .elementor-column,
body.page-id-7892 .elementor-element-995d1c0 .elementor-column {
    padding: 12px !important;
}

/* ── 22B. Card styling ── */
body.page-id-7892 .elementor-element-4643d4f .elementor-icon-box-wrapper,
body.page-id-7892 .elementor-element-995d1c0 .elementor-icon-box-wrapper {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09) !important;
    flex-direction: column !important;
    display: flex !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}
body.page-id-7892 .elementor-element-4643d4f .elementor-icon-box-wrapper:hover,
body.page-id-7892 .elementor-element-995d1c0 .elementor-icon-box-wrapper:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px) !important;
}

/* ── 22C. Icona SVG nascosta ── */
body.page-id-7892 .elementor-element-4643d4f .elementor-icon-box-icon,
body.page-id-7892 .elementor-element-995d1c0 .elementor-icon-box-icon {
    display: none !important;
}

/* ── 22D. Immagine card (::before come primo flex-item) ── */
body.page-id-7892 .elementor-element-dac3f39 .elementor-icon-box-wrapper::before,
body.page-id-7892 .elementor-element-247be51 .elementor-icon-box-wrapper::before,
body.page-id-7892 .elementor-element-1c34953 .elementor-icon-box-wrapper::before,
body.page-id-7892 .elementor-element-651492c .elementor-icon-box-wrapper::before,
body.page-id-7892 .elementor-element-dc9ea13 .elementor-icon-box-wrapper::before,
body.page-id-7892 .elementor-element-551d6b1 .elementor-icon-box-wrapper::before {
    content: '';
    display: block;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
/* Foto Professionali */
body.page-id-7892 .elementor-element-dac3f39 .elementor-icon-box-wrapper::before {
    background-image: url('/wp-content/uploads/2026/03/serv-foto.jpg');
    background-position: center 40%;
}
/* Video 4K */
body.page-id-7892 .elementor-element-247be51 .elementor-icon-box-wrapper::before {
    background-image: url('/wp-content/uploads/serv-video-4k.webp');
    background-position: center 30%;
}
/* Virtual Tour Matterport */
body.page-id-7892 .elementor-element-1c34953 .elementor-icon-box-wrapper::before {
    background-image: url('/wp-content/uploads/serv-matterport.webp');
}
/* Riprese Drone 4K */
body.page-id-7892 .elementor-element-651492c .elementor-icon-box-wrapper::before {
    background-image: url('/wp-content/uploads/serv-drone-new.webp');
    background-position: center 40%;
}
/* Consulenza Mutui */
body.page-id-7892 .elementor-element-dc9ea13 .elementor-icon-box-wrapper::before {
    background-image: url('/wp-content/uploads/serv-mutuo.webp');
}
/* Architetto in Sede */
body.page-id-7892 .elementor-element-551d6b1 .elementor-icon-box-wrapper::before {
    background-image: url('/wp-content/uploads/2026/03/serv-arch.jpg');
    background-position: center 20%;
}

/* ── 22E. Contenuto testuale ── */
body.page-id-7892 .elementor-element-4643d4f .elementor-icon-box-content,
body.page-id-7892 .elementor-element-995d1c0 .elementor-icon-box-content {
    padding: 20px 22px 26px !important;
    flex: 1 !important;
}
body.page-id-7892 .elementor-element-4643d4f .elementor-icon-box-title,
body.page-id-7892 .elementor-element-995d1c0 .elementor-icon-box-title {
    font-size: 1.08rem !important;
    margin-bottom: 10px !important;
    color: #0a192f !important;
}
body.page-id-7892 .elementor-element-4643d4f .elementor-icon-box-description,
body.page-id-7892 .elementor-element-995d1c0 .elementor-icon-box-description {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #4a5568 !important;
    margin: 0 !important;
}

/* ── 22F. Responsive mobile ── */
@media (max-width: 767px) {
    body.page-id-7892 .elementor-element-4643d4f .elementor-column,
    body.page-id-7892 .elementor-element-995d1c0 .elementor-column {
        padding: 8px !important;
    }
    body.page-id-7892 .elementor-element-dac3f39 .elementor-icon-box-wrapper::before,
    body.page-id-7892 .elementor-element-247be51 .elementor-icon-box-wrapper::before,
    body.page-id-7892 .elementor-element-1c34953 .elementor-icon-box-wrapper::before,
    body.page-id-7892 .elementor-element-651492c .elementor-icon-box-wrapper::before,
    body.page-id-7892 .elementor-element-dc9ea13 .elementor-icon-box-wrapper::before,
    body.page-id-7892 .elementor-element-551d6b1 .elementor-icon-box-wrapper::before {
        height: 180px;
    }
}

/* ===================================================================
   SECTION 23: Pagina Il Territorio — Roma Nord e Formello — v2.8.38
   Tipografia corretta in px, allineata standard homepage.
   Fix: tutti i valori tipografici convertiti in px (html font-size: 10px nel tema).
   Standard homepage: Playfair Display per titoli, Inter per body, stessa gerarchia.
   =================================================================== */

/* ── 23A. Reset e variabili di pagina ── */
.territorio-page { font-family: 'Inter', sans-serif; color: #1a2332; }
.terr-container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.terr-section { padding: 80px 0; }
.terr-dark { background: #0a192f; color: #e8e8e8; }
.terr-dark h2 { color: #e8a435 !important; }
.terr-dark p { color: #c8d0dc; }

/* ── 23B. Hero ── */
.terr-hero {
    position: relative;
    height: 540px;
    overflow: hidden;
}
.terr-hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.terr-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,25,47,0.35) 0%, rgba(10,25,47,0.75) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 32px;
}
.terr-hero__overlay h1 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.terr-hero__overlay p {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.90);
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* ── 23C. Intro ── */
.terr-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0a192f;
    margin-bottom: 20px;
    line-height: 1.2;
}
.terr-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #4a5568;
    max-width: none;
    margin-bottom: 18px;
}

/* ── 23D. Griglia zone ── */
.terr-zone-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.terr-zone-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
}
.terr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.terr-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.terr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.15);
}
.terr-card__img {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.terr-card__body {
    padding: 22px 24px 26px;
}
.terr-card__body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #0a192f;
    margin: 0 0 10px;
    line-height: 1.3;
}
.terr-card__body p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.68;
    color: #4a5568;
    margin: 0 0 16px;
}
.terr-card__badge {
    display: inline-block;
    background: #e8a435;
    color: #0a192f;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ── 23E. Sezione Veio (split) ── */
.terr-split {
    display: flex;
    gap: 64px;
    align-items: center;
}
.terr-split__text { flex: 1; }
.terr-split__text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.terr-split__text p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
    color: #c8d0dc;
}
.terr-split__img { flex: 0 0 420px; }
.terr-split__img img {
    width: 100%; border-radius: 14px;
    box-shadow: 0 8px 36px rgba(0,0,0,0.35);
}
.terr-list {
    list-style: none; padding: 0; margin: 20px 0 0;
}
.terr-list li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #c8d0dc;
}
.terr-list li::before {
    content: '✓';
    position: absolute; left: 0;
    color: #e8a435;
    font-weight: 700;
}

/* ── 23F. Infrastrutture ── */
.terr-infra h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0a192f;
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.2;
}
.terr-infra > .terr-container > p {
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #6b7280;
    margin-bottom: 44px;
    font-size: 17px;
    line-height: 1.7;
}
.terr-infra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.terr-infra-item {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 28px 24px;
    border-top: 3px solid #e8a435;
}
.terr-infra-icon { font-size: 34px; margin-bottom: 12px; line-height: 1; }
.terr-infra-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #0a192f;
    margin: 0 0 8px;
    line-height: 1.3;
}
.terr-infra-item p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

/* ── 23G. Striscia foto ── */
.terr-photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 280px;
}
.terr-strip-img {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    overflow: hidden;
}
.terr-strip-img:hover { transform: scale(1.06); }

/* ── 23H. CTA finale ── */
.terr-cta { background: #0a192f; }
.terr-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}
.terr-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #e8a435;
    margin: 0 0 10px;
    line-height: 1.2;
}
.terr-cta p {
    font-family: 'Inter', sans-serif;
    color: #c8d0dc;
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}
.terr-cta__btns { display: flex; gap: 14px; flex-shrink: 0; }
.terr-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.terr-btn--gold { background: #e8a435; color: #0a192f; }
.terr-btn--gold:hover { background: #d4922e; color: #0a192f; }
.terr-btn--wa { background: #25D366; color: #fff; }
.terr-btn--wa:hover { background: #1aad53; color: #fff; }

/* ── 23I. Responsive ── */
@media (max-width: 900px) {
    .terr-grid { grid-template-columns: repeat(2, 1fr); }
    .terr-infra-grid { grid-template-columns: repeat(2, 1fr); }
    .terr-split { flex-direction: column; }
    .terr-split__img { flex: auto; width: 100%; }
    .terr-cta__inner { flex-direction: column; text-align: center; }
    .terr-cta__btns { justify-content: center; }
    .terr-photo-strip { grid-template-columns: repeat(2, 1fr); height: 320px; }
}
@media (max-width: 600px) {
    .terr-grid { grid-template-columns: 1fr; }
    .terr-infra-grid { grid-template-columns: 1fr; }
    .terr-hero { height: 360px; }
    .terr-section { padding: 56px 0; }
    .terr-photo-strip { display: none; }
}

/* ── 23J. Layout full-width pagina Il Territorio (page-id-8863) ── */
/* Nasconde sidebar */
.page-id-8863 .rh_page__sidebar { display: none !important; }
/* Main content prende tutta la larghezza */
.page-id-8863 .rh_page__listing_page { width: 100% !important; max-width: 100% !important; flex: 1 1 100% !important; }
/* Rimuove padding laterale dal wrapper per permettere al hero di essere edge-to-edge */
.page-id-8863 .rh_section--flex.rh_wrap--padding { padding: 0 !important; }
.page-id-8863 .rh_section--flex.rh_wrap--topPadding { padding-top: 0 !important; }
/* Rimuove padding dell'entry-content che tagliava il hero */
.page-id-8863 .rh_content.entry-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }
.page-id-8863 .rh_page__main { padding: 0 !important; }
/* Nasconde il banner RealHomes default (titolo pagina gold) */
.page-id-8863 .rh_banner,
.page-id-8863 .rh_page__banner { display: none !important; }
/* Corregge <p> spurie inserite da wpautop dentro i div del territorio */
.territorio-page p:empty { display: none !important; }
.territorio-page > p { display: none !important; }

/* ===================================================================
   SECTION 24: WHATSAPP FLOATING BUTTON
   v2.8.84 — 2026-06-04 (spostato da basso-destra a basso-sinistra
   per evitare sovrapposizione con widget esterno; row-reverse per
   tenere il cerchio sul bordo sinistro e l'etichetta verso destra)
   =================================================================== */

/* ── 24A. Pulsante fisso WhatsApp ── */
.rh-wa-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9998;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    cursor: pointer;
}
/* Reset sfondo del container: a[href*="wa.me"] ha spec 0,1,1 — override con a.rh-wa-float */
a.rh-wa-float,
a.rh-wa-float:hover,
a.rh-wa-float:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

.rh-wa-float__btn {
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    animation: rh-wa-pulse 2.8s ease-in-out infinite;
}

.rh-wa-float__btn i {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.rh-wa-float:hover .rh-wa-float__btn {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55), 0 3px 10px rgba(0,0,0,0.22);
    animation: none;
}

.rh-wa-float__label {
    background: #fff;
    color: #1a2332;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.rh-wa-float:hover .rh-wa-float__label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes rh-wa-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.18); }
    50%       { box-shadow: 0 4px 24px rgba(37,211,102,0.65), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ── 24B. Responsive: mantiene il pulsante in basso a sinistra su mobile ── */
@media (max-width: 768px) {
    .rh-wa-float {
        bottom: 20px;
        left: 20px;
    }
    .rh-wa-float__btn {
        width: 52px;
        height: 52px;
    }
    .rh-wa-float__btn i { font-size: 24px; }
}


/* ===================================================================
   SECTION 25: CARD IMMOBILI v2 — BADGE GARAGE + PIANO
   v2.8.39 — 2026-03-24
   =================================================================== */

/* Icone Font Awesome nei badge extra meta (invece degli SVG nativi del tema) */
.rh-extra-meta .rhea_meta_icon_wrapper i {
    font-size: 15px;
    color: #c4943e;
    line-height: 1;
}
.rh-extra-meta .rhea_meta_icon_wrapper {
    width: auto;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Mantiene la stessa struttura flex dei meta nativi */
.rh-extra-meta {
    border-left: 1px solid #eee;
    padding-left: 10px;
    margin-left: 6px;
}
/* Primo badge extra: nessun bordo sinistro */
.rh_prop_card__meta + .rh-extra-meta:first-of-type,
.rh_list_card .rh-extra-meta:first-child {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
}

/* ==================================================================
   SECTION 26: NAV MENU COMPACT v2.8.42
   Riduce padding e font-size delle voci del menu desktop per
   farlo stare su una sola riga. Il menu desktop usa ul.rh_menu__main
   dentro .rh_header_var_1 (non più responsive-menu).
   ================================================================== */
@media screen and (min-width: 1140px) {
    /* Compatta spaziatura tra le voci */
    .rh_header_var_1 ul.rh_menu__main > li > a {
        font-size: 13px !important;
        padding: 1rem 1.1rem !important;
        letter-spacing: 0.01em !important;
    }
    /* Elimina wrap forzato: una sola riga */
    .rh_header_var_1 ul.rh_menu__main {
        flex-wrap: nowrap !important;
    }
    /* Riduce margine tra le voci (round corners override) */
    .realhomes-round-corners header .main-menu .rh_menu__main > li {
        margin: 0 1px !important;
    }
}

/* ==================================================================
   SECTION 27: HOMEPAGE AGENTS SECTION — layout gerarchico (S10 v2.8.44)
   ==================================================================
   Widget: ERE Agents (elementor-element-78909a2), rendered via
   .rh_section__agents_elementor (flex row wrap di default).
   Sostituiamo con CSS Grid per layout gerarchico:
     R1: Ruggero (post-57, Agente) — centrato, enfasi visiva
     R2: Marica (post-54) · Sara (post-48) · Lorenzo (post-51)
     R3: Valentina (post-7803, Segreteria) — centrata, sola card con CTA
   Mobile first: stack 1 colonna, poi 2, poi 3.
   Scope S1: CSS vive SOLO sulla homepage (body.home).
   ================================================================== */
body.home .rh_section__agents_elementor {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tablet: 2 colonne, Ruggero e Valentina span 2 */
@media screen and (min-width: 768px) {
    body.home .rh_section__agents_elementor {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    body.home .rh_section__agents_elementor article.post-57 {
        grid-column: 1 / -1;   /* Ruggero: riga piena */
        max-width: 520px;
        margin: 0 auto;
    }
    body.home .rh_section__agents_elementor article.post-7803 {
        grid-column: 1 / -1;   /* Valentina: riga piena */
        max-width: 520px;
        margin: 0 auto;
    }
}

/* Desktop: 3 colonne esplicite, layout gerarchico */
@media screen and (min-width: 1140px) {
    body.home .rh_section__agents_elementor {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto auto;
        gap: 2.5rem 2rem;
        row-gap: 3rem;
    }
    /* R1: Ruggero centrato, enfasi */
    body.home .rh_section__agents_elementor article.post-57 {
        grid-row: 1;
        grid-column: 2 / 3;
        max-width: none;
        margin: 0;
        transform: scale(1.05);
        z-index: 2;
    }
    /* R2: 3 consulenti */
    body.home .rh_section__agents_elementor article.post-54 { grid-row: 2; grid-column: 1; max-width: none; margin: 0; } /* Marica */
    body.home .rh_section__agents_elementor article.post-48 { grid-row: 2; grid-column: 2; max-width: none; margin: 0; } /* Sara */
    body.home .rh_section__agents_elementor article.post-51 { grid-row: 2; grid-column: 3; max-width: none; margin: 0; } /* Lorenzo */
    /* R3: Valentina centrata */
    body.home .rh_section__agents_elementor article.post-7803 {
        grid-row: 3;
        grid-column: 2 / 3;
        max-width: none;
        margin: 0;
    }
}

/* CTA visibili solo sulla card di Valentina (scope S1: solo homepage).
   Nasconde bottone WhatsApp e link email sulle 4 card professionisti. */
body.home .rh_section__agents_elementor article:not(.post-7803) .rh_agent__info.phone.number,
body.home .rh_section__agents_elementor article:not(.post-7803) .rh_agent__info.phone,
body.home .rh_section__agents_elementor article:not(.post-7803) a.rh_agent__email {
    display: none !important;
}

/* Etichetta "Segreteria" su Valentina: stile coerente con Agente Immobiliare
   (designation arriva dal designation injector child-custom.js v2.3.0) */
body.home .rh_section__agents_elementor article.post-7803 .rh_agent_title_designation {
    color: var(--rh-accent, #c4943e);
    font-weight: 500;
    font-style: italic;
}

/* Ruggero in evidenza: ring gold sulla foto per marcare il ruolo */
@media screen and (min-width: 1140px) {
    body.home .rh_section__agents_elementor article.post-57 .rh_agent__thumbnail {
        box-shadow: 0 0 0 3px rgba(196, 148, 62, 0.4), 0 8px 24px rgba(0, 0, 0, 0.08);
        border-radius: 50%;
    }
}

/* ==================================================================
   SECTION 28: MOBILE-FIRST POLISH — Homepage hero + header
   v2.8.49 (S12) — 2026-04-19 — REWRITE radicale armonia mobile
   Interventi mirati dopo audit live post-v2.8.48:
     - 28A v2: hero homepage con respiro verticale reale + padding
       laterale 24px + max-width container interno + margin H1/sub/CTA
     - 28B v2: header mobile (<= 768px) nasconde phone block testuale
       (c'e' gia' WhatsApp floating button, Section 24). Assicura
       hamburger sempre visibile e prioritario.
   ================================================================== */

/* ── 28A. Hero homepage mobile — respiro + altezza contenuta ─────
   Scope: body.home per non impattare hero di pagine interne.
   Target: sezione a6052e1 e tutto il suo contenuto interno.
   Obiettivo: padding laterale 24px, max-width 560px del container
   interno (centra e da' aria), min-height ridotta. */
@media (max-width: 768px) {
    /* Sezione hero: altezza non invasiva, scroll veloce verso card */
    body.home .elementor-element-a6052e1 {
        min-height: 520px !important;
        padding-top: 72px !important;
        padding-bottom: 56px !important;
    }
    /* Container interno: max-width 560 + padding laterale 24px */
    body.home .elementor-element-a6052e1 > .elementor-container,
    body.home .elementor-element-a6052e1 .elementor-widget-wrap {
        max-width: 560px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    /* H1 hero: margin-bottom per respiro rispetto al sottotitolo */
    body.home .elementor-element-a6052e1 .elementor-widget-heading {
        margin-bottom: 20px !important;
    }
    /* Sottotitolo "Dal 2005...": margin-bottom verso CTA */
    body.home .elementor-element-a6052e1 .elementor-widget-text-editor {
        margin-bottom: 28px !important;
        line-height: 1.55 !important;
    }
    /* CTA "Scopri i nostri immobili": margin-top per separazione */
    body.home .elementor-element-a6052e1 .elementor-widget-button {
        margin-top: 8px !important;
    }
}

/* ── 28B → 28H RIMOSSE in v2.8.59 ──────────────────────────────────
   Le sottosezioni Section 28B, 28C, 28D, 28E, 28F (neutralizzata),
   28G, 28B v5 e 28H sono state rimosse fisicamente nel cleanup v2.8.59.
   Causa: Section 28C forzava img logo 110px con specificita' 0,5,3
   che batteva Section 29.3 (0,4,3) → logo clippato in alto dentro
   header 96px. Tutte le altre sottosezioni erano superseded da
   Section 29 ma ancora attive come specificity-parasites.
   Section 29 e' ora unica fonte di verita' per il mobile header
   (<=768px). Questo tombstone preserva traccia della rimozione.
   Vedi changelog v2.8.58 (REBUILD) e v2.8.59 (CLEANUP) nell'intestazione. */

/* ===================================================================
   SECTION 29 — MOBILE HEADER CLEAN REBUILD (v2.8.58, cleanup v2.8.59)
   Unica fonte di verita' per il mobile header (<=768px) a seguito
   della rimozione fisica di Section 28B-H in v2.8.59.
   Design tokens + CSS Grid (auto 1fr auto) + reset controllato.

   Design system mobile:
     --rmi-header-h: 96px   (header height, rapporto brand/funz ottimo)
     --rmi-logo-h:   68px   (68/96 = 0.71, standard premium)
     --rmi-touch:    48px   (Material tap target, >=iOS HIG 44)
     --rmi-pad-x:    16px   (8pt grid scale)
     --rmi-gap:      12px   (gap tra i due bottoni cluster destra)

   Architettura layout:
     .rh_header__wrap { grid-template-columns: auto 1fr auto }
       [col 1] logo left
       [col 2] spacer flessibile
       [col 3] .rh_menu cluster (hamburger + phone, flex row)
   =================================================================== */

:root {
    --rmi-header-h: 96px;
    --rmi-logo-h: 68px;
    --rmi-touch: 48px;
    --rmi-pad-x: 16px;
    --rmi-gap: 12px;
    --rmi-safe-top: env(safe-area-inset-top, 0px);
    --rmi-header-bg: rgba(22, 44, 82, 0.95);
    --rmi-btn-bg: rgba(255, 255, 255, 0.12);
    --rmi-btn-bg-active: rgba(255, 255, 255, 0.22);
    --rmi-icon: #ffffff;
    --rmi-btn-radius: 10px;
}

@media (max-width: 1139px) {

    /* ── 29.0 Hide dual header parent (solo responsive_view attivo) ── */
    html body header.rh_header.rh_temp_header_large_screens,
    html body header.rh_header_var_1.rh_temp_header_large_screens {
        display: none !important;
    }

    /* ── 29.1 Header: fixed, altezza token, safe-area ────────────── */
    html body header.rh_header.rh_temp_header_responsive_view {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(var(--rmi-header-h) + var(--rmi-safe-top)) !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        padding-top: var(--rmi-safe-top) !important;
        margin: 0 !important;
        background: var(--rmi-header-bg) !important;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22) !important;
        z-index: 100 !important;
        overflow: visible !important;
    }

    /* ── 29.2 Wrap: CSS Grid (logo | spacer | cluster) ────────────── */
    html body header.rh_temp_header_responsive_view .rh_header__wrap {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-rows: 1fr !important;
        align-items: center !important;
        justify-items: stretch !important;
        gap: var(--rmi-pad-x) !important;
        height: var(--rmi-header-h) !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 var(--rmi-pad-x) !important;
        margin: 0 !important;
        overflow: visible !important;
        position: relative !important;
    }

    /* ── 29.3 Logo (col 1) ────────────────────────────────────────── */
    html body header.rh_temp_header_responsive_view .rh_logo,
    html body header.rh_temp_header_responsive_view .rh_logo_wrapper {
        grid-column: 1 !important;
        justify-self: start !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
        flex: 0 0 auto !important;
    }
    html body header.rh_temp_header_responsive_view .rh_logo_inner {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    html body header.rh_temp_header_responsive_view .rh_logo_inner a {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 0 !important;
    }
    /* v2.8.60: boost specificity per battere parent RealHomes che forzava
       max-height:50px con selettore .rh_responsive_header_temp .rh_logo_inner img.
       Chain esteso: 0,5,5 > 0,2,4 parent. */
    html body header.rh_header.rh_temp_header_responsive_view .rh_header__wrap .rh_logo .rh_logo_inner a img,
    html body header.rh_header.rh_temp_header_responsive_view .rh_header__wrap .rh_logo_wrapper .rh_logo_inner a img,
    html body header.rh_temp_header_responsive_view .rh_logo_inner img {
        display: block !important;
        height: var(--rmi-logo-h) !important;
        max-height: var(--rmi-logo-h) !important;
        min-height: 0 !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    /* ── 29.4 Menu cluster destra (col 3): flex row ───────────────── */
    html body header.rh_temp_header_responsive_view .rh_menu {
        grid-column: 3 !important;
        justify-self: end !important;
        align-self: center !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: var(--rmi-gap) !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        height: var(--rmi-touch) !important;
        position: static !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    /* ── 29.5 Main-menu (wrapper hamburger + drawer): reset + flex ─ */
    html body header.rh_temp_header_responsive_view .rh_menu .main-menu {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        order: 2 !important;
        flex: 0 0 auto !important;
        width: var(--rmi-touch) !important;
        height: var(--rmi-touch) !important;
    }
    /* Drawer del menu: esce dal flow quando chiuso (default) o aperto */
    html body header.rh_temp_header_responsive_view .main-menu .menu-main-menu-container {
        position: absolute !important;
        left: auto !important;
    }

    /* ── 29.6 User cluster (wrapper phone): reset + flex ─────────── */
    html body header.rh_temp_header_responsive_view .rh_menu .rh_menu__user {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        width: var(--rmi-touch) !important;
        height: var(--rmi-touch) !important;
        min-width: 0 !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__user_phone {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: var(--rmi-touch) !important;
        height: var(--rmi-touch) !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Nascondi sottomenu user + submit (non servono su mobile) */
    html body header.rh_temp_header_responsive_view .rh_menu__user .user_menu_wrapper,
    html body header.rh_temp_header_responsive_view .rh_menu__user_submit {
        display: none !important;
    }
    /* Nascondi SVG WhatsApp inline (il JS lo rimuove, difensivo) */
    html body header.rh_temp_header_responsive_view .rh_menu__user_phone svg {
        display: none !important;
    }

    /* ── 29.7 Phone button (tap-to-call) ─────────────────────────── */
    /* v2.8.60: boost specificity per battere parent che forzava
       font-size:9px color:white sul contact-number. Chain 0,6,4. */
    html body header.rh_header.rh_temp_header_responsive_view .rh_menu .rh_menu__user .rh_menu__user_phone a.contact-number,
    html body header.rh_temp_header_responsive_view .rh_menu__user_phone a.contact-number {
        width: var(--rmi-touch) !important;
        height: var(--rmi-touch) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--rmi-btn-bg) !important;
        border-radius: var(--rmi-btn-radius) !important;
        text-decoration: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        transition: background 0.2s ease !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        text-indent: -9999px !important;
        letter-spacing: -9999px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__user_phone a.contact-number:hover,
    html body header.rh_temp_header_responsive_view .rh_menu__user_phone a.contact-number:active {
        background: var(--rmi-btn-bg-active) !important;
    }
    /* Icona cornetta via ::before SVG inline (font-independent) */
    html body header.rh_temp_header_responsive_view .rh_menu__user_phone a.contact-number::before {
        content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="22" height="22"><path fill="%23ffffff" d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>') !important;
        width: 22px !important;
        height: 22px !important;
        display: block !important;
        text-indent: 0 !important;
        font-size: 22px !important;
        line-height: 1 !important;
        letter-spacing: normal !important;
    }

    /* ── 29.8 Hamburger button ───────────────────────────────────── */
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: var(--rmi-touch) !important;
        height: var(--rmi-touch) !important;
        padding: 0 !important;
        margin: 0 !important;
        background: var(--rmi-btn-bg) !important;
        border-radius: var(--rmi-btn-radius) !important;
        position: relative !important;
        z-index: 1 !important;
        transition: background 0.2s ease !important;
        flex: 0 0 auto !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger:hover,
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger:active {
        background: var(--rmi-btn-bg-active) !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-box {
        width: 24px !important;
        height: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner,
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner::before,
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner::after {
        background-color: var(--rmi-icon) !important;
        width: 24px !important;
        height: 2.5px !important;
        border-radius: 2px !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner::before {
        top: -7px !important;
    }
    html body header.rh_temp_header_responsive_view .rh_menu__hamburger .hamburger-inner::after {
        bottom: -7px !important;
    }

    /* ── 29.X Banner wrap: offset sotto header fisso ─────────────── */
    .rh_banner__wrap {
        padding-top: 200px !important;
    }

    /* ── 29.Y Sticky header: nascosto su mobile ───────────────────── */
    /* Il mobile header (responsive_view) gestisce la navigazione;
       lo sticky desktop non deve apparire nel range <=1139px.        */
    .rh_mod_sticky_header {
        display: none !important;
    }

    /* ── 29.Z .rh_wrap offset: spinge contenuto sotto header fisso ── */
    /* Pagine standard RealHomes (non-homepage, non template
       elementor_header_footer). Homepage usa Elementor full-width
       senza .rh_wrap come layer di offset. Pagine Elementor
       header_footer sono gestite da Section 13E.                      */
    body:not(.home):not(.page-template-elementor_header_footer) .rh_wrap {
        padding-top: var(--rmi-header-h) !important;
    }

}

/* ===================================================================
   SECTION 30 — PRE-DEMO CLEANUP (v2.8.61, 2026-04-20 — v2.8.62, 2026-04-20)
   Triggerato da audit Playwright mobile pre-presentazione cliente
   (iPhone 12 Pro 390x844). Vedi tools/audit-output/audit-report.md.

   30A — [RIMOSSA v2.8.62 / S15] Era un fix chirurgico su Come Lavoriamo
         (page-id-7892, data-id 92eeb1f) che tentava di abbassare il
         padding-top da 250px a 72px su mobile. Non funzionava perche'
         la specificity 0,3,3 perdeva contro 13E-2 (0,5,1). Soluzione
         strutturale adottata in v2.8.62: resa responsive la 13E-2 stessa
         tramite 13E-2b (Section 13E riga ~1895), che risolve il problema
         a monte per TUTTE le inner pages e chiude il task S11-P2.3.
   30B — Submit Property hide cross-device (rincalzo).
         Bottoni gia' invisibili via regole Section 1 e theme,
         ma restano nel DOM come <a href*="submit-property">.
         display:none+visibility:hidden forza rimozione visiva
         totale e previene regressioni da parent RealHomes.
   =================================================================== */

/* ── 30B Submit Property full hide (cross-device) ───────────────── */
html body a[href*="submodule=submit-property"],
html body a[href*="submit-property"].rh_submit_property_cta,
html body .submit_property_btn,
html body .rh_header__submit,
html body li.rh_header__submit_property,
html body a[title="Submit Property"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ===================================================================
   SECTION 31 (v2.8.63 / S15)
   H1 screen-reader-only helper
   ---------------------------------------------------------------
   Stile accoppiato al filtro the_content in functions.php v2.8.63.
   Il filtro inietta <h1 class="page-hero-title">{title}</h1> su 4
   pagine che hanno un hero visivo ma nessun tag H1 semantico:
   - Come Lavoriamo (7892)
   - Galleria Storica (8725)
   - L'Agenzia (8717)
   - Contatti (155)

   Pattern sr-only: H1 leggibile da bot e assistive tech, invisibile
   agli utenti vedenti e senza impatto sul layout (out-of-flow).
   Fix audit S15 "headingHierarchy.requireFirst".
   =================================================================== */
h1.page-hero-title,
.page-hero-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ===================================================================
   SECTION 32 (v2.8.64 / S18)
   Nasconde entry-header RealHomes su pagine con hero Elementor
   ---------------------------------------------------------------
   Il template page-template-default inietta automaticamente un
   div.entry-header.blog-post-entry-header con sfondo gold (#c4943e)
   e H1 pagina. Su tutte le pagine con hero Elementor proprio questo
   elemento e' ridondante e visivamente improprio ("obrobrio giallo").
   L'H1 semantico e' gia' garantito da Section 31 (sr-only injection).

   Pagine interessate:
   - Come Lavoriamo    (7892)
   - Il Territorio     (8863)
   - L'Agenzia         (8717)
   - Galleria Storica  (8725)
   =================================================================== */
.page-id-7892 .entry-header.blog-post-entry-header,
.page-id-8863 .entry-header.blog-post-entry-header,
.page-id-8717 .entry-header.blog-post-entry-header,
.page-id-8725 .entry-header.blog-post-entry-header {
    display: none !important;
}

/* ===================================================================
   SECTION 33 (v2.8.65 / S20)
   Migrazione snippet #89: Header UX + Social Icons + WA Float colors
   ---------------------------------------------------------------
   Snippet WP #89 migrato al child theme: CSS inline in wp_head + JS
   in wp_footer (JS nel corrispondente hook functions.php v2.8.65).

   33A. Nasconde il numero telefonico in header (desktop + mobile):
        rimpiazzato da icone social (.rmi-hsocial) iniettate via JS.
   33B. Sticky header menu: allineamento stretch per uniform height.
   33C. Active menu item: barra gold top-border sul link corrente.
   33D. Social icons cluster .rmi-hsocial: flex, bianco su trasparente.
   33E. WA float button: colore navy (era verde standard), hover gold.
   =================================================================== */

/* ── 33A. Nascondi phone in header ── */
html body .rh_menu__user_phone,
html body header.rh_temp_header_responsive_view .rh_menu__user_phone {
    display: none !important;
}

/* ── 33B. Sticky header: allineamento verticale items ── */
.rh_sticky_header_menu {
    align-items: stretch !important;
}
.rh_sticky_header_menu ul.rh_menu__main > li {
    display: flex !important;
    align-items: center !important;
    position: relative;
}

/* ── 33C. Active menu item: barra gold ── */
.rh_sticky_header_menu ul.rh_menu__main > li.current-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    right: 4px;
    height: 3px;
    background: #c4943e;
    border-radius: 0 0 3px 3px;
    pointer-events: none;
}

/* ── 33D. Social icons cluster ── */
.rmi-hsocial {
    display: flex !important;
    align-items: center;
    gap: 14px;
}
.rmi-hsocial a,
.rmi-hsocial a i {
    color: #ffffff !important;
    background: transparent !important;
}
/* Tap target >= 44px per le social icons header */
.rmi-hsocial a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none !important;
}
/* Nascondi cluster su mobile (header responsive separato) */
@media (max-width: 900px) {
    .rh_menu__user .rmi-hsocial,
    header .rh_menu__user .rmi-hsocial {
        display: none !important;
    }
}

/* ── 33E. WA Float: verde WhatsApp ufficiale (richiesta Valerio 2026-06-04, v2.9.0;
   prima era navy #163358, ancor prima verde standard Section 24) ── */
.rh-wa-float__btn {
    background-color: #25D366 !important;
}
.rh-wa-float__btn:hover {
    background-color: #1da851 !important;
}

/* ===================================================================
   SECTION 34 (v2.8.65 / S20)
   Migrazione snippet #90: Servizi page (9942) image-box horizontal
   ---------------------------------------------------------------
   Snippet WP #90 migrato al child theme.
   Pagina "I Nostri Servizi" (page-id-9942): card image-box Elementor
   con layout orizzontale (immagine sinistra, testo destra) — desktop.
   Su mobile collassa a layout verticale standard.
   =================================================================== */

/* ── 34A. Desktop: layout orizzontale ── */
body.page-id-9942 .elementor-widget-image-box .elementor-image-box-wrapper {
    display: flex !important;
    flex-direction: row !important;
    height: 170px;
    overflow: hidden;
    border-radius: 10px;
}
body.page-id-9942 .elementor-widget-image-box .elementor-image-box-img {
    flex: 0 0 120px;
    width: 120px;
}
body.page-id-9942 .elementor-widget-image-box .elementor-image-box-img img {
    width: 120px;
    height: 170px;
    object-fit: cover;
}

/* ── 34B. Mobile: layout verticale ── */
@media (max-width: 767px) {
    body.page-id-9942 .elementor-widget-image-box .elementor-image-box-wrapper {
        flex-direction: column !important;
        height: auto;
    }
    body.page-id-9942 .elementor-widget-image-box .elementor-image-box-img {
        flex: unset;
        width: 100%;
    }
    body.page-id-9942 .elementor-widget-image-box .elementor-image-box-img img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* ===================================================================
   SECTION 35 (v2.8.65 / S20)
   Migrazione snippet #94: L'Agenzia (8717) WA solo Valentina
   ---------------------------------------------------------------
   Snippet WP #94 migrato al child theme.
   Pagina L'Agenzia (page-id-8717):
   - Tutti gli agenti tranne Valentina (post-7803): nasconde telefono.
   - Tutti gli agenti: nasconde WhatsApp generico del template
     (il WA e' gestito via hook functions.php global CTA).
   - Valentina (post-7803): nasconde il counter "Immobili Venduti"
     (dato non applicabile al suo profilo).
   =================================================================== */

/* Telefono: nascosto su tutti tranne Valentina (post-7803) */
.page-id-8717 article.rh_agent_elementor:not(.post-7803) p.rh_agent__info.phone.number {
    display: none !important;
}
/* WA template: nascosto su tutti (funzioni.php gia' inietta WA globale) */
.page-id-8717 article.rh_agent_elementor p.rh_agent__info.whatsapp.number {
    display: none !important;
}
/* Counter immobili venduti: nascosto solo per Valentina */
.page-id-8717 article.post-7803 .rh_agent__listed,
.page-id-8717 article.post-7803 [class*="listed"] {
    display: none !important;
}

/* ===================================================================
   SECTION 36 (v2.8.65 / S20)
   Design System — Fix sistemici Visual Critic + backlog S11-S16
   ---------------------------------------------------------------
   Interventi centralizzati sul design system per chiudere i blocker
   e i major ricorrenti rilevati da Visual Critic (report.md):
   36A. Hero overlay (Art.1.3): contrasto WCAG su hero con testo.
   36B. Hero mobile height (Art.5.4): max 60vh, no full-viewport trap.
   36C. Tap target footer social (Art.4.3): min 44x44px su tutti device.
   36D. Body text contrast (Art.1.3): grigio troppo chiaro su mobile.
   36E. Placeholder contrast (Art.1.3): placeholder form <= #757575.
   36F. Footer line-height (Art.1.2): leggibilita' minima.
   36G. Hero H2 clamp (S11-P2.1): font-size responsive hero tagline.
   36H. WA float overlap Contatti (S11-P2.5): z-index + bottom offset.
   36I. Color tokens CSS custom properties (S11-P3.1).
   36J. H1 duplicato Il Territorio (S15): nasconde entry-header gold.
   =================================================================== */

/* ── 36I. Color tokens (custom properties) ── */
:root {
    --rmi-gold:      #c4943e;
    --rmi-gold-dark: #b0832f;
    --rmi-navy:      #163358;
    --rmi-navy-dark: #0d1f36;
    --rmi-text:      #2c2c2c;
    --rmi-text-muted: #595959;
    --rmi-placeholder: #757575;
}

/* ── 36A. Hero overlay — sistemico ── */
/*
   Applica overlay scuro ai .rh_banner che contengono testo sovrapposto
   (homepage, inner pages standard). Usa ::after per non interferire con
   ::before del tema RealHomes (progress bar / decorazioni).
   Contatti (155) gia' ha .hero-gradient iniettato via JS (Section 21B).
   Come Lavoriamo (7892) usa ph-slider con le proprie immagini ottimizzate.
*/
body:not(.page-id-155):not(.page-id-7892):not(.page-id-8863) .rh_banner {
    position: relative;
    overflow: hidden;
}
body:not(.page-id-155):not(.page-id-7892):not(.page-id-8863) .rh_banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 25, 47, 0.55) 0%,
        rgba(10, 25, 47, 0.35) 50%,
        rgba(10, 25, 47, 0.50) 100%
    );
    z-index: 1;
    pointer-events: none;
}
/* Assicura che il contenuto hero stia sopra l'overlay */
body:not(.page-id-155):not(.page-id-7892):not(.page-id-8863) .rh_banner .rh_banner__content,
body:not(.page-id-155):not(.page-id-7892):not(.page-id-8863) .rh_banner .rh_banner__title,
body:not(.page-id-155):not(.page-id-7892):not(.page-id-8863) .rh_banner .rh_banner__subtitle,
body:not(.page-id-155):not(.page-id-7892):not(.page-id-8863) .rh_banner > * {
    position: relative;
    z-index: 2;
}

/* Come Lavoriamo (7892): overlay su ph-slider tramite z-index */
body.page-id-7892 .elementor-element-92eeb1f .ph-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 25, 47, 0.50) 0%,
        rgba(10, 25, 47, 0.30) 60%,
        rgba(10, 25, 47, 0.45) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── 36B. Hero mobile height — max 60vh (Art.5.4) ── */
@media (max-width: 767px) {
    .rh_banner {
        max-height: 60vh !important;
        min-height: 280px;
    }
    .rh_banner img,
    .rh_banner .rh_banner__image {
        height: 60vh !important;
        max-height: 60vh !important;
        object-fit: cover;
    }
    /* ph-slider su mobile: altezza contenuta */
    .ph-slider,
    .ph-slide {
        max-height: 60vh;
    }
    .ph-slide img {
        max-height: 60vh;
        object-fit: cover;
    }
}

/* ── 36C. Tap target footer social icons (Art.4.3) ── */
/* Footer RealHomes: icone social */
.rh_footer__social a,
.rh_footer .social-links a,
footer .rh_social__icons a,
.rh_social__icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 6px !important;
}
/* Icone font-awesome nel footer */
.rh_footer__social i,
.rh_footer .social-links i,
footer .rh_social__icons i {
    font-size: 20px;
}

/* ── 36D. Body text contrast (Art.1.3 mobile) ── */
/*
   Il VLM ha rilevato testo body grigio ~#999 su Come Lavoriamo mobile.
   Forziamo minimo #595959 (ratio 7:1) per testo descrittivo.
*/
body p,
body .elementor-text-editor p,
body .elementor-widget-text-editor p {
    color: var(--rmi-text, #2c2c2c);
}
/* Solo se il tema usa un grigio molto chiaro come default */
body .rh_prop_card__description,
body .rh_prop_card__excerpt {
    color: var(--rmi-text-muted, #595959);
}

/* ── 36E. Placeholder contrast (Art.1.3 Contatti mobile) ── */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: var(--rmi-placeholder, #757575) !important;
    opacity: 1 !important;
}

/* ── 36F. Footer line-height (Art.1.2) ── */
.rh_footer,
.rh_footer p,
.rh_footer li,
.rh_footer a,
.rh_footer span {
    line-height: 1.6;
}

/* ── 36G. Hero H2 clamp responsive (S11-P2.1) ── */
/*
   Tagline hero: clamp per adattamento fluido desktop-mobile.
   Applica a .rh_banner subtitle e ai titoli Elementor nei hero.
*/
.rh_banner .rh_banner__subtitle,
.rh_banner .rh_banner__tagline,
.rh_banner h2,
body.page-id-155 .rh_banner h2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
    line-height: 1.4 !important;
}

/* ── 36H. WA float overlap fix su Contatti (S11-P2.5) ── */
/*
   Su mobile, il pulsante WA flottante si sovrappone al form / footer.
   Alziamo leggermente il bottom su Contatti per evitare sovrapposizione.
*/
@media (max-width: 767px) {
    body.page-id-155 .rh-wa-float {
        bottom: 20px;
        left: 16px;
    }
    /* Riduci label su mobile per non uscire dallo schermo */
    .rh-wa-float__label {
        display: none;
    }
}

/* ── 36J. H1 duplicato Il Territorio (S15-H1-territorio) ── */
/*
   Il Territorio (8863) usa template con .rh_banner gia' nascosto (Section 23J).
   L'entry-header con sfondo gold rimaneva visibile.
   Estende la regola Section 32 gia' presente.
   Nota: 8863 gia' in Section 32 — questa e' una ridondanza sicura.
*/
.page-id-8863 .entry-header,
.page-id-8863 .rh_page__banner,
.page-id-8863 .rh_banner {
    display: none !important;
}

/* =============================================
   SECTION 37: L'Agenzia (8717) — CTA block
   v2.8.67 — 2026-04-24
   Sfondo villa aerea + overlay navy gradient
   + testi reali in sostituzione demo RealHomes.
   JS injection in functions.php §v2.8.67.
   ============================================= */

/* ── 37A. Background image ── */
body.page-id-8717 .elementor-element-rmi-ag-cta {
    background-image: url('/wp-content/uploads/villa-tenuta-italiana-aerea-1.webp') !important;
    background-size: cover !important;
    background-position: center 40% !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    overflow: hidden !important;
}

/* ── 37B. Overlay navy gradient ── */
body.page-id-8717 .elementor-element-rmi-ag-cta::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        135deg,
        rgba(22, 51, 88, 0.85) 0%,
        rgba(10, 25, 47, 0.78) 100%
    ) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* ── 37C. Contenuto sopra overlay ── */
body.page-id-8717 .elementor-element-rmi-ag-cta .elementor-container,
body.page-id-8717 .elementor-element-rmi-ag-cta .elementor-row,
body.page-id-8717 .elementor-element-rmi-ag-cta .elementor-column,
body.page-id-8717 .elementor-element-rmi-ag-cta .elementor-widget-wrap {
    position: relative !important;
    z-index: 2 !important;
}

/* ── 37D. Label soprattitolo ── */
body.page-id-8717 .elementor-element-rmi-ag-cta .rh_cta__title {
    color: var(--rmi-gold, #c4943e) !important;
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

/* ── 37E. Testo principale ── */
body.page-id-8717 .elementor-element-rmi-ag-cta .rh_cta__quote {
    color: #ffffff !important;
    font-size: clamp(20px, 2.8vw, 30px) !important;
    line-height: 1.4 !important;
    font-style: normal !important;
    font-weight: 400 !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* ── 37F. Bottone CTA Contatti ── */
body.page-id-8717 .rmi-cta-btn {
    display: inline-block !important;
    margin-top: 24px !important;
    padding: 14px 36px !important;
    background: var(--rmi-gold, #c4943e) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 3px !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
}
body.page-id-8717 .rmi-cta-btn:hover {
    background: var(--rmi-gold-dark, #b0832f) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

/* ── 37G. Sezione citazione separata (rmi-ag-quote) ── */
/* H3 Elementor ha colore quasi-nero (#1a2332) su sfondo navy: invisibile.
   Fix: colore bianco. Aggiunto: 2026-04-24 (S21). */
body.page-id-8717 .elementor-element-rmi-ag-quote h3.elementor-heading-title {
    color: #ffffff !important;
}

/* ============================================================================
   Section 38 — Ricerca Immobili (page-id-135): banner hero full-width
   ----------------------------------------------------------------------------
   RealHomes rende il banner come flex row a due colonne:
     .rh_banner__cover (blu, ~47% sinistra) + .rh_banner__wrap (testo, ~53% destra)
   Fix: cover diventa overlay assoluto a tutta larghezza (navy RMI),
   wrap prende larghezza piena e allinea il testo a sinistra.
   Aggiunto: 2026-04-24 (S21).
   ============================================================================ */
body.page-id-135 .rh_banner.rh_banner__image {
    position: relative !important;
}

/* 38A. Overlay navy full-width */
body.page-id-135 .rh_banner__cover {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    background: rgba(22, 51, 88, 0.82) !important;
    opacity: 1 !important;
    z-index: 1 !important;
    flex: none !important;
}

/* 38B. Wrap testo: piena larghezza, contenuto partente dall'alto.
   padding-top: 100px per spingere titolo e form sotto il nav assoluto (~80px)
   + admin bar (32px) in sessione autenticata. */
body.page-id-135 .rh_banner__wrap {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 100px 80px 20px !important;
}

/* 38C. Titolo hero: bianco, centrato */
body.page-id-135 .rh_banner__title {
    color: #ffffff !important;
    text-align: center !important;
    width: 100% !important;
}

/* ── 38D. Form di ricerca custom nel banner (rmi-custom-search) ── */
/* Form HTML nativo (native <select>, nessun Bootstrap Select/jQuery).
   Iniettato via JS nel .rh_banner__wrap (page 135). v2.8.76, S21. */
.rmi-custom-search {
    margin-top: 24px;
    width: 100%;
    max-width: 860px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 6px;
    padding: 16px 20px 20px;
    box-sizing: border-box;
}

/* Righe campi */
.rmi-cs-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.rmi-cs-row:last-child {
    margin-bottom: 0;
}
.rmi-cs-row--btn {
    justify-content: flex-end;
}

/* Singolo campo */
.rmi-cs-field {
    flex: 1 1 160px;
    min-width: 130px;
}
.rmi-cs-field select,
.rmi-cs-field input[type="number"] {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
}
.rmi-cs-field select:focus,
.rmi-cs-field input[type="number"]:focus {
    outline: 2px solid var(--rmi-gold, #c4943e);
    border-color: var(--rmi-gold, #c4943e);
}

/* Bottone Cerca */
.rmi-cs-btn {
    height: 42px;
    padding: 0 28px;
    background: var(--rmi-gold, #c4943e);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}
.rmi-cs-btn:hover {
    background: #b0832f;
}

/* Mobile: stack verticale */
@media (max-width: 600px) {
    .rmi-custom-search {
        padding: 12px;
        margin-top: 16px;
    }
    .rmi-cs-field {
        flex: 1 1 100%;
    }
    .rmi-cs-row--btn {
        justify-content: stretch;
    }
    .rmi-cs-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
   SECTION 38: HOMEPAGE — DISATTIVA FORM DI RICERCA IMMOBILI
   v2.8.85 — 2026-06-04
   Nasconde la sezione Elementor dedicata al search form
   (rhea-search-form-widget, top-section bf555f9) solo in homepage
   (page-id-105), su richiesta di Valerio. La sezione contiene solo il
   form, quindi display:none non lascia spazi vuoti nel layout.
   =================================================================== */
.page-id-105 .elementor-element-bf555f9 {
    display: none !important;
}

/* ===================================================================
   SECTION 39: HOMEPAGE — DISATTIVA SEZIONE "I NOSTRI CONSULENTI"
   v2.8.86 — 2026-06-04
   Nasconde la sezione Elementor "I Nostri Consulenti" (top-section
   1f46944: titolo + griglia agenti + CTA) solo in homepage
   (page-id-105), su richiesta di Valerio. Sezione dedicata, quindi
   display:none non lascia spazi vuoti nel layout.
   =================================================================== */
.page-id-105 .elementor-element-1f46944 {
    display: none !important;
}

/* ===================================================================
   SECTION 40: HOMEPAGE — DISATTIVA PULSANTE "SFOGLIA IMMOBILI"
   v2.8.87 — 2026-06-04
   Nasconde solo il secondo pulsante ("Sfoglia Immobili", href /property/)
   dentro la CTA "Compra o Vendi" (widget ere-cta-widget 7eed85d) in
   homepage (page-id-105), su richiesta di Valerio. Il primo pulsante
   "Parla con un consulente" resta visibile.
   =================================================================== */
.page-id-105 .elementor-element-7eed85d .cta_elementor_second_button {
    display: none !important;
}

/* ===================================================================
   SECTION 41: HOMEPAGE — DISATTIVA PULSANTE "VEDI GLI IMMOBILI"
   v2.8.88 — 2026-06-04
   Nasconde solo il secondo pulsante ("Vedi gli Immobili", href /property/)
   dentro la CTA "Il Territorio" (widget ere-cta-widget rmi-territorio-cta)
   in homepage (page-id-105), su richiesta di Valerio. Il primo pulsante
   "Scopri il Territorio" resta visibile.
   =================================================================== */
.page-id-105 .elementor-element-rmi-territorio-cta .cta_elementor_second_button {
    display: none !important;
}

/* ===================================================================
   SECTION 42: HOMEPAGE — DISATTIVA SEZIONE "I NOSTRI PARTNER"
   v2.8.89 — 2026-06-04
   Nasconde la sezione Elementor "I Nostri Partner" (top-section
   21db2ac: titolo + loghi partner) solo in homepage (page-id-105),
   su richiesta di Valerio. Sezione dedicata, display:none non lascia
   spazi vuoti nel layout.
   =================================================================== */
.page-id-105 .elementor-element-21db2ac {
    display: none !important;
}

/* ===================================================================
   SECTION 43: HOMEPAGE — DISATTIVA SEZIONE "DAI NOSTRI CLIENTI"
   v2.8.90 — 2026-06-04
   Il blocco testimonianze e' composto da DUE top-section Elementor
   adiacenti: il titolo "Dai Nostri Clienti" (b6396fe) e la giostra
   testimonianze (6a5c471). Le nascondo entrambe solo in homepage
   (page-id-105), su richiesta di Valerio.
   =================================================================== */
.page-id-105 .elementor-element-b6396fe,
.page-id-105 .elementor-element-6a5c471 {
    display: none !important;
}

/* ===================================================================
   SECTION 44: HOMEPAGE — TITOLO MODULO CONTATTI BIANCO E PIU' GRANDE
   v2.8.91 — 2026-06-04
   Titolo "Compila il modulo e raccontaci di cosa hai bisogno"
   (heading 704992e, sezione 4dac6eff). Elementor lo dichiara bianco
   ma il <p> annidato eredita il nero da altra regola: forzo il bianco
   sul testo reale e porto il corpo da 34px a 44px desktop (30px mobile),
   su richiesta di Valerio.
   =================================================================== */
.page-id-105 .elementor-element-704992e .elementor-heading-title,
.page-id-105 .elementor-element-704992e .elementor-heading-title p {
    color: #ffffff !important;
    font-size: 44px !important;
    line-height: 1.2 !important;
}
@media (max-width: 767px) {
    .page-id-105 .elementor-element-704992e .elementor-heading-title,
    .page-id-105 .elementor-element-704992e .elementor-heading-title p {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }
}

/* ===================================================================
   SECTION 45: MENU STICKY — COLORE NAVY UGUALE ALL'HEADER MOBILE
   v2.8.92 — 2026-06-04
   Lo sticky header desktop usava la skin "dark" del tema
   (rgb(48,48,48) grigio). Lo allineo al navy dell'header mobile
   (var --rmi-header-bg = rgba(22,44,82,0.95)), su richiesta di Valerio.
   Globale (lo sticky compare su tutte le pagine). Testo/icone restano
   bianchi, leggibili sul navy.
   =================================================================== */
.rh_mod_sticky_header,
.rh_mod_sticky_header.sticky_header_dark,
.rh_mod_sticky_header.sticked {
    background: rgba(22, 44, 82, 0.95) !important;
    background-color: rgba(22, 44, 82, 0.95) !important;
}

/* ===================================================================
   SECTION 46: HERO — OMBRA MARCATA SU TITOLO E SOTTOTITOLO
   v2.8.93 — 2026-06-04 (rinforzata v2.9.2 — 2026-06-09)
   Dopo l'alleggerimento dell'overlay (25%), titolo H1 (acd19ca) e
   sottotitolo text-editor (466b7ac) della hero ricevono un'ombra
   testo marcata per leggibilita' sulle zone chiare dell'immagine.
   Su richiesta di Valerio. Scoped agli id hero (solo homepage).
   v2.9.2: overlay ulteriormente abbassato al 10% (nativo Elementor),
   ombra rinforzata (terzo livello alone) per compensare la maggiore
   luminosita' delle slide e tenere il testo leggibile.
   =================================================================== */
.elementor-element-acd19ca .elementor-heading-title,
.elementor-element-466b7ac,
.elementor-element-466b7ac p {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 4px 22px rgba(0, 0, 0, 0.75), 0 0 42px rgba(0, 0, 0, 0.45) !important;
}

/* ===================================================================
   SECTION 47: FOOTER — COPYRIGHT E DESIGNED-BY SU RIGHE CENTRATE
   v2.8.94 — 2026-06-04
   La riga legale (Privacy | Cookie) e' gia' centrata sopra. Qui faccio
   impilare in colonna centrata copyright e "Designed by" (prima
   affiancati nella riga flex .rh_footer__bottom_wrap, vedi 15B), per
   ottenere 3 righe centrate nel footer. Su richiesta di Valerio.
   =================================================================== */
.rh_footer .rh_footer__bottom_wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
.rh_footer .rh_footer__bottom_wrap .copyrights,
.rh_footer .rh_footer__bottom_wrap .designed-by {
    text-align: center !important;
    width: 100% !important;
}

/* ===================================================================
   SECTION 48: FOOTER — SFONDO NAVY UGUALE AL MENU STICKY
   v2.8.95 — 2026-06-04
   Il footer usava il blu medio rgb(0,84,165) del tema. Lo allineo al
   navy dello sticky header (rgba(22,44,82,0.95), stesso di Section 45),
   su richiesta di Valerio. Specificita' body .rh_footer per battere la
   regola del tema. Testo/icone restano bianchi, leggibili sul navy.
   =================================================================== */
body .rh_footer,
body footer.rh_footer {
    background: rgba(22, 44, 82, 0.95) !important;
    background-color: rgba(22, 44, 82, 0.95) !important;
}

/* ===================================================================
   SECTION 49: HEADER — ICONE SOCIAL PIU' COMPATTE
   v2.8.96 — 2026-06-04
   Cluster .rmi-hsocial (FB/IG/WhatsApp, solo desktop, nascosto <900px).
   Stringo gap 14px->6px e box icona 44px->28px per renderle compatte,
   su richiesta di Valerio. Icona resta 15px, leggibile.
   =================================================================== */
.rmi-hsocial {
    gap: 6px !important;
}
.rmi-hsocial a {
    min-width: 28px !important;
    min-height: 28px !important;
}

/* ===================================================================
   SECTION 50: HEADER — VOCI MENU PIU' COMPATTE (aria per le icone)
   v2.8.98 — 2026-06-04
   Lo sticky menu aveva 35px di margine destro per voce (troppo largo);
   lo porto a 16px. Il menu long-screen passa da padding 11px a 8px per
   voce. Cosi' si libera spazio a destra per il cluster social, su
   richiesta di Valerio. Non tocco font ne' altezza header.
   =================================================================== */
.rh_sticky_header_menu ul.rh_menu__main > li {
    margin-right: 16px !important;
}
.rh_long_screen_header_temp ul.rh_menu__main > li > a {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* ===================================================================
   SECTION 51: HEADER — STACCO TRA MENU E ICONE SOCIAL
   v2.8.99 — 2026-06-04
   Dopo aver compattato le voci (Section 50), il cluster .rmi-hsocial
   restava attaccato all'ultima voce ("Contatti"). Aggiungo margine
   sinistro al cluster per dare aria tra menu e icone, su richiesta di
   Valerio. Vale per entrambi gli header (sticky e long-screen).
   =================================================================== */
.rmi-hsocial {
    margin-left: 28px !important;
}

/* ===================================================================
   SECTION 52: HOMEPAGE — PULSANTE "SCOPRI IL TERRITORIO" STATO HOVER
   v2.9.1 — 2026-06-09
   Il pulsante "Scopri il Territorio" (cta_elementor_first_button nella
   CTA Il Territorio, rmi-territorio-cta) non aveva variazione visiva al
   passaggio del mouse: navy #1A2332 fisso, poco accessibile. Aggiungo
   uno stato hover/focus che schiarisce lo sfondo, alza leggermente il
   pulsante e aggiunge un'ombra, per dare feedback chiaro. La transizione
   0.2s ease-in-out e' gia' nativa sul pulsante. focus-visible incluso
   per accessibilita' da tastiera. Su richiesta di Valerio.
   =================================================================== */
.page-id-105 .elementor-element-rmi-territorio-cta .cta_elementor_first_button:hover,
.page-id-105 .elementor-element-rmi-territorio-cta .cta_elementor_first_button:focus-visible {
    background-color: #2d4a7a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 35, 50, 0.35) !important;
}

/* ===================================================================
   SECTION 53: RICERCA IMMOBILI — NASCONDI MAPPA SOLO SU MOBILE
   v2.9.3 — 2026-06-09
   La mappa di ricerca (.rh_map__search, figlia diretta di .rh_wrap)
   viene nascosta solo su mobile (<=767px) per alleggerire la pagina su
   schermi piccoli. Su desktop e tablet resta visibile. Su richiesta di
   Valerio.
   =================================================================== */
@media (max-width: 767px) {
    .rh_map__search {
        display: none !important;
    }
}

/* ===================================================================
   SECTION 54: RICERCA IMMOBILI — STACCO TITOLO BANNER DALL'HEADER (DESKTOP)
   v2.9.4 — 2026-06-09 (breakpoint corretto v2.9.9 — 2026-06-09)
   L'header e' position:absolute e galleggia sopra il banner senza
   spingerlo giu', quindi il titolo "Trova la tua casa ideale"
   (.rh_banner__title) risulta troppo attaccato alla barra menu solo
   quando c'e' il menu disteso (desktop vero).
   v2.9.9: il breakpoint era >=768px e prendeva anche i tablet, dove pero'
   il menu e' gia' a hamburger e non serve lo stacco: spuntava aria sopra
   il titolo. Alzato a >=1025px (solo desktop con menu disteso).
   =================================================================== */
@media (min-width: 1025px) {
    .page-id-135 .rh_banner__title {
        padding-top: 70px !important;
    }
}

/* ===================================================================
   SECTION 55: RICERCA IMMOBILI — ARIA SOTTO LA CARD RICERCA (MOBILE+TABLET)
   v2.9.5..2.9.8 — 2026-06-09 (riscritta pulita v2.9.9 — 2026-06-09)
   La card di ricerca arriva troppo attaccata al contenitore pagina sotto.
   Storia: il banner ha height:560px FISSA + overflow:hidden, quindi
   padding interni e margini della sezione successiva non creavano aria.
   v2.9.9 (versione definitiva): due mosse coordinate.
   1) Lascio crescere banner e wrap col contenuto (height:auto) togliendo
      il clip, cosi' la card non e' piu' vincolata all'altezza fissa.
   2) L'aria la metto come margin-bottom SULLA CARD (.rmi-custom-search):
      e' inequivocabile, finisce sempre subito sotto la card, non sopra il
      titolo (il padding-bottom sul banner, col flex align-items:flex-end,
      finiva in posizioni controintuitive).
   Esteso a <=1024px (telefono + tablet), perche' su tablet (>=768) il
   problema c'era uguale. Scoped pagina ricerca (page-id-135). Su richiesta
   di Valerio.
   =================================================================== */
@media (max-width: 1024px) {
    /* Specificita' html body... per battere la regola inline del tema
       "body.page-id-135 .rh_banner.rh_banner__image { min-height:560px !important }"
       che inchiodava il banner e faceva sbordare la card sotto. */
    /* display:block toglie il centraggio flex che faceva traboccare la
       card (su schermi piu' corti il pulsante Cerca finiva sopra il blocco
       sotto). Cosi' banner e wrap diventano contenitori normali che
       avvolgono sempre titolo + card, e il padding-bottom da' aria pulita.
       height/min-height sbloccano la regola inline del tema (min-height
       560 !important). Verificato via render headless a 390/414/430px. */
    html body.page-id-135 .rh_banner.rh_banner__image {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-bottom: 48px !important;
    }
    .page-id-135 .rh_banner .rh_banner__wrap {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 40px !important;
    }
    /* Il box del tema .rh_banner non si lascia portare ad altezza auto
       (resta a quota fissa), ma il wrap cresce e contiene la card. Per
       evitare che la card (piu' alta su schermi stretti) si sovrapponga al
       blocco annunci, distanzio la sezione che segue. Valore dimensionato
       via render headless a 360/390/414/430 perche' non si sovrapponga mai
       e l'aria resti coerente. */
    .page-id-135 .rh_map__search + .rh_section {
        margin-top: 80px !important;
    }
}

/* ===================================================================
   SECTION 56: CARD IMMOBILI — RIMUOVI META "POSTO AUTO"
   v2.10.5 — 2026-06-09
   Le card di ricerca mostravano una meta extra "Posto auto" (blocco
   .rh_prop_card__meta.rh-extra-meta con icona fas fa-car). Su richiesta
   di Valerio la nascondo. Uso :has(.fa-car) per colpire solo il blocco
   con l'icona auto, indipendentemente dalla classe extra-meta.
   =================================================================== */
.rh_prop_card__meta:has(> .rh_meta_icon_wrapper i.fa-car),
.rh_prop_card__meta:has(i.fa-car),
.rh_prop_card__meta.rh-extra-meta {
    display: none !important;
}

/* ===================================================================
   SECTION 57: PULSANTE FLOTTANTE CHIAMATA (sopra il WhatsApp)
   v2.10.6 — 2026-06-09
   Gemello del float WhatsApp (Section ~rh-wa-float) ma per chiamata
   diretta al numero fisso (tel:). Cerchio oro CTA #c4943e, icona
   cornetta, posizionato SOPRA il WhatsApp: bottom 28 + btn 58 + gap 14.
   Stesso comportamento label-on-hover. Su richiesta di Valerio.
   =================================================================== */
.rh-call-float {
    position: fixed;
    bottom: 100px;
    left: 28px;
    z-index: 9998;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    cursor: pointer;
}
a.rh-call-float,
a.rh-call-float:hover,
a.rh-call-float:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}
.rh-call-float__btn {
    width: 58px;
    height: 58px;
    background: #c4943e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(196,148,62,0.45), 0 2px 6px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    animation: rh-call-pulse 2.8s ease-in-out infinite;
}
.rh-call-float__btn i {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}
.rh-call-float:hover .rh-call-float__btn {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(196,148,62,0.55), 0 3px 10px rgba(0,0,0,0.22);
    animation: none;
}
.rh-call-float__label {
    background: #fff;
    color: #1a2332;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.14);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
.rh-call-float:hover .rh-call-float__label {
    opacity: 1;
    transform: translateX(0);
}
@keyframes rh-call-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(196,148,62,0.45), 0 2px 6px rgba(0,0,0,0.18); }
    50%       { box-shadow: 0 4px 24px rgba(196,148,62,0.65), 0 0 0 8px rgba(196,148,62,0.12); }
}

/* ===================================================================
   SECTION 58: SCHEDA IMMOBILE — DISATTIVA BANNER IN CIMA (DESKTOP+MOBILE)
   v2.10.7 — 2026-06-09
   Sulle schede immobile (body.single-property) il banner immagine in
   cima (.rh_banner.rh_banner__image, con overlay blu e titolo) va
   rimosso completamente su desktop e mobile, su richiesta di Valerio.
   Il titolo non si perde: e' presente anche nel corpo come
   h1.rh_page__title. Scoped a single-property per non toccare la pagina
   ricerca (page-template-properties-search) che usa lo stesso .rh_banner.
   =================================================================== */
body.single-property .rh_banner,
body.single-property .rh_banner__image {
    display: none !important;
}

/* ===================================================================
   SECTION 59: SCHEDA IMMOBILE — ICONA CONDIVISIONE STILE APPLE
   v2.10.9 — 2026-06-09 (sostituzione SVG via JS, CSS solo sizing)
   L'icona a nodi (#social-share > svg) viene sostituita con l'icona
   Apple/iOS (quadrato + freccia su) tramite JS in functions.php
   (l'approccio ::before/mask non renderizzava nel contesto del plugin
   share-this). Qui solo la dimensione e l'allineamento del nuovo SVG.
   Su richiesta di Valerio.
   =================================================================== */
#social-share svg {
    width: 23px !important;
    height: 24px !important;
    vertical-align: middle;
}

/* ===================================================================
   SECTION 60: SCHEDA IMMOBILE — RIMUOVI "INFORMAZIONI AGENZIA" (COMMON NOTE)
   v2.10.10 — 2026-06-09
   "Informazioni agenzia" e' la Common Note globale di RealHomes
   (.rh_property__common_note), stampata su ogni scheda immobile, con
   HTML mostrato come testo. La nascondo su tutte le schede immobile
   (body.single-property) su richiesta di Valerio. Rimozione pulita alla
   fonte = svuotare la Common Note in Theme Options (alternativa proposta).
   =================================================================== */
body.single-property .rh_property__common_note {
    display: none !important;
}

/* ===================================================================
   SECTION 61: SCHEDA IMMOBILE — STACCO TITOLO DALL'HEADER (DESKTOP)
   v2.10.12 — 2026-06-09
   Dopo la rimozione del banner (Section 58), il titolo della scheda
   (.rh_page__head.rh_page__property > h1.rh_page__title) finiva sotto la
   navbar fissa (~96px). Aggiungo spazio superiore su desktop (>=1025px,
   dove c'e' il menu disteso) cosi' il titolo non e' piu' coperto.
   Scoped single-property. Su richiesta di Valerio.
   =================================================================== */
@media (min-width: 1025px) {
    body.single-property .rh_page__head.rh_page__property {
        padding-top: 64px !important;
    }
}

/* ===================================================================
   SECTION 62: SCHEDA IMMOBILE — DISABILITA BARRA STICKY AGENTE (MOBILE)
   v2.10.13 — 2026-06-09
   Sulla scheda immobile in mobile, scrollando, compariva in basso una
   barra fissa con il badge agente (es. "Valentina Rocchi") e i pulsanti
   di contatto (#property-agent-contact-methods-wrapper). Va disabilitata
   su richiesta di Valerio. Scoped mobile/tablet (<=1024px).
   =================================================================== */
@media (max-width: 1024px) {
    #property-agent-contact-methods-wrapper {
        display: none !important;
    }
}

/* ===================================================================
   SECTION 63: TOOLTIP — DA ARANCIONE A BLU NAVY
   v2.10.14 — 2026-06-09
   I tooltip [data-tooltip] (es. "Condividi" sulla toolbar immobile)
   avevano sfondo arancione #EA723D (accent tema, da inline style). Li
   porto al navy del brand #162C52, bolla + freccia in tutte le direzioni.
   Su richiesta di Valerio.
   =================================================================== */
[data-tooltip]::after {
    background: #162C52 !important;
}
[data-tooltip]::before,
[data-tooltip]:not([flow])::before,
[data-tooltip][flow^="up"]::before {
    border-top-color: #162C52 !important;
}
[data-tooltip][flow^="down"]::before {
    border-bottom-color: #162C52 !important;
}
[data-tooltip][flow^="left"]::before {
    border-left-color: #162C52 !important;
}
[data-tooltip][flow^="right"]::before {
    border-right-color: #162C52 !important;
}

/* ===================================================================
   SECTION 64: SCHEDA IMMOBILE — DISABILITA WIDGET AGENTE SIDEBAR (DESKTOP)
   v2.10.16 — 2026-06-09
   Nella colonna destra della scheda immobile (aside.rh_sidebar) il widget
   agente (.widget.rh_property_agent, es. "Agente Valentina Rocchi" +
   contatti) va disabilitato su desktop, su richiesta di Valerio.
   Scoped single-property + desktop (>=1025px).
   =================================================================== */
@media (min-width: 1025px) {
    body.single-property .rh_sidebar .rh_property_agent,
    body.single-property .widget.rh_property_agent {
        display: none !important;
    }
}

/* ===================================================================
   SECTION 65: COME LAVORIAMO (7892) — HERO: FIX DOPPIA IMMAGINE MOBILE,
   NO OVERLAY, TITOLO GRANDE + OMBRA COME HOMEPAGE
   v2.10.17 — 2026-06-09
   Problemi: (1) la sezione hero ha sia lo slideshow di sfondo Elementor
   sia la ph-slider custom; su mobile la ph-slider e' limitata a 60vh ma
   la sezione e' piu' alta, quindi sotto spunta lo slideshow Elementor
   (doppia immagine). (2) Restava un overlay gradiente .ph-slider::after.
   (3) Il titolo va grande e con l'ombra dell'hero homepage.
   Su richiesta di Valerio.
   =================================================================== */
/* (2) Niente overlay sull'hero di questa pagina */
body.page-id-7892 .elementor-element-92eeb1f .ph-slider::after {
    display: none !important;
}
/* (1) Mobile: una sola immagine — nascondo lo slideshow Elementor
   ridondante e faccio riempire la ph-slider all'intera sezione */
@media (max-width: 767px) {
    body.page-id-7892 .elementor-element-92eeb1f .elementor-background-slideshow {
        display: none !important;
    }
    body.page-id-7892 .elementor-element-92eeb1f .ph-slider,
    body.page-id-7892 .elementor-element-92eeb1f .ph-slide {
        max-height: none !important;
        height: 100% !important;
    }
    /* L'immagine deve riempire l'intera sezione (toglie il cap 60vh
       generico), cosi' lo slider e' a tutta pagina e il titolo ci si
       sovrappone come in homepage. */
    body.page-id-7892 .elementor-element-92eeb1f .ph-slide img {
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
    }
}
/* (3) Titolo grande + ombra come homepage (Section 46) */
html body.page-id-7892 .elementor-element-92eeb1f .elementor-widget-heading .elementor-heading-title,
html body.page-id-7892 .elementor-element-92eeb1f .elementor-heading-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 4px 22px rgba(0,0,0,0.75), 0 0 42px rgba(0,0,0,0.45) !important;
}
@media (max-width: 767px) {
    html body.page-id-7892 .elementor-element-92eeb1f .elementor-widget-heading .elementor-heading-title,
    html body.page-id-7892 .elementor-element-92eeb1f .elementor-heading-title {
        font-size: 30px !important;
    }
}

/* ===================================================================
   SECTION 66: PULSANTE CHIAMATA — ALLINEA DIMENSIONE MOBILE AL WHATSAPP
   v2.10.20 — 2026-06-09
   Su mobile il WhatsApp si riduce a 52px (Section ~24 media query) ma il
   call float restava 58px: dimensioni diverse. Allineo il call a 52px e
   lo riposiziono sopra il WhatsApp (bottom 20 + 52 + 14). Su richiesta di
   Valerio.
   =================================================================== */
@media (max-width: 768px) {
    .rh-call-float {
        bottom: 86px;
        left: 20px;
    }
    .rh-call-float__btn {
        width: 52px;
        height: 52px;
    }
    .rh-call-float__btn i { font-size: 24px; }
}

/* ===================================================================
   SECTION 67: COME LAVORIAMO — 3a RIGA SERVIZI (Rendering + Home Staging)
   v2.10.21 — 2026-06-09
   Riportate le righe servizi a 3 card; le 2 nuove card vanno in una terza
   riga centrata (rmisvc3) con lo stesso stile card delle altre + foto.
   =================================================================== */
/* stile card uguale alle righe 4643d4f/995d1c0 */
body.page-id-7892 .elementor-element-rmisvc3 .elementor-column { padding: 12px !important; }
body.page-id-7892 .elementor-element-rmisvc3 .elementor-icon-box-wrapper {
    background: #fff !important; border-radius: 12px !important; overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09) !important; flex-direction: column !important;
    display: flex !important; transition: box-shadow .25s ease, transform .25s ease !important;
}
body.page-id-7892 .elementor-element-rmisvc3 .elementor-icon-box-wrapper:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important; transform: translateY(-3px) !important;
}
body.page-id-7892 .elementor-element-rmisvc3 .elementor-icon-box-icon { display: none !important; }
body.page-id-7892 .elementor-element-rmisvc3 .elementor-icon-box-content { padding: 20px 22px 26px !important; flex: 1 !important; }
body.page-id-7892 .elementor-element-rmisvc3 .elementor-icon-box-title { font-size: 1.08rem !important; margin-bottom: 10px !important; color: #0a192f !important; }
body.page-id-7892 .elementor-element-rmisvc3 .elementor-icon-box-description { font-size: .92rem !important; line-height: 1.65 !important; color: #4a5568 !important; margin: 0 !important; }
/* centra le 2 card e larghezza coerente (33% come le altre) */
body.page-id-7892 .elementor-element-rmisvc3 > .elementor-container { justify-content: center !important; }
body.page-id-7892 .elementor-element-rmisvc3 .elementor-column { width: 33.333% !important; max-width: 33.333% !important; }
/* foto card (::before) — Rendering + Home Staging */
body.page-id-7892 .elementor-element-8315346 .elementor-icon-box-wrapper::before,
body.page-id-7892 .elementor-element-0281d7f .elementor-icon-box-wrapper::before {
    content: ''; display: block; width: 100%; height: 220px; background-size: cover; background-position: center; flex-shrink: 0;
}
body.page-id-7892 .elementor-element-8315346 .elementor-icon-box-wrapper::before { background-image: url('/wp-content/uploads/serv-rendering.webp'); }
body.page-id-7892 .elementor-element-0281d7f .elementor-icon-box-wrapper::before { background-image: url('/wp-content/uploads/serv-homestaging.webp'); }
@media (max-width: 767px) {
    body.page-id-7892 .elementor-element-rmisvc3 .elementor-column { width: 100% !important; max-width: 100% !important; }
    body.page-id-7892 .elementor-element-8315346 .elementor-icon-box-wrapper::before,
    body.page-id-7892 .elementor-element-0281d7f .elementor-icon-box-wrapper::before { height: 180px; }
}

/* SECTION 67b — 3a card servizi: Marketing Strategico Immobiliare (foto) */
body.page-id-7892 .elementor-element-rmisvcmkt .elementor-icon-box-wrapper::before {
    content: ''; display: block; width: 100%; height: 220px; background-size: cover; background-position: center; flex-shrink: 0;
    background-image: url('/wp-content/uploads/serv-marketing.webp');
}
@media (max-width: 767px) {
    body.page-id-7892 .elementor-element-rmisvcmkt .elementor-icon-box-wrapper::before { height: 180px; }
}

/* ===================================================================
   SECTION 68: COME LAVORIAMO — OMBRA TESTO CTA "Sei curioso?" (6e9138d)
   v2.10.26 — 2026-06-09
   Tolto l'overlay sull'immagine, il testo bianco era poco leggibile.
   Aggiungo ombra a 3 livelli (come hero homepage) su titolo e paragrafo,
   cosi' l'immagine resta pulita ma il testo resta leggibile. Su richiesta
   di Valerio.
   =================================================================== */
body.page-id-7892 .elementor-element-6e9138d .elementor-heading-title,
body.page-id-7892 .elementor-element-6e9138d .elementor-widget-text-editor,
body.page-id-7892 .elementor-element-6e9138d .elementor-widget-text-editor p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 4px 22px rgba(0,0,0,0.8), 0 0 46px rgba(0,0,0,0.55) !important;
}

/* ===================================================================
   SECTION 69: IL TERRITORIO (8863) — CONTENITORE BLOCCO A FULL-WIDTH
   v2.10.28 — 2026-06-09
   Il blocco custom .territorio-page (sezioni full-bleed + colonna lettura
   interna .terr-container 1100px) era dentro un contenitore Elementor
   "boxed" da 920px, perdendo il full-width su desktop. Forzo il
   contenitore (bd9ea23) e il suo inner a 100%: le sezioni scure tornano
   edge-to-edge e la colonna di lettura interna resta centrata.
   Mobile-first: gutter .terr-container ridotto a 20px su schermi piccoli.
   Su richiesta di Valerio.
   =================================================================== */
/* La larghezza standard del sito e .e-con-boxed > .e-con-inner max-width 920px
   (regola globale pagine interne). Sul Territorio il blocco e full-bleed:
   tolgo il cap 920 ai contenitori boxed di questa pagina. La colonna di
   lettura resta gestita da .terr-container (1100px centrato). */
body.page-id-8863.page .e-con-boxed.elementor-element-4f08151b > .e-con-inner {
    max-width: 100% !important;
}
@media (max-width: 767px) {
    .terr-container { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ===================================================================
   SECTION 70: IL TERRITORIO (8863) — FIX COLORI/STRISCIA
   v2.10.31 — 2026-06-09
   1) Sottotitolo banner "Roma Nord e Formello..." (.terr-hero__overlay p)
      era scuro sull'immagine -> bianco.
   2) Striscia blu vuota (.terr-zone-banner, navy senza testo) -> rimossa.
   3) Paragrafo sezione "Il Parco di Veio" (.terr-veio p) su navy -> bianco.
   4) Paragrafo CTA "Stai cercando casa..." (.terr-cta p) su navy -> bianco.
   Su richiesta di Valerio.
   =================================================================== */
body.page-id-8863 .terr-hero__overlay p { color: #ffffff !important; }
body.page-id-8863 .terr-zone-banner { display: none !important; }
body.page-id-8863 .terr-veio p { color: #ffffff !important; }
body.page-id-8863 .terr-cta p { color: #ffffff !important; }

/* SECTION 71: Il Territorio — colore icone infrastrutture (oro brand) */
body.page-id-8863 .terr-infra-icon i { color: #c4943e; }

/* ===================================================================
   SECTION 72: IL TERRITORIO (8863)
   1) Rimozione overlay scuro sull'immagine hero. Il gradiente navy
      (Section 23B .terr-hero__overlay background) scuriva la foto.
      Tolto. Testo h1/sottotitolo restano leggibili grazie a un'ombra
      rinforzata.
   2) CTA "Stai cercando casa in questa zona?": rimosso il pulsante
      "Sfoglia gli immobili" (gold) e il break residuo. Resta solo
      WhatsApp. Garanzia visiva lato CSS (gia' rimosso anche dal dato).
   Su richiesta di Valerio.
   =================================================================== */
body.page-id-8863 .terr-hero__overlay { background: none !important; }
body.page-id-8863 .terr-hero__overlay h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.75); }
body.page-id-8863 .terr-hero__overlay p { text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
body.page-id-8863 .terr-cta__btns .terr-btn--gold { display: none !important; }
body.page-id-8863 .terr-cta__btns br { display: none !important; }

/* ===================================================================
   SECTION 73: IL TERRITORIO (8863) — FIX HERO MOBILE
   L'immagine hero e' avvolta in un <p> (wpautop): con height:100%
   si ridimensionava all'aspetto naturale (~208px) invece di riempire
   l'altezza dell'hero su mobile, lasciando una fascia vuota in basso
   e facendo finire il sottotitolo bianco sul vuoto (illeggibile).
   Fix: immagine in position absolute a riempimento pieno dell'hero,
   identica resa su desktop e mobile. Testo overlay resta centrato.
   =================================================================== */
body.page-id-8863 .terr-hero { position: relative; }
body.page-id-8863 .terr-hero p { margin: 0; padding: 0; height: 100%; }
body.page-id-8863 .terr-hero img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 40%;
}
