:root {
  --text: #2b2320;
  --text-2: #7d7168;
  --text-3: #a39588;
  --bg: #fdfbf8;
  --bg-beige: #f6f0e8;
  --rose: #b96c90;
  --rose-dark: #a75c81;
  --rose-soft: #f9e7f0;
  --pink-light: #ebb9ce;
  --dark: #1e1815;
  --dark-card: #2a211d;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; }

/* ── Nav (scura calda, stile Apple) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(30, 24, 21, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 245, 238, 0.08);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 50%; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1;
  font-family: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  font-size: 19px; color: #f7f1ea; letter-spacing: 0.01em;
}
.brand-name em {
  font-style: normal; font-family: var(--font);
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--pink-light); margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; color: #f7f1ea; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--rose); color: #fff !important; opacity: 1 !important;
  padding: 6px 14px; border-radius: 980px; font-weight: 500;
}
.nav-cta:hover { background: var(--rose-dark); }

/* ── Hero (scura calda, a tutta pagina) ── */
.hero {
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(235, 185, 206, 0.12), transparent 62%),
    radial-gradient(760px 420px at 12% 96%, rgba(223, 192, 168, 0.09), transparent 60%),
    var(--dark);
  color: #f7f1ea;
  min-height: calc(100vh - 52px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 60px 22px;
}
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 2; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-media.ready .hero-video { opacity: 0.55; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 24, 21, 0.55), rgba(30, 24, 21, 0.35) 45%, rgba(30, 24, 21, 0.75)),
    radial-gradient(1000px 560px at 50% 46%, rgba(30, 24, 21, 0.42), transparent 75%);
}
.hero-eyebrow {
  font-size: 13px; font-weight: 600; color: var(--pink-light);
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(52px, 8.5vw, 96px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.03; margin-bottom: 22px;
  color: #f7f1ea;
}
.hero-sub { font-size: clamp(19px, 2.6vw, 27px); color: #c9bbaf; font-weight: 400; margin-bottom: 34px; }
.hero-links { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero .link-arrow { color: var(--pink-light); }

.btn {
  display: inline-block; background: var(--rose); color: #fff;
  font-family: var(--font); font-size: 17px; font-weight: 500;
  padding: 13px 26px; border-radius: 980px; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(185, 108, 144, 0.28);
}
.btn:hover { background: var(--rose-dark); box-shadow: 0 10px 28px rgba(185, 108, 144, 0.36); }
.btn-full { width: 100%; }
.link-arrow { font-size: 17px; color: var(--rose); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ── Sections ────────────────────── */
.section { max-width: 1024px; margin: 0 auto; padding: 100px 22px; }
.section-gray { max-width: none; background: var(--bg-beige); }
.section-gray > * { max-width: 1024px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.08; margin-bottom: 54px;
}
.muted { color: var(--text-3); }
.section-note { text-align: center; margin-top: 44px; color: var(--text-2); font-size: 15px; }

/* ── Bento ───────────────────────── */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile {
  background: var(--bg-beige); border-radius: var(--radius);
  padding: 44px 40px; overflow: hidden;
  border: 1px solid rgba(43, 35, 32, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(75, 55, 45, 0.10); }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.tile-dark { background: var(--dark); color: #f7f1ea; border: none; }
.tile-dark .tile-sub { color: #bfb2a6; }
.tile-eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--rose); margin-bottom: 10px;
}
.tile-eyebrow.light { color: var(--pink-light); }
.tile h3 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; margin-bottom: 14px; font-weight: 700; }
.tile-sub { font-size: 16px; color: var(--text-2); }

/* mock browser (tile siti) */
.mock-browser {
  background: var(--dark-card); border: 1px solid #46362e; border-radius: 16px;
  padding: 18px; max-width: 340px; margin-left: auto;
}
.mock-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #55443b; }
.mock-line { height: 10px; border-radius: 5px; background: #46362e; margin-bottom: 10px; }
.mock-line.w60 { width: 60%; background: #6b564a; }
.mock-line.w90 { width: 90%; }
.mock-line.w75 { width: 75%; }
.mock-btn { width: 110px; height: 30px; border-radius: 980px; background: var(--rose); margin-top: 14px; }

/* serp (tile SEO) */
.serp { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.serp-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(75, 55, 45, 0.06);
}
.serp-badge {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.serp-badge.dim { background: #e5dcd2; color: #8c8178; }
.serp-row b { font-size: 14px; display: block; }
.serp-row .dim-b { color: var(--text-3); font-weight: 500; }
.serp-row small { font-size: 12px; color: var(--text-3); }
.serp-you { outline: 2px solid var(--rose); }

/* chat (tile GEO) */
.chat { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  border-radius: 18px; padding: 12px 16px; font-size: 14px; max-width: 92%;
}
.bubble.user { background: var(--rose); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble.ai { background: #fff; box-shadow: 0 2px 8px rgba(75, 55, 45, 0.06); align-self: flex-start; border-bottom-left-radius: 6px; }
.ai-spark { color: var(--rose); margin-right: 4px; }

/* ── Sequenza scroll-driven ──────── */
/* Il fondo della sezione è quasi nero come i filmati: si fondono senza stacco.
   L'altezza dà la corsa di scroll: più è alta, più lo scrubbing è fine. */
.story { height: 520vh; background: #131010; }
.story-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* Le scritte vivono su un livello a tutta scena e ogni passo ha la SUA
   posizione, scelta in base a dove il filmato è scuro e libero:
   finestra e nuvolette lasciano aria in alto, card e barra in basso. */
.story-captions { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.story-caption {
  position: absolute; left: 5vw; right: 5vw;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.02em;
  color: #f7f1ea; opacity: 0; transform: translateY(24px);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-caption[data-cap="0"],
.story-caption[data-cap="2"] { top: 8vh; }
.story-caption[data-cap="1"],
.story-caption[data-cap="3"] { bottom: 8vh; }
.story-caption span { color: var(--pink-light); margin-left: 12px; }
.story-caption small {
  display: block; margin-top: 12px;
  font-size: clamp(14px, 1.4vw, 17px); font-weight: 500; letter-spacing: 0;
  color: #e9ddd2;
  background: rgba(19, 16, 16, 0.5);
  padding: 6px 18px; border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.story-pin[data-step="0"] .story-caption[data-cap="0"],
.story-pin[data-step="1"] .story-caption[data-cap="1"],
.story-pin[data-step="2"] .story-caption[data-cap="2"],
.story-pin[data-step="3"] .story-caption[data-cap="3"] { opacity: 1; transform: none; }

/* Il filmato è più piccolo e centrale, senza cornice. L'integrazione è
   doppia: i bordi del video sfumano con una maschera molto morbida, e dietro
   c'è un alone (canvas) che riprende i colori veri del fotogramma, sfocato
   e allargato, che scioglie l'esterno verso il nero con le stesse tinte. */
/* Il montaggio video non ha link: non deve mai catturare il click (in Safari
   una mascheratura -webkit-mask non toglie l'hit-test sul riquadro trasparente). */
.story-stage { position: relative; z-index: 0; width: min(1020px, 88vw); pointer-events: none; }
.story-glow {
  position: absolute; left: -20%; top: -26%; width: 140%; height: 152%;
  filter: blur(64px) saturate(1.35) brightness(0.95);
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(ellipse 76% 74% at 50% 50%, #000 34%, transparent 82%);
  mask-image: radial-gradient(ellipse 76% 74% at 50% 50%, #000 34%, transparent 82%);
  pointer-events: none;
}
.story-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  /* sfumatura verticale: azzera davvero il bordo alto e basso */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.story-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  /* sfumatura orizzontale sui fianchi: insieme alla verticale del contenitore
     i quattro bordi svaniscono del tutto, niente più sagoma del riquadro */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  opacity: 0; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-pin[data-step="-1"] .story-video[data-vid="0"],
.story-pin[data-step="0"] .story-video[data-vid="0"],
.story-pin[data-step="1"] .story-video[data-vid="1"],
.story-pin[data-step="2"] .story-video[data-vid="2"],
.story-pin[data-step="3"] .story-video[data-vid="3"] { opacity: 1; }

@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding: 70px 22px; flex-direction: column; gap: 26px; }
  .story-captions { position: static; inset: auto; display: flex; flex-direction: column; gap: 14px; pointer-events: auto; }
  .story-caption { position: static; opacity: 1; transform: none; font-size: 26px; }
  .story-caption small { margin-top: 4px; }
  /* senza scroll pinnato il primo filmato resta come manifesto */
  .story-stage { width: min(680px, 92vw); }
  .story-glow { display: none; }
  .story-video { opacity: 0; }
  .story-pin .story-video[data-vid="0"] { opacity: 1; }
}

/* ── GEO spotlight (scura calda) ── */
.spotlight { background: var(--dark); color: #f7f1ea; padding: 110px 22px; }
.spotlight-inner { max-width: 1024px; margin: 0 auto; text-align: center; }
.spotlight-title {
  font-size: clamp(36px, 5.5vw, 60px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.07; margin-bottom: 22px;
}
.grad {
  background: linear-gradient(90deg, #ebb9ce, #e6c8a8, #d999b8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spotlight-sub { font-size: 19px; color: #bfb2a6; max-width: 680px; margin: 0 auto 56px; }
.spotlight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: left; }
.spot-card {
  background: var(--dark-card); border-radius: 22px; padding: 30px 28px;
  border: 1px solid rgba(235, 185, 206, 0.10);
  transition: background 0.3s;
}
.spot-card:hover { background: #342924; }
.spot-card h4 { font-size: 19px; margin-bottom: 8px; color: #f7f1ea; }
.spot-card p { font-size: 14.5px; color: #bfb2a6; }

/* ── Metodo ──────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--bg-beige); border-radius: 22px; padding: 30px 26px; border: 1px solid rgba(43, 35, 32, 0.05); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); color: #f7f1ea; font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-2); }

/* ── Risultati ───────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border-radius: 22px; padding: 30px 26px; box-shadow: 0 4px 16px rgba(75, 55, 45, 0.05); }
.stat strong { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--rose); display: block; margin-bottom: 6px; }
.stat p { font-size: 14px; color: var(--text-2); }
.quote {
  text-align: center; font-size: clamp(21px, 3vw, 28px); font-weight: 600;
  letter-spacing: -0.015em; max-width: 780px; margin: 70px auto 0;
}

/* ── Sicurezza OLTRE CSD ─────────── */
.sicurezza { background: #102b3e; padding: 96px 22px; }
.sicurezza-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 56px;
}
.sicurezza-badge { width: 200px; height: 200px; flex: none; }
.sicurezza-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #3fb4c6; margin-bottom: 12px;
}
.sicurezza-testo h2 {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em;
  color: #f5fafc; line-height: 1.12; margin-bottom: 16px;
}
.sicurezza-testo p:not(.sicurezza-eyebrow) {
  font-size: 17px; line-height: 1.65; color: #b7cbd8; max-width: 580px;
}
@media (max-width: 700px) {
  .sicurezza-inner { flex-direction: column; text-align: center; gap: 30px; }
  .sicurezza-badge { width: 150px; height: 150px; }
  .sicurezza-testo p:not(.sicurezza-eyebrow) { margin: 0 auto; }
}

/* ── Area clienti ────────────────── */
.clients { background: var(--rose-soft); padding: 100px 22px; }
.clients-inner {
  max-width: 1024px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.clients-copy h2 {
  font-size: clamp(34px, 5vw, 54px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08; margin: 10px 0 18px;
}
.clients-sub { font-size: 17px; color: var(--text-2); margin-bottom: 24px; }
.clients-points { list-style: none; }
.clients-points li {
  font-size: 15px; color: var(--text-2); padding: 9px 0 9px 30px; position: relative;
  border-top: 1px solid rgba(185, 108, 144, 0.22);
}
.clients-points li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--rose); font-weight: 700;
}
.login-card {
  background: #fff; border-radius: var(--radius); padding: 38px 34px;
  box-shadow: 0 14px 40px rgba(151, 88, 99, 0.14);
  display: flex; flex-direction: column; gap: 18px;
}
.login-card h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.015em; }
.login-card label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 7px; }
.login-card input {
  font-family: var(--font); font-size: 16px; padding: 13px 15px;
  border: 1px solid #e2d7cc; border-radius: 12px; background: #fff; color: var(--text);
}
.login-card input:focus { outline: 2px solid var(--rose); border-color: transparent; }
.login-error { font-size: 13.5px; color: #c0392b; font-weight: 500; }
.login-success p { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.login-success .btn { background: var(--text); box-shadow: 0 8px 24px rgba(43, 35, 32, 0.24); }
.login-success .btn:hover { background: var(--dark); }
.login-hint { font-size: 12.5px; color: var(--text-3); text-align: center; }
.login-hint a { color: var(--rose); text-decoration: none; }
.login-hint a:hover { text-decoration: underline; }
.btn-ghost {
  background: transparent; color: var(--rose-dark);
  border: 1.5px solid var(--rose); box-shadow: none; margin-top: 4px;
}
.btn-ghost:hover { background: var(--rose-soft); }

/* ── Brief: il cliente racconta come vuole il sito ── */
.brief-card {
  background: #fff; border-radius: var(--radius); padding: 34px 32px; margin-top: 22px;
  box-shadow: 0 14px 40px rgba(151, 88, 99, 0.14);
  display: flex; flex-direction: column; gap: 18px; grid-column: 1 / -1;
}
.brief-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.brief-intro { font-size: 14px; color: var(--text-2); margin-top: -8px; }
.brief-label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.brief-domanda { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: -6px; }

/* menu a tendina compatto, non a tutta larghezza, con freccia personalizzata */
.brief-select { position: relative; max-width: 340px; }
.brief-select::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--rose); border-bottom: 2px solid var(--rose);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.brief-select select {
  appearance: none; -webkit-appearance: none;
  width: 100%; font-family: var(--font); font-size: 15px; padding: 12px 40px 12px 15px;
  border: 1px solid #e2d7cc; border-radius: 12px; background: #fff; color: var(--text); cursor: pointer;
}
.brief-select select:focus { outline: 2px solid var(--rose); border-color: transparent; }
.brief-card textarea {
  font-family: var(--font); font-size: 15px; padding: 12px 15px;
  border: 1px solid #e2d7cc; border-radius: 12px; background: #fff; color: var(--text); resize: vertical;
}
.brief-card textarea:focus { outline: 2px solid var(--rose); border-color: transparent; }

/* opzioni come schede selezionabili con spunta personalizzata */
.brief-opzioni { display: flex; flex-direction: column; gap: 10px; }
.brief-check {
  display: flex; gap: 13px; align-items: center;
  padding: 13px 15px; border: 1.5px solid #efe4d8; border-radius: 14px; cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.brief-check:hover { border-color: var(--pink-light); }
.brief-check input { position: absolute; opacity: 0; pointer-events: none; }
.brief-check-box {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid #d8c9bc; background: #fff; position: relative; transition: all 0.18s;
}
.brief-check-box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(45deg) scale(0); transition: transform 0.18s;
}
.brief-check input:checked ~ .brief-check-box { background: var(--rose); border-color: var(--rose); }
.brief-check input:checked ~ .brief-check-box::after { transform: rotate(45deg) scale(1); }
.brief-check:has(input:checked) { border-color: var(--rose); background: var(--rose-soft); }
.brief-check input:focus-visible ~ .brief-check-box { outline: 2px solid var(--rose); outline-offset: 2px; }
.brief-check-txt { display: flex; flex-direction: column; gap: 2px; }
.brief-check-txt b { font-size: 14.5px; font-weight: 650; }
.brief-check-txt small { font-size: 12.5px; color: var(--text-2); }

/* bottone a misura, non a tutta larghezza */
.brief-invia { align-self: flex-start; padding: 13px 34px; }
.brief-nota { font-size: 12px; color: var(--text-3); }

/* ── Richiesta accesso via email (area.html) ── */
.login-sub { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-top: -6px; }
.login-avviso {
  font-size: 13px; font-weight: 600; color: var(--rose-dark);
  background: var(--rose-soft); border-radius: 10px; padding: 10px 14px;
}
.login-btn { align-self: flex-start; padding: 13px 30px; }
.login-ok { font-size: 13.5px; font-weight: 600; color: #4c7038; }

/* ── Pagina dedicata dell'area riservata (area.html) ── */
.area-page { background: var(--bg); }
.area-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1024px; margin: 0 auto; padding: 22px;
}
.area-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.area-brand-logo { width: 38px; height: 38px; }
.area-brand-name { font-family: var(--font-serif, Georgia, serif); font-size: 20px; color: var(--plum, #5A2A43); font-weight: 600; }
.area-brand-name em { font-style: normal; letter-spacing: 0.12em; font-size: 11px; display: block; color: var(--rose); text-transform: uppercase; }
.area-back { font-size: 13.5px; font-weight: 600; color: var(--rose); text-decoration: none; }
.area-back:hover { text-decoration: underline; }
.area-main { padding: 24px 0 60px; }
.area-page .clients { background: transparent; padding: 20px 22px 40px; }

/* ── Dashboard del cliente (dopo il magic link) ── */
.cliente-dash { max-width: 1024px; margin: 0 auto; }
.cd-head { text-align: center; margin-bottom: 30px; }
.cd-head h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin-top: 8px;
}
.cd-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.cd-card {
  background: #fff; border-radius: var(--radius); padding: 28px 30px;
  box-shadow: 0 14px 40px rgba(151, 88, 99, 0.12);
}
.cd-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.cd-scores { display: flex; flex-direction: column; gap: 12px; }
.cd-score {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid #f0e6dc;
}
.cd-score:last-child { border-bottom: 0; padding-bottom: 0; }
.cd-score-lab { font-size: 13.5px; font-weight: 600; color: var(--text); }
.cd-score-oggi { font-size: 20px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.cd-score-oggi.cd-basso { color: #b85c5c; }
.cd-score-oggi i, .cd-score-nuovo i { font-size: 10px; font-weight: 500; font-style: normal; color: var(--text-3); margin-left: 3px; }
.cd-score-freccia { color: var(--text-3); font-size: 16px; }
.cd-score-nuovo { font-size: 20px; font-weight: 700; color: var(--rose); white-space: nowrap; }
.cd-sintesi { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.cd-card-roi { background: var(--dark); color: #f7f1ea; }
.cd-card-roi h3 { color: #f7f1ea; }
.cd-roi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cd-roi strong { display: block; font-size: 26px; font-weight: 700; color: var(--pink-light); letter-spacing: -0.02em; }
.cd-roi span { font-size: 11.5px; color: #c9bbaf; }
.cd-bozza { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--pink-light); }
.cd-nuovo {
  margin-top: 24px; text-align: center;
  background: var(--rose-soft); border-radius: var(--radius); padding: 30px;
}
.cd-nuovo p { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.cd-nuovo .btn { background: var(--text); }
.cd-nuovo .btn:hover { background: var(--dark); }
.cd-nuovo-attesa { background: var(--bg-beige); }
.cd-nuovo-attesa p { margin-bottom: 0; color: var(--text-2); font-weight: 500; }
.cd-brief { display: block; max-width: 420px; margin: 22px auto 0; }
.cd-scaduto { text-align: center; max-width: 560px; margin: 0 auto; }
.cd-scaduto h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 8px 0 14px; }
.cd-scaduto p { font-size: 16px; color: var(--text-2); margin-bottom: 22px; }
@media (max-width: 820px) {
  .cd-grid { grid-template-columns: 1fr; }
}

/* ── Contatti ────────────────────── */
.contact { max-width: 1024px; margin: 0 auto; padding: 100px 22px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-copy h2 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.contact-sub { font-size: 17px; color: var(--text-2); margin-bottom: 28px; }
.contact-details { font-size: 15px; color: var(--text-2); }
.contact-details b { color: var(--text); }
.contact-form {
  background: var(--bg-beige); border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 7px; }
.contact-form input, .contact-form textarea {
  font-family: var(--font); font-size: 16px; padding: 13px 15px;
  border: 1px solid #e2d7cc; border-radius: 12px; background: #fff;
  color: var(--text); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--rose); border-color: transparent;
}
.form-thanks { font-size: 17px; font-weight: 600; text-align: center; padding: 40px 10px; }

/* ── Footer ──────────────────────── */
.footer {
  background: var(--bg-beige); border-top: 1px solid rgba(43, 35, 32, 0.06);
  text-align: center; padding: 34px 22px; font-size: 13px; color: var(--text-2);
}
.footer-logo { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px; }
.footer-fine { margin-top: 8px; font-size: 12px; color: var(--text-3); }

/* ── Animazioni ──────────────────── */
@media (prefers-reduced-motion: no-preference) {

  /* Entrata hero al caricamento */
  .hero-eyebrow, .hero h1, .hero-sub, .hero-links {
    opacity: 0; transform: translateY(28px);
    animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero h1 { animation-delay: 0.12s; }
  .hero-sub { animation-delay: 0.26s; }
  .hero-links { animation-delay: 0.4s; }
  @keyframes rise { to { opacity: 1; transform: none; } }

  /* Reveal allo scroll (classe aggiunta via JS) */
  .reveal {
    opacity: 0; transform: translateY(26px);
    transition:
      opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s),
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
    will-change: opacity, transform;
  }
  .reveal.in { opacity: 1; transform: none; }

  /* Gradiente animato del titolo GEO */
  .grad {
    background-size: 220% 100%;
    animation: gradShift 7s ease-in-out infinite alternate;
  }
  @keyframes gradShift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
  }

  /* Shimmer sulle righe del mock browser */
  .mock-line { position: relative; overflow: hidden; }
  .mock-line::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 232, 0.10), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.8s ease-in-out infinite;
  }
  .mock-line.w90::after { animation-delay: 0.3s; }
  .mock-line.w75::after { animation-delay: 0.6s; }
  @keyframes shimmer { 55%, 100% { transform: translateX(100%); } }

  /* Glow morbido che respira dietro la hero */
  .hero { position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: -20%;
    background: radial-gradient(620px 420px at 70% 20%, rgba(235, 185, 206, 0.10), transparent 65%);
    animation: breathe 9s ease-in-out infinite alternate;
    pointer-events: none;
  }
  @keyframes breathe {
    from { opacity: 0.5; transform: translate3d(0, 0, 0) scale(1); }
    to { opacity: 1; transform: translate3d(-3%, 2%, 0) scale(1.06); }
  }
  .hero > * { position: relative; }
}

/* ── Marquee settori ─────────────── */
.marquee {
  overflow: hidden; margin-top: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-3);
  animation: marquee 36s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--rose); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Area riservata (admin) ──────── */
.admin-body { background: var(--bg); }
/* L'area di lavoro sfrutta tutta la larghezza dello schermo */
.admin-main { max-width: min(1560px, 96vw); margin: 0 auto; padding: 40px 26px 90px; }
.admin-login { display: flex; justify-content: center; padding: 90px 0; }
.admin-login .login-card { width: min(420px, 100%); }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.admin-sub { font-size: 15px; color: var(--text-2); margin-top: 4px; }

.admin-head-actions { display: flex; align-items: center; gap: 12px; }

.admin-key {
  background: var(--rose-soft); border-radius: 16px; padding: 20px 22px;
  margin-bottom: 26px; display: flex; flex-direction: column; gap: 12px;
}
.admin-key label { font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.admin-key input {
  font-family: var(--font); font-size: 14px; padding: 10px 13px;
  border: 1px solid #e0cdd8; border-radius: 10px; background: #fff; color: var(--text);
}
.admin-key input:focus { outline: 2px solid var(--rose); border-color: transparent; }
.admin-key-hint { font-size: 11.5px; color: var(--text-2); }
.admin-key-ok {
  font-size: 13px; font-weight: 600; color: #4c7038;
  background: #e4efdd; border-radius: 10px; padding: 10px 14px;
}

.admin-panel {
  background: var(--bg-beige); border-radius: 16px; padding: 24px 26px;
  margin-bottom: 26px; display: flex; flex-direction: column; gap: 18px;
}
.admin-panel h3 { font-size: 20px; }
.admin-panel label {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  display: flex; flex-direction: column; gap: 7px;
}
.admin-panel input {
  font-family: var(--font); font-size: 15px; padding: 12px 14px;
  border: 1px solid #e2d7cc; border-radius: 10px; background: #fff; color: var(--text);
}
.admin-panel input:focus { outline: 2px solid var(--rose); border-color: transparent; }
.admin-panel .admin-ai {
  width: auto; align-self: flex-start; padding: 11px 26px; border-radius: 980px;
}
.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid rgba(43, 35, 32, 0.07); border-radius: 12px;
  padding: 12px 16px;
}
.admin-row b { font-size: 15px; }
.admin-row-meta { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.admin-tu {
  font-size: 10.5px; font-weight: 700; color: var(--rose);
  background: var(--rose-soft); padding: 2px 8px; border-radius: 980px;
}
.admin-subform { display: flex; flex-direction: column; gap: 14px; }
.admin-subform-title { font-size: 13.5px; font-weight: 600; }
.admin-new-done {
  background: #fff; border: 1px solid rgba(43, 35, 32, 0.07); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--text-2);
}
#nd-qr { width: 128px; height: 128px; flex-shrink: 0; }
#nd-qr svg { width: 100%; height: 100%; display: block; }
#nd-secret { display: inline-block; background: var(--bg-beige); border-radius: 8px; padding: 4px 8px; font-size: 12px; letter-spacing: 0.06em; user-select: all; }
.admin-new-done a { color: var(--rose); }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-stat { background: var(--bg-beige); border-radius: 18px; padding: 18px 20px; }
.admin-stat strong { font-size: 30px; font-weight: 700; color: var(--rose); display: block; letter-spacing: -0.02em; }
.admin-stat span { font-size: 12.5px; color: var(--text-2); }

/* ── Dashboard del potenziale commerciale ── */
.pipeline {
  background: var(--dark); border-radius: 22px;
  padding: 24px 26px; margin-bottom: 26px;
  color: #f7f1ea;
}
.pipeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pipeline-head h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.pipeline-head span { font-size: 12px; color: #a3958a; }
.pipeline-numeri {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 16px;
}
.pipeline-numeri strong {
  display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--pink-light);
}
.pipeline-numeri span { font-size: 11.5px; color: #c9bbaf; }
.pipeline-righe { list-style: none; border-top: 1px solid rgba(247, 241, 234, 0.12); }
.pipeline-righe li {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 2px; border-bottom: 1px solid rgba(247, 241, 234, 0.08);
  font-size: 12.5px; cursor: pointer;
}
.pipeline-righe li:hover b { color: var(--pink-light); }
.pipeline-righe b { min-width: 150px; font-weight: 650; transition: color 0.2s; }
.pipeline-righe .pl-prezzo { color: #e4d9cf; }
.pipeline-righe .pl-ritorno { color: #a3958a; }
.pipeline-righe .pl-perc { margin-left: auto; font-weight: 700; color: var(--pink-light); }
@media (max-width: 700px) {
  .pipeline-numeri { grid-template-columns: repeat(2, 1fr); }
  .pipeline-righe li { flex-wrap: wrap; gap: 6px 14px; }
}

.admin-form {
  background: var(--bg-beige); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px;
}
.admin-form h3 { font-size: 20px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.admin-form label { font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.admin-form input, .admin-form select, .admin-form textarea {
  font-family: var(--font); font-size: 15px; padding: 11px 13px;
  border: 1px solid #e2d7cc; border-radius: 10px; background: #fff; color: var(--text);
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 2px solid var(--rose); border-color: transparent; }
.admin-form-actions { display: flex; gap: 12px; }
.btn-ghost-admin {
  background: transparent; color: var(--text); border: 1.5px solid #d5c9bc;
  box-shadow: none; font-size: 16px; padding: 12px 24px; border-radius: 980px; cursor: pointer; font-family: var(--font);
}
.btn-ghost-admin:hover { border-color: var(--text); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.admin-card {
  background: #fff; border: 1px solid rgba(43, 35, 32, 0.07); border-radius: 22px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 6px 20px rgba(75, 55, 45, 0.05);
}
.admin-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-card h3 { font-size: 20px; letter-spacing: -0.01em; }
.admin-badge { font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 980px; white-space: nowrap; }
.st-lavorazione { background: #f3e8d8; color: #8a6a33; }
.st-anteprima { background: var(--rose-soft); color: var(--rose-dark); }
.st-approvato { background: #e4efdd; color: #4c7038; }
.st-online { background: #2b2320; color: #f7f1ea; }
.admin-meta { font-size: 12.5px; color: var(--text-3); }
.admin-note { font-size: 13.5px; color: var(--text-2); background: var(--bg-beige); border-radius: 12px; padding: 10px 14px; }
.admin-links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.admin-links a { color: var(--rose); text-decoration: none; font-weight: 500; }
.admin-links a:hover { text-decoration: underline; }
.admin-dim { color: var(--text-3); font-size: 13px; }
.admin-nosito {
  font-size: 13px; font-weight: 600; color: var(--rose-dark);
  background: var(--rose-soft); border-radius: 980px; padding: 4px 12px;
  align-self: flex-start;
}
.admin-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
}
.admin-check input { accent-color: var(--rose); width: 16px; height: 16px; }
.admin-pres { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid rgba(43, 35, 32, 0.07); padding-top: 12px; }
.admin-pres-name { font-size: 12.5px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-mini {
  font-family: var(--font); font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: var(--bg-beige); color: var(--text); border: none;
  padding: 7px 14px; border-radius: 980px; transition: background 0.2s;
}
.admin-mini:hover { background: #ece2d5; }
.admin-mini-danger { color: #a33b3b; }
.admin-upload { display: inline-block; background: var(--rose); color: #fff; }
.admin-upload:hover { background: var(--rose-dark); }
.admin-card-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ── Accesso cliente (magic link + password) ── */
.accesso-cliente {
  background: var(--rose-soft); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.accesso-titolo { font-size: 13px; font-weight: 700; color: var(--rose-dark); }
.accesso-stato { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.accesso-scaduto { color: #a33b3b; }
.accesso-nota { font-size: 11px; color: var(--text-3); font-style: italic; line-height: 1.5; }
.accesso-pronta { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.accesso-modifica { margin-top: 2px; }
.accesso-modifica > summary {
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--rose-dark);
  list-style: none; padding: 7px 0; user-select: none;
}
.accesso-modifica > summary::-webkit-details-marker { display: none; }
.accesso-modifica > summary::before { content: "✎  "; }
.accesso-modifica[open] > summary::before { content: "▾  "; }
.accesso-modifica .admin-mini { margin-top: 8px; }
.accesso-campo { font-size: 11.5px; font-weight: 600; color: var(--text-2); display: block; }
.accesso-mail {
  display: block; width: 100%; margin-top: 6px; resize: vertical;
  font-family: var(--font); font-size: 13px; line-height: 1.55;
  color: var(--text); background: #fff; border: 1px solid rgba(43, 35, 32, 0.14);
  border-radius: 10px; padding: 12px 14px;
}
.accesso-mail:focus { outline: 2px solid var(--rose); border-color: transparent; }

/* ── Anteprime in miniatura (vecchio vs nuovo) ── */
.prevs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prev { margin: 0; }
.prev-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-beige); border: 1px solid rgba(43, 35, 32, 0.10);
}
.prev-frame iframe {
  width: 400%; height: 400%; border: 0;
  transform: scale(0.25); transform-origin: top left;
  pointer-events: none;
  position: absolute; top: 0; left: 0;
  background: #fff;
}
.prev-frame .prev-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.prev-frame-nuovo { border-color: var(--rose); border-width: 1.5px; }
.prev-apri { display: block; cursor: pointer; }
.prev-apri .prev-frame { transition: transform 0.25s, box-shadow 0.25s; }
.prev-apri:hover .prev-frame {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(75, 55, 45, 0.22);
}
.prev figcaption {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; text-align: center;
}
.prev-vuota {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-3); line-height: 1.4;
}
.prevs-grandi { max-width: 100%; }

/* ── Home compatta e pagina cliente ── */
.admin-card-mini { cursor: pointer; gap: 10px; transition: transform 0.25s, box-shadow 0.25s; }
.admin-card-mini:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(75, 55, 45, 0.12); }
.mini-kpi { font-size: 13.5px; font-weight: 700; color: var(--rose-dark); }
.mini-kpi-dim { color: var(--text-3); font-weight: 500; }
.mini-apri { font-size: 12.5px; font-weight: 600; color: var(--rose); text-align: right; }
.torna-home {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--rose);
  text-decoration: none; margin-bottom: 16px;
}
.torna-home:hover { text-decoration: underline; }
.admin-card-dettaglio { cursor: default; }
.dettaglio-titolo { font-size: 30px; letter-spacing: -0.02em; }

/* ── Sito di esempio generato da Claude ── */
.admin-sito-blocco {
  border-top: 1px solid rgba(43, 35, 32, 0.07); padding-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.admin-sito-blocco:empty { display: none; }
.admin-ai-sito {
  background: var(--dark); color: #f7f1ea; width: auto; align-self: flex-start;
  text-align: center; padding: 10px 26px;
}
.admin-ai-sito:hover { background: #33281f; }
.sito-form { display: flex; flex-direction: column; gap: 10px; }
.sito-form label { font-size: 12.5px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.sito-form textarea {
  font-family: var(--font); font-size: 14px; padding: 10px 12px;
  border: 1px solid #e2d7cc; border-radius: 10px; background: #fff; color: var(--text); resize: vertical;
}
.sito-form textarea:focus { outline: 2px solid var(--rose); border-color: transparent; }
.sito-stato { font-size: 12.5px; font-weight: 600; color: var(--rose-dark); }

/* ── Analisi AI (dashboard per dominio) ── */
.admin-analisi { border-top: 1px solid rgba(43, 35, 32, 0.07); padding-top: 12px; }
.admin-ai { background: var(--rose); color: #fff; width: auto; text-align: center; padding: 10px 26px; }
.admin-ai:hover { background: var(--rose-dark); }
.admin-ai:disabled { opacity: 0.7; cursor: wait; }
.ai-dash { display: flex; flex-direction: column; gap: 10px; }
.ai-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-badge {
  font-size: 12px; font-weight: 700; color: var(--rose);
  background: var(--rose-soft); padding: 4px 12px; border-radius: 980px;
}
.ai-date { font-size: 11.5px; color: var(--text-3); }
.ai-dim { background: var(--bg-beige); border-radius: 14px; padding: 12px 14px; }
.ai-dim-name {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-2); margin-bottom: 8px;
}
.ai-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ai-bar-label { font-size: 11.5px; color: var(--text-2); width: 52px; flex-shrink: 0; }
.ai-track { flex: 1; height: 8px; border-radius: 4px; background: #e8ddd1; overflow: hidden; }
.ai-fill { height: 100%; border-radius: 4px; transition: width 1s cubic-bezier(0.16, 1, 0.3, 1); }
.ai-fill-old { background: #b3a496; }
.ai-fill-new { background: linear-gradient(90deg, var(--rose), var(--pink-light)); }
.ai-voto { font-size: 13px; width: 20px; text-align: right; color: var(--text); }
.ai-nota { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.ai-nota b { color: var(--text); font-weight: 600; }
.ai-sintesi {
  font-size: 13.5px; color: var(--text); font-weight: 500;
  background: var(--rose-soft); border-radius: 12px; padding: 12px 14px;
}
.ai-azioni { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ai-azioni li { font-size: 12.5px; color: var(--text-2); padding-left: 20px; position: relative; }
.ai-azioni li::before { content: "✦"; position: absolute; left: 2px; color: var(--rose); font-size: 11px; }
.ai-disclaimer { font-size: 11px; color: var(--text-3); font-style: italic; }
.ai-conf {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 980px; margin-left: 6px; vertical-align: middle;
}
.ai-conf-alta { background: #e4efdd; color: #4c7038; }
.ai-conf-media { background: #f3e8d8; color: #8a6a33; }
.ai-conf-bassa { background: #f4dede; color: #a33b3b; }
.ai-prove { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.ai-prove li {
  font-size: 10.5px; color: var(--text-2); font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: #fff; border: 1px solid rgba(43, 35, 32, 0.08); border-radius: 8px;
  padding: 4px 8px; overflow-wrap: anywhere;
}
.ai-prove li::before { content: "🔎 "; }
.ai-nota-vis { font-style: italic; color: var(--text-3); }
.ai-lista { border-radius: 14px; padding: 12px 14px; }
.ai-lista-forte { background: #eef4e9; }
.ai-lista-limiti { background: #f6efe4; }
.ai-lista-titolo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 6px; }
.ai-lista ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ai-lista li { font-size: 12px; color: var(--text-2); padding-left: 16px; position: relative; }
.ai-lista-forte li::before { content: "✓"; position: absolute; left: 0; color: #4c7038; font-weight: 700; }
.ai-lista-limiti li::before { content: "!"; position: absolute; left: 0; color: #8a6a33; font-weight: 700; }
.ai-fatturato {
  background: linear-gradient(135deg, var(--dark), #3a2b33);
  border-radius: 16px; padding: 16px 18px; color: #f7f1ea;
}
.ai-fatturato-numeri { display: flex; gap: 22px; flex-wrap: wrap; }
.ai-fatturato-numeri strong {
  display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--pink-light);
}
.ai-fatturato-numeri span { font-size: 11px; color: #c9bbaf; }
.ai-ipotesi { font-size: 11px; color: #c9bbaf; margin-top: 10px; font-style: italic; }
.ai-bozza {
  font-size: 12.5px; font-weight: 600; color: var(--pink-light);
  margin-top: 10px;
}
.ai-azioni-riga { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-ai-mail { background: var(--rose); color: #fff; }
.admin-ai-mail:hover { background: var(--rose-dark); }

/* ── MFA ── */
.mfa-setup {
  background: var(--bg-beige); border-radius: 12px; padding: 14px 16px;
  font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px;
}
.mfa-setup ol { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.mfa-setup code {
  display: inline-block; background: #fff; border: 1px solid #e2d7cc;
  border-radius: 8px; padding: 4px 8px; font-size: 12px; letter-spacing: 0.08em;
  user-select: all;
}
.mfa-setup a { color: var(--rose); }
.mfa-qr-box {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #e2d7cc; border-radius: 12px; padding: 12px;
}
#mfa-qr { width: 132px; height: 132px; flex-shrink: 0; }
#mfa-qr svg { width: 100%; height: 100%; display: block; }
.mfa-qr-box p { font-size: 12px; color: var(--text-2); }
#mfa-step-1, #mfa-step-2 { display: flex; flex-direction: column; gap: 18px; }
#admin-totp { text-align: center; font-size: 22px; letter-spacing: 0.3em; }
.admin-footnote { margin-top: 26px; text-align: center; font-size: 12.5px; color: var(--text-3); }

@media (max-width: 800px) {
  .admin-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Responsive ──────────────────── */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .mock-browser { margin: 0 auto; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1fr; }
  .contact-inner, .clients-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 80px 22px 70px; }
  .section, .contact { padding: 70px 22px; }
  .steps, .stats { grid-template-columns: 1fr; }
}
