/* Font ospitati in locale (assets/fonts/), niente più richieste a Google Fonts */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/lora-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lora-italic-400.woff2') format('woff2');
}

/* Tavolozza colori basata sulla natura, la terra e l'acqua */
:root {
  --bg-primary: #FAF8F5; /* Bianco argilla morbido */
  --bg-secondary: #F0ECE3; /* Sabbia chiaro */
  --bg-tertiary: #E6DFD3;
  --text-main: #2D2922; /* Fango scuro, molto caldo e leggibile */
  --text-muted: #615C54;
  --text-faint: #8F887D;
  --primary: #1C527A; /* Blu acqua profonda */
  --primary-light: #2A73A8;
  --accent-olive: #516347; /* Verde agricolo/terra */
  --border: rgba(45, 41, 34, 0.12);
  
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 8px; /* Angoli arrotondati e amichevoli */
}

[data-theme="dark"] {
  --bg-primary: #14120E; /* Nero terra profonda */
  --bg-secondary: #1E1A14; /* Sottosuolo scuro */
  --bg-tertiary: #2D271F;
  --text-main: #F5EFEB; /* Crema ad alta leggibilità */
  --text-muted: #B8B0A5;
  --text-faint: #8A8174;
  --primary: #4596D1;
  --primary-light: #6CB0E0;
  --accent-olive: #839E75;
  --border: rgba(245, 239, 235, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-olive);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent-olive); display: inline-block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.section { padding: 90px 0; border-top: 1px solid var(--border); }

/* SLOGAN AD EFFETTO */
.slogan-section { padding: 70px 0 90px; text-align: center; border-top: 1px solid var(--border); }
.slogan-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-olive); margin-bottom: 18px; }
.slogan-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 5vw, 52px); line-height: 1.2; max-width: 820px; margin: 0 auto 20px; letter-spacing: -0.01em; }
.slogan-text em { color: var(--primary); font-style: normal; }
.slogan-sub { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* CHI SIAMO */
.chi-siamo-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 50px; align-items: start; }
.chi-siamo-illustration { border-radius: var(--radius); overflow: hidden; margin-bottom: 46px; border: 1px solid var(--border); }
.chi-siamo-copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.chi-siamo-copy p:last-child { margin-bottom: 0; }
.chi-siamo-copy strong { color: var(--text-main); font-weight: 600; }
.chi-siamo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cs-stat { background: var(--bg-secondary); padding: 26px 20px; }
.cs-num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.cs-lab { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h1, .section-head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.25; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 17px; }
.scanline-rule { height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent-olive), var(--primary) 70%); border-radius: 2px; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: transparent; }

/* HEADER NAV */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; display: block; transition: background .3s ease, padding .3s ease; border-radius: 6px; }
[data-theme="dark"] .brand-logo { background: #FFF; padding: 6px 10px; }

.nav-links { display: flex; gap: 26px; align-items: center; justify-content: center; flex: 1; }
.nav-links > a { font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color .15s; white-space: nowrap; }
.nav-links > a:hover { color: var(--primary); }

/* DROPDOWN "SERVIZI" */
.nav-item { position: relative; }
.nav-drop-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  color: var(--text-muted); padding: 0; transition: color .15s;
}
.nav-drop-btn:hover { color: var(--primary); }
.nav-drop-btn .chev { transition: transform .2s ease; }
.nav-item.open .nav-drop-btn .chev { transform: rotate(180deg); }
.nav-item.open .nav-drop-btn { color: var(--primary); }

.dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 340px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 200;
}
.nav-item.open .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; transition: background .15s; }
.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-item .dd-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.dropdown-item .dd-desc { font-size: 12.5px; color: var(--text-faint); }

/* AZIONI: WHATSAPP + THEME + CTA */
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.whatsapp-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #25D366; color: #FFF;
  transition: transform .15s, filter .15s;
}
.whatsapp-btn:hover { filter: brightness(1.08); transform: scale(1.05); }
.instagram-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  color: #FFF;
  transition: transform .15s, filter .15s;
}
.instagram-btn:hover { filter: brightness(1.08); transform: scale(1.05); }
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: var(--bg-tertiary); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; border: 1.5px solid transparent;
  transition: transform .1s, background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #FFF; }
.btn-primary:hover { background: var(--primary-light); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #FFF; }
.nav .btn { padding: 8px 18px; font-size: 14px; }

/* HAMBURGER MOBILE */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { padding: 60px 0; position: relative; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; padding-bottom: 50px; }
.hero h1 { font-size: clamp(34px, 4.8vw, 50px); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--primary); font-family: var(--font-display); }
.hero p.lede { color: var(--text-muted); font-size: 18px; max-width: 540px; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 30px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* PANNELLO DI VISUALIZZAZIONE DATI */
.scan-panel {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  max-width: 720px; margin: 0 auto 50px;
}
.scan-panel-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.scan-dot { width: 8px; height: 8px; border-radius: 50%; background: #4CAF50; display: inline-block; margin-right: 6px; box-shadow: 0 0 8px #4CAF50; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.scan-svg-wrap { position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--border); }
.scan-legend { display: flex; gap: 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex-wrap: wrap; justify-content: center; }
.scan-legend span { display: flex; align-items: center; gap: 6px; }
.legend-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* STATS BAR */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: var(--bg-secondary); }
.stat { padding: 40px 28px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--primary); line-height: 1; }
.stat .lab { margin-top: 10px; font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* PREVENTIVA BOX */
.pre-audit-box {
  background: var(--bg-secondary);
  border: 1.5px dashed var(--accent-olive);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.pre-audit-icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(81, 99, 71, 0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-olive);
}
.pre-audit-text h3 { font-size: 19px; margin-bottom: 4px; color: var(--accent-olive); font-family: var(--font-body); font-weight: 600; }
.pre-audit-text p { font-size: 14.5px; color: var(--text-muted); }

/* SERVIZI */
.servizi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 10px; }
.servizio { background: var(--bg-secondary); padding: 38px; border-radius: var(--radius); border: 1px solid var(--border); transition: border-color .2s, transform .2s, box-shadow .2s; display: block; text-decoration: none; color: inherit; position: relative; }
.servizio:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.servizio::after { content: "Scopri di più →"; display: block; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--primary); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.servizio:hover::after { opacity: 1; transform: translateX(0); }
.servizio-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--bg-primary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.servizio:hover { border-color: var(--primary); transform: translateY(-2px); }
.servizio .tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.servizio h3 { font-size: 22px; margin-top: 12px; }
.servizio p { color: var(--text-muted); margin-top: 12px; font-size: 15px; }
.servizio-bar { height: 4px; width: 44px; margin-top: 24px; border-radius: 2px; }

/* METODO */
.phases-heading { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(21px, 2.6vw, 27px); color: var(--primary); margin: 50px 0 6px; text-align: center; }
.fasi-list { display: flex; flex-direction: column; gap: 16px; }
.fase-row {
  display: flex; align-items: center; gap: 24px;
  background: var(--bg-secondary); padding: 26px 32px; border-radius: var(--radius); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.fase-row:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.fase-row-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--bg-primary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fase-row-body { flex: 1; min-width: 0; }
.fase-row .tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.fase-row h3 { font-size: 19px; margin-top: 6px; }
.fase-row p { color: var(--text-muted); margin-top: 6px; font-size: 14.5px; }
.fase-row-arrow { flex-shrink: 0; color: var(--text-faint); font-size: 20px; transition: transform .2s, color .2s; }
.fase-row:hover .fase-row-arrow { color: var(--primary); transform: translateX(4px); }

/* PREVENTIVI */
.pv-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pv-phase { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.pv-phase-num { font-family: var(--font-mono); color: var(--accent-olive); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.pv-phase h3 { font-size: 19px; margin-bottom: 10px; }
.pv-phase p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.pv-phase-price { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border); font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--primary); }
.pv-phase-price small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 12.5px; font-weight: 400; color: var(--text-muted); }
.pv-phase-price--custom { font-size: 17px; color: var(--accent-olive); }
.pv-not-binding { margin-top: 18px; padding: 14px 16px; background: var(--bg-secondary); border: 1.5px dashed var(--accent-olive); border-radius: var(--radius); font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.pv-not-binding strong { color: var(--accent-olive); }
.pv-note-wide { max-width: 640px; margin-left: auto; margin-right: auto; margin-top: 28px; text-align: center; }

.pv-slider-box { max-width: 560px; margin: 0 auto 32px; padding: 24px 28px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.pv-slider-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.pv-slider-row { display: flex; align-items: center; gap: 16px; }
.pv-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--border); outline: none; }
.pv-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 3px solid var(--bg-secondary); box-shadow: 0 0 0 1px var(--primary); }
.pv-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; border: 3px solid var(--bg-secondary); box-shadow: 0 0 0 1px var(--primary); }
.pv-slider:disabled { opacity: 0.4; }
.pv-slider-value { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--primary); white-space: nowrap; min-width: 74px; text-align: right; }
.pv-slider-value strong { font-size: 20px; }
.pv-over-btn { margin-top: 16px; padding: 8px 16px; border: 1.5px solid var(--border); background: var(--bg-primary); color: var(--text-muted); font-size: 13px; font-weight: 500; border-radius: 20px; transition: border-color .15s, background .15s, color .15s; }
.pv-over-btn:hover { border-color: var(--accent-olive); color: var(--accent-olive); }
.pv-over-btn.active { border-color: var(--accent-olive); background: var(--accent-olive); color: #FFF; }
.pv-over-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.pv-cta { margin-top: 28px; text-align: center; }

/* CHATBOT */
.consult-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: start; }
.consult-copy h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; }
.consult-copy p { color: var(--text-muted); margin-top: 16px; font-size: 16.5px; }
.consult-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.consult-list .ci { display: flex; gap: 12px; font-size: 15px; color: var(--text-muted); }
.consult-list .ci b { color: var(--primary); }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.msg.bot { background: var(--bg-tertiary); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.bot.typing { color: var(--text-muted); font-style: italic; }
.msg.bot p { margin: 0 0 8px; }
.msg.bot p:last-child { margin-bottom: 0; }
.msg.bot ul, .msg.bot ol { margin: 4px 0 8px; padding-left: 18px; }
.msg.bot ul:last-child, .msg.bot ol:last-child { margin-bottom: 0; }
.msg.bot li { margin-bottom: 4px; }
.msg.bot li:last-child { margin-bottom: 0; }
.msg.user { background: var(--primary); color: #FFF; align-self: flex-end; border-bottom-right-radius: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.chip { border: 1.5px solid var(--border); background: var(--bg-primary); color: var(--text-main); font-size: 13.5px; padding: 8px 14px; border-radius: 20px; transition: border-color .15s, background .15s; font-weight: 500; }
.chip:hover { border-color: var(--primary); background: rgba(28, 82, 122, 0.05); }

.contact-paths { display: flex; flex-direction: column; gap: 16px; }
.contact-path {
  display: flex; align-items: flex-start; gap: 16px; text-align: left;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit; width: 100%;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact-path:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.contact-path-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-path-icon--wa { background: #25D366; color: #FFF; }
.contact-path-icon--bot { background: linear-gradient(145deg, var(--primary), var(--primary-light)); color: #FFF; }
.contact-path-body h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.contact-path-body p { font-size: 14px; color: var(--text-muted); }
.contact-path-arrow { margin-left: auto; color: var(--text-faint); font-size: 18px; flex-shrink: 0; align-self: center; }

/* FAQ */
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; color: var(--text-main); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-family: var(--font-body); font-weight: 600; }
.faq-plus { font-family: var(--font-mono); color: var(--primary); font-size: 20px; transition: transform .2s; flex-shrink: 0; margin-left: 20px; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { padding-bottom: 24px; color: var(--text-muted); font-size: 15px; max-width: 720px; }

/* RECENSIONI */
.rev-carousel { position: relative; }
.rev-viewport { overflow: hidden; }
.rev-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.rev-page { min-width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rev { background: var(--bg-secondary); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-direction: column; min-height: 220px; }
.rev p { font-size: 15px; color: var(--text-muted); font-style: italic; line-height: 1.6; }
.rev p + p { margin-top: 12px; }
.rev-text { max-height: 100px; overflow: hidden; position: relative; }
.rev-text.expanded { max-height: none; }
.rev-text.is-clamped:not(.expanded)::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 36px; background: linear-gradient(to bottom, transparent, var(--bg-secondary)); }
.rev-toggle { align-self: flex-start; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; }
.rev-toggle[hidden] { display: none; }
.rev .who { margin-top: auto; padding-top: 24px; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--accent-olive); text-transform: uppercase; letter-spacing: 0.05em; }
.rev-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.rev-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-main); display: flex; align-items: center; justify-content: center; transition: border-color .15s, color .15s, background .15s; }
.rev-arrow:hover { border-color: var(--primary); color: var(--primary); }
.rev-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.rev-arrow:disabled:hover { border-color: var(--border); color: var(--text-main); }
.rev-dots { display: flex; gap: 8px; }
.rev-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s, transform .2s; }
.rev-dots .dot.active { background: var(--primary); transform: scale(1.2); }

/* CONTATTI */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-top: 22px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin-top: 6px; font-size: 16.5px; font-weight: 500; }
.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 360px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: contrast(0.95); }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: var(--bg-secondary); color: var(--text-muted); }
.map-placeholder svg { color: var(--primary); }
.map-placeholder p { font-size: 14.5px; font-weight: 600; color: var(--text-main); }
.map-placeholder-note { font-size: 12px; color: var(--text-faint); }

footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: var(--bg-secondary); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-brand { max-width: 300px; }
.foot-logo { height: 34px; width: auto; margin-bottom: 16px; }
[data-theme="dark"] .foot-logo { background: #FFF; padding: 6px 10px; border-radius: 6px; }
.foot-brand p { font-size: 13.5px; color: var(--text-faint); line-height: 1.6; }
.foot-col-title { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-main); margin-bottom: 16px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: var(--text-muted); transition: color .15s; }
.foot-col a:hover { color: var(--primary); }
.foot-copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* PAGINA FAQ — MACRO ARGOMENTI ESPANDIBILI */
.faq-groups { display: flex; flex-direction: column; gap: 14px; }
.faq-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-secondary); overflow: hidden; }
.faq-group-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: normal; color: var(--text-main);
}
.faq-group-head .fg-count { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; margin-right: auto; margin-left: 14px; }
.faq-group-head .faq-plus { flex-shrink: 0; }
.faq-group-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--bg-primary); }
.faq-group.open .faq-group-body { max-height: 4000px; }
.faq-group.open .faq-group-head { border-bottom: 1px solid var(--border); }
.faq-group.open .faq-group-head .faq-plus { transform: rotate(45deg); }
.faq-group-body .faq-item { border-bottom: 1px solid var(--border); }
.faq-group-body .faq-item:last-child { border-bottom: none; }
.faq-group-body .faq-q { padding: 16px 24px; font-size: 15px; }
.faq-group-body .faq-a p { padding: 0 24px 20px; max-width: none; }
.faq-group-body .faq-item.open .faq-a { max-height: 600px; }
.faq-search { margin-bottom: 40px; }
.faq-search input {
  width: 100%; padding: 15px 20px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--bg-secondary); color: var(--text-main); font-family: var(--font-body); font-size: 15px;
}
.faq-search input:focus { outline: none; border-color: var(--primary); }
.faq-search input::placeholder { color: var(--text-faint); }

/* CHATBOT IA FLUTTUANTE */
.aibot-wrap { position: fixed; right: 24px; bottom: 24px; z-index: 300; }
.aibot-fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  box-shadow: 0 10px 28px rgba(28,82,122,0.38);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.aibot-fab:hover { transform: scale(1.06); }
.aibot-badge {
  position: absolute; top: -4px; right: -4px; background: var(--accent-olive); color: #FFF;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .03em;
  padding: 2px 5px; border-radius: 20px; border: 2px solid var(--bg-primary);
}
.aibot-panel {
  position: absolute; bottom: 74px; right: 0; width: 340px; max-width: calc(100vw - 48px);
  background: var(--bg-primary); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; overflow: hidden;
  height: 460px; max-height: 70vh;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.aibot-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.aibot-head { display:flex; align-items:center; justify-content:space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); flex-shrink: 0; }
.aibot-head-title { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; display:flex; align-items:center; gap:8px; color: var(--text-main); }
.aibot-close { color: var(--text-faint); font-size: 14px; width: 26px; height: 26px; border-radius: 50%; display:flex; align-items:center; justify-content:center; transition: background .15s; }
.aibot-close:hover { background: var(--bg-tertiary); }
.aibot-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.aibot-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.aibot-foot input { flex: 1; padding: 10px 14px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg-secondary); color: var(--text-main); font-family: var(--font-body); font-size: 13.5px; }
.aibot-foot input:focus { outline: none; border-color: var(--primary); }
.aibot-foot input::placeholder { color: var(--text-faint); }
.aibot-send { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #FFF; display:flex; align-items:center; justify-content:center; flex-shrink: 0; transition: background .15s; }
.aibot-send:hover { background: var(--primary-light); }

@media (max-width: 480px) {
  .aibot-wrap { right: 16px; bottom: 16px; }
  .aibot-panel { width: calc(100vw - 32px); right: -8px; }
}

/* PAGINA DETTAGLIO SERVIZIO */
.service-detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.service-detail-grid.reverse > *:first-child { order: 2; }
.service-detail-grid h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 14px 0 18px; }
.service-detail-grid > div:first-child p { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; }
.service-illustration { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.service-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.service-list div { display: flex; flex-direction: column; gap: 3px; }
.service-list strong { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-olive); }
.service-list span { font-size: 14.5px; color: var(--text-muted); }

/* RESPONSIVE DESIGN */
@media (max-width: 920px) {
  .scan-panel { padding: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .servizi-grid { grid-template-columns: 1fr; }
  .chi-siamo-grid { grid-template-columns: 1fr; }
  .chi-siamo-stats { grid-template-columns: 1fr 1fr; }
  .pv-phases { grid-template-columns: 1fr; }
  .consult-grid { grid-template-columns: 1fr; }
  .rev-page { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { max-width: none; grid-column: 1 / -1; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .service-detail-grid.reverse > *:first-child { order: 0; }
  .service-illustration { max-width: 260px; margin: 0 auto; }
  .fase-row { flex-wrap: wrap; padding: 22px; }
  .fase-row-arrow { display: none; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 69px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-primary); border-top: 1px solid var(--border);
    padding: 8px 20px 24px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links > a, .nav-drop-btn { padding: 14px 4px; border-bottom: 1px solid var(--border); width: 100%; justify-content: space-between; }
  .nav-item.open .nav-drop-btn { border-bottom: 1px solid var(--border); }
  .dropdown-menu {
    position: static; transform: none; width: auto; box-shadow: none; border: none;
    padding: 0 0 4px 8px; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-item.open .dropdown-menu { max-height: 600px; transform: none; }
  .nav .btn { display: none; }

  .pre-audit-box { flex-direction: column; text-align: center; }
}