/* ==========================================================================
   Porta Blu Gestione Immobiliare · stile del sito
   Brand: PORTABLU ASSET/CLAUDE.md (palette, Montserrat 900/700/500).
   Il motore scroll-craft (scrollcraft.css/.js) resta intatto: qui solo token
   e markup del sito. Si animano solo transform, opacity e clip-path.
   ========================================================================== */

/* ---------------------------------------------------------------- font -- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../assets/fonts/montserrat-latin-900-normal.woff2") format("woff2"); }

/* -------------------------------------------------------------- tokens -- */
:root {
  /* palette del brand (nessun altro colore, tranne il verde WhatsApp) */
  --pb-navy: #0A2A43;
  --pb-blue: #03BAFF;
  --pb-cyan: #03F1FF;
  --pb-grey: #5B6B7A;
  --pb-soft: #EAF8FF;
  --pb-white: #FFFFFF;
  --pb-grad: linear-gradient(90deg, #03BAFF, #03F1FF);
  --pb-grad-d: linear-gradient(135deg, #03BAFF, #03F1FF);
  --pb-wa: #25D366;
  --pb-wa-hi: #3BE07B;
  /* il gradiente del brand rifatto in verde: pieno all'inizio, luminoso alla fine */
  --pb-wa-grad: linear-gradient(135deg, #12C459, #4DF5A0);

  /* ruoli del motore scroll-craft */
  --sc-canvas: #FFFFFF;
  --sc-surface: #FFFFFF;
  --sc-ink: #0A2A43;
  --sc-ink-soft: #5B6B7A;
  --sc-accent: #03BAFF;
  --sc-accent-ink: #0A2A43;
  --sc-font-display: "Montserrat", system-ui, sans-serif;
  --sc-font-text: "Montserrat", system-ui, sans-serif;
  --sc-shadow-color: 206 74% 15%;

  /* tipografia */
  --fs-hero: clamp(2.05rem, 1.3rem + 2.9vw, 3.7rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.4vw, 3.2rem);
  --fs-h3: clamp(1.12rem, 1.02rem + 0.42vw, 1.4rem);
  --fs-lede: clamp(1.06rem, 0.98rem + 0.36vw, 1.28rem);
  --fs-body: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --fs-small: 0.875rem;
  --lh-body: 1.7;
  --track-display: -0.03em;

  /* spazi, raggi, profondità */
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 75rem;
  --section: clamp(4.5rem, 8.5vw, 8.5rem);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --e1: 0 1px 2px hsl(206 74% 15% / 0.06), 0 4px 12px -4px hsl(206 74% 15% / 0.10);
  --e2: 0 2px 6px hsl(206 74% 15% / 0.06), 0 14px 32px -12px hsl(206 74% 15% / 0.20);
  --e3: 0 4px 10px hsl(206 74% 15% / 0.06), 0 28px 60px -18px hsl(206 74% 15% / 0.30),
        0 60px 110px -40px hsl(198 100% 40% / 0.22);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------------------------------------------------------------- base -- */
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0;
  color: var(--pb-navy);
  background: var(--pb-white);
}
h1, h2, h3, h4 { margin: 0; font-family: "Montserrat", system-ui, sans-serif; color: inherit; text-wrap: balance; }
h1, h2 { font-weight: 900; letter-spacing: var(--track-display); line-height: 1.06; }
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; font-size: var(--fs-h3); }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }
img { height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--pb-blue); color: var(--pb-navy); }
:focus-visible {
  outline: 3px solid var(--pb-navy);
  outline-offset: 3px;
  border-radius: 10px;
  box-shadow: 0 0 0 7px hsl(198 100% 51% / 0.35);
}
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--pb-cyan); box-shadow: 0 0 0 7px hsl(183 98% 51% / 0.25); }
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 0.7rem 1rem; border-radius: 12px;
  background: var(--pb-navy); color: #fff; font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.h2 { font-size: var(--fs-h2); }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--pb-grey); max-width: 46ch; }
.body { color: var(--pb-grey); max-width: 60ch; }
.body strong, .lede strong { color: var(--pb-navy); }

/* il punto azzurro di "portablu." in chiusura dei titoli */
.dot { color: var(--pb-blue); }
.on-dark .dot { color: var(--pb-cyan); }

/* parole evidenziate: su chiaro una fascia in gradiente sotto il testo blu notte */
.hl {
  background-image: linear-gradient(90deg, hsl(196 100% 51% / 0.30), hsl(183 98% 51% / 0.45));
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 86%;
  padding-inline: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* su blu notte le parole evidenziate sono in gradiente (regola del brand) */
.gt {
  background: var(--pb-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* i tre pallini (firma ripresa da RentalPro, usata con parsimonia) */
.dots { display: flex; gap: 7px; margin-bottom: 1.1rem; }
.dots i { width: 14px; height: 14px; border-radius: 5px; background: var(--pb-blue); }
.dots i:nth-child(2) { background: hsl(196 100% 51% / 0.5); }
.dots i:nth-child(3) { background: hsl(183 98% 51% / 0.32); }

/* --------------------------------------------------------------- bottoni -- */
.btn {
  --btn-bg: var(--pb-navy);
  --btn-ink: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85em 1.45em;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 700 1rem/1.2 "Montserrat", system-ui, sans-serif; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 180ms var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* ombra che cresce in hover: si anima solo l'opacità */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 10px 26px -10px hsl(206 74% 15% / 0.45), 0 3px 8px -3px hsl(206 74% 15% / 0.2);
  opacity: 0.6; transition: opacity 180ms var(--spring);
}
.btn::after { /* velo di luce in hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0) 60%);
  opacity: 0; transition: opacity 160ms var(--spring);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::before { opacity: 1; }
  .btn:hover::after { opacity: 1; }
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn--wa { --btn-bg: var(--pb-wa); --btn-ink: var(--pb-navy); background: var(--pb-wa-grad); }
.btn--wa::before {
  box-shadow: 0 12px 28px -10px hsl(148 80% 34% / 0.55), 0 3px 8px -3px hsl(206 74% 15% / 0.18);
}
.btn--brand { --btn-bg: var(--pb-blue); --btn-ink: var(--pb-navy); background: var(--pb-grad-d); }
.btn--lg { min-height: 56px; padding: 1em 1.7em; font-size: 1.06rem; }
.btn--xl { min-height: 64px; padding: 1.1em 2em; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); }
.btn--sm { min-height: 42px; padding: 0.6em 1.1em; font-size: 0.92rem; }

/* riflesso che attraversa i pulsanti WhatsApp (lo span lo aggiunge js/porta-blu.js) */
.btn__shine {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  overflow: hidden; pointer-events: none;
}
.btn__shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 32%;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), var(--shine, rgb(255 255 255 / 0.55)), rgb(255 255 255 / 0));
  transform: translateX(0) skewX(-20deg);
  animation: wa-shine 4.2s var(--spring) infinite;
}
@keyframes wa-shine {
  0%, 12% { transform: translateX(0) skewX(-20deg); }
  48%, 100% { transform: translateX(480%) skewX(-20deg); }
}

/* il pulsante principale della stima: grande, da solo, difficile da ignorare */
.btn--mega {
  display: flex; width: 100%; min-height: 92px;
  gap: 1rem; justify-content: flex-start;
  padding: 0.9rem 0.9rem 0.9rem 0.95rem;
  text-align: left; white-space: normal;
}
.btn--mega::before {
  box-shadow:
    0 24px 46px -16px hsl(148 85% 36% / 0.7),
    0 8px 18px -8px hsl(206 74% 15% / 0.22),
    0 0 0 8px hsl(150 85% 50% / 0.16);
  animation: wa-breathe 2.6s ease-in-out infinite alternate;
}
@keyframes wa-breathe { from { opacity: 0.45; } to { opacity: 1; } }
.btn--mega .btn__badge {
  flex: none; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: #10B653;
  box-shadow: 0 6px 14px -6px hsl(148 85% 25% / 0.45), inset 0 0 0 1px hsl(148 60% 40% / 0.08);
}
.btn--mega .btn__badge svg { width: 34px; height: 34px; }
.btn--mega .btn__stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.btn--mega .btn__kicker { font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.12rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.btn--mega .btn__big {
  font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.5rem); font-weight: 900; line-height: 0.95;
  letter-spacing: var(--track-display);
}
.btn--mega .btn__go {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--pb-navy); color: #fff;
}
.btn--mega .btn__go svg {
  width: 24px; height: 24px;
  animation: wa-nudge 1.6s var(--spring) infinite;
}
@keyframes wa-nudge {
  0%, 55%, 100% { transform: translateX(0); }
  30% { transform: translateX(5px); }
}
@media (hover: hover) and (pointer: fine) {
  .btn--mega:hover { transform: translateY(-3px); }
  .btn--mega:hover::before { animation: none; opacity: 1; }
}

/* ----------------------------------------------------------- liquid glass --
   Stile Apple: vetro che sfoca e satura ciò che c'è dietro, bordo luminoso,
   riflesso speculare. Su Chromium (classe .lg-refract) si aggiunge la
   distorsione da lente del filtro SVG #lg-refract; Safari resta senza.       */
.glass {
  position: relative; isolation: isolate;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.46));
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(255 255 255 / 0.35),
    0 1px 2px hsl(206 74% 15% / 0.06),
    0 22px 50px -18px hsl(206 74% 15% / 0.32);
}
.glass::before { /* riflesso speculare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 12% -10%, rgb(255 255 255 / 0.75), transparent 55%),
    radial-gradient(90% 60% at 105% 110%, hsl(183 98% 51% / 0.16), transparent 60%);
}
.glass::after { /* bordo di luce, più chiaro in alto a sinistra */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1.25px;
  background: linear-gradient(140deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.18) 38%, hsl(196 100% 51% / 0.25) 70%, rgb(255 255 255 / 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass--dark {
  color: #fff;
  background: linear-gradient(140deg, hsl(206 74% 15% / 0.62), hsl(206 74% 15% / 0.40));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.30),
    inset 0 -1px 0 rgb(255 255 255 / 0.08),
    0 28px 60px -22px rgb(2 12 20 / 0.6);
}
.glass--dark::before {
  background:
    radial-gradient(120% 70% at 10% -10%, rgb(255 255 255 / 0.20), transparent 55%),
    radial-gradient(90% 60% at 105% 110%, hsl(183 98% 51% / 0.18), transparent 60%);
}
.glass--dark::after {
  background: linear-gradient(140deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.06) 40%, hsl(183 98% 51% / 0.35) 75%, rgb(255 255 255 / 0.25));
}
/* dove c'è testo sopra foto o pagina scurita: vetro più coprente, leggibile */
.glass--strong { background: linear-gradient(140deg, rgb(255 255 255 / 0.88), rgb(255 255 255 / 0.72)); }
.lg-refract .glass--refract {
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  backdrop-filter: url(#lg-refract) blur(14px) saturate(175%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgb(255 255 255 / 0.94); }
  .glass--dark { background: hsl(206 74% 15% / 0.92); }
}

/* ---------------------------------------------------------- navigazione -- */
.nav {
  position: fixed; z-index: 60; top: 12px; left: 50%;
  width: min(1180px, calc(100% - 24px));
  translate: -50% 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 64px; padding: 0 10px 0 22px;
  border-radius: 999px;
}
.nav__glass {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  opacity: 0; transition: opacity 260ms var(--spring);
}
.nav.is-scrolled .nav__glass { opacity: 1; }
.nav__logo { display: block; flex: none; border-radius: 10px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.6rem); }
.nav__link {
  position: relative; padding: 0.55rem 0.4rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--pb-navy);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.25rem; height: 2px;
  border-radius: 2px; background: var(--pb-grad);
  transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--spring);
}
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); } }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:active { transform: translateY(1px); }
.nav__cta-short { display: none; }

/* ------------------------------------------------------------- fondale -- */
/* Strato fisso dietro la hero: diventa azzurro mentre il video arretra. */
.ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 20%, hsl(196 100% 51% / 0.16), transparent 70%),
    radial-gradient(50% 45% at 90% 75%, hsl(183 98% 51% / 0.16), transparent 70%),
    var(--pb-soft);
  opacity: var(--hero-p, 0);
}

/* ---------------------------------------------------------------- hero -- */
.hero { position: relative; padding-top: 0; }
.hero__frame {
  position: relative;
  height: min(56.25vw, 90svh);
  transform-origin: 50% 0;
  transform: translate3d(0, calc(var(--hero-p, 0) * 30%), 0) scale(calc(1 - var(--hero-p, 0) * 0.1));
  will-change: transform;
}
.hero__shadow {
  position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: var(--e3);
  opacity: var(--hero-p, 0);
}
.hero__screen {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
}
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff;
}
.hero__poster { z-index: 0; }
.hero__video { z-index: 1; }
.hero__play {
  position: absolute; z-index: 2; left: 50%; bottom: 8%; translate: -50% 0;
}

/* ------------------------------------------------- contatto WhatsApp ---- */
.contact { position: relative; z-index: 2; padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section); }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.contact__title { font-size: clamp(1.9rem, 1.2rem + 1.9vw, 2.75rem); }
.contact__copy .lede { margin-top: 1.25rem; }
.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.ticks li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.ticks svg { width: 22px; height: 22px; flex: none; }
.contact__card { padding: clamp(1.1rem, 2.4vw, 1.75rem); }
.chat {
  border-radius: var(--r);
  background: rgb(255 255 255 / 0.82);
  box-shadow: inset 0 0 0 1px hsl(206 74% 15% / 0.07);
  overflow: hidden;
}
.chat__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem; background: var(--pb-navy); color: #fff;
}
.chat__head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.chat__who { display: flex; flex-direction: column; line-height: 1.25; }
.chat__who strong { font-size: 0.98rem; }
.chat__who span { font-size: 0.8rem; color: hsl(196 100% 85%); }
.chat__wa { margin-left: auto; width: 26px; height: 26px; color: var(--pb-wa); }
.chat__body {
  padding: 1.1rem 1rem 1.3rem;
  background:
    radial-gradient(70% 90% at 100% 0%, hsl(196 100% 51% / 0.10), transparent 70%),
    var(--pb-soft);
}
.bubble {
  position: relative; margin-left: auto; max-width: 92%;
  padding: 0.75rem 0.95rem 1.5rem; border-radius: 16px 16px 4px 16px;
  background: #fff; color: var(--pb-navy);
  font-size: 0.98rem; line-height: 1.5;
  box-shadow: var(--e1);
}
.bubble__meta {
  position: absolute; right: 0.75rem; bottom: 0.4rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; color: var(--pb-grey);
}
.bubble__meta svg { width: 16px; height: 16px; color: var(--pb-blue); }
.contact__card .btn { width: 100%; margin-top: 1.1rem; white-space: normal; text-align: center; line-height: 1.25; padding-inline: 1.1em; }
.contact__note { margin-top: 0.8rem; text-align: center; font-size: var(--fs-small); color: var(--pb-grey); }

/* --------------------------------------------------------------- fiducia -- */
.trust { position: relative; background: #fff; }
/* .trust__stage non deve dichiarare position: in desktop è lo stage sticky del motore */
.trust__center { text-align: center; max-width: 44rem; margin-inline: auto; padding-inline: var(--gutter); }
.trust__center .h2 { margin-top: 1.1rem; }
.trust__center .lede { margin: 1.1rem auto 0; }
.laurel { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--pb-navy); }
.laurel svg { width: 34px; height: 64px; flex: none; }
.laurel__txt { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.laurel__num { font-weight: 900; font-size: 2.1rem; letter-spacing: -0.03em; }
.laurel__lbl { font-weight: 700; font-size: 0.8rem; color: var(--pb-grey); }
.laurel__stars { display: inline-flex; gap: 2px; margin-top: 4px; color: var(--pb-navy); }
.laurel__stars svg { width: 12px; height: 12px; }

.tile {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--e2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--photo { aspect-ratio: 4 / 3.3; }
.tile--photo::after { /* trattamento colore: velatura blu notte in basso, tono freddo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, hsl(206 74% 15% / 0.38), transparent 46%),
    linear-gradient(hsl(196 100% 51% / 0.08), hsl(196 100% 51% / 0.08));
  mix-blend-mode: multiply;
}
.tile--shot { padding: 0.6rem; box-shadow: var(--e2), inset 0 0 0 1px hsl(206 74% 15% / 0.06); }
.tile--shot img { height: auto; border-radius: 14px; }
.tile__cap {
  position: absolute; left: 0.9rem; bottom: 0.75rem; z-index: 1;
  font-size: 0.78rem; font-weight: 700; color: #fff; letter-spacing: 0.01em;
}

/* desktop: titolo al centro, foto ai lati a velocità diverse (parallasse del motore) */
.trust { padding-block: clamp(3rem, 6vw, 5rem) var(--section); overflow: clip; }
.trust__scene {
  position: relative; display: grid; place-items: center;
  min-height: clamp(620px, 88vh, 840px);
  background: radial-gradient(36% 46% at 50% 50%, hsl(196 100% 51% / 0.08), transparent 72%);
}
.trust__scene .trust__center { position: relative; z-index: 2; max-width: min(40rem, 48vw); }
.trust__photos { position: absolute; inset: 0; pointer-events: none; }
.trust__photos .tile { position: absolute; pointer-events: auto; }
.tp1 { left: clamp(0.5rem, 3vw, 3.5rem); top: 3%; width: clamp(190px, 21vw, 320px); }
.tp2 { left: clamp(2rem, 8vw, 9rem); bottom: 2%; width: clamp(170px, 17vw, 260px); }
.tp3 { right: clamp(0.5rem, 3vw, 3.5rem); top: 9%; width: clamp(180px, 19vw, 300px); }
.tp4 { right: clamp(1.5rem, 7vw, 8rem); bottom: 4%; width: clamp(220px, 23vw, 340px); }

/* gli screenshot Airbnb, grandi e leggibili */
.proof { margin-top: clamp(1rem, 3vw, 2.5rem); }
.proof__label {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-grey);
  display: flex; align-items: center; gap: 0.8rem;
}
.proof__label::after { content: ""; flex: 1; height: 1px; background: hsl(206 74% 15% / 0.1); }
.proof__grid {
  margin-top: 1.4rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start;
}
.shot { margin: 0; padding: 0.7rem 0.7rem 0.9rem; border-radius: var(--r); background: #fff; box-shadow: var(--e2), inset 0 0 0 1px hsl(206 74% 15% / 0.06); }
.shot img { width: 100%; height: auto; border-radius: 12px; }
.shot figcaption { margin-top: 0.7rem; padding-inline: 0.3rem; font-size: 0.92rem; color: var(--pb-grey); }
.shot figcaption strong { color: var(--pb-navy); }

/* recensioni e distintivi */
.reviews { padding-block: 0 var(--section); background: #fff; }
.reviews__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.reviews__head .h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 900; letter-spacing: -0.02em; }
.reviews__grid {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem;
  align-items: start;
}
.review {
  margin: 0;
  padding: 1.25rem 1.25rem 1.4rem; border-radius: var(--r);
  background: #fff; box-shadow: var(--e2), inset 0 0 0 1px hsl(206 74% 15% / 0.06);
}
.review:nth-child(even) { margin-top: 1.75rem; }
.review__who { display: flex; align-items: center; gap: 0.75rem; }
.review__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.review__name { font-weight: 700; line-height: 1.2; }
.review__meta { font-size: 0.78rem; color: var(--pb-grey); }
.review__stars { display: flex; gap: 2px; margin-top: 0.85rem; color: var(--pb-navy); }
.review__stars svg { width: 14px; height: 14px; }
.review__text { margin: 0.6rem 0 0; font-size: 0.97rem; line-height: 1.6; }
.badges {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1.1rem 0.6rem 0.65rem; border-radius: 999px;
  background: var(--pb-soft); font-weight: 700; font-size: 0.95rem;
}
.badge__ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: var(--e1);
}
.badge__ico svg { width: 20px; height: 20px; }
.badge small { display: block; font-weight: 500; font-size: 0.76rem; color: var(--pb-grey); line-height: 1.2; }

/* ---------------------------------------------------------------- metodo -- */
.method { background: linear-gradient(180deg, #fff, var(--pb-soft) 82%, #fff); }
.method__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.method__copy .h2 { max-width: 15ch; }
.points { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.8rem; }
.point { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; }
.point__ico { width: 44px; height: 44px; }
.point h3 { margin-top: 0.45rem; }
.point p { margin-top: 0.55rem; color: var(--pb-grey); max-width: 52ch; }
.point p strong { color: var(--pb-navy); }

/* la porta blu che si apre sulla foto di Filippo */
.door {
  --door: clamp(0, calc((var(--sc-p, 0) - 0.16) * 3.2), 1);
  position: relative; width: min(100%, 440px); margin-inline: auto;
  aspect-ratio: 4 / 5;
  perspective: 1400px;
}
.door__frame {
  position: absolute; inset: 0;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: linear-gradient(170deg, #fff, var(--pb-soft));
  box-shadow: var(--e3), inset 0 0 0 1px hsl(206 74% 15% / 0.06);
}
.door__photo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.door__photo img.door__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door__placeholder { display: grid; justify-items: center; gap: 0.8rem; padding: 2rem; color: var(--pb-grey); }
.door__placeholder img { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--e2); }
.door__placeholder span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.door__leaf {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.10), transparent 30%),
    linear-gradient(180deg, #03BAFF, #03D6FF 60%, #03F1FF);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  backface-visibility: hidden;
  will-change: transform;
}
.door__leaf::before { /* pannelli della porta */
  content: ""; position: absolute; inset: 22% 16% 10%; border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.35), inset 0 0 0 9px rgb(10 42 67 / 0.05);
}
.door__leaf--l { left: 0; transform-origin: 0 50%; transform: rotateY(calc(var(--door) * -104deg)); border-right: 1px solid rgb(10 42 67 / 0.18); }
.door__leaf--r { right: 0; transform-origin: 100% 50%; transform: rotateY(calc(var(--door) * 104deg)); }
.door__leaf--l::after, .door__leaf--r::after { /* maniglie */
  content: ""; position: absolute; top: 54%; width: 7px; height: 42px; border-radius: 6px;
  background: linear-gradient(180deg, #fff, hsl(196 100% 85%));
  box-shadow: 0 2px 6px rgb(10 42 67 / 0.25);
}
.door__leaf--l::after { right: 14px; }
.door__leaf--r::after { left: 14px; }
.door__arc { position: absolute; inset: -6% -6% auto; width: 112%; height: auto; pointer-events: none; }

/* -------------------------------------------------------------- stima ---- */
.estimate { background: #fff; overflow: clip; }
.estimate__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.estimate__copy > * + * { margin-top: 1.2rem; }
.estimate__copy .btn { margin-top: 2rem; }
.estimate__visual { padding: 5rem 2.6rem 0 1rem; }
.sheet-wrap { position: relative; }
.sheet {
  margin: 0;
  position: relative; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: var(--e3), inset 0 0 0 1px hsl(206 74% 15% / 0.08);
  font-size: 0.86rem;
}
.sheet__title {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem; background: var(--pb-navy); color: #fff;
  font-weight: 700; font-size: 0.82rem;
}
.sheet__title img { width: 22px; height: 22px; border-radius: 6px; }
.sheet__lights { display: inline-flex; gap: 6px; margin-right: 0.4rem; }
.sheet__lights i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.28); }
.sheet__tabs {
  display: flex; gap: 1.2rem; padding: 0.45rem 0.9rem;
  background: hsl(206 74% 15% / 0.92); color: hsl(196 100% 88%); font-size: 0.74rem; font-weight: 600;
}
.sheet__tabs b { color: #fff; border-bottom: 2px solid var(--pb-cyan); padding-bottom: 2px; font-weight: 700; }
.sheet__fx {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.9rem;
  border-bottom: 1px solid hsl(206 74% 15% / 0.08); color: var(--pb-grey); font-size: 0.78rem;
}
.sheet__fx b { font-style: italic; color: var(--pb-navy); }
.sheet__fx code { font-family: inherit; color: var(--pb-navy); font-weight: 600; }
.grid-sheet { display: grid; grid-template-columns: 34px 1.25fr 1fr 0.85fr; }
.grid-sheet > span {
  padding: 0.5rem 0.65rem; border-right: 1px solid hsl(206 74% 15% / 0.07); border-bottom: 1px solid hsl(206 74% 15% / 0.07);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-sheet .h { background: var(--pb-soft); color: var(--pb-grey); font-weight: 600; text-align: center; font-size: 0.74rem; padding-block: 0.3rem; }
.grid-sheet .rn { background: var(--pb-soft); color: var(--pb-grey); text-align: center; font-size: 0.74rem; }
.grid-sheet .th { font-weight: 700; color: var(--pb-navy); }
.grid-sheet .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.grid-sheet .up { color: hsl(152 60% 30%); font-weight: 700; text-align: right; }
.grid-sheet .tot { font-weight: 800; border-top: 2px solid var(--pb-navy); }
.grid-sheet .you { background: hsl(196 100% 51% / 0.10); font-weight: 800; }
.grid-sheet .you-cell {
  position: relative; background: #fff; font-weight: 800; text-align: right;
  outline: 2px solid var(--pb-blue); outline-offset: -2px;
}
.grid-sheet .you-note { background: hsl(196 100% 51% / 0.10); font-weight: 700; font-size: 0.76rem; line-height: 1.25; color: var(--pb-navy); white-space: normal; }
.grid-sheet .sheet-title { grid-column: span 3; font-size: 0.95rem; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--pb-navy); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sheet__chart { display: flex; align-items: end; gap: 0.9rem; height: 120px; padding: 0.9rem 1.1rem 0.6rem; border-top: 1px solid hsl(206 74% 15% / 0.06); }
.bar { flex: 1; display: grid; justify-items: center; gap: 0.35rem; align-self: end; }
.bar i { display: block; width: 100%; max-width: 64px; border-radius: 10px 10px 4px 4px; background: var(--pb-grad-d); transform-origin: 50% 100%; transform: scaleY(1); transition: transform 1100ms var(--spring); }
.is-pending .bar i { transform: scaleY(0); }
.bar--jul i { height: 62px; opacity: 0.55; }
.bar--aug i { height: 80px; }
.bar--you i { height: 80px; background: repeating-linear-gradient(135deg, hsl(196 100% 51% / 0.18) 0 6px, transparent 6px 12px); outline: 2px dashed hsl(196 100% 51% / 0.6); outline-offset: -2px; }
.bar b { font-size: 0.72rem; color: var(--pb-grey); }
/* i tre riquadri di vetro intorno al foglio: grandi, con il bordo nel gradiente del brand.
   Entrano uno dopo l'altro quando il foglio arriva in vista (finché c'è .is-pending restano nascosti). */
.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1.35rem 0.55rem 0.55rem; border-radius: 22px;
  font-weight: 800; font-size: clamp(1.02rem, 0.8rem + 0.55vw, 1.3rem); letter-spacing: -0.015em;
  color: var(--pb-navy); white-space: nowrap;
  transition: transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms), opacity 420ms ease var(--d, 0ms);
}
.chip::after { padding: 2px; background: var(--pb-grad-d); }
.chip svg {
  flex: none; box-sizing: border-box; width: 2.3em; height: 2.3em; padding: 0.45em; border-radius: 50%;
  background: #fff; color: var(--pb-navy);
  box-shadow: 0 6px 14px -6px hsl(198 100% 40% / 0.55), inset 0 0 0 1px hsl(196 100% 51% / 0.22);
}
.chip--1 { top: -3.1rem; right: -2.2rem; --d: 650ms; }
.chip--2 { top: 25%; left: -2.6rem; --d: 800ms; }
.chip--3 { bottom: -1.8rem; left: -1.6rem; --d: 950ms; }
.sheet.is-pending ~ .chip { opacity: 0; transform: translateY(16px) scale(0.85); }

/* Airbnb e Booking escono dallo schermo del foglio: partono piccoli dentro, saltano fuori con un rimbalzo
   e poi galleggiano piano. Colori dei loro loghi: eccezione come il verde WhatsApp. */
.pop {
  position: absolute; z-index: 4;
  transform: translate(0, 0) scale(1) rotate(var(--rot, 0deg));
  transition: transform 1100ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0ms), opacity 380ms ease var(--d, 0ms);
}
.sheet.is-pending ~ .pop { opacity: 0; transform: translate(var(--from-x, 0), var(--from-y, 0)) scale(0.3) rotate(0deg); }
.pop::before { /* il bagliore del logo sul foglio */
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 190%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0.6;
}
.pop__tile {
  display: grid; place-items: center; overflow: hidden;
  width: var(--tile, 100px); aspect-ratio: 1; border-radius: 26%;
  box-shadow:
    0 2px 4px hsl(206 74% 15% / 0.10),
    0 22px 40px -14px hsl(206 74% 15% / 0.50),
    0 46px 70px -34px var(--glow);
  animation: pop-float 4.8s ease-in-out var(--float-d, 0s) infinite alternate;
}
.pop__tile img { display: block; width: 100%; height: 100%; }
.pop--airbnb .pop__tile { background: #fff; }
.pop--airbnb .pop__tile img { width: 56%; height: auto; }
.pop--booking { --rot: -9deg; --glow: hsl(214 100% 30% / 0.40); --from-x: 70%; --from-y: 110%; --d: 250ms; top: -5rem; left: -1.2rem; }
.pop--airbnb { --rot: 8deg; --glow: hsl(358 100% 68% / 0.50); --from-x: -140%; --from-y: 0%; --d: 430ms; --float-d: -2.4s; top: 54%; right: -3.6rem; }
@keyframes pop-float {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-9px) rotate(1.5deg); }
}
.sheet__caption { margin-top: 2rem; font-size: 0.8rem; color: var(--pb-grey); max-width: 52ch; }

/* ------------------------------------------------------------- vantaggi -- */
.perks { background: linear-gradient(180deg, #fff, var(--pb-soft)); }
.perks__head { max-width: 40rem; }
.bento {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.perk {
  position: relative; overflow: hidden;
  padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--e2), inset 0 0 0 1px hsl(206 74% 15% / 0.05);
}
.perk__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--pb-soft); }
.perk__ico svg { width: 26px; height: 26px; }
.perk h3 { margin-top: 1.1rem; }
.perk p { margin-top: 0.55rem; color: var(--pb-grey); font-size: 0.97rem; line-height: 1.6; }
.perk--hero {
  grid-column: span 2; grid-row: span 1;
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 100%, hsl(196 100% 51% / 0.35), transparent 65%),
    radial-gradient(50% 60% at 0% 0%, hsl(183 98% 51% / 0.12), transparent 70%),
    var(--pb-navy);
}
.perk--hero .perk__ico { background: rgb(255 255 255 / 0.1); }
.perk--hero p { color: hsl(200 40% 86%); }
.perk--hero p strong { color: #fff; }
.perk__big { display: block; margin-top: 1rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.perk--wide { grid-column: span 2; }
.platforms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.platforms span { padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--pb-soft); font-weight: 700; font-size: 0.82rem; }

/* ----------------------------------------------------------- step (clou) -- */
.steps { background: #fff; }
.steps__inner { position: relative; }
.steps__head { max-width: 38rem; }
.steps__rail { position: relative; margin-top: clamp(2.6rem, 4.5vw, 3.4rem); }
.steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem);
}
.step {
  --on: 1;
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #fff;
  box-shadow: var(--e2), inset 0 0 0 1.5px hsl(196 100% 51% / calc(0.15 + 0.55 * var(--on)));
}
.step__media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(206 74% 15% / 0.30), transparent 50%);
  mix-blend-mode: multiply;
}
.step__num {
  position: absolute; z-index: 1; left: 1rem; top: 1rem;
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: #fff; box-shadow: var(--e2);
  font-weight: 900; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1;
}
.step__body { padding: 1.2rem 1.35rem 1.5rem; }
.step__tag {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 8px;
  background: var(--pb-soft); color: var(--pb-navy); font-weight: 700; font-size: 0.78rem;
}
.step h3 { margin-top: 0.8rem; }
.step p { margin-top: 0.5rem; color: var(--pb-grey); font-size: 0.97rem; line-height: 1.6; }

/* la notifica di vetro (mossa firma) */
.notif {
  --n: 1;
  width: min(100%, 380px);
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 26px;
  opacity: var(--n);
  transform: translate3d(0, calc((1 - var(--n)) * -28px), 0) scale(calc(0.94 + 0.06 * var(--n)));
}
.notif__head { display: flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 700; color: var(--pb-grey); }
.notif__head img { width: 26px; height: 26px; border-radius: 8px; }
.notif__head time { margin-left: auto; font-weight: 600; }
.notif__title { margin-top: 0.7rem; font-weight: 700; font-size: 0.95rem; }
.notif__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.7rem; margin-top: 0.15rem; }
.notif__amount { font-weight: 900; font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.notif__prev { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.86rem; font-weight: 600; color: var(--pb-grey); }
.notif__delta {
  --d: 1;
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--pb-navy); color: #fff; font-weight: 800; font-size: 0.85rem;
  opacity: var(--d); transform: scale(calc(0.8 + 0.2 * var(--d)));
}
.notif__delta svg { width: 14px; height: 14px; color: var(--pb-cyan); }
.notif__line {
  --l: 1;
  margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid hsl(206 74% 15% / 0.1);
  font-weight: 700; font-size: 1.02rem; line-height: 1.45;
  opacity: var(--l); transform: translate3d(0, calc((1 - var(--l)) * 10px), 0);
}
.notif__note { margin-top: 0.6rem; font-size: 0.74rem; color: var(--pb-grey); }
.steps__notif { margin-top: 1.5rem; display: flex; justify-content: center; }

/* desktop: sezione ferma, gli step si accendono e arriva la notifica */
.steps.sc-act--pinned .steps__stage { display: flex; align-items: center; }
.steps.sc-act--pinned .steps__inner { padding-block: calc(var(--nav-h) + 1rem) 2rem; }
.steps.sc-act--pinned .step {
  --on: clamp(0, calc((var(--sc-p, 0) - var(--start)) * 9), 1);
  --dim: 0;
  opacity: calc((0.32 + 0.68 * var(--on)) * (1 - 0.45 * var(--dim)));
  transform: translate3d(0, calc((1 - var(--on)) * 22px), 0) scale(calc(1 - 0.03 * var(--dim)));
}
.steps.sc-act--pinned .step:nth-child(1) { --start: 0.02; }
.steps.sc-act--pinned .step:nth-child(2) { --start: 0.13; }
.steps.sc-act--pinned .step:nth-child(3) { --start: 0.24; }
/* quando arriva la notifica, i primi due passi si fanno da parte: l'attenzione va agli incassi */
.steps.sc-act--pinned .step:nth-child(-n+2) { --dim: clamp(0, calc((var(--sc-p, 0) - 0.42) * 6), 1); }
.steps.sc-act--pinned .steps__head { max-width: min(38rem, 56%); }
.steps.sc-act--pinned .steps__notif {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--nav-h) + 4.2rem);
  margin: 0;
}
.steps.sc-act--pinned .notif { --n: clamp(0, calc((var(--sc-p, 0) - 0.38) * 9), 1); width: min(400px, 34vw); }
.steps.sc-act--pinned .notif__delta { --d: clamp(0, calc((var(--sc-p, 0) - 0.70) * 12), 1); }
.steps.sc-act--pinned .notif__line { --l: clamp(0, calc((var(--sc-p, 0) - 0.74) * 10), 1); }
/* una luce azzurra si accende dietro la notifica */
.steps.sc-act--pinned .steps__notif::before {
  content: ""; position: absolute; z-index: -1; inset: -45% -35%; pointer-events: none;
  background: radial-gradient(closest-side, hsl(196 100% 51% / 0.22), hsl(183 98% 51% / 0.08) 55%, transparent);
  opacity: clamp(0, calc((var(--sc-p, 0) - 0.4) * 4), 1);
}
.steps__track {
  position: absolute; left: 0; right: 0; top: calc(-1 * clamp(0.9rem, 1.6vw, 1.3rem)); height: 4px; border-radius: 4px;
  background: hsl(196 100% 51% / 0.14); overflow: hidden;
}
.steps__track i {
  position: absolute; inset: 0; background: var(--pb-grad); transform-origin: 0 50%;
  transform: scaleX(clamp(0, calc(var(--sc-p, 1) * 2.7), 1));
}

/* -------------------------------------------- confronto con il canone -- */
/* --k (0 → 1) lo scrive porta-blu.js mentre scorri; senza JS resta 1 e si vede tutto. */
.compare {
  --k: 1;
  --u: clamp(64px, 8.4vw, 108px);   /* altezza di un canone da 800 € */
  --gap: 4px;
  overflow: clip;
  background:
    radial-gradient(42% 52% at 26% 64%, hsl(196 100% 51% / 0.10), transparent 70%),
    radial-gradient(30% 40% at 80% 36%, hsl(183 98% 51% / 0.08), transparent 70%),
    #fff;
}
.compare__title { max-width: 40rem; margin-inline: auto; text-align: center; }
.compare__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  margin-top: clamp(2.4rem, 4.5vw, 3.6rem);
}
.compare__chart {
  margin: 0; padding: clamp(1.2rem, 2.6vw, 2.2rem) clamp(1.1rem, 2.6vw, 2.2rem) clamp(1.2rem, 2.4vw, 2rem);
  border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--e3), inset 0 0 0 1px hsl(206 74% 15% / 0.06);
}
/* due colonne su righe comuni: etichette, barre (allineate in basso), cifre, note */
.compare__cols {
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto calc(var(--u) * 2.74 + var(--gap) * 2 + 1.1rem) auto auto;
  column-gap: clamp(1rem, 3vw, 2.2rem); justify-items: start;
}
.ccol { display: contents; }
.ccol--rent > * { grid-column: 1; }
.ccol--str > * { grid-column: 2; }
.ccol__label { grid-row: 1; align-self: end; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pb-grey); line-height: 1.35; }
.cbar { grid-row: 2; align-self: end; position: relative; display: flex; flex-direction: column-reverse; gap: var(--gap); width: min(calc(100% - 4rem), 170px); }
.ccol__amount { grid-row: 3; margin-top: 0.9rem; font-weight: 900; font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ccol__note { grid-row: 4; margin-top: 0.25rem; font-size: 0.86rem; color: var(--pb-grey); line-height: 1.45; }
/* la linea di base comune alle due barre */
.compare__cols::after {
  content: ""; grid-column: 1 / -1; grid-row: 2; align-self: end;
  height: 2px; margin-bottom: -6px; border-radius: 2px; background: hsl(206 74% 15% / 0.08);
}

.cblock {
  --v: 1;
  display: grid; place-items: center; height: var(--u); border-radius: 16px;
  font-weight: 700; font-size: clamp(0.85rem, 0.72rem + 0.45vw, 1.1rem); font-variant-numeric: tabular-nums;
  color: var(--pb-navy);
}
/* la cifra compare solo quando la copia è quasi al suo posto: niente scritte sovrapposte in volo */
.cblock__t { opacity: clamp(0, calc((var(--v) - 0.55) * 4), 1); }
.cblock--rent {
  background: var(--pb-soft);
  box-shadow: inset 0 0 0 1.5px hsl(196 100% 51% / 0.35);
  opacity: clamp(0, calc(var(--k) * 6), 1);
}
/* le copie del canone: partono dal blocco di sinistra e salgono al loro posto */
.cblock--1, .cblock--2, .cblock--3 {
  background: var(--pb-grad-d);
  box-shadow: 0 10px 24px -12px hsl(198 100% 40% / 0.55), inset 0 1px 0 hsl(0 0% 100% / 0.35);
  opacity: clamp(0, calc(var(--v) * 3), 1);
  transform: translate3d(calc((1 - var(--v)) * var(--dx, 0px)), calc((1 - var(--v)) * var(--dy)), 0);
}
.cblock--1 { --v: clamp(0, calc((var(--k) - 0.18) * 5), 1); --dy: 0px; }
.cblock--2 { --v: clamp(0, calc((var(--k) - 0.38) * 5), 1); --dy: calc(var(--u) + var(--gap)); }
.cblock--3 {
  --v: clamp(0, calc((var(--k) - 0.58) * 5), 1); --dy: calc((var(--u) + var(--gap)) * 2);
  height: calc(var(--u) * 0.74);
  background: linear-gradient(135deg, hsl(196 100% 51% / 0.55), hsl(183 98% 51% / 0.55));
}
/* le tacche del moltiplicatore, a destra della colonna di agosto */
.ctick {
  position: absolute; left: calc(100% + 0.5rem); transform: translateY(50%);
  padding: 0.3rem 0.5rem; border-radius: 999px; background: var(--pb-soft);
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem); font-weight: 700; color: var(--pb-navy); white-space: nowrap; line-height: 1;
}
/* il trattino che lega la tacca alla colonna */
.ctick::before {
  content: ""; position: absolute; right: 100%; top: 50%;
  width: 0.5rem; height: 2px; margin-top: -1px; background: hsl(196 100% 51% / 0.6);
}
.ctick--1 { bottom: var(--u); opacity: clamp(0, calc((var(--k) - 0.3) * 8), 1); }
.ctick--2 { bottom: calc(var(--u) * 2 + var(--gap)); opacity: clamp(0, calc((var(--k) - 0.5) * 8), 1); }
.ctick--3 {
  bottom: calc(var(--u) * 2.74 + var(--gap) * 2); opacity: clamp(0, calc((var(--k) - 0.66) * 8), 1);
  background: var(--pb-navy); color: #fff; font-weight: 900;
}

/* la percentuale grande e il testo */
.compare__pct {
  font-weight: 900; font-size: clamp(4.2rem, 2.2rem + 7vw, 8.5rem);
  letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums;
}
.compare__pct .gt { background: var(--pb-grad-d); -webkit-background-clip: text; background-clip: text; padding-right: 0.04em; }
.compare__mult { margin-top: 0.9rem; font-size: var(--fs-lede); line-height: 1.5; color: var(--pb-grey); }
.compare__mult strong { display: block; font-weight: 900; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.15; color: var(--pb-navy); }
.compare__close {
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid hsl(206 74% 15% / 0.1);
  font-weight: 700; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.5; max-width: 34rem;
}
.compare__note { margin-top: 0.9rem; font-size: 0.8rem; line-height: 1.55; color: var(--pb-grey); max-width: 52ch; }

/* ---------------------------------------------------- seconda stima ---- */
.door-cta { padding-inline: clamp(0rem, 1.5vw, 1.25rem); background: #fff; }
.door-cta__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(55% 60% at 50% 105%, hsl(196 100% 51% / 0.45), transparent 70%),
    radial-gradient(35% 40% at 85% 10%, hsl(183 98% 51% / 0.12), transparent 70%),
    var(--pb-navy);
  padding: clamp(8.5rem, 15vw, 12.5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.door-cta__panel::after { /* grana leggera sul blu notte */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.door-cta__inner { max-width: 38rem; margin-inline: auto; text-align: center; }
/* l'arco del logo come porta: l'arco sta sopra il titolo, i montanti scendono oltre il bordo */
.door-cta__arch {
  --draw: clamp(0, calc((var(--sc-p, 1) - 0.12) * 2.6), 1);
  position: absolute; left: 50%; top: clamp(1.5rem, 3.5vw, 3rem); z-index: -1;
  width: min(920px, 112%); height: auto;
  transform: translateX(-50%);
  overflow: visible;
}
.door-cta__arch path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--draw)); }
.door-cta__arch .glow { opacity: calc(var(--draw) * 0.3); filter: blur(16px); }
.door-cta .h2 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem); }
.door-cta p { margin: 1.3rem auto 0; max-width: 34rem; font-size: var(--fs-lede); color: hsl(200 45% 86%); }
.door-cta .btn { margin-top: 2.2rem; }
.door-cta__small { margin-top: 1rem !important; font-size: var(--fs-small) !important; color: hsl(200 30% 75%) !important; }

/* ---------------------------------------------------------------- FAQ ---- */
.faq {
  background:
    radial-gradient(45% 50% at 8% 20%, hsl(196 100% 51% / 0.14), transparent 70%),
    radial-gradient(40% 45% at 95% 80%, hsl(183 98% 51% / 0.14), transparent 70%),
    var(--pb-soft);
  overflow: clip;
}
.faq__head { text-align: center; display: grid; justify-items: center; }
.faq__head .lede { margin-top: 1rem; text-align: center; }
.faq__list {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: 0; max-width: 64rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem;
}
.faq__item { margin: 0; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 76px; padding: 1.05rem 1.15rem 1.05rem 1.4rem; border-radius: 20px;
  background: #fff; box-shadow: var(--e1), inset 0 0 0 1px hsl(206 74% 15% / 0.05);
  color: var(--pb-navy); font: 700 1rem/1.4 "Montserrat", system-ui, sans-serif; text-align: left;
  cursor: pointer; transition: transform 180ms var(--spring);
}
.faq__q:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .faq__q:hover { transform: translateY(-2px); } }
.faq__plus {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--pb-soft); color: var(--pb-navy);
}
.faq__plus svg { width: 18px; height: 18px; }
.faq__a { padding: 0.9rem 1.4rem 0.5rem; color: var(--pb-grey); }
.faq__a p + p { margin-top: 0.7rem; }
.faq__a strong { color: var(--pb-navy); }

.faq-dialog {
  /* la classe .glass imposta position: relative; la finestra modale deve restare fissa e centrata */
  position: fixed; inset: 0; margin: auto;
  width: min(640px, calc(100% - 2rem)); height: fit-content;
  max-height: min(80svh, 720px);
  padding: 0; border: 0; color: var(--pb-navy);
  overflow: visible;
}
.faq-dialog[open] { animation: dlg-in 320ms var(--spring); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.faq-dialog::backdrop {
  background: hsl(206 74% 15% / 0.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.faq-dialog__inner { position: relative; max-height: inherit; overflow-y: auto; padding: clamp(1.5rem, 3vw, 2.3rem); }
.faq-dialog__title { font-weight: 900; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.2; padding-right: 3rem; }
.faq-dialog__body { margin-top: 1.1rem; color: hsl(206 30% 28%); font-size: 1.02rem; }
.faq-dialog__body p + p { margin-top: 0.8rem; }
.faq-dialog__body strong { color: var(--pb-navy); }
.faq-dialog__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / 0.85); color: var(--pb-navy);
  box-shadow: var(--e1); cursor: pointer; transition: transform 160ms var(--spring);
}
.faq-dialog__close svg { width: 20px; height: 20px; }
.faq-dialog__close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .faq-dialog__close:hover { transform: rotate(90deg); } }

/* ------------------------------------------------------- sezione finale -- */
.final { position: relative; overflow: clip; isolation: isolate; color: #fff; padding: clamp(5rem, 10vw, 9rem) 0 1.5rem; }
.final__bg { position: absolute; inset: -12% 0; z-index: -2; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; }
.final__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, hsl(206 74% 15% / 0.78), hsl(206 74% 15% / 0.58) 45%, hsl(206 74% 15% / 0.88)),
    linear-gradient(hsl(196 100% 30% / 0.25), hsl(196 100% 30% / 0.25));
}
.final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.final__own { padding: clamp(1.6rem, 3vw, 2.4rem); }
.final__own h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.final__own p { margin-top: 0.9rem; color: hsl(200 45% 90%); font-size: 1.04rem; }
.final__brand {
  padding: clamp(1.6rem, 3vw, 2.4rem); color: var(--pb-navy);
  margin-top: clamp(0rem, 6vw, 5rem);
}
.final__logo { display: flex; align-items: center; gap: 1rem; }
.final__logo img.logo { height: 46px; width: auto; }
.final__logo img.ico { width: 46px; height: 46px; border-radius: 13px; box-shadow: var(--e1); }
.final__brand p { margin-top: 1.1rem; color: hsl(206 30% 26%); }
.final__brand p strong { color: var(--pb-navy); }
.final__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-top: 1.4rem; }
.final__links a { font-weight: 700; text-decoration: none; }
.final__links a.ig {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--pb-navy); color: #fff; transition: transform 160ms var(--spring);
}
.final__links a.ig svg { width: 24px; height: 24px; }
.final__links a.txt { position: relative; padding: 0.4rem 0; }
.final__links a.txt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 2px; border-radius: 2px;
  background: var(--pb-grad); transform: scaleX(0.35); transform-origin: left; transition: transform 200ms var(--spring);
}
@media (hover: hover) and (pointer: fine) {
  .final__links a.txt:hover::after { transform: scaleX(1); }
  .final__links a.ig:hover { transform: translateY(-2px); }
}
.final__links a:active { transform: scale(0.97); }
.final__legal { margin-top: clamp(3rem, 6vw, 5rem); text-align: center; font-size: 0.82rem; color: hsl(200 35% 82%); }
.final__legal a { color: inherit; }

/* ------------------------------------------------------ pagina missione -- */
.m-hero { padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)); }
.m-hero__head { text-align: center; display: grid; justify-items: center; }
.m-hero__head .lede { margin-top: 1rem; text-align: center; }
.m-hero__title { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5rem); }
.m-video {
  position: relative; margin-top: clamp(2rem, 4vw, 3rem);
  aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  box-shadow: var(--e3);
  background: var(--pb-navy);
}
/* Con il video il fondo è il gradiente del primo fotogramma: niente stacco mentre si carica */
.m-video:has(video) { background: var(--pb-grad-d); }
.m-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* il video si apre sul gradiente: qui il tasto è bianco, altrimenti sparirebbe */
.m-video__play { position: absolute; z-index: 2; left: 50%; bottom: 8%; translate: -50% 0; }
.m-video__play.btn--brand { background: var(--pb-white); --shine: hsl(196 100% 51% / 0.32); }
.m-video__poster { position: absolute; inset: 0; }
.m-video__poster img.ph { width: 100%; height: 100%; object-fit: cover; }
.m-video__poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, hsl(206 74% 15% / 0.45), hsl(206 74% 15% / 0.82));
}
.m-video__arch { position: absolute; z-index: 1; left: 50%; top: 52%; width: min(46%, 420px); transform: translate(-50%, -50%); }
.m-video__logo { position: absolute; z-index: 2; left: 50%; top: 56%; transform: translate(-50%, -50%); width: min(34%, 300px); }
.m-video__soon {
  position: absolute; z-index: 2; left: 50%; bottom: 7%; transform: translateX(-50%);
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}

.manifesto { padding-block: var(--section); }
.manifesto__line {
  font-weight: 900; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 6.4rem);
}
.manifesto__line + .manifesto__line { margin-top: 0.3em; }
.manifesto__line--b { padding-left: clamp(0rem, 8vw, 9rem); }
.manifesto__note { margin-top: clamp(1.8rem, 4vw, 2.8rem); margin-left: auto; max-width: 30rem; }

.chores { background: var(--pb-navy); color: #fff; }
.chores__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.chores__head p { margin-top: 1rem; color: hsl(200 45% 86%); }
.chores__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.chore {
  --s: 0;
  --x: clamp(0, calc((var(--sc-p, 1) - var(--s)) * 7), 1);
  position: relative; padding: 1.05rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.12);
  font-weight: 700; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.55rem); letter-spacing: -0.015em;
}
/* la riga che barra: uno sfondo in gradiente che cresce, anche sulle voci che vanno a capo */
.chore span {
  opacity: calc(1 - var(--x) * 0.45);
  background-image: linear-gradient(90deg, #03BAFF, #03F1FF);
  background-repeat: no-repeat;
  background-position: 0 56%;
  background-size: calc(var(--x) * 100%) 0.13em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.chore:nth-child(1) { --s: 0.22; } .chore:nth-child(2) { --s: 0.28; } .chore:nth-child(3) { --s: 0.34; }
.chore:nth-child(4) { --s: 0.40; } .chore:nth-child(5) { --s: 0.46; } .chore:nth-child(6) { --s: 0.52; }
.chores__end { margin-top: 1.8rem; font-size: var(--fs-lede); font-weight: 700; }

.aligned__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.equation {
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg);
  background: var(--pb-soft); display: grid; gap: 1rem;
}
.equation__row { display: flex; align-items: center; gap: 0.9rem; font-weight: 800; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); }
.equation__row i { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: var(--e1); font-style: normal; font-weight: 900; color: var(--pb-blue); }
.equation__eq { font-weight: 900; color: var(--pb-blue); font-size: 1.6rem; padding-left: 0.7rem; }

.transparency { background: linear-gradient(180deg, #fff, var(--pb-soft)); }
.transparency__list { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; list-style: none; padding: 0; }
.transparency__list li { padding: 1.6rem 1.4rem; border-radius: var(--r-lg); background: #fff; box-shadow: var(--e2); }
.transparency__list li:first-child { background: var(--pb-navy); color: #fff; }
.transparency__list li:first-child p { color: hsl(200 45% 86%); }
.transparency__list h3 { margin-top: 1rem; }
.transparency__list p { margin-top: 0.5rem; color: var(--pb-grey); font-size: 0.97rem; }

.who__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.who__grid .door { --door: 1; }
.who__sign { margin-top: 1.4rem; font-weight: 800; }

.m-cta { text-align: center; }
.m-cta .h2 { max-width: 18ch; margin-inline: auto; }
.m-cta .lede { margin: 1rem auto 0; text-align: center; }
.m-cta .btn { margin-top: 2rem; }

/* ---------------------------------------------- pagina non trovata (404) -- */
.notfound__code {
  display: block; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  font-size: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  background: var(--pb-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound .legal__body h1 { margin-top: 0.6rem; }
.notfound .legal__body .btn { margin-top: 2rem; }

/* ------------------------------------------------------- pagina privacy -- */
.legal { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 var(--section); }
.legal__body { max-width: 48rem; }
.legal__body h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
.legal__body h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); margin-top: 2.4rem; letter-spacing: -0.02em; }
.legal__body p, .legal__body li { color: hsl(206 30% 28%); }
.legal__body p { margin-top: 0.9rem; }
.legal__body ul { margin: 0.9rem 0 0; padding-left: 1.2rem; }
.legal__body li + li { margin-top: 0.4rem; }
.legal__body a { color: var(--pb-navy); font-weight: 600; text-decoration-color: var(--pb-blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:hover { text-decoration-thickness: 2px; }
.legal__updated { margin-top: 1rem; color: var(--pb-grey); font-size: var(--fs-small); }
.ph { background: hsl(196 100% 51% / 0.14); border-radius: 6px; padding: 0 0.3em; font-weight: 700; color: var(--pb-navy); }

/* ------------------------------------- pulsante grande nei vari punti ---- */
/* sezioni centrate: più largo e più grande */
.door-cta .btn--mega, .m-cta .btn--mega { width: min(100%, 37.5rem); margin-inline: auto; }
/* sul blu notte l'alone deve accendersi, non scurire */
.door-cta .btn--mega::before {
  box-shadow:
    0 0 0 8px hsl(150 90% 58% / 0.2),
    0 20px 54px -12px hsl(150 90% 50% / 0.55),
    0 0 70px -14px hsl(150 90% 55% / 0.45);
}
@media (min-width: 861px) {
  .door-cta .btn--mega, .m-cta .btn--mega { min-height: 104px; gap: 1.2rem; padding: 1rem 1.05rem 1rem 1.1rem; }
  .door-cta .btn--mega .btn__badge, .m-cta .btn--mega .btn__badge { width: 70px; height: 70px; }
  .door-cta .btn--mega .btn__badge svg, .m-cta .btn--mega .btn__badge svg { width: 40px; height: 40px; }
  .door-cta .btn--mega .btn__kicker, .m-cta .btn--mega .btn__kicker { font-size: 1.22rem; }
  .door-cta .btn--mega .btn__big, .m-cta .btn--mega .btn__big { font-size: 2.9rem; }
  .door-cta .btn--mega .btn__go, .m-cta .btn--mega .btn__go { width: 60px; height: 60px; }
  .door-cta .btn--mega .btn__go svg, .m-cta .btn--mega .btn__go svg { width: 28px; height: 28px; }
}
/* card della chat: più stretta, misura ridotta */
.contact__card .btn--mega {
  min-height: 84px; gap: 0.75rem; padding: 0.8rem; text-align: left; line-height: 1.2;
}
.contact__card .btn--mega .btn__badge { width: 52px; height: 52px; }
.contact__card .btn--mega .btn__badge svg { width: 30px; height: 30px; }
.contact__card .btn--mega .btn__kicker { font-size: 1rem; }
.contact__card .btn--mega .btn__big { font-size: 2.1rem; }
.contact__card .btn--mega .btn__go { width: 44px; height: 44px; }
.contact__card .btn--mega .btn__go svg { width: 20px; height: 20px; }

/* ---------------------------------------------------- pulsante Instagram -- */
/* Sotto la porta: stessa forma e stesso riflesso del pulsante grande di WhatsApp, con i colori di
   Instagram (eccezione alla palette, come il verde WhatsApp). */
.method__side { display: grid; justify-items: center; gap: clamp(2rem, 3.5vw, 2.75rem); }
.btn--ig {
  --btn-ink: #fff;
  background: linear-gradient(118deg, #FEDA75 -6%, #FA7E1E 14%, #D62976 44%, #962FBF 74%, #4F5BD5 104%);
}
.btn--ig.btn--mega { width: min(100%, 440px); }
.btn--ig.btn--mega::before {
  box-shadow:
    0 24px 46px -16px hsl(326 70% 45% / 0.6),
    0 8px 18px -8px hsl(206 74% 15% / 0.22),
    0 0 0 8px hsl(318 80% 60% / 0.15);
}
.btn--ig .btn__badge { color: #D62976; box-shadow: 0 6px 14px -6px hsl(326 70% 30% / 0.5), inset 0 0 0 1px hsl(326 60% 40% / 0.08); }
.btn--ig .btn__kicker { text-shadow: 0 1px 2px hsl(326 80% 25% / 0.25); }
.btn--ig .btn__big { font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.35rem); text-shadow: 0 2px 10px hsl(290 70% 25% / 0.25); }
.btn--ig .btn__go { background: #fff; color: #962FBF; }

/* -------------------------------------------------------------- tablet ---- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk--hero, .perk--wide { grid-column: span 2; }
  .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review:nth-child(even) { margin-top: 0; }
  .chip--2 { left: -1.2rem; }
}

/* -------------------------------------------------------------- telefono -- */
@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav { top: 8px; height: 56px; width: calc(100% - 16px); padding: 0 6px 0 14px; }
  .nav__logo img { height: 28px; }
  .nav__link { font-size: 0.88rem; padding-inline: 0.2rem; }
  .nav__link::after { left: 0.2rem; right: 0.2rem; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .nav .btn--sm { min-height: 44px; padding: 0.55em 0.95em; font-size: 0.88rem; }

  .hero { padding-top: calc(var(--nav-h) + 6px); }
  .hero__frame { height: 56.25vw; transform: translate3d(0, calc(var(--hero-p, 0) * 12%), 0) scale(calc(1 - var(--hero-p, 0) * 0.06)); }
  .hero__screen, .hero__shadow { border-radius: 18px; }

  .contact { padding-top: 1.75rem; }
  .contact__grid, .method__grid, .estimate__grid, .aligned__grid, .who__grid, .chores__grid { grid-template-columns: minmax(0, 1fr); }
  .estimate__visual { order: 2; padding: 4rem 0 0; }
  .chip { font-size: 0.92rem; gap: 0.55rem; padding: 0.4rem 0.95rem 0.4rem 0.4rem; border-radius: 18px; }
  .chip--1 { top: -1.6rem; right: -0.3rem; }
  .chip--2 { display: none; }
  .chip--3 { bottom: -1.5rem; left: -0.3rem; }
  .pop { --tile: 62px; }
  .pop--booking { top: -3.7rem; left: -0.3rem; }
  .pop--airbnb { top: 55%; right: -0.7rem; }
  .btn--ig.btn--mega { width: min(100%, 360px); }

  /* seconda stima: la porta resta dentro il pannello, il contenuto sta sotto l'arco */
  .door-cta__panel { padding: calc(30vw + 2.5rem) 0 3.5rem; }
  .door-cta__arch { width: 100%; top: 1rem; }
  .door-cta__inner { max-width: none; padding-inline: 15%; }
  .door-cta .h2 { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .door-cta p { font-size: 1rem; }
  .door-cta .btn { width: 100%; font-size: 1rem; padding-inline: 0.9em; }
  /* il pulsante grande si allarga fin quasi alle linee dell'arco */
  .door-cta .btn--mega { width: auto; margin-inline: -5%; padding-inline: 0.8rem; }
  .grid-sheet { grid-template-columns: 26px 1.1fr 1fr 0.8fr; font-size: 0.78rem; }
  .grid-sheet > span { padding: 0.45rem 0.45rem; }
  .sheet__tabs span:nth-child(n+4) { display: none; }

  .trust__scene { min-height: 0; display: block; background: none; }
  .trust__scene .trust__center { max-width: none; }
  .trust__photos {
    /* width: il place-items: center del desktop altrimenti lo stringe al contenuto e lo centra fuori schermo */
    position: static; display: flex; width: 100%; gap: 0.9rem; overflow-x: auto; pointer-events: auto;
    margin-top: 2rem; padding: 0.5rem var(--gutter) 1.2rem;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .trust__photos::-webkit-scrollbar { display: none; }
  .trust__photos .tile {
    position: relative; inset: auto; width: auto; flex: 0 0 min(76vw, 320px);
    scroll-snap-align: center; transform: none !important;
  }
  .trust__photos .tile--shot { align-self: center; }
  .proof__grid { grid-template-columns: minmax(0, 1fr); }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .perk--hero, .perk--wide { grid-column: auto; }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .steps__track { display: none; }
  .door { width: min(100%, 360px); }
  .faq__list { grid-template-columns: minmax(0, 1fr); }
  .faq-dialog { width: 100%; max-width: none; max-height: 92svh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .faq-dialog .faq-dialog__inner { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .final__grid { grid-template-columns: minmax(0, 1fr); }
  .final__brand { margin-top: 0; }
  .manifesto__line--b { padding-left: 0; }
  .transparency__list { grid-template-columns: minmax(0, 1fr); }
  .compare { --u: clamp(54px, 16vw, 72px); }
  .compare__grid { grid-template-columns: minmax(0, 1fr); }
  .ccol__label { font-size: 0.7rem; letter-spacing: 0.08em; }
  .ccol__note { font-size: 0.8rem; }
  .ctick { padding: 0.25rem 0.4rem; left: calc(100% + 0.4rem); }
  .ctick::before { width: 0.4rem; }
}
/* ------------------------------------------------- solo telefono (18/10) --
   Richieste di Filippo: sul telefono recensioni, tre passi e "Trasparenza totale" (missione) scorrono col dito
   come le foto di "massima professionalità"; via i distintivi azzurri, la sezione "Ci occupiamo di tutto" e il
   riquadro azzurro sotto "Guadagniamo solo se guadagni tu". Il computer non cambia. */
@media (max-width: 860px) {
  /* recensioni, tre passi e trasparenza: la stessa fila scorrevole delle foto (.trust__photos), da bordo a bordo */
  .reviews__grid, .steps__list, .transparency__list {
    display: flex; gap: 0.9rem; overflow-x: auto; align-items: stretch;
    margin-inline: calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 1.2rem;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .reviews__grid::-webkit-scrollbar, .steps__list::-webkit-scrollbar, .transparency__list::-webkit-scrollbar { display: none; }
  .reviews__grid { margin-top: 1.5rem; }
  .reviews__grid .review, .steps__list .step, .transparency__list li { flex: 0 0 min(76vw, 320px); margin-top: 0; scroll-snap-align: center; }

  /* via i distintivi: la sezione si chiude subito sulle recensioni e passa alla porta */
  .badges { display: none; }
  .reviews { padding-bottom: 0.5rem; }

  /* via "Ci occupiamo di tutto. Davvero tutto." */
  .perks { display: none; }

  /* missione: via il riquadro azzurro "0 costi di avvio = interessi che coincidono" */
  .equation { display: none; }
}
@media (max-width: 480px) {
  .btn--lg, .btn--xl { white-space: normal; text-align: center; line-height: 1.25; padding-inline: 1.1em; }
  .btn--mega { gap: 0.75rem; min-height: 84px; padding: 0.8rem 0.8rem 0.8rem 0.8rem; }
  .btn--mega .btn__badge { width: 52px; height: 52px; }
  .btn--mega .btn__badge svg { width: 30px; height: 30px; }
  .btn--mega .btn__go { width: 44px; height: 44px; }
  .btn--mega .btn__go svg { width: 20px; height: 20px; }
}
@media (max-width: 420px) {
  .nav__link--home { display: none; }
  .contact__title { font-size: clamp(1.85rem, 1.2rem + 3.2vw, 2.2rem); }
}

/* ------------------------------------------------------ movimento ridotto -- */
@media (prefers-reduced-motion: reduce) {
  .hero__frame { transform: none !important; }
  .ground { opacity: 0 !important; }
  .hero__shadow { opacity: 0 !important; }
  .door { --door: 1 !important; }
  .door__leaf { opacity: 0; }
  .door-cta__arch { --draw: 1 !important; }
  .compare { --k: 1 !important; }
  .chore { --x: 1 !important; }
  .steps__track i { transform: none !important; }
  .bar i { transition: none; }
  .caret { animation: none; }
  .faq-dialog[open] { animation: none; }
  .btn, .faq__q, .nav__link::after { transition: none; }
  .btn__shine::before, .btn--mega::before, .btn--mega .btn__go svg { animation: none; }
  .btn__shine { display: none; }
  .pop__tile { animation: none; }
  .btn--mega::before { opacity: 1; }
}
