/* Real Estate Photo Pro AI — stili
 * Font: Newsreader e Inter (SIL Open Font License), ospitati in locale. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --petrol: #123345;
  --petrol-deep: #0c2432;
  --petrol-soft: #2c4a5b;
  --warm: #FAFAF7;
  --paper: #F1F0EA;
  --aqua: #78DFCD;
  --aqua-ink: #1d6f62;        /* verde acqua scuro, leggibile su fondo chiaro (AA) */
  --ink: #15242d;
  --muted: #56626a;           /* testo secondario, AA su --warm e --paper */
  --line: #dddcd4;
  --line-strong: #c9c8bf;
  --on-dark: #eef2f2;
  --on-dark-muted: #b3c3ca;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 450; color: var(--petrol); }
h1, h2 { font-family: var(--serif); letter-spacing: -0.018em; line-height: 1.06; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); font-weight: 420; text-wrap: balance; }
h1 em { font-style: italic; font-weight: 380; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); text-wrap: balance; }
h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
a { color: var(--petrol); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--aqua); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--petrol); color: var(--warm); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.container--wide { max-width: 1640px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 22px;
  font: 600 1rem/1 var(--sans); letter-spacing: .005em; text-decoration: none;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--petrol); color: var(--warm); }
.btn--primary:hover { background: var(--petrol-deep); }
.btn--ghost { background: transparent; color: var(--petrol); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--petrol); }
.btn--accent { background: var(--aqua); color: var(--petrol-deep); }
.btn--accent:hover { background: #93e7d8; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: translateY(1px); } }

/* ---------- Testi comuni ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--aqua-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--aqua); border-radius: 2px; }
.section--dark .eyebrow { color: var(--aqua); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 36ch; }
.section-intro { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.note { font-size: .9375rem; color: var(--muted); max-width: 70ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, .9);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-right: auto; }
.wordmark__name { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; color: var(--petrol); letter-spacing: -0.01em; white-space: nowrap; }
.wordmark__ai { font-style: italic; font-weight: 400; }
.wordmark__by { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.site-nav { order: 2; }
.lang-switch { order: 3; }
.header-cta { order: 4; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; font-size: .875rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-decoration: none; border-radius: 6px; }
.lang-switch a:hover { color: var(--petrol); text-decoration: underline; }
.lang-switch span[aria-current] { color: var(--petrol); }
.footer-pending { margin-top: 8px; font-size: .8125rem; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-menu a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 0; }
.nav-menu a:hover { color: var(--petrol); text-decoration: underline; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px;
  background: none; border: 1.5px solid var(--line-strong); border-radius: 999px;
  font: 500 .9375rem var(--sans); color: var(--petrol); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle__bars::before { content: ""; position: absolute; top: 5px; }
.nav-toggle__bars { transform: translateY(-2.5px); }
.nav-open .nav-toggle__bars { transform: rotate(45deg); }
.nav-open .nav-toggle__bars::before { transform: translateY(-5px) rotate(-90deg); }

@media (max-width: 859px) {
  .header-inner { gap: 10px; }
  .site-nav { order: 3; }
  .header-cta { order: 2; }
  .lang-switch { order: 1; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--warm); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(18,51,69,.35);
  }
  .nav-open .nav-menu { display: flex; }
  .js .nav-menu a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .js .nav-menu li:last-child a { border-bottom: 0; }
  .no-js-nav { display: none; }
}
@media (max-width: 859px) { html:not(.js) .nav-menu { gap: 16px; flex-wrap: wrap; } }
@media (max-width: 520px) {
  .wordmark__name { font-size: 1.08rem; }
  .wordmark__by { font-size: .65rem; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { width: 42px; justify-content: center; padding: 0; }
}
.nav-menu__cta { display: none; }
.btn { white-space: nowrap; }
@media (max-width: 520px) {
  .header-cta { display: none; }
  .js .nav-menu .nav-menu__cta { display: block; padding-top: 12px; }
  .js .nav-menu .nav-menu__cta a { display: flex; padding: 0 22px; border-bottom: 0; color: var(--warm); font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.hero-head { padding-top: 8px; }
.hero-head h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.hero-steps { margin-top: 14px; color: var(--muted); max-width: 44ch; }
.price-line { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-line__value { font-family: var(--serif); font-size: 2.1rem; color: var(--petrol); line-height: 1; }
.price-line__unit { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-left: 4px; }
.price-line__once, .offer__once { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; font-size: .9375rem; color: var(--petrol); }
.price-line__once::before, .offer__once::before { content: ""; width: 12px; height: 7px; border: solid var(--aqua-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.price-line__tag { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
.hero-note a { color: var(--muted); }
.hero-showcase { margin-top: clamp(40px, 5vw, 72px); }
.hero-showcase__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 4px; }
.text-link { font-weight: 600; color: var(--petrol); text-decoration: none; padding: 6px 0; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 959px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-head h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
}
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* ---------- Sezioni ---------- */
.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--petrol); color: var(--on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .section-intro { color: var(--on-dark-muted); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Manifesto: niente rendering */
.manifesto { background: var(--petrol-deep); color: var(--on-dark); text-align: center; }
.manifesto .eyebrow { color: var(--aqua); justify-content: center; }
.manifesto__title { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.manifesto__title em { display: block; font-style: italic; color: var(--aqua); }
.manifesto__text { margin: clamp(28px, 4vw, 40px) auto 0; max-width: 62ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--on-dark-muted); }
.manifesto__points { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.manifesto__points li { padding: 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-weight: 600; font-size: .9375rem; color: #fff; }

/* Problema */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 32px); }
.problem-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.problem-list li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.problem-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.problem-list li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 1.15rem; color: var(--aqua-ink); line-height: 1.3; }
.problem-list p { color: var(--muted); margin-top: 4px; }
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* Soluzione */
.solution { text-align: left; }
.statement { margin: clamp(36px, 5vw, 56px) 0; padding: 0 0 0 clamp(20px, 3vw, 32px); border-left: 2px solid var(--aqua); }
.statement p { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; color: var(--petrol); font-style: italic; font-weight: 380; letter-spacing: -0.01em; }

/* Esempi */
.examples { display: grid; gap: clamp(80px, 10vw, 140px); }
.property { display: grid; gap: clamp(56px, 7vw, 96px); }
.property__head { max-width: 1120px; padding-top: 28px; border-top: 2px solid var(--petrol); }
.property__head h3 { font-family: var(--serif); font-weight: 450; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.015em; line-height: 1.1; }
.property__head p { margin-top: 10px; color: var(--muted); max-width: 62ch; font-size: 1.0625rem; }
.examples .example__head { max-width: 1120px; }
.example__head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline; margin-bottom: 20px; }
.example__num { grid-row: span 2; font-family: var(--serif); font-size: 1.15rem; color: var(--aqua-ink); }
.example__head h3, .example__head h4 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 450; letter-spacing: -0.01em; }
.example__head p { color: var(--muted); }

.example__note { margin-top: 6px; font-size: .9375rem; color: var(--muted); }

/* Analisi tecnica annotata */
.sr-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.anno { margin: 0; }
.anno__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.anno__name { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--petrol); }
.anno__tabs { background: var(--paper); border: 1px solid var(--line); }
.anno__tabs .viewer__tab { color: var(--muted); }
.anno__tabs .viewer__tab[aria-pressed="true"] { background: var(--petrol); color: #fff; }
html:not(.js) .anno__tabs { display: none; }
.anno__stage { position: relative; overflow: hidden; border-radius: 12px; background: #e4e3dc; box-shadow: 0 40px 80px -50px rgba(18,51,69,.55); }
.anno__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.anno[data-view="after"] .anno__img--before, .anno[data-view="after"] .anno__guides--before,
.anno[data-view="before"] .anno__img--after, .anno[data-view="before"] .anno__guides--after { display: none; }
.anno__guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anno__guides line { vector-effect: non-scaling-stroke; }
.anno__guides .g-shadow { stroke: rgba(12,36,50,.6); stroke-width: 5; }
.anno__guides .g-line { stroke: var(--aqua); stroke-width: 3; stroke-dasharray: 10 6; }
.anno__pt { position: absolute; width: 0; height: 0; }
.anno__dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua); color: var(--petrol-deep); font-weight: 700; font-size: .9375rem; box-shadow: 0 0 0 4px rgba(12,36,50,.35), 0 4px 12px rgba(12,36,50,.35); flex: none; }
.anno__pt .anno__dot { position: absolute; left: -15px; top: -15px; }
.anno__card { position: absolute; top: -20px; width: max-content; max-width: min(300px, 26vw); padding: 9px 13px; border-radius: 10px; background: rgba(250,250,247,.96); box-shadow: 0 14px 34px -12px rgba(12,36,50,.5); }
.anno__pt--right .anno__card { left: 26px; }
.anno__pt--left .anno__card { right: 26px; }
.anno__t { font-weight: 700; font-size: 1rem; color: var(--petrol); line-height: 1.3; }
.anno__s { margin-top: 2px; font-size: .875rem; font-weight: 600; color: var(--aqua-ink); font-variant-numeric: tabular-nums; }
.anno__d { margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip__sw { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.anno__legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.anno__legend li { display: flex; gap: 12px; padding: 20px 18px 20px 0; }
.anno__legend li + li { padding-left: 18px; border-left: 1px solid var(--line); }
@media (max-width: 1199px) { .anno__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } .anno__legend li, .anno__legend li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); } .anno__legend li:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); } }
@media (max-width: 639px) { .anno__legend { grid-template-columns: 1fr; } .anno__legend li:nth-child(2n) { padding-left: 0; border-left: 0; } }
@media (max-width: 959px) {
  .anno__card { display: none; }
  .anno__dot { width: 26px; height: 26px; font-size: .875rem; }
  .anno__pt .anno__dot { left: -13px; top: -13px; }
}
.hist { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 40px); background: var(--paper); border-radius: 12px; }
.hist h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 450; margin-bottom: 8px; }
.hist__text p { color: var(--muted); }
.hist__keys { display: flex; gap: 18px; margin-top: 14px; font-weight: 600; font-size: .9375rem; color: var(--ink) !important; }
.key { display: inline-flex; align-items: center; gap: 8px; }
.key::before { content: ""; width: 14px; height: 14px; border-radius: 3px; }
.key--before::before { background: rgba(86,98,106,.45); border: 1.5px solid #56626a; }
.key--after::before { background: rgba(120,223,205,.55); border: 1.5px solid var(--aqua-ink); }
.hist__svg { display: block; width: 100%; height: auto; }
.hist__before { fill: rgba(86,98,106,.28); stroke: #56626a; stroke-width: 1.5; }
.hist__after { fill: rgba(120,223,205,.45); stroke: var(--aqua-ink); stroke-width: 2; }
.hist__scale { height: 8px; border-radius: 4px; background: linear-gradient(to right, #000, #fff); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.hist__axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8125rem; color: var(--muted); }
.analysis__method { margin-top: 18px; }
@media (max-width: 859px) { .hist { grid-template-columns: 1fr; } }

/* Confronto prima/dopo */
.compare { margin: 0; }
.compare__stage {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: #e4e3dc; --pos: 50%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(12,36,50,.18); pointer-events: none; }
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(12,36,50,.28);
}
.compare__knob::before, .compare__knob::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--petrol); border-width: 0 0 2px 2px;
}
.compare__knob::before { left: 12px; transform: translateY(-50%) rotate(45deg); }
.compare__knob::after { right: 12px; transform: translateY(-50%) rotate(-135deg); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare__range:focus-visible ~ .compare__handle .compare__knob { outline: 3px solid var(--petrol); outline-offset: 3px; }
.compare__range:focus-visible ~ .compare__handle { background: var(--aqua); }

.compare__legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .9375rem; font-weight: 600; color: var(--petrol); }
.compare__tools { margin-top: 10px; }
.compare__toggle {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 .9375rem var(--sans); color: var(--petrol); text-decoration: underline; text-underline-offset: .2em;
}
.compare__pair { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: clamp(10px, 1.2vw, 18px); align-items: start; }
.compare__half { margin: 0; }
.compare__frame { position: relative; overflow: hidden; border-radius: 10px; background: #e4e3dc; box-shadow: 0 30px 60px -40px rgba(18,51,69,.45); }
.js .compare__frame[data-zoom-group] { cursor: zoom-in; }
.compare__frame img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .js .compare__frame[data-zoom-group]:hover img { transform: scale(1.025); } }
.compare__frame:focus-visible { outline: 3px solid var(--petrol); outline-offset: 4px; }
.zoom-icon { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(250,250,247,.92); box-shadow: 0 4px 14px rgba(12,36,50,.25); display: grid; place-items: center; opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.zoom-icon svg { width: 18px; height: 18px; stroke: var(--petrol); }
.compare__frame:hover .zoom-icon, .compare__frame:focus-visible .zoom-icon { opacity: 1; transform: none; }
@media (hover: none) { .zoom-icon { opacity: 1; transform: none; width: 36px; height: 36px; right: 10px; bottom: 10px; } }
.compare__frame img { width: 100%; height: 100%; object-fit: contain; }
.compare__half figcaption { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.compare__half figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.compare__half--after figcaption { color: var(--petrol); }
.compare__half--after figcaption::before { background: var(--aqua); box-shadow: 0 0 0 3px rgba(120,223,205,.3); }
.compare[data-view="slider"] .compare__pair { display: none; }
html:not(.js) .compare[data-view="slider"] .compare__slider, html:not(.js) .compare__tools { display: none; }
html:not(.js) .compare[data-view="slider"] .compare__pair { display: grid; }
.compare[data-view="pair"] .compare__slider { display: none; }
@media (max-width: 639px) { .compare__pair { grid-template-columns: 1fr; gap: 20px; } }

/* Spazio "Esempio da inserire" */
.compare--placeholder .compare__stage { cursor: default; }
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(18,51,69,.22) calc(50% - 1px), rgba(18,51,69,.22) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to right, #e2e1d9 50%, #ebeae4 50%);
  border: 1.5px dashed rgba(18,51,69,.3); border-radius: var(--radius);
  text-align: center; padding: 16px;
}
.placeholder__label { background: var(--warm); color: var(--petrol); font-weight: 600; font-size: 1rem; padding: 10px 18px; border-radius: 999px; box-shadow: 0 1px 0 rgba(18,51,69,.08); }
.placeholder__hint { background: var(--warm); color: var(--muted); font-size: .9375rem; padding: 4px 12px; border-radius: 999px; }

/* Per le agenzie */
.agency h3 { color: #fff; font-family: var(--serif); font-size: 1.45rem; font-weight: 450; letter-spacing: -0.01em; margin-bottom: 10px; }
.agency-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; }
.agency-grid li { background: var(--petrol); padding: clamp(26px, 3vw, 38px); }
.agency-grid p { color: var(--on-dark-muted); }
.agency-price { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.agency-price__label { width: 100%; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }
.agency-price__label span { color: var(--on-dark-muted); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.agency-price__value { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; color: #fff; margin-right: auto; }
.agency-price__value span { font-family: var(--sans); font-size: 1rem; color: var(--on-dark-muted); }
@media (max-width: 959px) { .agency-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .agency-grid { grid-template-columns: 1fr; } .agency-price .btn { width: 100%; } .agency-price__value span { display: block; margin-top: 10px; } }

/* Vantaggi */
.benefits { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.benefits li { padding: 32px 32px 34px 0; border-bottom: 1px solid var(--line); }
.benefits li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.benefits h3 { margin-bottom: 10px; font-size: 1.125rem; }
.benefits p { color: var(--muted); }
.benefits li.benefits__wide { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.filenames { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.filenames code { background: var(--paper); border: 1px solid var(--line); color: var(--petrol); padding: 6px 10px; border-radius: 4px; }
@media (max-width: 959px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits li, .benefits li:not(:nth-child(3n+1)) { padding: 28px 24px 28px 0; border-left: 0; }
  .benefits li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .benefits li.benefits__wide { padding-left: 0; border-left: 0; }
}
@media (max-width: 599px) {
  .benefits { grid-template-columns: 1fr; }
  .benefits li, .benefits li:nth-child(2n) { padding: 24px 0; border-left: 0; }
}

/* Come funziona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps li { background: var(--warm); border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px 34px; }
.steps__num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--aqua); font-family: var(--serif); font-size: 1.25rem; color: var(--petrol); margin-bottom: 22px; }
.steps h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 450; letter-spacing: -0.01em; margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 859px) { .steps { grid-template-columns: 1fr; } }

/* Fedeltà */
.fidelity { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.principles { list-style: none; margin: 0 0 28px; padding: 0; }
.principles li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.principles li:first-child { border-top: 1px solid var(--line); }
.principles li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 7px; border: solid var(--aqua-ink); border-width: 0 0 2px 2px; transform: translateY(-70%) rotate(-45deg); }
@media (max-width: 859px) { .fidelity { grid-template-columns: 1fr; } }

/* Offerta */
.offer { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); max-width: 1000px; margin-inline: auto; align-items: start; }
.offer__card { background: var(--warm); border: 1px solid var(--line); border-radius: 12px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(18,51,69,.35); }
.offer__name { font-family: var(--serif); font-size: 1.5rem; color: var(--petrol); }
.offer__price { margin-top: 14px; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4rem); color: var(--petrol); line-height: 1; letter-spacing: -0.02em; }
.offer__unit { font-family: var(--sans); font-size: 1.0625rem; color: var(--muted); letter-spacing: 0; }
.offer__tag { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.checklist { list-style: none; margin: 28px 0 32px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border: solid var(--aqua-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.offer__status { margin-top: 14px; font-size: .9375rem; color: var(--muted); text-align: center; }
.offer__aside { padding: clamp(4px, 2vw, 24px) 0; }
.offer__aside h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 450; margin-bottom: 16px; }
.offer__aside p + p { margin-top: 14px; }
.offer__aside p { color: var(--muted); }
.offer__aside strong { color: var(--ink); font-weight: 600; }
@media (max-width: 859px) { .offer { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.0625rem; color: var(--petrol);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--petrol); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--petrol-deep); text-decoration: underline; text-underline-offset: .2em; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 66ch; }
.faq code { color: var(--petrol); }

/* CTA finale */
.final-cta { text-align: center; }
.final-cta .narrow { display: flex; flex-direction: column; align-items: center; }
.final-cta .section-intro { margin-inline: auto; }
.final-cta__actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-cta__price { color: var(--on-dark-muted); font-size: .9375rem; }

/* Footer */
.site-footer { background: var(--petrol-deep); color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .9375rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.footer-by { margin-top: 4px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-label { color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { overflow-wrap: anywhere; }
.footer-bottom { padding-top: 24px; display: grid; gap: 6px; font-size: .8125rem; }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Comparsa leggera ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion-ok .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .motion-ok .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Visualizzatore a schermo intero ---------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a1c26; color: var(--on-dark); }
.viewer::backdrop { background: rgba(6, 18, 25, .92); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer__bar { display: flex; align-items: center; gap: 16px; padding: 12px clamp(12px, 3vw, 28px); }
.viewer__title { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-right: auto; }
.viewer__tabs { display: inline-flex; padding: 4px; gap: 4px; background: rgba(255,255,255,.08); border-radius: 999px; }
.viewer__tab { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark-muted); font: 600 .9375rem var(--sans); cursor: pointer; }
.viewer__tab[aria-pressed="true"] { background: var(--aqua); color: var(--petrol-deep); }
.viewer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.viewer__close:hover { background: rgba(255,255,255,.1); }
.viewer :focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
.viewer__stage { min-height: 0; overflow: hidden; display: grid; place-items: center; padding: 0 clamp(8px, 2vw, 24px); }
.viewer__img { max-width: 100%; max-height: calc(100dvh - 132px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.viewer__hint { text-align: center; font-size: .875rem; color: var(--on-dark-muted); padding: 12px 16px 16px; }
@media (hover: none) { .viewer__hint { display: none; } }
@media (max-width: 520px) { .viewer__title { display: none; } .viewer__bar { justify-content: space-between; } }
html.viewer-open { overflow: hidden; }

[hidden] { display: none !important; }

/* Pagine secondarie (privacy, condizioni) */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.doc p + p { margin-top: 14px; }
.doc .note { margin-top: 28px; }
.doc h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 36px 0 10px; }
.doc h2 + p { margin-top: 0; }
.doc-back { display: inline-block; margin-top: 36px; }

@media print {
  .site-header, .compare__tools { position: static; display: none; }
}

/* Schermi molto stretti con selettore della lingua: tutto resta nella riga */
@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .wordmark__name { font-size: 1rem; }
  .lang-switch a, .lang-switch span { padding: 0 5px; }
}

/* ---------- Pagamento ---------- */
.checkout { margin-top: 8px; display: grid; gap: 12px; }
.checkout__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.checkout__consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--petrol); }
.checkout__hint, .checkout__secure, .checkout__note { font-size: .85rem; color: var(--muted); margin: 0; }
.checkout__start:disabled { opacity: .45; cursor: not-allowed; }
.checkout__buttons { min-height: 48px; }
.checkout__msg { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--paper); font-size: .95rem; }
.checkout__msg--ok { background: #e9f8f4; border-left: 3px solid var(--aqua-ink); }
.checkout__msg--warn { background: #fff7e6; border-left: 3px solid #c98a12; }
.checkout__msg--err { background: #fdecec; border-left: 3px solid #b3261e; }
.checkout__done { display: grid; gap: 10px; }
.checkout__done p { margin: 0; }

/* ---------- Pagina di download (generata dal server) ---------- */
.dl h1 { margin-bottom: 14px; }
.dl__intro { font-size: 1.1rem; margin-bottom: 26px; }
.dl__buttons { display: grid; gap: 10px; margin-bottom: 14px; }
.dl__note { font-size: .9rem; color: var(--muted); margin: 0 0 6px; text-align: center; }
.dl__steps { margin: 34px 0 20px; padding: 24px 26px; background: var(--paper); border-radius: 14px; }
.dl__steps h2 { font-size: 1.35rem; margin: 0 0 14px; }
.dl__steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.dl__tip { border-left: 3px solid var(--aqua-ink); padding-left: 14px; }

/* ---------- Banner cookie ---------- */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; padding: 18px 20px; background: #fff; color: var(--ink); border: 1px solid var(--line, #dddcd4); border-radius: 14px; box-shadow: 0 12px 40px rgba(18, 51, 69, .18); }
.consent[hidden] { display: none; }
.consent__text { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn { width: 100%; justify-content: center; }
.footer-cookie { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Video "How it works" ---------- */
.how-video { margin: 0 0 clamp(32px, 5vw, 56px); border-radius: 18px; overflow: hidden; background: var(--petrol); box-shadow: 0 24px 60px rgba(18, 51, 69, .18); aspect-ratio: 16 / 9; }
.how-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .how-video { aspect-ratio: 9 / 16; max-width: 440px; margin-left: auto; margin-right: auto; } }

.checkout__plan { margin: 0; padding: 10px 14px; border-radius: 10px; background: #e9f8f4; color: var(--aqua-ink); font-size: .9rem; font-weight: 600; line-height: 1.4; }
