/* =====================================================================
   Noifla Digital Studio — foglio di stile
   Bootstrap 5 (da CDN) per griglia e componenti; qui sotto tutto il resto.
   Indice: variabili · base · sezioni · 1 hero · 2 servizi · 3 portfolio ·
   4 per chi lavoriamo · 5 metodo · 6 prezzi · 7 domande e contatti · footer · movimento ridotto
   Regola: ogni sezione sta in una schermata.
   ===================================================================== */

/* Noifla Digital Studio — design tokens
   Il brand è scuro: fondo quasi nero neutro, testo caldo, un solo accento verde.
   Il verde va solo sull'azione principale e su pochi dettagli: mai come decorazione. */
:root {
  /* colori */
  --bg: #0c0d0f;
  --bg-2: #141518;
  --ink: #f2f1ee;
  --muted: #a3a6ad;
  --rule: #26282d;
  --pill: #18191d;
  --pill-line: #33363d;
  --accent: #2ee59d;        /* verde Noifla (dal logo) */
  --accent-ink: #032617;    /* testo su accento */
  --veil: rgba(12, 13, 15, .86);
  --radius: 10px;

  /* tipografia */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --track-tight: -0.035em;
  --track: -0.025em;
  --fs-small: 13px;
  --fs-body: 17px;

  /* spazi */
  --gutter: clamp(16px, 2.6vw, 40px);
  --section-y: clamp(44px, 8vh, 84px);
  --nav-h: 32px;

  /* movimento */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (max-width: 700px) {
  :root { --nav-h: 30px; --fs-body: 16px; }
}


/* Bootstrap: colori, font e bordi presi dai token, così non sembra Bootstrap */
:root {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font);
  --bs-body-font-size: var(--fs-body);
  --bs-body-line-height: 1.5;
  --bs-border-color: var(--rule);
  --bs-link-color-rgb: 244, 246, 248;
  --bs-link-hover-color-rgb: 46, 229, 157;
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
}
.container-fluid.wrap { padding-inline: var(--gutter); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.reduced { scroll-behavior: auto; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* luce verde tenue su tutta la pagina: resta ferma mentre si scorre */
body { isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 60% at 82% 30%, rgba(46, 229, 157, .10), transparent 70%),
    radial-gradient(40% 50% at 6% 92%, rgba(46, 229, 157, .06), transparent 70%),
    radial-gradient(34% 40% at 8% 4%, rgba(46, 229, 157, .04), transparent 70%);
}
[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; line-height: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 200;
  padding: 8px 14px; border-radius: 99px; background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-small); font-weight: 500; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.label { font-size: var(--fs-small); color: var(--muted); letter-spacing: 0; }
.wrap { padding-inline: var(--gutter); }

/* ---------- pill / bottoni ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: var(--nav-h); padding: 0 14px; border-radius: 8px;
  background: var(--pill); border: 1px solid var(--pill-line); color: var(--ink);
  font-size: var(--fs-small); font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill--lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: var(--radius); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: transform .45s var(--ease);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 0%, var(--veil) 55%, transparent);
  opacity: 0; transition: opacity .35s;
}
.nav.is-veiled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { width: 104px; color: var(--ink); }
.nav__brand svg { width: 100%; height: auto; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 28px); }
.nav__link { font-size: 15px; color: var(--ink); padding-block: 6px; }
.nav__link:hover { color: var(--accent); }
@media (max-width: 420px) { .nav__links { gap: 14px; } .nav__link { font-size: 14px; } .nav__brand { width: 84px; } }

/* wordmark: il quadrato finale è il dettaglio verde del logo */
.wm { overflow: visible; }
.wm .wm-dot { fill: var(--accent); }

/* ---------- modale contatto (Bootstrap, ridisegnato) ---------- */
.modal { --bs-modal-bg: var(--bg-2); --bs-modal-border-color: var(--pill-line); --bs-modal-border-radius: 14px; --bs-modal-width: 520px; --bs-modal-padding: 28px; --bs-modal-color: var(--ink); }
.modal-backdrop { --bs-backdrop-bg: #03050a; --bs-backdrop-opacity: .78; }
.modal-content { box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9); }
.modal-body { display: grid; gap: 16px; }
.modal-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.modal-title { font-size: 26px; font-weight: 500; letter-spacing: var(--track); line-height: 1.1; }
.modal-lead { color: var(--muted); font-size: 15px; margin-top: -6px; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pill-line); display: grid; place-items: center; flex: none; }
.modal-x:hover { background: var(--ink); color: var(--bg); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--pill-line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .err { display: none; font-size: var(--fs-small); color: #ff8a7a; }
.was-validated .field input:invalid { border-color: #ff8a7a; }
.was-validated .field input:invalid + .err { display: block; }
.note { font-size: 12.5px; color: var(--muted); text-align: center; }
.note a { color: var(--accent); }

/* ---------- banner cookie ---------- */
.cookie {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 150;
  max-width: 560px; margin-inline: auto; padding: 20px;
  background: var(--bg-2); border: 1px solid var(--pill-line); border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transform: translateY(140%); transition: transform .45s var(--ease);
  font-size: 14px;
}
.cookie.is-in { transform: none; }
.cookie__title { font-weight: 500; margin-bottom: 4px; }
.cookie p { color: var(--muted); }
.cookie p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__panel { display: grid; gap: 8px; margin-top: 12px; }
.cookie__panel label { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); }
.cookie__panel input { accent-color: var(--accent); width: 16px; height: 16px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }



/* =====================================================================
   COMUNI ALLE SEZIONI
   Ogni sezione deve stare in una schermata: spazi verticali contenuti.
   ===================================================================== */
.sec { padding-block: var(--section-y); border-top: 1px solid var(--rule); }
.sec__head { margin-bottom: clamp(22px, 4vh, 40px); }
.sec__head .label { margin-bottom: 10px; }
.sec__head--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.sec__title { font-size: clamp(30px, 3.2vw, 50px); font-weight: 500; letter-spacing: var(--track); line-height: 1.08; max-width: 22ch; }
.sec__sub { margin-top: 12px; color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); max-width: 60ch; }

/* link testuali: sottolineati sempre, così si capisce che sono link */
.ul { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--pill-line); transition: text-decoration-color .2s; }
.ul:hover, .ul:focus-visible { text-decoration-color: currentColor; }

/* =====================================================================
   1. HERO — titolo concreto a sinistra, lavoro vero a destra, tre fatti in basso
   ===================================================================== */
.hero { padding-top: clamp(96px, 16vh, 150px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.hero__kicker { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.hero__title {
  font-size: clamp(40px, 5.4vw, 86px); font-weight: 500; line-height: 1.02; letter-spacing: var(--track-tight);
  max-width: 13ch; margin-bottom: 22px;
}
.hero__title span { color: var(--muted); }
/* finché GSAP non parte, l'hero non si vede (vedi lo script in <head>) */
html.anim .hero__content > *, html.anim .hero__work, html.anim .hero__fact { visibility: hidden; }
.hero__sub { font-size: clamp(17px, 1.4vw, 21px); max-width: 32em; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__work { margin: 0; }
.hero__work .pcard__mock { border-radius: var(--radius); }
.hero__work figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(48px, 9vh, 96px) 0 0; border-top: 1px solid var(--rule); }
.hero__fact { padding: 20px 20px 24px 0; }
.hero__fact + .hero__fact { padding-left: 20px; border-left: 1px solid var(--rule); }
.hero__fact dt { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 4px; }
.hero__fact dd { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.35; }

@media (max-width: 860px) {
  .hero { padding-top: 92px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__work { display: none; }
  .hero__title { font-size: clamp(38px, 11vw, 60px); }
  .hero__ctas .pill { flex: 1 1 auto; }
  .hero__facts { grid-template-columns: 1fr; margin-top: 40px; }
  .hero__fact, .hero__fact + .hero__fact { padding: 14px 0; border-left: 0; }
  .hero__fact + .hero__fact { border-top: 1px solid var(--rule); }
  .hero__fact dt { font-size: 18px; }
}

/* =====================================================================
   2. COSA COMPRENDE IL CANONE — titolo a sinistra, testo a destra
   ===================================================================== */
.services__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.services__text { max-width: 62ch; }
.services__text p { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; color: var(--muted); }
.services__text p:first-child { color: var(--ink); }
.services__text p + p { margin-top: 16px; }
@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; gap: 18px; }
  .services__text p { font-size: 17px; }
}

/* =====================================================================
   3. PORTFOLIO — slider orizzontale (trascina) con dettagli al clic
   ===================================================================== */
/* il caso vero: screenshot grande a sinistra, testo a destra */
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(24px, 4vh, 40px); }
.case__shot { display: block; }
.case__meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.case__name { font-size: clamp(26px, 2.4vw, 38px); font-weight: 500; letter-spacing: var(--track); line-height: 1.1; margin-bottom: 14px; }
.case__text > p:not(.case__meta) { color: var(--muted); max-width: 44ch; margin-bottom: 22px; font-size: 17px; line-height: 1.55; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
}
.pcard__mock {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--pill);
  -webkit-user-drag: none;
}
/* progetto reale: screenshot in una cornice browser + smartphone, dentro lo stesso riquadro 4:3 */
.pcard__mock { position: relative; display: block; overflow: hidden; background: #1c1e22; }
.pcard__mock img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.mock-browser { position: absolute; left: 7%; top: 10%; width: 76%; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85); }
.mock-browser__bar { display: flex; align-items: center; gap: 4px; height: 13px; padding: 0 7px; background: #e6e9ee; }
.mock-browser__bar i { width: 5px; height: 5px; border-radius: 50%; background: #b9c0cb; }
.mock-phone { position: absolute; right: 6%; bottom: 7%; width: 22%; padding: 3.5px; border-radius: 15px; background: #0b0f17; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .9); }
.mock-phone img { border-radius: 11px; }

/* =====================================================================
   4. CON CHI LAVORO — elenco numerato a fisarmonica
   ===================================================================== */
.sectors { border-top: 1px solid var(--rule); }
.sector { border-bottom: 1px solid var(--rule); }
.sector__h { margin: 0; font: inherit; }
.sector__btn {
  display: grid; grid-template-columns: clamp(44px, 5vw, 76px) minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  width: 100%; padding: clamp(18px, 3vh, 28px) 0; text-align: left; color: var(--muted);
  transition: color .3s var(--ease);
}
.sector__btn:hover, .sector.is-open .sector__btn { color: var(--ink); }
.sector__n { font-family: var(--mono); font-size: clamp(13px, 1vw, 15px); letter-spacing: 0; color: var(--muted); }
.sector.is-open .sector__n { color: var(--accent); }
.sector__name { font-size: clamp(24px, 3.2vw, 46px); font-weight: 500; letter-spacing: var(--track-tight); line-height: 1.05; }
.sector__icon { position: relative; width: 18px; height: 18px; align-self: center; }
.sector__icon::before, .sector__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor;
  transition: transform .4s var(--ease);
}
.sector__icon::after { transform: rotate(90deg); }
.sector.is-open .sector__icon::after { transform: rotate(0deg); }
.sector__body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s .5s; }
.sector.is-open .sector__body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease), visibility 0s; }
.sector__inner {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: start;
  padding-left: calc(clamp(44px, 5vw, 76px) + 12px);
}
.sector__text { padding-bottom: clamp(24px, 4vh, 40px); }
.sector__line { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; max-width: 44ch; }
.sector__reply { margin-top: 14px; color: var(--muted); font-size: 16px; }
.sector__text .pill { margin-top: 22px; }
.sector__shot { margin: 0 0 clamp(24px, 4vh, 40px); }
.sector__shot figcaption { margin-top: 8px; font-size: var(--fs-small); color: var(--muted); }
/* scena: il messaggio WhatsApp a sinistra, il sito aggiornato sul telefono a destra */
.scene__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 2.4vw, 32px);
  padding: clamp(16px, 2.6vw, 34px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg-2);
}
.scene__chat { display: grid; justify-items: start; gap: 8px; }
.scene__who { font-size: 12px; color: var(--accent); }
.scene__bubble { padding: 9px 12px 7px; border-radius: 4px 14px 14px 14px; background: #1f2c25; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.38; }
.scene__bubble small { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.scene__pics { display: flex; gap: 6px; }
.scene__pics .scene__pic { width: clamp(46px, 5vw, 64px); }
.scene__to { margin-top: 6px; font-size: 13px; color: var(--muted); }
.scene__to span { color: var(--accent); }
.scene__phone { justify-self: center; width: 100%; max-width: 230px; padding: 5px; border-radius: 26px; background: #0b0f17; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9), 0 0 0 1px #2a2d33; }
.scene__screen {
  display: flex; flex-direction: column; gap: 8px; aspect-ratio: 9 / 16; overflow: hidden;
  padding: 14px 12px 12px; border-radius: 21px; background: var(--s-bg); color: var(--s-ink);
  font-size: clamp(10px, .82vw, 11.5px); line-height: 1.3; letter-spacing: 0;
}
.scene__site { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 1.15em; }
.scene__site b { font-weight: 600; letter-spacing: -0.02em; }
.scene__site i { width: 14px; height: 7px; border-block: 1.5px solid currentColor; }
.scene__h { font-size: 1.4em; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 4px; }
.scene__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.scene__list li span:last-child { flex: none; font-weight: 600; }
.scene__list del { font-weight: 400; opacity: .45; margin-right: 3px; }
.scene .is-new { position: relative; z-index: 0; }
.scene__list li.is-new::before, .scene__tiles.is-new::before {
  content: ""; position: absolute; inset: 0 -6px; z-index: -1; border-radius: 7px; background: var(--s-acc); opacity: .14;
}
.scene__list li.is-new + li { border-top-color: transparent; }
.scene__tag { display: inline-block; padding: 1px 6px; border-radius: 99px; background: var(--s-acc); color: #fff; font-size: .78em; font-style: normal; font-weight: 600; vertical-align: 1px; }
.scene__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0; }
.scene__tiles span { display: grid; gap: 5px; }
.scene__tiles b { font-weight: 600; }
.scene__pic { display: block; aspect-ratio: 1; border-radius: 7px; }
.scene__pic--a { background: radial-gradient(circle at 35% 40%, #c8433a 0 14%, transparent 15%), radial-gradient(circle at 62% 55%, #e9b44c 0 12%, transparent 13%), radial-gradient(circle at 48% 70%, #c8433a 0 11%, transparent 12%), radial-gradient(ellipse at 50% 60%, #2f5a35 0 45%, #24402a 46% 100%); }
.scene__pic--b { background: radial-gradient(circle at 50% 50%, transparent 0 26%, #2c5233 27% 46%, transparent 47%), radial-gradient(circle at 50% 22%, #c8433a 0 7%, transparent 8%), radial-gradient(circle at 74% 62%, #e9b44c 0 6%, transparent 7%), radial-gradient(circle at 28% 64%, #c8433a 0 6%, transparent 7%), #d9cbb5; }
.scene__cta { margin-top: auto; padding: 8px; border-radius: 99px; background: var(--s-acc); color: #fff; text-align: center; font-weight: 600; }
.sector.is-open .scene__bubble { animation: scene-in .5s var(--ease) .15s both; }
.sector.is-open .scene .is-new::before { animation: scene-flash 1.4s var(--ease) .6s both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes scene-flash { 0% { opacity: 0; } 30% { opacity: .4; } 100% { opacity: .14; } }
@media (max-width: 560px) {
  .scene__list li:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sector.is-open .scene__bubble, .sector.is-open .scene .is-new::before { animation: none; }
}
.who__cta { margin-top: clamp(18px, 3.4vh, 32px); color: var(--muted); }
.who__cta .ul { color: var(--ink); }
@media (max-width: 860px) {
  .sector__btn { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .sector__inner { grid-template-columns: 1fr; padding-left: 0; gap: 0; }
  .sector__shot { order: -1; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sector__body, .sector.is-open .sector__body { transition: none; }
}

/* =====================================================================
   5. CHI SONO — presentazione a sinistra, percorso a linea del tempo a destra
   ===================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.about__text { margin-top: clamp(14px, 2vh, 22px); }
.about__text p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 56ch; }
.about__text p + p { margin-top: 12px; }
.about__text p:first-child { color: var(--ink); }
.about__sign { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.about__sign strong { color: var(--ink); font-weight: 500; font-size: 15px; }
.about__logo { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.about__how { padding-top: 6px; }
.about__how-title { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__t { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.timeline__d { color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__text p { font-size: 16px; }
}

/* =====================================================================
   6. PREZZI — due card, fascia vantaggi, extra; confronto in un modale
   ===================================================================== */
.plans__compare { color: var(--ink); font-size: 16px; white-space: nowrap; }
.plans__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 1.4vw, 20px); }
.plan {
  position: relative; display: flex; flex-direction: column; padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid var(--rule); border-radius: var(--radius); background: transparent;
}
.plan--main { border-color: #55585f; background: var(--bg-2); }
.plan__note { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.plan__name { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.02em; }
.plan__price { font-size: clamp(44px, min(4.4vw, 8svh), 72px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; margin: 6px 0 clamp(12px, 2.2vh, 20px); }
.plan--main .plan__price { font-size: clamp(52px, min(5.8vw, 10svh), 96px); }
.plan__price span { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 4px; }
.plan__list { display: grid; gap: 8px; margin-bottom: clamp(16px, 2.6vh, 24px); font-size: 15.5px; line-height: 1.35; }
.plan__list li { display: flex; gap: 10px; align-items: baseline; }
.plan__list li::before { flex: none; width: 16px; font-weight: 500; }
.plan__list .is-yes::before { content: "✓"; color: var(--ink); }
.plan__list .is-no { color: var(--muted); }
.plan__list .is-no::before { content: "✕"; color: var(--muted); }
.plan__cta { margin-top: auto; align-self: flex-start; }
.plans__dots { display: none; }

.perks { margin-top: 18px; color: var(--muted); font-size: 16px; }
/* pacchetto annuale e «Porta un amico»: due righe sobrie, niente box colorati */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 5vh, 48px); padding-top: 24px; border-top: 1px solid var(--rule); }
.offer__title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.offer__text { font-size: 16px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; max-width: 52ch; }
.offer__text b { color: var(--ink); font-weight: 500; }
.offer__link { font-size: 16px; color: var(--ink); }
button.offer__link { background: none; border: 0; padding: 0; cursor: pointer; }
.field__upper { text-transform: uppercase; }
.field__upper::placeholder { text-transform: none; }
.plans__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.extras strong { color: var(--ink); font-weight: 500; margin-right: 6px; }
.extras span + span::before { content: "·"; margin: 0 8px; }
.extras b { color: var(--ink); font-weight: 500; }
.plans__vat { font-size: 12px; color: var(--muted); }

/* modale di confronto */
#compare { --bs-modal-width: 780px; }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.35; }
.cmp th, .cmp td { padding: 11px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th { font-weight: 500; color: var(--muted); font-size: var(--fs-small); }
.cmp thead .cmp-main { color: var(--ink); }
.cmp tbody th { font-weight: 400; color: var(--muted); width: 32%; padding-left: 0; }
.cmp td.cmp-main { color: var(--ink); }
.cmp td { color: var(--muted); }
.cmp b { color: var(--ink); font-weight: 500; font-size: 18px; }
.cmp-y { color: var(--ink); font-weight: 500; margin-right: 4px; }
.cmp-n { color: var(--muted); margin-right: 4px; }
.cmp-extras .label { margin-bottom: 4px; }
.cmp-extras li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.cmp-extras b { font-weight: 500; white-space: nowrap; }

@media (max-width: 767.98px) {
  .sec__head--row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .plans__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .plans__grid::-webkit-scrollbar { display: none; }
  .plans { padding-block: 40px; }
  .plans .sec__head { margin-bottom: 16px; }
  .plan { flex: 0 0 89%; scroll-snap-align: start; padding: 16px; }
  .plan__note { margin-bottom: 6px; }
  .plan__price, .plan--main .plan__price { font-size: 44px; margin: 4px 0 12px; }
  .plan__list { font-size: 14.5px; gap: 6px; margin-bottom: 14px; }
  .plan__cta.pill--lg { height: 44px; padding: 0 20px; font-size: 15px; }
  .plans__foot { font-size: 12.5px; }
  .offers { grid-template-columns: 1fr; }
  .plans__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .plans__dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--pill-line); transition: width .3s var(--ease), background .3s; }
  .plans__dots i.is-active { width: 18px; background: var(--ink); }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 9px 6px; }
}

/* =====================================================================
   7. DOMANDE E CONTATTI
   ===================================================================== */
.close__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.close__h { font-size: clamp(26px, 2.4vw, 38px); font-weight: 500; letter-spacing: var(--track); line-height: 1.1; margin-bottom: 18px; }
.faq__list {
  --bs-accordion-bg: transparent; --bs-accordion-color: var(--ink); --bs-accordion-border-color: var(--rule);
  --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0; --bs-accordion-btn-padding-y: 16px; --bs-accordion-body-padding-x: 0; --bs-accordion-body-padding-y: 0;
  --bs-accordion-btn-color: var(--ink); --bs-accordion-btn-bg: transparent; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--ink);
  --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-btn-icon: none; --bs-accordion-btn-active-icon: none;
  border-top: 1px solid var(--rule);
}
.faq__list .accordion-item { border-width: 0 0 1px; }
.faq__list .accordion-button { font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; letter-spacing: -0.02em; gap: 16px; }
.faq__list .accordion-button::after {
  width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__list .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.faq__list .accordion-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq__list .accordion-body { padding-bottom: 16px; color: var(--muted); max-width: 40em; font-size: 15.5px; }
.close__contact { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--rule); }
.close__title { font-size: clamp(24px, 2.1vw, 34px); font-weight: 500; letter-spacing: var(--track); line-height: 1.1; margin-bottom: 8px; }
.close__lead { color: var(--muted); margin-bottom: 22px; max-width: 46ch; line-height: 1.55; }
.close__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.close__mail { color: var(--ink); font-size: 16px; }
@media (max-width: 991.98px) {
  .close__grid { grid-template-columns: 1fr; }
  .close__contact { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .close__ctas .pill { flex: 1 1 auto; }
}

/* ---------- footer: una riga ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 22px; border-top: 1px solid var(--rule); font-size: var(--fs-small); color: var(--muted); }
.footer__brand { width: 76px; color: var(--ink); }
.footer__brand svg { width: 100%; height: auto; }
.footer__legal { margin-right: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__links a, .footer__links button { color: var(--ink); }

/* =====================================================================
   MOVIMENTO RIDOTTO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hshot img.is-loaded { animation: none; }
}

/* avviso «Email copiata» (solo da computer) */
.mail-note {
  position: fixed; left: 50%; bottom: 24px; z-index: 1090; max-width: min(92vw, 520px);
  padding: 12px 18px; border-radius: 14px; background: var(--pill); border: 1px solid var(--accent);
  color: var(--ink); font-size: 14px; line-height: 1.4; text-align: center;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.mail-note.is-on { opacity: 1; transform: translate(-50%, 0); }
