/*
 Theme Name:   Immobiliare Standalone
 Description:  Tema per siti immobiliari, sviluppato da MF Studio per De Sario Immobiliare. Basato su un design moderno, elegante e responsive, con particolare attenzione alla UX e alla presentazione dei contenuti.
 Author:       MF Studio
 Version:      1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ==========================================================================
   1. TIPOGRAFIA E STILI GLOBALI BASE
   ========================================================================== */
body {
    font-family: var(--wp--preset--font-family--montserrat), sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .re-hero-title {
    font-family: var(--wp--preset--font-family--playfair), serif;
    font-weight: 700;
}

h1, .re-hero-title { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.25rem); }
h4 { font-size: clamp(1.35rem, 2vw + 0.6rem, 1.85rem); }
h5 { font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.45rem); }
h6 { font-size: clamp(0.95rem, 1vw + 0.5rem, 1.15rem); }

a {
    color: var(--wp--preset--color--blue, #003366); 
    text-decoration: none; 
    position: relative; 
    transition: color 0.3s ease-in-out; 
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--wp--preset--color--primary, #AF1920); 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.3s ease; 
}

a:hover {
    color: var(--wp--preset--color--primary, #AF1920); 
}

a:hover::after {
    transform: scaleX(1); 
}

/* ==========================================================================
   2. STRUTTURA & LAYOUT GLOBALE
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.foto-focus-alto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

@media (max-width: 767px) {
    body .protezione-mobile {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   3. HEADER, LOGO E NAVIGAZIONE
   ========================================================================== */
.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#masthead, .site-header {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    z-index: 15 !important; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    background-color: #AF1920 !important; 
    display: flex !important; 
    align-items: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.admin-bar #masthead, 
.admin-bar .site-header { 
    top: 32px !important; 
}
@media screen and (max-width: 782px) { 
    .admin-bar #masthead, 
    .admin-bar .site-header { 
        top: 46px !important; 
    } 
}

body.home #masthead:not(.header-scrolled),
body.home .site-header:not(.header-scrolled) {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px !important;  
    padding-bottom: 10px !important;  
}

#masthead.header-scrolled,
.site-header.header-scrolled {
    padding-top: 6px !important; 
    padding-bottom: 6px !important;
    background-color: #AF1920 !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.25) !important;
}

body:not(.home) #content { 
    padding-top: 60px !important; 
}

.navbar-brand, .site-branding {
    flex-shrink: 1 !important; 
    min-width: 100px !important; 
    margin-right: 15px !important;
    display: flex !important; 
    align-items: center !important; 
    padding: 0 !important;
}

.navbar-brand img, .site-branding img, img.custom-logo {
    width: auto !important;
    height: 52px !important; 
    max-width: 100% !important;
    object-fit: contain !important; 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.header-scrolled .site-branding img, 
.header-scrolled img.custom-logo { 
    height: 42px !important; 
}

.re-custom-toggler {
    border: none !important; 
    padding: 10px !important; 
    background: transparent !important;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    gap: 6px;
    width: 50px; 
    height: 50px; 
    cursor: pointer; 
    flex-shrink: 0 !important;
}

.re-custom-toggler:focus { 
    box-shadow: none !important; 
    outline: none; 
}

.icon-bar { 
    width: 26px; 
    height: 3px; 
    background-color: #ffffff; 
    border-radius: 2px; 
    transition: all 0.3s ease-in-out; 
}

.re-custom-toggler.is-active .top-bar { transform: translateY(9px) rotate(45deg); }
.re-custom-toggler.is-active .middle-bar { opacity: 0; }
.re-custom-toggler.is-active .bottom-bar { transform: translateY(-9px) rotate(-45deg); }

/* Pulizia icone sottomenu nativo e disattivazione linea hover sul 1° livello */
.re-menu > li > a::after,
.re-menu .menu-item-has-children > a::before,
.re-menu .menu-item-has-children > a svg,
.main-navigation ul li.menu-item-has-children > a::after { 
    display: none !important; 
    content: none !important; 
}

@media (max-width: 991px) {
    #masthead .re-native-navbar, #masthead .container { display: flex !important; flex-wrap: nowrap !important; padding: 0 5px !important; gap: 0 !important; justify-content: space-between !important; }
    .site-branding { flex: 0 1 auto !important; min-width: 0 !important; margin-right: 5px !important; }
    .site-branding img, img.custom-logo { max-height: 50px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; }
    .re-custom-toggler { display: flex !important; margin: 0 !important; }

    .main-navigation {
        background-color: #AF1920 !important; position: absolute !important; top: 100%; left: 0; width: 100% !important; z-index: 999;
        display: block !important; max-height: 0; overflow: hidden; padding-bottom: 0; border-top: none;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    }
    .main-navigation.toggled { max-height: 100vh; overflow-y: auto; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,0.1); }

    .re-menu, .re-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
    
    .re-menu .sub-menu { background-color: rgba(0,0,0,0.1) !important; border: none !important; display: block !important; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
    .re-menu li.submenu-open > .sub-menu { max-height: 800px; }

    .re-menu a {
        font-size: 15px !important; font-weight: 500 !important; color: #ffffff !important; padding: 15px 0 15px 20px !important; 
        border-bottom: 1px solid rgba(255,255,255,0.1) !important; width: 100%; display: flex !important; align-items: center !important;
        justify-content: space-between !important; text-decoration: none !important; box-sizing: border-box !important;
    }

    .re-submenu-toggle {
        display: flex !important; align-items: center; justify-content: center; width: 55px !important; height: auto !important; align-self: stretch; 
     cursor: pointer; position: relative !important;
    }
    .re-submenu-toggle::before { content: ''; width: 6px; height: 6px; border-right: 2px solid #ffffff; border-bottom: 2px solid #ffffff; transform: rotate(45deg); transition: transform 0.3s ease; }
    .submenu-open > a > .re-submenu-toggle::before { transform: rotate(-135deg); }
}

@media (min-width: 992px) {
    .re-custom-toggler { display: none !important; }
    #masthead .re-native-navbar, #masthead .re-container { flex-wrap: nowrap !important; justify-content: space-between !important; }
    .main-navigation { flex-basis: auto !important; width: auto !important; justify-content: flex-end !important; display: flex !important; }

    .re-menu { display: flex !important; align-items: center !important; margin: 0; padding: 0; list-style: none; gap: 2px; }
    .re-menu > li { position: relative; display: flex; align-items: center; }
    
    .re-menu a { font-weight: 600; font-size: 14px; text-transform: uppercase; color: #ffffff !important; padding: 10px 15px !important; display: flex !important; align-items: center !important; gap: 6px; white-space: nowrap; text-decoration: none !important; }
    .re-menu a:hover, .re-menu .current-menu-item > a { color: rgba(255, 255, 255, 0.7) !important; }
    
    .re-submenu-toggle {
        display: inline-block !important; width: 5px !important; height: 5px !important; border-right: 2px solid #ffffff !important; border-bottom: 2px solid #ffffff !important; 
        transform: rotate(45deg); margin-left: 6px !important; margin-top: -3px !important; pointer-events: none;
    }

    .re-menu .sub-menu {
        position: absolute; top: 100%; left: 0; background-color: #fff !important; border: 1px solid #eee !important; box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; padding: 0 !important;
        min-width: 220px !important; list-style: none; margin: 0; z-index: 100001 !important;
        display: block !important; visibility: hidden; opacity: 0; transform: translateY(15px); transition: all 0.3s ease-in-out; pointer-events: none;
    }
    .re-menu li:hover > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
    
    .re-menu .sub-menu a { padding: 12px 20px !important; border-bottom: 1px solid #f5f5f5 !important; font-size: 13px !important; text-transform: none !important; justify-content: space-between !important; color: #333 !important; }
    .re-menu .sub-menu li:last-child > a { border-bottom: none !important; }
    .re-menu .sub-menu a:hover { background-color: #f9f9f9 !important; color: #AF1920 !important; }
}

/* ==========================================================================
   4. COMPONENTI UI & ELEMENTI GLOBALI
   ========================================================================== */
.wp-block-button__link {
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center;
    transition: all 0.3s ease-in-out; 
    padding-left: 20px !important;
    padding-right: 20px !important; 
    white-space: nowrap !important;  
}

.wp-block-button__link::after {
    content: '\00BB'; margin-left: 8px; font-size: 1.1em; font-weight: 700; line-height: 1; transition: transform 0.3s ease-in-out;
}

.wp-block-button__link:hover::after { transform: translateX(6px); }

.wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--primary, #AF1920) !important; 
    color: #ffffff !important; 
    border-color: var(--wp--preset--color--primary, #AF1920) !important; 
    text-decoration: none !important;
}

.spacer-gradient { background: var(--gradient-color, linear-gradient(90deg, #ffffff, #eeeeee)); opacity: 1 !important; }

hr.fade-separator {
    border: none !important; height: 25px !important; width: 100vw !important; max-width: 100vw !important;
    position: relative !important; left: 50% !important; transform: translateX(-50%) !important; margin: 0 !important; padding: 0 !important;
}
hr.fade-separator.fade-left { background: linear-gradient(to left, rgba(0,0,0,0.06) 0%, transparent 100%) !important; }
hr.fade-separator.fade-right { background: linear-gradient(to right, rgba(0,0,0,0.06) 0%, transparent 100%) !important; }

hr.wp-block-separator.is-style-default,
hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    width: 100px !important;
    max-width: 100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 992px) {
    .re-floating-badge {
        position: fixed; top: 60px; right: 30px; z-index: 100000 !important;
        background-color: #AF1920 !important; color: #ffffff !important; padding: 12px 20px; text-decoration: none !important; 
        font-family: 'Montserrat', sans-serif !important; font-weight: 700; font-size: 13px; text-transform: uppercase; 
        border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; align-items: center; white-space: nowrap; 
        will-change: transform, background-color, color, top; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
    }
    .re-floating-badge.is-shrunk { top: 48px; transform: scale(0.88); padding: 10px 18px; font-size: 11px; background-color: #ffffff !important; color: #AF1920 !important; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .re-floating-badge:not(.is-shrunk):hover { transform: scale(1.05); background-color: #8e141a !important; }
    .re-floating-badge.is-shrunk:hover { background-color: #AF1920 !important; color: #ffffff !important; }
}

@media (max-width: 991px) {
    .re-floating-badge {
        position: relative !important; top: auto !important; right: auto !important; margin: 0 8px 0 0 !important; white-space: nowrap !important;
        flex: 0 0 auto !important; z-index: 10; box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important; background-color: #ffffff !important; 
        color: var(--wp--preset--color--primary, #AF1920) !important; border: 1px solid #ffffff !important; font-weight: 700 !important;
        text-transform: uppercase !important; border-radius: 50px !important; text-decoration: none !important; display: inline-flex !important;
        align-items: center !important; font-size: clamp(11px, 1vw + 7px, 14px) !important; padding: clamp(6px, 0.5vw + 4px, 10px) clamp(12px, 1vw + 8px, 20px) !important;
        transition: transform 0.25s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease !important;
    }
    .re-floating-badge:hover, .re-floating-badge:active { transform: scale(1.05) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.25) !important; background-color: #f8f9fa !important; }
    .re-floating-badge.is-shrunk { transform: scale(1) !important; }
}

@media (max-width: 420px) {
    .re-floating-badge { font-size: clamp(9px, 1vw + 6px, 11px) !important; padding: 5px 10px !important; line-height: 1.2 !important; }
    .re-floating-badge span { display: inline !important; }
}

/* ==========================================================================
   5. BLOCCHI, SEZIONI E LAYOUT SPECIFICI
   ========================================================================== */
header.re-theme-hero {
    width: 100% !important; position: relative !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; 
    background-size: cover !important; background-position: center center !important; color: #fff; z-index: 10; padding: 120px 0 !important; min-height: 350px !important;
}
body.home header.re-theme-hero { min-height: 500px !important; padding: 180px 0 !important; }
header.re-theme-hero h1.re-hero-title { font-family: 'Playfair Display', serif !important; font-size: clamp(2.2rem, 5vw, 4rem) !important; text-shadow: 0 2px 15px rgba(0,0,0,0.6) !important; margin-bottom: 15px !important; }

.re-card-zoom { overflow: hidden; position: relative; cursor: pointer; }
.re-card-zoom a::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; }
.re-card-zoom .wp-block-cover__image-background { transition: transform 0.5s ease; transform-origin: center center; }
.re-card-zoom:hover .wp-block-cover__image-background { transform: scale(1.1); }
.re-card-zoom:hover h1 a, .re-card-zoom:hover h2 a, .re-card-zoom:hover h3 a { color: #ffffff !important; text-shadow: 0 0 15px rgba(255,255,255,0.6); }

.wp-block-cover.has-parallax { background-attachment: fixed !important; background-position: center center !important; background-size: cover !important; }
@media screen and (max-width: 768px) { .wp-block-cover.has-parallax { background-attachment: scroll !important; } }

.re-overlap-wrapper { position: relative !important; z-index: 10 !important; margin-top: -50px !important; margin-bottom: 40px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important; }
body.home .re-overlap-wrapper { margin-top: -80px !important; }
@media (max-width: 768px) { .re-overlap-wrapper { margin-top: -50px !important; padding: 0 15px; } }

@media screen and (min-width: 992px) { .re-overlap-box { margin-right: -15% !important; margin-top: -10% !important; position: relative; z-index: 10; } }
@media screen and (max-width: 991px) { .re-overlap-box { margin-bottom: -40px !important; margin-left: 15px !important; margin-right: 15px !important; position: relative; z-index: 10; } }
.sezione-sovrapposta { position: relative !important; z-index: 5 !important; }

.re-services-grid, .wp-block-columns.re-services-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; margin: 40px 0 !important; flex-wrap: wrap !important; }
.re-services-grid > .wp-block-column { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: 100% !important; flex-basis: auto !important; }
@media (max-width: 1024px) { .re-services-grid, .wp-block-columns.re-services-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .re-services-grid, .wp-block-columns.re-services-grid { grid-template-columns: 1fr !important; } }

.re-service-box { display: flex !important; flex-direction: row !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 15px !important; padding-top: 20px !important; }
.re-service-box:hover { transform: translateY(-5px) !important; border-color: transparent !important; }
.re-service-box .re-service-icon { flex: 0 0 85px !important; color: var(--wp--preset--color--primary, #AF1920) !important; line-height: 0 !important; margin: 0 !important; }
.re-service-box .re-service-icon svg { width: 100% !important; height: auto !important; fill: currentColor !important; }
.re-service-box .re-service-content, .re-service-box p, .re-service-box h3 { flex: 1 !important; text-align: left !important; margin-left: 0 !important; padding-left: 0 !important; margin-top: 0 !important; }
.re-service-box .re-service-content h3 { font-family: 'Playfair Display', serif !important; font-size: 1.15rem !important; font-weight: 700 !important; margin: 0 0 8px 0 !important; color: #333333; }
.re-service-box .re-service-content p { font-size: 0.9rem !important; line-height: 1.4 !important; margin: 0 !important; color: #666666; border-bottom: none !important; padding-bottom: 0 !important;}

.sezione-elastica { display: flex !important; align-items: stretch !important; }
.sezione-elastica > .wp-block-column:first-child { display: flex !important; flex-direction: column !important; }
.sezione-elastica .wp-block-image, .sezione-elastica .wp-block-image figure { margin: 0 !important; height: 100% !important; display: flex !important; flex: 1 1 auto !important; }
.sezione-elastica .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center top !important; }
@media screen and (max-width: 782px) { .sezione-elastica { display: block !important; } .sezione-elastica .wp-block-image img { height: auto !important; } }

@media (max-width: 767px) { .mobile-text-left { text-align: left !important; } }

/* SFONDI IBRIDI (CAROUSEL) */
.sfondo-split { background-color: #ffffff !important; background-size: 100% 70% !important; background-position: bottom center !important; background-repeat: no-repeat !important; padding: 0px 20px 20px 20px; }
.sfondo-diagonale-sx { background-image: linear-gradient(-135deg, #e6e6e6 0%, #e6e6e6 30%, rgba(230, 230, 230, 0) 90%) !important; }
.sfondo-diagonale-dx { background-image: linear-gradient(335deg, rgba(230, 230, 230, 0) 10%, #e6e6e6 70%, #e6e6e6 100%) !important; }

/* ==========================================================================
   6. CONTATTI, MAPPE & FORM
   ========================================================================== */
@media (min-width: 1200px) {
    .wp-block-columns.re-contact-overlap { position: relative !important; display: flex !important; flex-wrap: nowrap !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:first-child, .wp-block-columns.re-contact-overlap > .wp-block-column:first-child[style*="flex-basis"] { padding-top: 60px !important; padding-left: 5px !important; padding-right: 5px !important; z-index: 5 !important; flex-grow: 0 !important; flex-shrink: 0 !important; flex-basis: 320px !important; max-width: 320px !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:nth-child(2), .wp-block-columns.re-contact-overlap > .wp-block-column:nth-child(2)[style*="flex-basis"] { margin-top: -55px !important; margin-bottom: 10px !important; position: relative; z-index: 10 !important; background: #ffffff !important; margin-left: 0 !important; flex-shrink: 0 !important; flex-grow: 0 !important; flex-basis: calc(75% - 320px) !important; max-width: calc(75% - 320px) !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:last-child { position: absolute !important; top: 0 !important; bottom: 0 !important; right: calc((100vw - 100%) / -2) !important; left: calc(75% - 50px) !important; width: auto !important; padding: 0 !important; margin: 0 !important; z-index: 1 !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:last-child > * { height: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:last-child iframe { height: 100% !important; min-height: 100% !important; width: 100% !important; display: block !important; }
}

@media (max-width: 1199px) {
    .wp-block-columns.re-contact-overlap { margin-top: 0 !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; display: flex !important; flex-direction: column !important; width: 100% !important; max-width: 100% !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column { flex-basis: auto !important; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:first-child { width: fit-content !important; margin-left: auto !important; margin-right: auto !important; padding: 40px 20px 20px 20px !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:first-child .is-layout-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start !important; justify-content: flex-start !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:first-child .is-layout-row > :first-child { flex: 0 0 45px !important; max-width: 45px !important; margin-right: 15px !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:first-child .is-layout-stack { display: flex !important; flex-direction: column !important; align-items: flex-start !important; flex: 1 1 auto !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:first-child p, .wp-block-columns.re-contact-overlap > .wp-block-column:first-child a { text-align: left !important; margin: 0 !important; line-height: 1.4 !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:nth-child(2), .wp-block-columns.re-contact-overlap > .wp-block-column:nth-child(2)[style*="flex-basis"] { width: auto !important; max-width: none !important; margin-left: 10px !important; margin-right: 10px !important; margin-top: 0 !important; margin-bottom: 0 !important; position: relative !important; z-index: 10 !important; background: #ffffff !important; padding: 30px 20px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important; border-radius: 6px !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:nth-child(2) .wp-block-group { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border: none !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:last-child { position: relative !important; top: auto !important; left: auto !important; right: auto !important; padding: 0 !important; z-index: 1 !important; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; margin-top: -30px !important; margin-bottom: 0 !important; }
    .wp-block-columns.re-contact-overlap > .wp-block-column:last-child iframe { height: 360px !important; min-height: 360px !important; width: 100% !important; display: block !important; border: none !important; }
}

@media (min-width: 768px) and (max-width: 1199px) { .wp-block-columns.re-contact-overlap > .wp-block-column:first-child { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 40px 20px !important; } }
@media (max-width: 767px) { .wp-block-columns.re-contact-overlap > .wp-block-column:first-child { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 30px !important; } }

.re-form-grid { display: flex; flex-direction: column; gap: 0px; width: 100%; }
.re-form-row { display: flex; flex-wrap: wrap; gap: 15px; }
.re-form-col-full { flex: 1 1 100%; }
.re-form-col-half { flex: 1 1 calc(50% - 8px); min-width: 200px; }

.re-form-grid input[type="text"], .re-form-grid input[type="email"], .re-form-grid input[type="tel"], .re-form-grid textarea, .re-form-grid select {
    width: 100% !important; padding: 12px 15px !important; border: 1px solid #ddd !important; border-radius: 4px !important; box-sizing: border-box !important; font-family: var(--wp--preset--font-family--montserrat), sans-serif !important;
}

.re-submit-custom {
    background-color: var(--wp--preset--color--primary, #AF1920) !important; color: #ffffff !important; padding: 12px 30px !important; border: none !important; border-radius: 4px !important; font-weight: 700 !important; text-transform: uppercase !important; cursor: pointer !important; transition: 0.3s !important;
}
.re-submit-custom:hover { background-color: #8e141a !important; }

/* STILE UNIFICATO SELECT */
.re-styled-select {
    appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important; background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 15px top 50% !important; background-size: 12px auto !important; padding-right: 40px !important; cursor: pointer !important;
}

.wpcf7 .re-select-custom-wrapper::after, .wpcf7-form .re-select-custom-wrapper::after { display: none !important; content: none !important; }
.wpcf7 select, .wpcf7-form select, select.re-styled-select, .re-form-grid select, .re-cf7-adaptive-grid select {
    appearance: auto !important; -webkit-appearance: auto !important; -moz-appearance: auto !important; background-image: none !important; width: 100% !important; height: 48px !important; padding: 0 15px !important; box-sizing: border-box !important; background-color: #ffffff !important; border: 1px solid #ddd !important; border-radius: 4px !important; font-size: 14px !important; color: #333333 !important; cursor: pointer !important; margin: 0 !important;
}

.re-select-custom-wrapper, .wpcf7-form-control-wrap { display: block !important; width: 100% !important; }
.wpcf7 .hidden-fields-container, .wpcf7-form .hidden-fields-container { display: none !important; border: none !important; padding: 0 !important; margin: 0 !important; }

/* ==========================================================================
   7. FOOTER PRINCIPALE
   ========================================================================== */
.site-footer { background-color: var(--wp--preset--color--primary, #AF1920) !important; color: #ffffff !important; padding: 60px 20px; }
.re-footer-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.re-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }

@media (max-width: 991px) { 
    .re-footer-grid { grid-template-columns: repeat(2, 1fr); } 
    .re-footer-col:first-child { grid-column: span 2; margin-bottom: 10px; }
}

@media (max-width: 767px) { 
    .re-footer-grid { grid-template-columns: 1fr; gap: 30px; } 
    .re-footer-col:first-child { grid-column: span 1; margin-bottom: 0; }
    .footer-logo img, .footer-logo svg { max-width: 200px !important; height: auto !important; }
}

.footer-heading { font-size: 1.2rem; font-weight: 700; margin: 0 0 20px 0 !important; color: #ffffff !important; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer p, .site-footer li { border-bottom: 1px solid rgba(255,255,255,0.2); padding: 0 0 5px; margin: 4px 0 2px !important; display: flex !important; align-items: flex-start; gap: 12px; color: #ffffff !important; }
.site-footer a { color: #ffffff !important; display: inline-flex !important; align-items: center !important; gap: 12px !important; text-decoration: none !important; transition: all 0.3s ease-in-out !important; }
.site-footer a:hover { transform: translateX(5px) !important; opacity: 0.8; }
.site-footer i { font-size: 0.85em; margin-top: 4px; } 

/* ==========================================================================
   8. SUB-FOOTER
   ========================================================================== */
.re-footer-bottom { background-color: #333333 !important; color: #c0c0c0 !important; font-size: 0.85rem; padding: 15px 20px; width: 100%; box-sizing: border-box !important; border: none !important; }
.re-footer-bottom-inner { max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box !important; }
.re-footer-bottom a { color: #c0c0c0 !important; text-decoration: none !important; transition: color 0.2s ease !important; transform: none !important; }
.re-footer-bottom a:hover { color: #ffffff !important; }

.re-footer-bottom-inner .widget-bottom { width: 100%; }
.re-footer-bottom-inner .wp-block-group, .re-footer-bottom-inner .is-layout-flex { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; flex-wrap: wrap !important; }
.re-footer-bottom-inner .widget-bottom *, .re-footer-bottom-inner .wp-block-group * { border: none !important; box-shadow: none !important; }
.re-footer-bottom-inner p { margin: 0 !important; padding: 0 !important; }

@media (max-width: 767px) {
    .re-footer-bottom-inner .wp-block-group, .re-footer-bottom-inner .is-layout-flex { flex-direction: column !important; justify-content: center !important; gap: 10px !important; }
    .re-footer-bottom-inner p { text-align: center !important; }
}