/* Landing «Consulenza gratuita» — SM Digital Studio.
   Struttura dai template FunOps (016, 026, 033, 036, 039, 088, 099, 084) più la sezione sul primo mese a metà prezzo;
   colori, font e regole da brand/smdigitalstudio-brand-guidelines.json. */

@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/Inter-Light.woff2") format("woff2"); }
@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; }
: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, .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); }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; 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: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 offerta, 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); }

/* ------------------------------------------------------------ 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(42px, 8vw, 96px); font-weight: 900; line-height: 1; letter-spacing: -.05em; max-width: min(100%, 960px); 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; }
.h16-sub { max-width: min(100%, 46ch); 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); }

/* ------------------------------------------------------------ 2 · problema (026) con foto */
.prob { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .prob { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); } .prob-foto { position: sticky; top: 32px; } }
.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: 52ch; font-size: clamp(17px, 1.9vw, 20px); color: var(--notte); }
.prob-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 899px) { .prob-foto img { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------ 3 · rottura (033) su foto */
.hinge { position: relative; overflow: hidden; isolation: isolate; }
.hinge-foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hinge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #10002bf5 0%, #10002be0 50%, #10002bb3 100%); }
.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; } }
}

/* ------------------------------------------------------------ 4 · primo mese a metà prezzo */
.mese-in { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .mese-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.mese .t-xl { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 12px; }
.mese-testo .lead { margin-top: 20px; max-width: 48ch; }
.mese-testo .red { background: linear-gradient(var(--rosso-100), var(--rosso-100)) no-repeat 0 90% / 100% .2em; }
.garanzie { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.garanzie li { position: relative; padding-left: 36px; font-size: clamp(16px, 1.7vw, 18px); line-height: 1.4; }
.garanzie li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--rosso); }
.garanzie li::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--avorio); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mese-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.mese-cta p { margin: 0; flex: 1 1 220px; font-size: 14px; }

.mese-visual { position: relative; }
.mese-foto { width: 100%; max-width: 460px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); margin-left: auto; }
.prezzo { background: var(--notte); color: var(--avorio); --accent: var(--rosso-400); border-radius: var(--r-lg); padding: 22px 24px 20px; box-shadow: 0 24px 50px #10002b40; position: relative; width: min(360px, calc(100% - 32px)); margin: -96px auto 0; }
@media (min-width: 900px) { .prezzo { position: absolute; left: 0; bottom: 36px; margin: 0; } }
.pr-riga { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #faf9f61f; font-size: 15px; color: var(--lavanda-200); }
.pr-riga s { color: var(--lavanda-200); font-weight: 500; text-decoration: none; background: linear-gradient(var(--rosso-400), var(--rosso-400)) no-repeat 0 55% / 100% 2px; }
.badge { display: inline-block; background: var(--rosso); color: var(--avorio); border-radius: var(--r-xs); padding: 2px 9px; font-weight: 700; }
.pr-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.pr-tot span { font-size: 16px; font-weight: 600; }
.pr-tot strong { font-size: clamp(44px, 5vw, 58px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.prezzo p { margin-top: 10px; font-size: 13px; line-height: 1.45; }

/* ------------------------------------------------------------ 5 · 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); }

/* ------------------------------------------------------------ 6 · vecchio / nuovo modo (036) */
.testa { max-width: 880px; }
.testa .lead { max-width: 62ch; }
.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; }
  }
}
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 20px); margin-top: clamp(32px, 4.5vw, 52px); }
.strip figure { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.strip .strip-big { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--esce); }
.strip figure:hover img { transform: scale(1.05); }
@media (min-width: 760px) {
  .strip { grid-template-columns: 2fr 1fr 1fr; height: clamp(280px, 30vw, 360px); }
  .strip figure, .strip .strip-big { grid-column: auto; aspect-ratio: auto; }
}

/* ------------------------------------------------------------ 7 · come funziona (039) */
.intro { max-width: 680px; 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(--avorio); background: var(--notte); display: grid; place-items: center; font-size: 26px; font-weight: 600; line-height: 1; color: var(--avorio); }
.step h3 { margin-top: 18px; }
.step p { margin-top: 10px; max-width: 34ch; }
.esito { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; font-weight: 500; width: 100%; max-width: 34ch; color: var(--avorio); }
.esito::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--rosso-400); 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; }

/* ------------------------------------------------------------ 8 · obiezione (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); }
.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; }
.blk { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .blk { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.stamp { position: relative; justify-self: center; width: clamp(180px, 22vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--rosso); color: var(--avorio); display: flex; flex-direction: column; align-items: center; justify-content: center; 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; }
.stamp span { font-size: 16px; 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; }

/* ------------------------------------------------------------ 9 · 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); }

/* ------------------------------------------------------------ 10 · 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 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: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; }
#invia:disabled { opacity: .65; cursor: progress; }
.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 { 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); } }
}

/* 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); }

@media (prefers-reduced-motion: no-preference) {
  .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 −50% */
  .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); } }
}

/* 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 .mese-testo .red { background-size: 0% .2em; transition: background-size .9s var(--esce) .7s; }
.anima .mese-testo.vis .red { background-size: 100% .2em; }
.anima .prezzo .pr-riga s { background-size: 0% 2px; transition: background-size .6s var(--esce) .55s; }
.anima .prezzo.vis .pr-riga s { background-size: 100% 2px; }
.anima .prezzo.vis .badge { animation: salta .55s var(--rimbalzo) .7s both; }
@keyframes salta { from { transform: scale(0); } to { transform: none; } }
.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 .garanzie.vis li::before { animation: salta .5s var(--rimbalzo) both; animation-delay: calc(var(--i) * 90ms + .2s); }
.anima .garanzie.vis li::after { animation: appare .3s ease both; animation-delay: calc(var(--i) * 90ms + .5s); }
@keyframes appare { from { opacity: 0; } }

/* foto del locale che scorre più lenta della pagina (solo dove il browser lo supporta) */
@supports (animation-timeline: view()) {
  .anima .hinge-foto { animation: parallasse linear both; animation-timeline: view(); }
  @keyframes parallasse { from { transform: translateY(-9%) scale(1.2); } to { transform: translateY(9%) scale(1.2); } }
}
