/* Landing «Sito vetrina» — SM Digital Studio.
   Struttura dai template FunOps (016, 026, 033, 036, 039, 088, 099, 084) più «Con chi parli», il caso KD Navale
   e «Cosa include»; colori, font e regole da brand/smdigitalstudio-brand-guidelines.json, stile della landing social. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Inter-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/Inter-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/Inter-Black.woff2") format("woff2"); }

:root {
  /* brand */
  --notte: #10002b;
  --notte-950: #090018;
  --notte-800: #23143b;
  --notte-700: #35284b;
  --avorio: #faf9f6;
  --avorio-200: #f0eee8;
  --bianco: #ffffff;
  --rosso: #c30000;
  --rosso-900: #7a0000;
  --rosso-400: #ff5e5e;
  --rosso-100: #ffd2d2;
  --lavanda-600: #564b68;
  --lavanda-400: #726980;
  --lavanda-200: #c0bbc3;
  --fuoco: linear-gradient(90deg, #7a0000, #c30000, #ff5e5e, #ffd2d2, #c30000, #7a0000);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* misure dei template */
  --wrap: 1140px;
  --pad: clamp(20px, 5vw, 56px);
  --vpad: clamp(64px, 9vw, 120px);
  --gap: clamp(20px, 3vw, 36px);
  --r-xs: 5px;
  --r-md: 10px;
  --r-lg: 20px;

  /* colori di contesto: cambiano con il fondo della sezione */
  --ink: var(--notte);
  --muted: var(--lavanda-600);
  --line: #10002b1f;
  --accent: var(--rosso);

  /* movimento */
  --esce: cubic-bezier(.2, .7, .2, 1);
  --rimbalzo: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(.modulo[open]) { overflow: hidden; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; background: var(--avorio); color: var(--notte); font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
b, strong { font-weight: 700; }
ul, ol { list-style: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--avorio); color: var(--notte); padding: 10px 16px; border-radius: var(--r-xs); font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--rosso); outline-offset: 3px; }
.notte :focus-visible, .rosso :focus-visible, .promo-bar:focus-visible, .site-head :focus-visible, .site-foot :focus-visible, .blk :focus-visible, .nuovo :focus-visible, .rif :focus-visible, .modulo :focus-visible { outline-color: var(--avorio); }

/* ------------------------------------------------------------ base dei template */
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: var(--vpad) var(--pad); }
.sec { color: var(--ink); }
.notte { background: var(--notte); --ink: var(--avorio); --muted: var(--lavanda-200); --line: #faf9f61f; --accent: var(--rosso-400); }
.avorio { background: var(--avorio); }
.avorio2 { background: var(--avorio-200); }
.rosso { background: var(--rosso); --ink: var(--avorio); --muted: var(--avorio); --line: #faf9f633; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.t-xl { font-size: clamp(30px, 5vw, 54px); }
.t-lg { font-size: clamp(28px, 4.2vw, 44px); }
.t-md { font-size: clamp(19px, 2.1vw, 23px); letter-spacing: -.02em; }
p { color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55; }
.lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.et, .count { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.red { color: var(--rosso); }
.testa { max-width: 880px; }
.testa .et + h2 { margin-top: 12px; }
.testa .lead { max-width: 62ch; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 26px;
  border: 0; border-radius: var(--r-xs); background: var(--rosso); color: var(--avorio);
  font: 700 16px/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, transform .3s ease;
}
.btn svg { flex: none; width: 16px; height: 16px; }
.btn:hover { background: var(--avorio); color: var(--rosso); box-shadow: inset 0 0 0 2px var(--rosso); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid currentColor; border-radius: var(--r-md); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--notte); border-color: var(--ink); }
.avorio .btn.ghost:hover, .avorio2 .btn.ghost:hover { color: var(--avorio); }
.btn.light { background: var(--avorio); color: var(--notte); border-radius: var(--r-md); }
.btn.light:hover { background: var(--notte); color: var(--avorio); box-shadow: none; }
.btn.full { display: flex; width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

.card { border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 30px); }

/* ------------------------------------------------------------ barra in alto, testata e piede */
.promo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--rosso); color: var(--avorio); font-size: 14px; line-height: 1.35; text-align: center; text-decoration: none; }
.promo-bar b { font-weight: 700; }
.promo-bar svg { flex: none; width: 16px; height: 16px; transition: transform .3s ease; }
.promo-bar:hover span { text-decoration: underline; text-underline-offset: 3px; }
.promo-bar:hover svg { transform: translateX(3px); }

.site-head { background: var(--notte); color: var(--avorio); --ink: var(--avorio); position: relative; z-index: 2; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 36px; width: auto; }
.site-head .btn.ghost:hover { color: var(--notte); }

.site-foot { background: var(--notte-950); color: var(--lavanda-200); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 34px; padding-bottom: 34px; }
.foot-in img { height: 32px; width: auto; }
.foot-in p { color: var(--lavanda-200); font-size: 14px; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; font-size: 14px; }
.foot-in nav button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.foot-in a, .foot-in nav button { text-underline-offset: 3px; }
.foot-in a:hover, .foot-in nav button:hover { color: var(--avorio); }
@media (max-width: 759px) { .site-foot { padding-bottom: 76px; } }

/* bottone fisso da telefono */
.cta-fissa { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #10002bf2; box-shadow: 0 -10px 30px #09001840; }
.cta-fissa[hidden] { display: none; }
.cta-fissa .btn:hover { box-shadow: none; }
@media (min-width: 760px) { .cta-fissa { display: none; } }

/* ------------------------------------------------------------ 1 · hero (016) su video */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #10002bb8 0%, #10002bcc 55%, #10002bf2 100%); }
.hero .wrap { min-height: min(82vh, 800px); display: flex; flex-direction: column; justify-content: center; }
.h16 { text-align: center; }
.h16-title { font-size: clamp(38px, 7.2vw, 88px); font-weight: 900; line-height: 1.02; letter-spacing: -.05em; max-width: min(100%, 1000px); margin: 0 auto; overflow-wrap: anywhere; }
.h16-title .ln { display: block; }
.h16-mark { display: inline-block; max-width: 100%; background: var(--rosso); color: var(--avorio); border-radius: var(--r-md); padding: 0 .18em .06em; margin-top: .06em; }
.h16-sub { max-width: min(100%, 48ch); margin: clamp(22px, 3vw, 32px) auto 0; color: var(--avorio); }
.h16-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }
.h16-cta .btn { flex: 1 1 100%; max-width: 100%; white-space: nowrap; }
@media (min-width: 560px) { .h16-cta { flex-wrap: nowrap; } .h16-cta .btn { flex: 0 1 auto; } }
.h16-note { margin-top: 18px; font-size: 14px; color: var(--lavanda-200); }

/* nastro che scorre sotto l'hero */
.nastro { background: var(--notte-950); color: var(--avorio); overflow: hidden; border-block: 1px solid #faf9f614; }
.nastro-in { display: flex; width: max-content; }
.nastro span { display: inline-flex; align-items: center; gap: 22px; padding: 16px 0 16px 22px; font-size: clamp(14px, 1.6vw, 16px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.nastro span::after { content: ""; flex: none; width: 11px; height: 11px; background: var(--rosso); border-top-right-radius: 100%; }
.nastro .red { color: var(--rosso-400); }

/* ------------------------------------------------------------ 2 · problema (026) */
.prob { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.col26 { max-width: 720px; }
.pains { margin-top: clamp(28px, 4vw, 42px); border-top: 1px solid var(--line); }
.pains li { display: flex; gap: clamp(14px, 2.4vw, 20px); align-items: flex-start; padding: clamp(16px, 2.3vw, 21px) 0; border-bottom: 1px solid var(--line); }
.xr { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--rosso); color: var(--rosso); display: grid; place-items: center; font-size: 19px; font-weight: 700; line-height: 1; margin-top: -1px; }
.say { font-size: clamp(16px, 1.9vw, 20px); line-height: 1.45; color: var(--notte); }
.chiusura { margin-top: clamp(24px, 3vw, 34px); max-width: 56ch; font-size: clamp(17px, 1.9vw, 20px); color: var(--notte); }

/* accanto alla lista: un vecchio sito da telefono, con righe fuori misura e fermo sul caricamento */
.prob-tel { display: none; }
@media (min-width: 900px) {
  .prob { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
  .prob-tel { display: block; position: sticky; top: 48px; padding: 20px 0 0 16px; }
}
.tel { position: relative; width: 100%; max-width: 270px; margin: 0 auto; aspect-ratio: 9 / 18.5; padding: 10px; background: #111014; border-radius: 42px; box-shadow: 0 30px 60px #10002b33, inset 0 0 0 1px #ffffff26; transform: rotate(5deg); }
.tel::before { content: ""; position: absolute; z-index: 1; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 99px; background: #111014; }
.tel-schermo { position: relative; height: 100%; overflow: hidden; border-radius: 33px; background: #efede9; padding: 54px 14px 0; }
.tel-barra { height: 22px; border-radius: 99px; background: #dedad5; }
.tel-sito { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.tel-sito i { display: block; flex: none; height: 9px; border-radius: 3px; background: #bfb9c3; }
.tel-sito .t1 { height: 16px; width: 72%; }
.tel-sito .t2 { width: 48%; }
.tel-sito .img { height: 96px; width: 100%; margin-block: 4px; background: linear-gradient(135deg, #d9d4db 0 49.5%, #cdc8cf 50% 100%); border-radius: 4px; }
.tel-sito .lunga { width: 140%; }
.tel-sito .t5 { width: 60%; }
.tel-sito .vbtn { width: 46%; height: 28px; margin-top: 6px; border-radius: 2px; background: #bab4bf; }
.tel-carica { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-top: 40px; background: #efede966; font-size: 13px; font-weight: 600; color: var(--lavanda-600); }
.tel-carica span:last-child { padding: 4px 12px; border-radius: 99px; background: var(--avorio); box-shadow: 0 4px 14px #10002b1f; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #10002b1f; border-top-color: var(--rosso); }

/* ------------------------------------------------------------ 3 · rottura (033) */
.hinge { position: relative; overflow: hidden; isolation: isolate; }
.hinge::before { content: ""; position: absolute; z-index: -1; right: -8vw; bottom: -14vw; width: min(56vw, 640px); aspect-ratio: 1; border-top-left-radius: 100%; background: var(--notte-800); }
.hinge .wrap { padding-top: clamp(80px, 13vw, 160px); padding-bottom: clamp(80px, 13vw, 160px); }
.riga { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(30px, 6vw, 68px); overflow-wrap: anywhere; max-width: 22ch; }
.riga.giu { color: var(--lavanda-200); }
.riga.giu s { text-decoration: none; background: linear-gradient(var(--rosso), var(--rosso)) no-repeat 0 58% / 100% .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.riga.su { color: var(--avorio); font-weight: 800; margin-top: clamp(12px, 2vw, 22px); }
/* Su Notte il Bordeaux scende sotto 3:1 di contrasto: lì la sfumatura parte dal Rosso SM. */
.notte .fuoco { --fuoco: linear-gradient(90deg, #c30000, #ff5e5e, #ffd2d2, #ff5e5e, #c30000); }
.fuoco { background: var(--fuoco); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-reduced-motion: no-preference) {
  .fuoco { animation: fuoco 6s ease infinite; }
  @keyframes fuoco { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
}

/* ------------------------------------------------------------ 3b · perché una pagina sola */
.motivi { display: grid; gap: clamp(28px, 4vw, 44px); margin-top: clamp(36px, 5vw, 56px); counter-reset: none; }
@media (min-width: 760px) { .motivi { grid-template-columns: repeat(3, 1fr); } }
.motivo { border-top: 2px solid var(--notte); padding-top: 20px; }
.motivo-n { display: block; font-size: clamp(40px, 4.6vw, 56px); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: var(--rosso); }
.motivo h3 { margin-top: 14px; }
.motivo p { margin-top: 10px; }

/* ------------------------------------------------------------ 4 · con chi parli */
.offer-in { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .offer-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.offer-foto img { width: 100%; height: auto; max-width: 520px; margin: 0 auto; }
.offer-testo h2 { margin-top: 12px; }
.offer-intro { margin-top: 22px; font-weight: 600; color: var(--avorio); }
.faccio { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.faccio li { position: relative; padding-left: 26px; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.45; color: var(--avorio); }
.faccio li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; background: var(--rosso); border-top-right-radius: 100%; }
.offer-chiusa { margin-top: 18px; font-size: clamp(17px, 1.9vw, 20px); color: var(--avorio); }
.offer-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.offer-cta span { font-size: 14px; color: var(--lavanda-200); }

/* ------------------------------------------------------------ 5 · vecchio / nuovo modo (036) */
.confronto { display: grid; gap: var(--gap); margin-top: clamp(32px, 4.5vw, 52px); }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.voce { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.mk { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.vecchio { background: transparent; border: 2px dashed #10002b26; color: var(--lavanda-600); }
.vecchio .et { color: var(--lavanda-400); }
.vecchio h3 { color: var(--lavanda-600); }
.vecchio .mk { border: 1.5px dashed var(--lavanda-400); border-radius: 4px; }
.nuovo { background: var(--notte); color: var(--avorio); --accent: var(--rosso-400); box-shadow: 0 18px 40px #10002b26; }
.nuovo .mk { background: var(--rosso); border-top-right-radius: 100%; }
@media (min-width: 820px) {
  .confronto { grid-template-columns: 1fr 1fr; column-gap: var(--gap); row-gap: 14px; align-items: start; }
  @supports (grid-template-rows: subgrid) {
    .confronto { grid-template-rows: auto auto repeat(5, auto); }
    .col { display: grid; grid-row: 1 / span 7; grid-template-rows: subgrid; gap: 14px; }
  }
}

/* ------------------------------------------------------------ 5b · un lavoro reale (KD Navale) */
.lavoro-in { display: grid; gap: clamp(44px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .lavoro-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.lavoro-testo h2 { margin-top: 12px; }
.lavoro-testo .lead { margin-top: 18px; max-width: 52ch; }
.lavoro-testo .btn { margin-top: 28px; }

.mockup { position: relative; padding: 0 9% 5% 0; }
.laptop { position: relative; filter: drop-shadow(0 30px 40px #10002b33); }
.schermo { position: relative; padding: 2.4% 2.4% 2.8%; background: #111014; border-radius: 16px 16px 4px 4px; box-shadow: inset 0 0 0 1px #ffffff1a; }
.schermo::before { content: ""; position: absolute; top: .9%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2c2a33; }
.schermo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px; }
.base { position: relative; height: clamp(10px, 1.5vw, 18px); margin: 0 -7%; background: linear-gradient(180deg, #e9e7ef 0%, #c9c6d2 70%, #a9a5b6 100%); border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%; }
.base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 45%; transform: translateX(-50%); background: #b3afbf; border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; padding: 1.4%; background: #111014; border-radius: 15% / 7%; box-shadow: 0 30px 60px #10002b4d, inset 0 0 0 1px #ffffff26; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 3.2%; left: 50%; width: 30%; height: 2.4%; transform: translateX(-50%); border-radius: 99px; background: #111014; }
.phone img { width: 100%; height: auto; border-radius: 12% / 5.6%; }

/* cosa ho fatto + riferimento di prezzo */
.dett { display: grid; gap: clamp(24px, 3vw, 32px); margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--line); align-items: start; }
@media (min-width: 640px) { .dett { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dett { grid-template-columns: 1fr 1fr 1fr 1.25fr; } }
.dett-voce h3 { position: relative; padding-left: 22px; font-size: 18px; letter-spacing: -.015em; line-height: 1.25; }
.dett-voce h3::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; background: var(--rosso); border-top-right-radius: 100%; }
.dett-voce p { margin-top: 8px; font-size: 15.5px; }
.rif { background: var(--notte); color: var(--avorio); --muted: var(--lavanda-200); --accent: var(--rosso-400); box-shadow: 0 18px 40px #10002b26; }
.rif p { margin-top: 10px; font-size: 15.5px; }
.rif strong { color: var(--avorio); white-space: nowrap; }
.rif-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--avorio); text-underline-offset: 4px; }
.rif-cta svg { width: 16px; height: 16px; transition: transform .3s ease; }
.rif-cta:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ 5c · cosa include */
.incl { display: grid; gap: clamp(14px, 2vw, 20px); margin-top: clamp(32px, 4.5vw, 52px); }
@media (min-width: 640px) { .incl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .incl { grid-template-columns: repeat(4, 1fr); } }
.incl li { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: var(--r-lg); background: var(--notte-800); border: 1px solid #faf9f614; }
.incl li::before { content: ""; width: 26px; height: 26px; margin-bottom: 16px; background: var(--rosso); border-top-right-radius: 100%; }
.incl h3 { font-size: 18px; letter-spacing: -.015em; line-height: 1.25; color: var(--avorio); }
.incl p { margin-top: 8px; font-size: 15px; }
.incl .incl-cta { background: var(--rosso); border-color: var(--rosso); --muted: var(--rosso-100); }
.incl .incl-cta::before { background: var(--avorio); }
.incl-cta .btn { margin-top: auto; align-self: flex-start; min-height: 46px; padding: 10px 18px; font-size: 15px; }
.incl-cta p { margin-bottom: 18px; }
.incl-tempi { margin-top: 26px; font-size: 15px; text-align: center; }
.incl-tempi strong { color: var(--avorio); }

/* ------------------------------------------------------------ 6 · come funziona (039), su Avorio */
.intro { max-width: 700px; margin: 0 auto; text-align: center; }
.steps { position: relative; display: grid; gap: clamp(34px, 4vw, 40px); margin-top: clamp(38px, 5vw, 60px); }
.steps::before { content: ""; display: none; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; background: var(--line); }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 44px); }
  .steps::before { display: block; }
}
.step { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.num { width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--notte); background: var(--avorio); display: grid; place-items: center; font-size: 26px; font-weight: 600; line-height: 1; color: var(--notte); }
.step h3 { margin-top: 18px; }
.step p { margin-top: 10px; max-width: 36ch; }
.esito { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; font-weight: 600; width: 100%; max-width: 36ch; color: var(--notte); }
.esito::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--rosso); border-top-right-radius: 100%; }
.chiusura-cta { margin-top: clamp(38px, 5vw, 56px); text-align: center; }
.chiusura-cta p { margin-top: 14px; font-size: 14px; }

/* ------------------------------------------------------------ 7 · obiezioni (088) */
.intro88 { max-width: 700px; }
.blocks { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 30px); margin-top: clamp(30px, 4vw, 48px); }
.blk { background: var(--notte); color: var(--avorio); --muted: var(--lavanda-200); --accent: var(--rosso-400); padding: clamp(24px, 4vw, 52px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .blk { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.blk h3 { font-size: clamp(23px, 3.2vw, 36px); margin-top: 12px; max-width: 30ch; color: var(--avorio); }
.blk .body { max-width: 62ch; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.punch { margin-top: 22px; border-left: 3px solid var(--rosso); padding-left: 16px; max-width: 58ch; color: var(--avorio); font-weight: 600; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.45; }
.stamp { position: relative; justify-self: center; width: clamp(190px, 21vw, 224px); aspect-ratio: 1; border-radius: 50%; background: var(--rosso); color: var(--avorio); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; text-align: center; text-decoration: none; transform: rotate(-8deg); box-shadow: 0 0 0 8px #c3000033; transition: transform .3s ease; }
.stamp b { font-size: clamp(46px, 5.4vw, 60px); font-weight: 900; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.stamp span { font-size: 15px; font-weight: 700; margin-top: 4px; }
.stamp small { font-size: 12.5px; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; color: var(--rosso-100); }
.stamp:hover, .anima .stamp.vis:hover { transform: rotate(-4deg) scale(1.03); }
.close { margin-top: clamp(26px, 3.5vw, 40px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.close p { margin: 0; flex: 1 1 240px; }

/* ------------------------------------------------------------ 8 · banda CTA (099) */
.band .wrap { padding-block: clamp(72px, 11vw, 132px); }
.mid { max-width: 940px; margin: 0 auto; text-align: center; }
.mid .t-xl { font-size: clamp(30px, 4.6vw, 52px); }
.row2 { display: block; }
.mid .lead { margin: clamp(18px, 2.6vw, 26px) auto 0; max-width: 56ch; color: var(--avorio); }
.acts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(28px, 4.4vw, 44px); }
.acts .btn { flex: 1 1 min(100%, 250px); max-width: 340px; }
.band .btn.ghost { color: var(--avorio); }
.band .btn.ghost:hover { background: var(--avorio); color: var(--rosso); }
.foot { display: block; margin-top: 18px; font-size: 14px; line-height: 1.4; color: var(--rosso-100); }

/* ------------------------------------------------------------ 9 · FAQ (084) */
.head84 { max-width: 640px; }
.qas { display: grid; gap: clamp(30px, 4vw, 44px); margin-top: clamp(32px, 4.5vw, 52px); }
@media (min-width: 780px) { .qas { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 80px); } }
.qa84 .q { font-size: clamp(18px, 1.9vw, 21px); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.qa84 .a { margin-top: 9px; max-width: 48ch; }
.end84 { margin-top: clamp(36px, 5vw, 58px); border-top: 1px solid var(--line); padding-top: clamp(22px, 3vw, 30px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.end84 p { margin: 0; flex: 1 1 min(100%, 280px); max-width: 52ch; color: var(--notte); }
.end84 p a { font-weight: 600; text-underline-offset: 3px; }
.end84 .cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ pop-up di prenotazione */
.modulo { --ink: var(--avorio); --muted: var(--lavanda-200); --accent: var(--rosso-400); margin: auto; border: 0; padding: 0; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; background: var(--notte); color: var(--avorio); border-radius: var(--r-lg); box-shadow: 0 30px 80px #09001899; }
.modulo::backdrop { background: #090018b8; backdrop-filter: blur(3px); }
.modulo form, .mod-ok { padding: 28px clamp(20px, 5vw, 28px) 24px; display: flex; flex-direction: column; gap: 14px; }
.chiudi { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #faf9f640; background: transparent; color: var(--avorio); cursor: pointer; }
.chiudi svg { width: 16px; height: 16px; }
.chiudi:hover { border-color: var(--avorio); }
.mod-testa { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.mod-testa img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--avorio-200); }
.mod-testa h2 { font-size: clamp(21px, 4.4vw, 24px); margin-top: 4px; }
.mod-sub { font-size: 15px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 13px; font-weight: 500; color: var(--lavanda-200); }
.fld em { font-style: normal; font-weight: 400; color: var(--lavanda-400); }
.fld em::before { content: "· "; }
.fld input { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid transparent; border-radius: var(--r-xs); background: var(--avorio); color: var(--notte); font: 400 16px/1.3 var(--font); }
.fld input::placeholder { color: var(--lavanda-400); }
.fld input:focus-visible { outline: 2px solid var(--avorio); outline-offset: 2px; }
.err { display: none; font-size: 12.5px; font-weight: 600; color: var(--rosso-400); }
.tocca .fld input:invalid { border-color: var(--rosso-400); }
.tocca .fld input:invalid ~ .err { display: block; }
#invia { margin-top: 4px; }
.mod-privacy { font-size: 12.5px; text-align: center; }
.mod-privacy a { color: var(--avorio); text-underline-offset: 2px; }
.mod-ok { align-items: center; text-align: center; padding-top: 40px; padding-bottom: 30px; }
.mod-ok[hidden], .modulo form[hidden] { display: none; }
.mod-ok p b { color: var(--avorio); }
.mod-ok .btn { margin-top: 8px; min-width: 160px; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--rosso); position: relative; }
.done-ico::after { content: ""; position: absolute; inset: 15px; background: var(--avorio); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm-4 9h8v2H8v-2Zm0-3.5h8v2H8v-2Zm0 7h5v2H8v-2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm-4 9h8v2H8v-2Zm0-3.5h8v2H8v-2Zm0 7h5v2H8v-2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.done-t { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.done-t:focus { outline: none; }

/* ------------------------------------------------------------ banner cookie */
.cookie { --ink: var(--avorio); --muted: var(--lavanda-200); position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; max-width: 460px; max-height: calc(100% - 24px); overflow: auto; padding: 22px 20px 16px; background: var(--notte); color: var(--avorio); border: 1px solid #faf9f61f; border-radius: var(--r-lg); box-shadow: 0 24px 60px #09001880; }
.cookie[hidden] { display: none; }
.cookie :focus-visible { outline-color: var(--avorio); }
.cookie .chiudi { top: 12px; right: 12px; width: 32px; height: 32px; }
.cookie-t { font-size: 18px; font-weight: 700; letter-spacing: -.01em; padding-right: 40px; }
.cookie p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--lavanda-200); }
.cookie p a { color: var(--avorio); text-underline-offset: 2px; }
.cookie-scelte { display: grid; gap: 8px; margin-top: 14px; }
.cookie-scelte[hidden] { display: none; }
.cookie-voce { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--notte-800); font-size: 13.5px; line-height: 1.45; color: var(--lavanda-200); cursor: pointer; }
.cookie-voce b { display: block; font-size: 14.5px; font-weight: 600; color: var(--avorio); }
.cookie-voce input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rosso); cursor: inherit; }
.cookie-voce:has(input:disabled) { cursor: default; }
.cookie-azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-azioni .btn { flex: 1 1 120px; min-height: 46px; padding: 10px 16px; font-size: 15px; border-radius: var(--r-xs); }
.cookie-azioni .btn.full { flex-basis: 100%; }
.cookie-azioni .btn[hidden] { display: none; }
.cookie .btn:hover { background: var(--avorio); color: var(--rosso); box-shadow: none; }
.cookie .btn.light:hover { background: transparent; color: var(--avorio); box-shadow: inset 0 0 0 2px var(--avorio); }
.cookie-link { flex-basis: 100%; padding: 6px; border: 0; background: none; color: var(--lavanda-200); font: 500 14px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-link:hover { color: var(--avorio); }
.cookie-link[hidden] { display: none; }
@media (min-width: 640px) { .cookie { left: 24px; bottom: 24px; padding: 24px 24px 18px; } }

/* ------------------------------------------------------------ movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .promo-bar svg, .rif-cta svg { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .modulo[open] { animation: apri .25s ease; }
  @keyframes apri { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
  .cookie:not([hidden]) { animation: cookie-entra .6s var(--esce) both; }
  @keyframes cookie-entra { from { opacity: 0; transform: translateY(28px); } }
  .cta-fissa:not([hidden]) { animation: cookie-entra .4s var(--esce) both; }

  .nastro-in { animation: nastro 38s linear infinite; }
  .nastro:hover .nastro-in { animation-play-state: paused; }
  @keyframes nastro { to { transform: translateX(-50%); } }

  /* riflesso di luce sui bottoni principali */
  .btn.brilla::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, #ffffff47 50%, transparent 65%); transform: translateX(-120%); animation: brilla 4.2s ease-in-out 1.8s infinite; }
  @keyframes brilla { 0%, 62% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }

  /* anello che pulsa attorno al timbro */
  .stamp::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--rosso-400); pointer-events: none; animation: anello 2.6s ease-out infinite; }
  @keyframes anello { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.28); opacity: 0; } }

  .promo-bar svg { animation: spinge 1.8s ease-in-out infinite; }
  @keyframes spinge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(4px); } }

  /* la rotellina del vecchio sito che non finisce mai di caricare */
  .spin { animation: ruota 1s linear infinite; }
  @keyframes ruota { to { transform: rotate(360deg); } }
}

/* Entrate: .anima viene messa in <head> solo con JS attivo e senza «riduci movimento»;
   animazioni.js aggiunge .vis quando l'elemento entra nello schermo. */
.anima [data-anima], .anima [data-anima-figli] > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--esce), transform .8s var(--esce), clip-path 1.1s var(--esce);
  transition-delay: var(--ritardo, 0s);
}
.anima [data-anima-figli] > * { transition-delay: calc(var(--ritardo, 0s) + var(--i, 0) * 90ms); }
.anima [data-anima].vis, .anima [data-anima-figli].vis > * { opacity: 1; transform: none; }
.anima [data-anima="foto"] { opacity: 1; transform: scale(1.06); clip-path: inset(12% 12% 12% 12% round 20px); }
.anima [data-anima="foto"].vis { transform: none; clip-path: inset(0 round 20px); }
.anima [data-anima="timbro"] { transform: rotate(-40deg) scale(.4); transition: opacity .4s ease, transform .9s var(--rimbalzo); transition-delay: var(--ritardo, 0s); }
.anima [data-anima="timbro"].vis { transform: rotate(-8deg); }

/* hero: righe che salgono e riquadro rosso che si apre */
.anima .h16-title .ln { animation: sale .9s var(--esce) both; }
.anima .h16-title .ln:nth-child(2) { animation-delay: .12s; }
.anima .h16-title .ln:nth-child(3) { animation-delay: .24s; }
.anima .h16-mark { animation: svela .8s var(--esce) .55s both; }
.anima .h16-sub { animation: sale .8s var(--esce) .7s both; }
.anima .h16-cta { animation: sale .8s var(--esce) .85s both; }
.anima .h16-note { animation: sale .8s var(--esce) 1s both; }
@keyframes sale { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }
@keyframes svela { from { clip-path: inset(0 100% 0 0 round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }

/* dettagli che si muovono quando la sezione entra */
.anima .pains.vis .xr { animation: gira .6s var(--rimbalzo) both; animation-delay: calc(var(--i) * 90ms + .25s); }
@keyframes gira { from { transform: scale(0) rotate(-140deg); } to { transform: none; } }
.anima .riga.giu s { background-size: 0% .08em; transition: background-size 1s var(--esce) .35s; }
.anima .riga.giu.vis s { background-size: 100% .08em; }
.anima .steps::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--esce) .3s; }
.anima .steps.vis::before { transform: none; }
.anima .steps.vis .num { animation: salta .6s var(--rimbalzo) both; animation-delay: calc(var(--i) * 180ms + .2s); }
.anima .incl.vis li::before { animation: salta .5s var(--rimbalzo) both; animation-delay: calc(var(--i) * 90ms + .3s); }
@keyframes salta { from { transform: scale(0); } to { transform: none; } }

/* il telefono arriva dopo il portatile */
.anima .mockup .phone { opacity: 0; transform: translate(18%, 12%) rotate(6deg); transition: opacity .7s ease .45s, transform 1s var(--esce) .45s; }
.anima .mockup.vis .phone { opacity: 1; transform: none; }
