/*
Theme Name: EdilSofit Theme
Description: Tema custom per EdilSofit Services srl — design da brochure NEW 2026. Navy #2C3E50 + Verde #4CAF50. WCAG 2.2 AA contrast-verified.
Version: 1.1.0
Author: Anthilla System
Text Domain: edilsofit
*/

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === VARIABLES === */
:root {
    --edil-navy: #2C3E50;
    --edil-navy-dark: #1a252f;
    --edil-green: #4CAF50;
    --edil-green-light: #81C784;
    --edil-white: #FFFFFF;
    --edil-gray: #F5F5F5;
    --edil-text: #333333;
    --edil-border: #e0e0e0;
    --text-on-navy: #FFFFFF;
    --accent-on-navy: #81C784;
    --text-on-white: #2C3E50;
    --link-on-navy: #81C784;
}

/* === BASE === */
html { font-size: 16px; }
body {
    font-family: 'Poppins', 'Segoe UI', -apple-system, sans-serif;
    color: var(--edil-text);
    line-height: 1.6;
    background: var(--edil-white);
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container, .wp-block-html > section > div, .wp-block-html > section > div > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--edil-green);
    color: var(--edil-white);
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--edil-green);
    outline-offset: 2px;
}

/* === HEADER === */
.site-header {
    background: #FFFFFF;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--edil-green);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
}
.site-header .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
.site-header .logo-edil {
    color: var(--edil-white);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.site-header .logo-sofit {
    color: var(--edil-green-light);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
}
.site-header .logo-sub {
    color: var(--edil-white);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: 8px;
    opacity: 0.7;
}
.site-header .main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.site-header .main-nav ul li a {
    color: var(--edil-navy);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    display: block;
    transition: color 0.2s;
}
.site-header .main-nav ul li a:hover,
.site-header .main-nav ul li a:focus {
    color: var(--edil-green);
}
.site-header .header-phone {
    color: var(--edil-green-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* === MAIN CONTENT === */
main#main-content {
    min-height: 60vh;
}

/* === HERO (da wp:html) === */
.edil-hero,
section[style*="background:#2C3E50"] {
    background: linear-gradient(135deg, var(--edil-navy) 0%, var(--edil-navy-dark) 100%) !important;
    color: var(--edil-white);
    padding: 80px 24px !important;
}
.edil-hero h1,
section[style*="background:#2C3E50"] h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* === SECTIONS === */
section {
    padding: 60px 24px;
}
section[style*="background:#F5F5F5"] {
    background: var(--edil-gray) !important;
}
section[style*="background:#2C3E50"] {
    background: linear-gradient(135deg, var(--edil-navy) 0%, var(--edil-navy-dark) 100%) !important;
}

/* === HEADINGS === */
h1 { font-size: 2.2rem; font-weight: 800; color: var(--edil-navy); margin-bottom: 16px; }
h2 { font-size: 1.8rem; font-weight: 700; color: var(--edil-navy); margin-bottom: 20px; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--edil-navy); margin-bottom: 12px; }
section[style*="background:#2C3E50"] h1,
section[style*="background:#2C3E50"] h2,
section[style*="background:#2C3E50"] h3 {
    color: var(--edil-white);
}
section[style*="background:#2C3E50"] h2 span,
section[style*="background:#2C3E50"] .accent {
    color: var(--edil-green-light);
}

/* === PARAGRAPHS === */
p { margin-bottom: 16px; line-height: 1.7; }
section p { color: var(--edil-text); }
section[style*="background:#2C3E50"] p { color: var(--edil-white); }

/* === LINKS === */
a { color: var(--edil-green); text-decoration: none; }
a:hover { color: var(--edil-green-light); }
section[style*="background:#2C3E50"] a { color: var(--edil-green-light); }

/* === GRID LAYOUTS (da wp:html inline) === */
section div[style*="display:grid"] {
    display: grid !important;
    gap: 24px;
}
section div[style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}
section div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 767px) {
    section div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* === CARDS (da wp:html) === */
section div[style*="background:#fff"] {
    background: var(--edil-white) !important;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--edil-green);
}
section div[style*="background:#fff"] h3 {
    color: var(--edil-navy);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
section div[style*="background:#fff"] p {
    color: var(--edil-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* === BUTTONS === */
.btn,
a[href*="tel:"],
a[href*="/contatti/"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.2s ease;
}
section[style*="background:#2C3E50"] a[href*="tel:"] {
    color: var(--edil-green-light) !important;
    font-weight: 600;
}
section a[href*="tel:"] {
    color: var(--edil-green);
    font-weight: 600;
}

/* === FOOTER === */
.site-footer {
    background: var(--edil-navy);
    color: var(--edil-white);
    padding: 48px 24px 24px;
    margin-top: auto;
}
.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.site-footer h3 {
    color: var(--edil-green-light);
    font-size: 1rem;
    margin-bottom: 12px;
}
.site-footer p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.site-footer a {
    color: var(--edil-green-light);
    text-decoration: none;
}
.site-footer a:hover { color: var(--edil-white); }
.site-footer .footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.site-footer .footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

/* === NAV MENU (dropdown) === */
.main-nav ul ul {
    display: none;
    position: absolute;
    background: var(--edil-navy-dark);
    min-width: 200px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.main-nav ul li:hover > ul {
    display: block;
}
.main-nav ul ul li a {
    padding: 10px 16px;
    font-size: 0.82rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .site-header .container { flex-direction: column; gap: 12px; }
    .site-header .main-nav ul { justify-content: center; }
}
@media (max-width: 767px) {
    .site-header .container { flex-direction: column; text-align: center; }
    .site-header .main-nav ul { flex-direction: column; }
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem; }
    section { padding: 40px 16px !important; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === WP CONTENT FIXES === */
.entry-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { margin-top: 32px; margin-bottom: 16px; }
.entry-content h3 { margin-top: 24px; margin-bottom: 12px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content img { max-width: 100%; height: auto; }

/* Cookie banner override */
#cmplz-cookiebanner-container { z-index: 99999; }

/* === LOGO HEADER FIX === */
.site-header .logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* === EMOJI FIX — sostituisco con simboli CSS === */
.edil-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.15);
    margin-bottom: 12px;
    position: relative;
}
.edil-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid #4CAF50;
    border-radius: 4px;
}

/* Logo con immagine + testo */
.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-header .logo img {
    height: 44px;
    width: auto;
}
.site-header .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.site-header .logo-edil { color: #fff; font-weight: 800; font-size: 1.2rem; }
.site-header .logo-sofit { color: #81C784; font-weight: 800; font-size: 1.2rem; }
.site-header .logo-sub { color: rgba(255,255,255,0.6); font-size: 0.55rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }

/* Header CTA */
.site-header .header-cta {
    background: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.site-header .header-cta:hover { background: #5cb860; color: #fff; }

/* === DROPDOWN MENU FIX — chiuso di default, aperto su hover === */
.main-nav ul li { position: relative; }
.main-nav ul li ul {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    flex-direction: column;
}
.main-nav ul li:hover > ul,
.main-nav ul li:focus-within > ul {
    display: flex !important;
}
.main-nav ul li ul li a {
    padding: 10px 20px;
    font-size: 0.82rem;
    color: var(--edil-navy);
}
.main-nav ul li ul li a:hover { color: #81C784; background: rgba(255,255,255,0.05); }

/* Sub-menu indicator */
.main-nav ul li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7rem;
    opacity: 0.7;
}

/* === LOGO UFFICIALE === */
.site-header .logo img {
    height: 52px;
    width: auto;
    display: block;
}

/* === BOTTONI TELEFONO E WHATSAPP === */
/* Bottone telefono (verde) — per tel: links */
.btn-phone,
a.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--edil-green);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    min-height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-phone::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 6.59 6.95 8.57 8.56l2.83-2.83c.39-.39 1.02-.39 1.41 0l3.48 3.48c.39.39.39 1.02 0 1.41l-2.09 2.09c-.45.45-1.01.68-1.7.17-2.65-1.97-6.91-4.97-8.39-6.45C2.94 14.24 2.99 3.74 3.01 3.44c.05-.68.34-1.18.62-1.46L5.72 0h3.48l.48 3.48c0 .39-.39 1.02-.78 1.41L6.62 10.79z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.btn-phone:hover {
    background: var(--edil-green-light);
    color: var(--edil-navy) !important;
    transform: translateY(-1px);
}

/* Bottone WhatsApp (verde WhatsApp) — per wa.me links */
.btn-whatsapp,
a.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 18px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' 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.524 0 1.484 1.06 2.916 1.207 2.916.151.086 2.113 3.219 5.117 4.513.715.306 1.273.489 1.708.626.718.227 1.367.264 1.958.16.576-.086 1.756-.718 2.004-1.413.248-.695.248-1.29.173-1.414-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' 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.347-.347.52-.52.174-.174.232-.298.332-.497.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.524 0 1.484 1.06 2.916 1.207 2.916.151.086.347.322.564.71.559 1.04 1.449 2.307 2.571 3.406.898.883 2.043 1.76 3.437 2.39.715.306 1.263.489 1.684.625.712.227 1.36.195 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.22-3.64.955.969-3.617-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Bottoni nel footer scuro */
section[style*="background:#2C3E50"] .btn-phone,
section[style*="background:#2C3E50"] .btn-whatsapp {
    margin: 8px;
}

/* Bottoni nella hero */
.edil-hero-actions,
section div[style*="display:flex;gap:16px"] {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   FOOTER CURATO v2
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--edil-navy) 0%, var(--edil-navy-dark) 100%);
    color: var(--edil-white);
    padding: 0;
    margin-top: auto;
}
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 48px;
}
.footer-brand { max-width: 300px; }

/* Logo su box bianco (il logo ha sfondo trasparente) */
.footer-logo-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px 20px;
    display: inline-block;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.footer-logo-box img {
    height: 42px;
    width: auto;
    display: block;
}
.footer-tagline {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}
.footer-social a:hover {
    background: var(--edil-green);
    color: #fff;
    transform: translateY(-2px);
}

.footer-title {
    color: var(--edil-green-light);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(129, 199, 132, 0.25);
    display: inline-block;
}
.footer-list {
    list-style: none;
}
.footer-list li {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-list li strong {
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}
.footer-links a:hover {
    color: var(--edil-green-light);
    transform: translateX(4px);
}
.footer-cta-link {
    color: var(--edil-green-light) !important;
    font-weight: 600;
}

/* Barra legale */
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
}
.footer-legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal span {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
}
.footer-legal nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal nav a {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    text-decoration: none;
}
.footer-legal nav a:hover { color: var(--edil-green-light); }

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px 36px; }
    .footer-legal-inner { flex-direction: column; text-align: center; }
}

/* ============================================
   FORM CONTACT FORM 7 PROFESSIONALE
   ============================================ */
.wpcf7-form {
    background: #FFFFFF;
    padding: 0;
}
.wpcf7-form p { margin-bottom: 0; }

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
    position: relative;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #E3E8EE;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--edil-navy);
    background: #FBFCFE;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 52px;
}
.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--edil-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9AA7B5;
}

/* Bottone submit */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--edil-green) 0%, #43A047 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    min-height: 56px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
    width: 100%;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: linear-gradient(135deg, #43A047 0%, #388E3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(76, 175, 80, 0.45);
}

/* Messaggi CF7 */
.wpcf7 form .wpcf7-response-output {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0 0;
    font-size: 0.92rem;
    border-width: 2px;
}
.wpcf7 form.sent .wpcf7-response-output {
    background: #E8F5E9;
    border-color: var(--edil-green);
    color: #2E7D32;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background: #FFEBEE;
    border-color: #EF5350;
    color: #C62828;
}

/* Spinner CF7 */
.wpcf7 .ajax-loader {
    background-color: var(--edil-green);
}

/* Card contenitore del form (usata nella pagina contatti) */
.edil-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
}
@media (max-width: 600px) {
    .edil-form-card { padding: 24px 18px; }
}

/* Barra legale mu-plugin Anthilla: integrazione col footer */
.site-footer + .anth-footer-legal,
.anth-footer-legal {
    background: rgba(0,0,0,0.25) !important;
    padding: 18px 24px !important;
}
.anth-footer-legal a { color: rgba(255,255,255,0.55) !important; font-size: 0.78rem; }
.anth-footer-legal a:hover { color: var(--edil-green-light) !important; }
body { margin-bottom: 0 !important; }
