/* ============================================================
   STUDIO DEMO — SITO VETRINA
   CSS principale, pulito, responsive, palette corporate teal
   ============================================================ */

/* --- Variabili (override dinamico da header.inc.php) --- */
:root {
    --primary:    #22736b;   /* teal corporate */
    --primary-d:  #165a53;
    --primary-l:  #2f8a80;
    --secondary:  #8dd4b0;   /* verde menta — accento */
    --secondary-d:#6bc495;
    --dark:       #24484d;   /* teal scuro sobrio */
    --darker:     #1b383c;
    --light:      #f8fbf9;
    --text:       #607073;
    --heading:    #274a50;   /* slate scuro morbido (no nero) */
    --muted:      #8a9a9d;
    --border:     #e4eae8;
    --shadow:     0 2px 12px rgba(39,74,80,0.06);
    --shadow-lg:  0 12px 40px rgba(39,74,80,0.10);
    --radius:     6px;
    --radius-lg:  10px;
}

/* --- Reset base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-d); }
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p  { margin-bottom: 14px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.accent { color: var(--primary); }

/* ============================================================
   HEADER
   ============================================================ */
/* ============================================================
   HEADER A 3 FASCE
   1) top-strip   → contatti + social (sfondo scuro)
   2) logo-bar    → logo grande + Accedi/Registrati (sfondo bianco)
   3) main-nav-bar→ 6 voci con dropdown (sfondo colore tema)
   Tutto legato ai token --theme-* con fallback locali: cambia
   navbar_theme in config.php e la header segue il nuovo tema.
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

/* --- FASCIA 1: top strip --- */
.top-strip {
    background: var(--theme-primary-deep, var(--darker));
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-strip-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.top-strip a {
    color: rgba(255,255,255,0.85);
    margin-right: 22px;
    transition: color 0.2s;
    text-decoration: none;
}
.top-strip a:hover { color: var(--theme-primary-light, #fff); }
.top-strip a i {
    color: var(--theme-primary, var(--primary));
    margin-right: 6px;
    width: 14px;
    text-align: center;
}
.top-strip-right a {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.top-strip-right a i { margin: 0; color: #fff; }
.top-strip-right a:hover { background: var(--theme-primary, var(--primary)); }

/* --- FASCIA 2: logo bar --- */
.logo-bar {
    background: #fff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.logo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.site-logo img { max-height: 60px; width: auto; }
.site-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--theme-primary, var(--primary)) 0%, var(--theme-primary-dark, var(--primary-d)) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb, 34,115,107), 0.25);
    flex-shrink: 0;
}
.site-logo-txtwrap { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo-text {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--theme-heading, var(--heading));
}
.site-logo-text span { color: var(--theme-primary, var(--primary)); }
.site-logo-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-auth {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-auth-outline {
    border: 2px solid var(--theme-primary, var(--primary));
    color: var(--theme-primary, var(--primary));
    background: transparent;
}
.btn-auth-outline:hover {
    background: var(--theme-primary, var(--primary));
    color: var(--theme-on-primary, #fff);
}
.btn-auth-fill {
    background: var(--theme-primary, var(--primary));
    color: var(--theme-on-primary, #fff);
    border: 2px solid var(--theme-primary, var(--primary));
}
.btn-auth-fill:hover {
    background: var(--theme-primary-dark, var(--primary-d));
    border-color: var(--theme-primary-dark, var(--primary-d));
    color: var(--theme-on-primary, #fff);
}
.user-badge {
    background: var(--theme-primary-soft, var(--secondary));
    color: var(--theme-on-primary, #fff);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.user-badge:hover {
    background: var(--theme-primary-dark, var(--secondary-d));
    color: var(--theme-on-primary, #fff);
}

/* --- FASCIA 3: main nav bar --- */
.main-nav-bar {
    background: var(--theme-primary, var(--primary));
    color: var(--theme-on-primary, #fff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 900;
}
.main-nav {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px;
}
.nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}
.nav-item > a {
    color: var(--theme-on-primary, #fff);
    padding: 16px 18px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.18s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.nav-item > a i.caret {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.75;
    transition: transform 0.18s;
}
.nav-item:hover > a,
.nav-item:focus-within > a,
.nav-item.active > a {
    background: rgba(0,0,0,0.18);
    border-bottom-color: var(--theme-primary-light, #fff);
}
.nav-item:hover > a i.caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
    border-top: 3px solid var(--theme-primary-light, var(--primary));
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--theme-heading, var(--heading));
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.dropdown a i {
    color: var(--theme-primary, var(--primary));
    font-size: 13px;
    width: 16px;
    text-align: center;
}
.dropdown a:hover {
    background: var(--theme-accent-bg, var(--light));
    color: var(--theme-primary, var(--primary));
    border-left-color: var(--theme-primary, var(--primary));
    padding-left: 22px;
}
.dd-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--theme-heading, var(--dark));
    cursor: pointer;
}
.mobile-auth { display: none; }

/* --- Client submenu bar (visibile solo se loggato) --- */
.header-client-bar {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
    padding: 10px 0;
    border-top: 2px solid var(--primary);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.25);
    position: relative;
    z-index: 50;
}
.client-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}
.client-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}
.client-nav > a,
.client-nav-toggle {
    color: rgba(255,255,255,0.88);
    padding: 9px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.87rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}
.client-nav > a i,
.client-nav-toggle i.fa-icon,
.client-nav-toggle > i:not(.chevron) {
    font-size: 0.82rem;
    color: var(--secondary);
    transition: color 0.2s;
}
.client-nav > a:hover,
.client-nav-toggle:hover,
.client-nav-item:hover > .client-nav-toggle,
.client-nav-item:focus-within > .client-nav-toggle {
    background: rgba(var(--primary-rgb), 0.15);
    color: #fff;
}
.client-nav .chevron {
    font-size: 0.65rem;
    margin-left: 2px;
    opacity: 0.7;
    transition: transform 0.25s;
    color: rgba(255,255,255,0.7) !important;
}
.client-nav-item:hover .chevron,
.client-nav-item:focus-within .chevron { transform: rotate(180deg); }

/* Push user menu to the right */
.client-nav-item.client-user { margin-left: auto; }
.client-nav-item.client-user .client-nav-toggle { color: #fff; font-weight: 700; }
.client-nav-item.client-user .client-nav-toggle strong {
    color: var(--secondary);
    margin-right: 2px;
}

/* Dropdown wrapper */
.client-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.client-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 16px 44px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
}
.client-nav-item.client-user .client-dropdown { left: auto; right: 0; min-width: 250px; }
.client-nav-item:hover > .client-dropdown,
.client-nav-item:focus-within > .client-dropdown,
.client-nav-item.open > .client-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.client-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.client-nav-item.client-user .client-dropdown::before { left: auto; right: 20px; }
.client-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--heading);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
}
.client-dropdown a i {
    font-size: 0.82rem;
    color: var(--primary);
    width: 16px;
    text-align: center;
}
.client-dropdown a:hover {
    background: var(--light);
    color: var(--primary);
}
.client-dropdown a:hover i { color: var(--primary-d); }
.client-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}
.client-dropdown a.client-logout {
    color: #b23a3a;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 12px;
}
.client-dropdown a.client-logout i { color: #b23a3a; }
.client-dropdown a.client-logout:hover { background: #fdf2f2; color: #8f2a2a; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.22);
}
.btn-primary:hover {
    background: var(--primary-d);
    border-color: var(--primary-d);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.32);
}
.btn-ghost {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}
.btn-ghost:hover { background: var(--light); border-color: var(--primary); color: var(--primary); }
.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover { background: var(--light); color: var(--primary-d); }
.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--primary); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO (HOMEPAGE)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12), transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12), transparent 70%);
    border-radius: 50%;
}
/* Hero con immagine di sfondo */
.hero[style*="--hero-bg"] {
    background: var(--hero-bg);
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero[style*="--hero-bg"]::before {
    width: 100%; height: 100%;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(0,0,0,0.70));
}
.hero[style*="--hero-bg"]::after { display: none; }
.hero[style*="--hero-bg"] .hero-grid { position: relative; z-index: 1; }
.hero[style*="--hero-bg"] .hero-badge { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.2); color: #fff; }
.hero[style*="--hero-bg"] .hero-sub { color: rgba(255,255,255,0.85); }
.hero[style*="--hero-bg"] .hero-trust { border-top-color: rgba(255,255,255,0.2); }
.hero[style*="--hero-bg"] .hero-trust strong { color: #fff; }
.hero[style*="--hero-bg"] .hero-trust span { color: rgba(255,255,255,0.7); }
.hero[style*="--hero-bg"] .hero-card { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.hero[style*="--hero-bg"] .hero-card i { color: #fff; }
.hero[style*="--hero-bg"] .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero[style*="--hero-bg"] .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.hero-text h1 { margin-bottom: 20px; }
.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
    display: flex;
    gap: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.hero-trust strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
}
.hero-trust span { font-size: 0.85rem; color: var(--muted); }

/* Hero visual (floating cards) */
.hero-visual {
    position: relative;
    height: 460px;
}
.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.20), transparent 60%);
    filter: blur(40px);
    z-index: 0;
}
.hero-card {
    position: absolute;
    background: #fff;
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--dark);
    border: 1px solid var(--border);
    z-index: 1;
}
.hero-card i { font-size: 1.5rem; }
.hero-card-1 { top: 10%; left: 5%; }
.hero-card-1 i { color: var(--primary); }
.hero-card-2 { top: 40%; right: 0; }
.hero-card-2 i { color: var(--secondary); }
.hero-card-3 { bottom: 10%; left: 15%; }
.hero-card-3 i { color: var(--primary); }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
    padding: 100px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    isolation: isolate; /* Stacking context per video sfondo */
}
/* Se la pagina imposta --hero-bg, usiamo quella come sfondo con overlay scuro */
.page-hero[style*="--hero-bg"] {
    background: var(--hero-bg);
    background-size: cover;
    background-position: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), rgba(0,0,0,0.70));
    z-index: 0;
}
/* Glow decorativo sopra l'overlay */
.page-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%);
    border-radius: 50%;
    z-index: 0;
}
/* Video sfondo hero — <video> dentro .page-hero, prima del .container
   z-index: -1 lo mette sotto l'overlay ::before (z-index:0)
   isolation:isolate su .page-hero impedisce che -1 finisca sotto la pagina */
.page-hero .hero-video-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}
.page-hero h1 .accent { color: var(--secondary); }
.page-hero p {
    color: rgba(255,255,255,0.80);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}
.page-hero .hero-badge {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
    backdrop-filter: blur(8px);
    position: relative;
}
/* Breadcrumb nella hero */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    position: relative;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* ============================================================
   HOMEPAGE HERO (page-hero + layout a 2 colonne)
   ============================================================ */
.page-hero-home { padding: 80px 0 90px; }
.page-hero-home .container { position: relative; z-index: 1; }
.home-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.home-hero-text h1 { font-size: 2.4rem; margin-bottom: 18px; color: #fff; }
.home-hero-text h1 .accent { color: var(--secondary); }
.home-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.7; max-width: 540px; }
.home-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.home-hero-trust {
    display: flex; gap: 32px; padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap;
}
.home-hero-trust strong { display: block; font-size: 1.8rem; color: #fff; font-weight: 900; line-height: 1; }
.home-hero-trust span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.home-hero-cards { display: flex; flex-direction: column; gap: 16px; }
.home-hero-card {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 14px;
    padding: 20px 24px; color: #fff; transition: all 0.3s;
}
.home-hero-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.home-hero-card i { font-size: 1.4rem; color: var(--secondary); }
.home-hero-card span { font-weight: 600; font-size: 0.95rem; }
@media (max-width: 900px) {
    .home-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .home-hero-text h1 { font-size: 1.8rem; }
    .home-hero-cards { flex-direction: row; flex-wrap: wrap; }
    .home-hero-card { flex: 1; min-width: 140px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 90px 0; }
.section-light { background: var(--light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }

/* --- Features grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.18);
}
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --- Services grid (home) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: block;
    color: var(--text);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text);
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}
.service-icon.orange { background: linear-gradient(135deg, var(--primary), var(--primary-l)); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.20); }
.service-icon.green  { background: linear-gradient(135deg, var(--secondary), var(--secondary-d)); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.28); }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.service-link { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* --- Services detail (servizi.php rows) --- */
.service-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 36px;
    margin-bottom: 60px;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}
.service-row:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-row.reverse { background: var(--light); }
.service-row-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
}
.service-row-icon.orange { background: linear-gradient(135deg, var(--primary), var(--primary-l)); box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.20); }
.service-row-icon.green  { background: linear-gradient(135deg, var(--secondary), var(--secondary-d)); box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.28); }
.service-row-body h2 { margin-bottom: 14px; }
.service-bullets { list-style: none; padding: 0; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-bullets li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.service-bullets i { color: var(--secondary); }

/* --- Pricing grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(var(--primary-rgb), 0.20);
    transform: scale(1.02);
}
.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pricing-card h3 { color: var(--dark); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin: 18px 0 24px;
    line-height: 1;
}
.price .currency { font-size: 1.4rem; vertical-align: super; }
.price .period { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pricing-card ul { list-style: none; padding: 0; margin-bottom: 28px; text-align: left; }
.pricing-card li { padding: 8px 0; color: var(--text); }
.pricing-card i { color: var(--secondary); margin-right: 10px; }

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text p { font-size: 1.05rem; color: var(--text); margin-bottom: 18px; }
.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.about-stat {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}
.about-stat strong {
    display: block;
    font-size: 2.6rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}
.about-stat:nth-child(even) strong { color: var(--secondary); }
.about-stat span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.value-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 18px;
}
.value-icon.orange { background: linear-gradient(135deg, var(--primary), var(--primary-l)); }
.value-icon.green  { background: linear-gradient(135deg, var(--secondary), var(--secondary-d)); }
.value-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
.team-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.20);
}
.team-role {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.team-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}
.contact-info h2, .contact-form-box h2 { margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: all 0.3s;
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}
.contact-icon.orange { background: linear-gradient(135deg, var(--primary), var(--primary-l)); }
.contact-icon.green  { background: linear-gradient(135deg, var(--secondary), var(--secondary-d)); }
.contact-card h4 { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-card a { color: var(--dark); font-weight: 700; }
.contact-card a:hover { color: var(--primary); }
.contact-card small { display: block; color: var(--muted); margin-top: 4px; font-size: 0.8rem; }

/* Form */
.contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.contact-form .form-row { margin-bottom: 18px; }
.contact-form label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.10);
}
.form-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--muted);
}
.form-check input { width: auto; }

/* ============================================================
   MEGA FORM — Full-width form moderno per contatti/info
   ============================================================ */
.mega-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light) 0%, #fff 100%);
}
.mega-form-wrap {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    position: relative;
    overflow: hidden;
}
.mega-form-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.mega-form-header {
    text-align: center;
    margin-bottom: 40px;
}
.mega-form-header .form-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}
.mega-form-header h2 { margin-bottom: 8px; }
.mega-form-header p { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

.mega-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}
.mega-form-grid .form-group { position: relative; }
.mega-form-grid .form-group.full-width { grid-column: 1 / -1; }
.mega-form-grid .form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--dark);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mega-form-grid .form-group label .req { color: var(--primary); }
.mega-form-grid .form-group .input-icon {
    position: relative;
}
.mega-form-grid .form-group .input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}
.mega-form-grid .form-group .input-icon input,
.mega-form-grid .form-group .input-icon select,
.mega-form-grid .form-group .input-icon textarea {
    padding-left: 42px;
}
.mega-form-grid .form-group .input-icon textarea + i,
.mega-form-grid .form-group .input-icon textarea ~ i { top: 18px; transform: none; }
.mega-form-grid input,
.mega-form-grid select,
.mega-form-grid textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--light);
    transition: all 0.25s;
}
.mega-form-grid input:hover,
.mega-form-grid select:hover,
.mega-form-grid textarea:hover { border-color: rgba(var(--primary-rgb), 0.3); }
.mega-form-grid input:focus,
.mega-form-grid select:focus,
.mega-form-grid textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.10);
}
.mega-form-grid input:focus ~ i,
.mega-form-grid textarea:focus ~ i,
.mega-form-grid select:focus ~ i { color: var(--primary); }
.mega-form-grid textarea { resize: vertical; min-height: 140px; }
.mega-form-grid select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23607073' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Honeypot nascosto */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Privacy check */
.mega-form-privacy {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.mega-form-privacy input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}
.mega-form-privacy label {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.mega-form-privacy a { color: var(--primary); font-weight: 600; }

/* ============================================================
   Captcha SVG — layout compatto una riga
   Colori ereditati dal tema via --theme-* con fallback locali
   ============================================================ */
.form-captcha {
    grid-column: 1 / -1;
    max-width: 460px;
    margin: 0.4rem 0 0.2rem;
}
.form-captcha label { display: none; }
.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--theme-primary-light, var(--light, #f0f5f3));
    border: 1.5px solid rgba(var(--theme-primary-rgb, 96,125,139), 0.15);
    border-radius: 12px;
    padding: 8px 12px;
}
/* Icona scudo */
.captcha-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--theme-primary, var(--primary, #22736b)), var(--theme-primary-soft, var(--secondary, #2a8f85)));
    color: var(--theme-on-primary, #fff);
    font-size: 14px;
    flex-shrink: 0;
}
/* Immagine SVG captcha */
.captcha-image {
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    border: 1.5px solid rgba(var(--theme-primary-rgb, 96,125,139), 0.15);
    line-height: 0;
    overflow: hidden;
}
.captcha-image svg {
    display: block;
    width: 120px;
    height: 38px;
}
.captcha-image:hover svg {
    filter: contrast(1.3) brightness(1.05);
}
/* Input codice */
.captcha-input-wrap {
    flex: 1;
    min-width: 0;
}
.captcha-input,
.captcha-input-wrap input {
    width: 100%;
    border-radius: 8px;
    border: 1.5px solid rgba(var(--theme-primary-rgb, 96,125,139), 0.18);
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
    color: var(--theme-heading, var(--heading, #274a50));
    background: #fff;
    transition: all 0.3s ease;
    height: 40px;
    box-sizing: border-box;
}
.captcha-input:focus,
.captcha-input-wrap input:focus {
    outline: none;
    border-color: var(--theme-primary, var(--primary, #22736b));
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb, 96,125,139), 0.1);
}
.captcha-input::placeholder,
.captcha-input-wrap input::placeholder {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--theme-text, var(--muted, #8a9a9d));
}
/* Responsive: sotto 380px stack verticale */
@media (max-width: 380px) {
    .captcha-row { flex-wrap: wrap; gap: 8px; }
    .captcha-input-wrap { flex-basis: 100%; }
}

/* Submit row */
.mega-form-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}
.mega-form-submit .btn { padding: 16px 40px; font-size: 1rem; font-weight: 700; border-radius: 12px; }
.mega-form-submit .form-note { color: var(--muted); font-size: 0.82rem; }
.mega-form-submit .form-note i { color: var(--primary); margin-right: 4px; }

/* Toast di successo/errore */
.form-toast {
    display: none;
    grid-column: 1 / -1;
    padding: 18px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    align-items: center;
    gap: 12px;
    animation: toastSlide 0.4s ease;
}
.form-toast.show { display: flex; }
.form-toast.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-toast.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.form-toast i { font-size: 1.2rem; }
@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.mega-form-wrap.loading .btn { pointer-events: none; opacity: 0.7; }
.mega-form-wrap.loading .btn i.fa-paper-plane { display: none; }
.mega-form-wrap.loading .btn .spinner { display: inline-block; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contatti page: full-width layout with sidebar info */
.contatti-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}
.contatti-sidebar {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    border-radius: 20px;
    padding: 40px 30px;
    color: #fff;
    position: sticky;
    top: 100px;
}
.contatti-sidebar h2 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.contatti-sidebar .sub { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 28px; }
.contatti-sidebar .sidebar-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contatti-sidebar .sidebar-item:last-child { border-bottom: none; }
.contatti-sidebar .sidebar-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contatti-sidebar .sidebar-item h4 {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}
.contatti-sidebar .sidebar-item a,
.contatti-sidebar .sidebar-item span { color: #fff; font-weight: 600; font-size: 0.95rem; }
.contatti-sidebar .sidebar-item a:hover { text-decoration: underline; }
.contatti-sidebar .sidebar-item small { display: block; color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-top: 2px; }
.contatti-sidebar .sidebar-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.contatti-sidebar .sidebar-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}
.contatti-sidebar .sidebar-social a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.contatti-form-area .mega-form-wrap {
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
    .mega-form-wrap { padding: 30px 24px; }
    .mega-form-grid { grid-template-columns: 1fr; }
    .mega-form-submit { flex-direction: column; text-align: center; }
    .contatti-layout { grid-template-columns: 1fr; }
    .contatti-sidebar { position: static; }
}

.map-placeholder {
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: var(--muted);
}
.map-placeholder i { font-size: 3.5rem; color: var(--primary); margin-bottom: 20px; }
.map-placeholder p { font-size: 1.1rem; color: var(--dark); }
.map-placeholder small { display: block; margin-top: 14px; font-size: 0.8rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 70px 0;
    background: var(--dark);
}
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-l));
    color: #fff;
    padding: 70px 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 30px 80px rgba(var(--primary-rgb), 0.28);
}
.cta-box h2 { color: #fff; margin-bottom: 14px; }
.cta-box p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO — variante con immagine opzionale
   Se .page-hero-img ha un <img>, layout diventa 2 colonne;
   se non c'è immagine, resta centrato come prima.
   ============================================================ */
.page-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}
.page-hero-split .page-hero-text h1 { text-align: left; }
.page-hero-split .page-hero-text p  { margin: 0; }
.page-hero-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.page-hero-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
.page-hero-img .hero-img-placeholder {
    width: 100%;
    height: 320px;
    background: rgba(255,255,255,0.08);
    border: 2px dashed rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.40);
    font-size: 0.85rem;
}
.page-hero-img .hero-img-placeholder i { font-size: 2.5rem; margin-bottom: 12px; }
@media (max-width: 960px) {
    .page-hero-split { grid-template-columns: 1fr; text-align: center; }
    .page-hero-split .page-hero-text h1 { text-align: center; }
    .page-hero-img { display: none; }
}

/* ============================================================
   TIMELINE / STEPS
   ============================================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}
.timeline-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-l));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.22);
    z-index: 1;
}
.timeline-content {
    background: #fff;
    padding: 28px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.timeline-content h3 { margin-bottom: 8px; }
.timeline-content p  { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 600px) {
    .timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: 44px 1fr; gap: 16px; }
    .timeline-num { width: 44px; height: 44px; font-size: 1rem; }
    .timeline-content { padding: 20px; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.stat-item .stat-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item:nth-child(even) .stat-number { color: var(--secondary); }
.stat-item .stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--heading);
    font-size: 1rem;
    user-select: none;
}
.faq-question i { transition: transform 0.3s; color: var(--primary); font-size: 0.9rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 600px; }

/* ============================================================
   ORARI TABLE
   ============================================================ */
.orari-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.orari-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 16px 24px;
    font-weight: 700;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.orari-table tbody td {
    padding: 16px 24px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.orari-table tbody tr:nth-child(even) td { background: var(--light); }
.orari-table tbody tr:last-child td { border-bottom: none; }
.orari-table .orari-closed { color: #e74c3c; font-weight: 600; }
.orari-table .orari-icon { color: var(--primary); margin-right: 8px; }

/* ============================================================
   GOOGLE MAP EMBED
   ============================================================ */
.map-embed {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* ============================================================
   INFO BOXES (tip, warning, note)
   ============================================================ */
.info-box {
    padding: 24px 28px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    margin: 24px 0;
}
.info-box.tip     { border-left-color: var(--secondary); background: rgba(141,212,176,0.08); }
.info-box.warning { border-left-color: #e67e22; background: rgba(230,126,34,0.06); }
.info-box h4 { margin-bottom: 6px; color: var(--heading); }
.info-box p  { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s;
}
.checklist li:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.checklist li i { color: var(--secondary); margin-top: 2px; flex-shrink: 0; }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }

/* ============================================================
   TWO COLUMN CONTENT (text + image/widget)
   ============================================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}
.two-col-img .img-placeholder {
    width: 100%;
    height: 300px;
    background: var(--light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.two-col-img .img-placeholder i { font-size: 2.5rem; margin-bottom: 10px; color: var(--primary); }
@media (max-width: 960px) {
    .two-col { grid-template-columns: 1fr; }
    .two-col.reverse { direction: ltr; }
}

/* ============================================================
   PRICING TABLE (variant for prezzi pages)
   ============================================================ */
.pricing-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.pricing-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-l));
    color: #fff;
    padding: 18px 24px;
    font-weight: 700;
    text-align: left;
}
.pricing-table tbody td {
    padding: 16px 24px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.pricing-table tbody tr:nth-child(even) td { background: var(--light); }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table .price-highlight {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ============================================================
   CONTACT FORM COMPACT (for richiesta-preventivo etc.)
   ============================================================ */
.form-compact {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.form-compact .form-row { margin-bottom: 18px; }
.form-compact label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-compact input,
.form-compact select,
.form-compact textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
}
.form-compact input:focus,
.form-compact select:focus,
.form-compact textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.10);
}
.form-compact .btn { width: 100%; }

/* ============================================================
   FOOTER CONDIVISO (sito + area client avaclient)
   Usa i token del navbar-theme attivo (--theme-primary / --theme-
   primary-deep) con fallback alle variabili locali del sito:
   il footer cambia colore automaticamente insieme al tema.
   ============================================================ */
.site-footer {
    background: var(--theme-primary-deep, var(--darker));
    color: rgba(255,255,255,0.7);
    padding: 70px 0 0;
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--theme-primary, var(--primary));
    border-radius: 2px;
}
.footer-col p {
    margin: 0 0 8px;
    color: rgba(255,255,255,0.65);
}
.footer-col p i {
    color: var(--theme-primary, var(--primary));
    margin-right: 6px;
    width: 14px;
    text-align: center;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.65);
    padding: 6px 0;
    transition: all 0.2s;
    text-decoration: none;
}
.footer-col a:hover { color: var(--theme-primary, var(--primary)); transform: translateX(4px); }
.footer-col a i {
    color: var(--theme-primary, var(--primary));
    margin-right: 8px;
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: none !important;
}
.footer-social a i { margin: 0; color: #fff; }
.footer-social a:hover {
    background: var(--theme-primary, var(--primary));
    transform: translateY(-3px) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--theme-primary, var(--primary)); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero-grid,
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 360px; }
    .service-row { grid-template-columns: 1fr; gap: 20px; padding: 32px 24px; }
    .service-row-icon { width: 80px; height: 80px; font-size: 2rem; }
    .service-bullets { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .pricing-card.featured { transform: none; }
}
@media (max-width: 960px) {
    .client-bar-inner { justify-content: center; }
    .client-nav { justify-content: center; }
    .client-nav a { padding: 7px 10px; font-size: 0.82rem; }
}
/* Compattiamo padding nav su schermi stretti per far stare le 6 voci */
@media (max-width: 1100px) {
    .nav-item > a { padding: 16px 12px; font-size: 13px; }
    .site-logo-tagline { display: none; }
}

@media (max-width: 960px) {
    .top-strip { display: none; }
    .mobile-toggle { display: block; }
    .auth-buttons { display: none; }
    .logo-bar { padding: 14px 0; }
    .site-logo img { max-height: 48px; }
    .site-logo-mark { width: 44px; height: 44px; font-size: 18px; }
    .site-logo-text { font-size: 1.3rem; }

    /* Il main nav diventa un pannello a tutta larghezza che si apre col toggle */
    .main-nav-bar {
        background: #fff;
        border-top: 3px solid var(--theme-primary, var(--primary));
    }
    .main-nav {
        display: none;
        flex-direction: column;
        padding: 12px 0;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .nav-item { display: block; width: 100%; border-bottom: 1px solid var(--border); }
    .nav-item:last-child { border-bottom: none; }
    .nav-item > a {
        color: var(--theme-heading, var(--heading));
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: none;
        justify-content: space-between;
    }
    .nav-item:hover > a,
    .nav-item.active > a {
        background: var(--theme-accent-bg, var(--light));
        color: var(--theme-primary, var(--primary));
        border-bottom: none;
    }
    /* Su mobile i dropdown diventano in-flow, visibili sempre (accordion semplice) */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: var(--theme-accent-bg, var(--light));
        padding: 6px 0;
        border-radius: 0;
        min-width: 0;
        display: none;
    }
    .nav-item.open .dropdown,
    .nav-item:focus-within .dropdown { display: block; }
    .dropdown a {
        padding: 10px 36px;
        font-size: 13.5px;
    }
    .dropdown a:hover { padding-left: 40px; }
    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
        background: var(--theme-accent-bg, var(--light));
    }
    .mobile-auth .btn-auth { justify-content: center; }
}

@media (max-width: 720px) {
    .section { padding: 60px 0; }
    .hero { padding: 60px 0 80px; }
    .page-hero { padding: 70px 0 50px; }
    .header-client-bar { padding: 10px 0; }
    .client-welcome { font-size: 0.82rem; width: 100%; justify-content: center; margin-bottom: 6px; }
    .client-nav a { padding: 6px 9px; font-size: 0.78rem; }
    .client-nav a i { display: none; }
    .hero-trust { gap: 20px; }
    .hero-trust strong { font-size: 1.4rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-form-box { padding: 28px 22px; }
    .cta-box { padding: 48px 28px; }
}
