/* ============================================================
   physiomardam - css/style.css (v2)
   Riferimenti: DESIGN.md (airbnb per layout + claude per tipografia,
   navy dal logo del cliente)
   ============================================================ */

/* ─── FONT (self-hosted, nessuna chiamata a Google) ─────────── */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/source-serif-4-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-latin.woff2') format('woff2');
}

/* Corsivo da firma, solo per il nome nell'hero (Priestacy di Sronstudio, licenza commerciale da acquistare, sottoinsieme latino) */
@font-face {
  font-family: 'Priestacy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/priestacy-latin.woff2') format('woff2');
}

/* ─── TOKEN ─────────────────────────────────────────────────── */
:root {
  --canvas: #FAF8F4;
  --surface: #F1EDE6;
  --hairline: #E2DCD2;
  --navy: #0A344F;
  --navy-deep: #072638;
  --ink: #16232C;
  --body: #3A4750;
  --muted: #5B6770;
  --accent: #B4532A;
  --accent-hover: #9A4522;
  --accent-text: #9A4522;
  --on-navy: #B9C7D1;
  --whatsapp: #1F8F4E;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Priestacy', 'Brush Script MT', cursive;
  --hero-bg: linear-gradient(125deg, var(--navy) 0%, var(--navy) 42%, #0B3A86 100%);

  --text: 17px;
  --small: 14px;
  --h1: clamp(42px, 5.6vw, 76px);
  --h2: clamp(30px, 3.4vw, 44px);
  --h3: 22px;

  --gutter: 24px;
  --section: 128px;
  --header: 76px;
  --radius: 4px;
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
  :root {
    --section: 80px;
    --header: 64px;
    --gutter: 20px;
  }
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text);
  line-height: 1.6;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
}

.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── TIPOGRAFIA ────────────────────────────────────────────── */
h1, h2, .display {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--h1); line-height: 1.04; }
h2 { font-size: var(--h2); line-height: 1.12; }

h3 {
  font-family: var(--font-sans);
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

p + p { margin-top: 1em; }

.eyebrow {
  display: block;
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.caption { font-size: var(--small); color: var(--muted); }

.measure { max-width: 62ch; }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head p { color: var(--body); }

@media (max-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
}

/* ─── BOTTONI E LINK ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: var(--text);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  border: 1.5px solid currentColor;
  color: var(--navy);
}

.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--surface); }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.link-arrow::after { content: '\2192'; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.section--navy .link-arrow { color: #fff; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header);
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.35s var(--ease);
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header { border-bottom-color: var(--hairline); }
.site-header.scrolled { border-bottom-color: var(--hairline); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img { width: 44px; height: 44px; flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  white-space: nowrap;
}

.brand-role { font-size: 13px; color: var(--muted); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }

.header-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header) 0 0 0;
  z-index: 999;
  background: var(--canvas);
  padding: 32px var(--gutter);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a:not(.btn) {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 960px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 380px) {
  .brand-role { display: none; }
}

/* ─── HERO HOME ─────────────────────────────────────────────
   Editoriale: testo a sinistra, ritratto verticale a destra con didascalia.
   Sotto, una riga di dati scritti come frasi (niente icone, niente card). */
.hero { padding: 48px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero .eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 18px; max-width: 11em; }
.hero h1 .acc { color: var(--accent-text); }

/* "Mi occupo di" + trattamento che ruota */
.hero-rot { display: grid; gap: 2px; margin-bottom: 24px; }
.hero-rot-lab { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero-rot-box { display: block; overflow: hidden; min-height: 1.5em; padding-bottom: 4px; font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 1.3; }
.hero-rot-word { display: inline-block; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.hero-sub { max-width: 32em; margin-bottom: 40px; color: var(--body); }
.magnet { display: inline-block; position: relative; }
.magnet .btn { position: relative; overflow: hidden; }
.magnet .btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: rgba(255, 255, 255, 0.28); transform: skewX(-20deg);
  animation: hc-shine 4.5s ease-in-out 2s infinite;
}
@keyframes hc-shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }

/* collage: ritratto, due foto che cambiano, cornice, badge e scritta verticale */
.hero-collage { position: relative; height: 560px; perspective: 900px; }
.hc-photo { position: absolute; margin: 0; border-radius: var(--radius); }
.hc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.hc-main { right: 30px; top: 0; width: 300px; height: 390px; z-index: 1; overflow: hidden; background: var(--surface); }
.hc-main img { object-position: 50% 30%; transform-origin: 55% 35%; }
.hc-frame { position: absolute; right: 6px; top: 24px; width: 300px; height: 390px; border: 1.5px solid var(--accent); border-radius: var(--radius); }
.hc-a { left: 10px; bottom: 40px; width: 210px; height: 270px; z-index: 2; }
.hc-b { right: 0; bottom: 0; width: 190px; height: 190px; z-index: 2; }
.hc-float {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius);
  border: 8px solid var(--canvas); background: var(--canvas);
  box-shadow: 0 18px 40px rgba(10, 52, 79, 0.14);
}
.hc-float img { position: absolute; inset: 0; }
.hc-photo:hover .hc-float img { transform: scale(1.06); }
.hc-photo figcaption {
  position: absolute; left: 8px; bottom: 8px; z-index: 3; max-width: calc(100% - 16px);
  padding: 5px 10px; border-radius: 0 var(--radius) 0 0;
  background: var(--navy); color: #fff; font-size: 13px; line-height: 1.3;
}
.hc-badge {
  position: absolute; left: 150px; top: 300px; z-index: 3; width: 116px; height: 116px;
  border-radius: 50%; background: var(--canvas); box-shadow: 0 10px 30px rgba(10, 52, 79, 0.15);
}
.hc-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: hc-spin 18s linear infinite; }
.hc-badge text { font: 600 10px var(--font-sans); text-transform: uppercase; fill: var(--navy); }
.hc-badge img { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); }
@keyframes hc-spin { to { transform: rotate(360deg); } }
.hc-tag {
  position: absolute; left: 24px; top: 0; height: 250px; overflow: hidden;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-serif); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; color: var(--accent-text);
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}
.hc-tag > span { display: block; white-space: nowrap; animation: hc-tag 16s linear infinite; }
@keyframes hc-tag { to { transform: translateY(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .hc-badge svg, .hc-tag > span, .magnet .btn::after { animation: none; }
}

/* dati in breve: frasi brevi in colonna, separate da un filo */
.facts-note {
  list-style: none;
  margin: 56px 0 0;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid var(--hairline);
}

.facts-note li { display: grid; gap: 4px; align-content: start; }

.facts-note strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
}

.facts-note span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.facts-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.facts-note a:hover { color: var(--accent); }
.facts-note .nowrap { white-space: nowrap; font-size: inherit; }

@media (max-width: 960px) {
  .hero { padding: 32px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-collage { height: 460px; max-width: 480px; }
  .hc-main, .hc-frame { width: 62%; height: 340px; right: 0; }
  .hc-frame { right: -8px; top: 12px; }
  .hc-a { width: 46%; height: 220px; bottom: 20px; left: 0; }
  .hc-b { width: 38%; height: 150px; }
  .hc-badge { left: auto; right: 52%; top: 250px; width: 92px; height: 92px; }
  .hc-badge img { width: 36px; height: 36px; }
  .hc-tag { display: none; }
  .hero-rot-box { font-size: 20px; height: 2.75em; }
  .facts-note { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 56px; }
}

@media (max-width: 480px) {
  .hero h1 { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 28px; }
  .facts-note { gap: 24px 20px; margin-top: 40px; padding-top: 24px; }
  .facts-note strong { font-size: 18px; }
  .facts-note span { font-size: 14px; }
}

/* riga trattamento attiva su telefono (stesso effetto dell'hover) */
.index-row.is-active::before { transform: scaleX(1); }
.index-row.is-active .index-name, .index-row.is-active .index-go { color: #fff; }
.index-row.is-active .index-desc { color: var(--on-navy); }
.index-row.is-active .index-num { color: #E8A27E; }
.index-row.is-active .index-icon { color: #fff; }

/* ─── ELENCO TRATTAMENTI (HOME) ─────────────────────────────── */
.index-list { border-top: 1px solid var(--hairline); }

.index-row {
  display: grid;
  grid-template-columns: 40px 48px minmax(0, 4fr) minmax(0, 6fr) 32px;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}

.index-icon { color: var(--navy); display: flex; align-self: center; transition: color 0.3s ease, transform 0.4s var(--ease); }
.tr-icon { width: 44px; height: 44px; display: block; }
.tr-head { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.tr-head .tr-icon { width: 52px; height: 52px; }

.index-num { font-size: var(--small); font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }

.index-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

.index-desc { color: var(--body); }

.index-go { color: var(--navy); font-size: 22px; transition: transform 0.2s ease; justify-self: end; }
/* Hover: la riga si riempie di navy da sinistra */
.index-row { position: relative; isolation: isolate; }
.index-row > span { transition: color 0.3s ease, transform 0.3s ease; }

.index-row::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
  .index-row:hover::before { transform: scaleX(1); }
  .index-row:hover .index-name, .index-row:hover .index-go { color: #fff; }
  .index-row:hover .index-desc { color: var(--on-navy); }
  .index-row:hover .index-num { color: #E8A27E; }
  .index-row:hover .index-icon { color: #fff; transform: scale(1.12) rotate(-4deg); }
  .index-row:hover .index-go { transform: translateX(-8px); }
}

.index-row:focus-visible { outline-offset: 0; }
.index-row:focus-visible::before { transform: scaleX(1); }
.index-row:focus-visible .index-name, .index-row:focus-visible .index-go { color: #fff; }
.index-row:focus-visible .index-desc { color: var(--on-navy); }
.index-row:focus-visible .index-num { color: #E8A27E; }
.index-row:focus-visible .index-icon { color: #fff; }

@media (max-width: 768px) {
  .index-row { grid-template-columns: 28px 36px minmax(0, 1fr) 20px; gap: 4px 10px; padding: 22px 0; align-items: center; }
  .index-desc { grid-column: 3 / 4; font-size: var(--small); }
  .index-go { grid-row: 1; grid-column: 4; }
  .index-icon .tr-icon { width: 30px; height: 30px; }
  .index-name { font-size: 22px; }
}

/* ─── SPLIT (foto + testo) ──────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 96px;
  align-items: center;
}

.split--reverse > :first-child { order: 2; }

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.split-photo--wide img { aspect-ratio: 6 / 5; }

.split h2 { margin-bottom: 24px; }
.split .actions { margin-top: 36px; }

.role-line { font-size: var(--small); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 24px; color: var(--muted); }
.section--navy .role-line { color: var(--on-navy); }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--reverse > :first-child { order: 0; }
  .split-photo { max-width: 520px; }
}

/* ─── RECENSIONI ────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.review-lead blockquote p {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--navy);
}

.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }

.review { border-top: 1px solid var(--hairline); padding-top: 20px; }
.review blockquote p { color: var(--body); }

.review figcaption, .review-lead figcaption {
  margin-top: 16px;
  font-size: var(--small);
  color: var(--muted);
}

.review figcaption strong, .review-lead figcaption strong { color: var(--ink); font-weight: 600; }

.stars { color: var(--navy); letter-spacing: 2px; }

.reviews-note {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .review-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ─── RECENSIONI A CARD (stile recensione Google) ───────────── */
.rating-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 20px;
}

.rb-score {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.rb-body { display: grid; gap: 2px; }
.rb-text { font-size: var(--small); color: var(--muted); }

.rc-stars { color: #E0A106; letter-spacing: 2px; font-size: 17px; line-height: 1; }

.review-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(7, 38, 56, 0.05), 0 10px 28px rgba(7, 38, 56, 0.06);
  display: grid;
  gap: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.review.review-card { border-top: 1px solid var(--hairline); padding-top: 22px; }

@media (hover: hover) {
  .review-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(7, 38, 56, 0.06), 0 16px 36px rgba(7, 38, 56, 0.1); }
}

.rc-head { display: flex; align-items: center; gap: 12px; margin: 0; }

.rc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
}

.rc-avatar--light { background: #fff; color: var(--navy); }

.rc-who { display: grid; line-height: 1.3; }
.rc-who strong { color: var(--ink); font-weight: 600; }
.rc-meta { font-size: var(--small); color: var(--muted); }

.rc-bubble {
  position: relative;
  background: var(--surface);
  border-radius: 4px 14px 14px 14px;
  padding: 14px 16px;
}

.rc-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid var(--surface);
  border-left: 8px solid transparent;
}

.rc-bubble p { color: var(--body); }

.review-lead {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 18px;
  padding: 36px;
  display: grid;
  gap: 18px;
}

.review-lead .rc-who strong { color: #fff; }
.review-lead .rc-meta { color: var(--on-navy); }
.review-lead .rc-stars { font-size: 22px; }
.review-lead blockquote p { color: #fff; }

.review-list .review-card figcaption, .review-lead figcaption.rc-head { margin-top: 0; font-size: inherit; }

@media (max-width: 900px) {
  .rating-badge { padding: 12px 16px; }
  .rb-score { font-size: 36px; }
  .review-lead { padding: 26px; }
}

/* ─── SEDI / INFO ───────────────────────────────────────────── */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.place { padding: 28px 32px 0 0; }
.place + .place { padding-left: 32px; border-left: 1px solid var(--hairline); }
.place h3 { margin-bottom: 8px; }
.place p { color: var(--body); }
.place a { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .places { grid-template-columns: minmax(0, 1fr); }
  .place, .place + .place { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--hairline); }
}

/* ─── CTA FINALE ────────────────────────────────────────────── */
.cta-final {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
}

.cta-final h2 { margin-bottom: 16px; }

.cta-final .actions { justify-content: flex-end; }

.contact-lines { display: grid; gap: 4px; }
.contact-lines a { color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
  .cta-final { grid-template-columns: minmax(0, 1fr); }
  .cta-final .actions { justify-content: flex-start; }
}

/* ─── PAGINE INTERNE: TESTATA ───────────────────────────────── */
.page-head { padding: 72px 0 64px; border-bottom: 1px solid var(--hairline); }
.page-head h1 { max-width: 16ch; margin-bottom: 24px; }
.page-head p { max-width: 40em; }

@media (max-width: 768px) {
  .page-head { padding: 40px 0 48px; }
}

/* ─── TRATTAMENTI ───────────────────────────────────────────── */
.toc { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; }
.toc a { color: var(--navy); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.treatment { padding: var(--section) 0; border-bottom: 1px solid var(--hairline); }
.treatment:nth-of-type(even) { background: var(--surface); }

.treatment h2 { margin-bottom: 20px; }
.treatment p strong { color: var(--ink); font-weight: 600; }
.treatment-num { color: var(--accent-text); }

.conditions { margin-top: 28px; border-top: 1px solid var(--hairline); }

.conditions li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.conditions li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.treatment .actions { margin-top: 36px; }

.treatment-text-only { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; }

@media (max-width: 900px) {
  .treatment-text-only { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ─── CHI SONO ──────────────────────────────────────────────── */
.bio { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; align-items: start; }

.bio-photo { position: sticky; top: calc(var(--header) + 32px); }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }

.bio-body h2 { margin: 72px 0 24px; }
.bio-body h2:first-child { margin-top: 0; }

.timeline { border-top: 1px solid var(--hairline); }

.timeline li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.timeline .when { font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; color: var(--ink); font-weight: 600; }
.timeline span { font-size: var(--small); color: var(--muted); }

@media (max-width: 900px) {
  .bio { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bio-photo { position: static; max-width: 420px; }
  .timeline li { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
}

/* ─── CONTATTI ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; }

.contact-rows { border-top: 1px solid var(--hairline); }

.contact-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.contact-row dt { font-size: var(--small); font-weight: 600; color: var(--muted); padding-top: 2px; }
.contact-row dd a { color: var(--navy); font-weight: 600; overflow-wrap: anywhere; }

.form-box { background: var(--surface); padding: 48px; border-radius: var(--radius); }
.form-box h2 { font-size: 32px; margin-bottom: 12px; }
.form-box > p { margin-bottom: 32px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #C9C1B4;
  border-radius: var(--radius);
  font-size: 16px;
}

.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }

.field [aria-invalid="true"] { border-color: #B3261E; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin-bottom: 16px; font-size: var(--small); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.check a { color: var(--navy); }

.form-error { color: #B3261E; font-size: var(--small); font-weight: 600; margin: 4px 0 16px; }
.form-error:empty { display: none; }

.form-box .btn { width: 100%; }
.form-box .caption { margin-top: 12px; }

.maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.map h3 { margin-bottom: 4px; }
.map > p { margin-bottom: 16px; }

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame p { font-size: var(--small); color: var(--muted); max-width: 30em; margin-bottom: 16px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .maps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .form-box { padding: 28px 24px; }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ─── LEGAL ─────────────────────────────────────────────────── */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; }

.legal-nav { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 10px; }
.legal-nav a { color: var(--navy); font-weight: 600; }

.prose { max-width: 72ch; }
.prose h2 { font-size: 34px; margin: 80px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 12px; font-size: 19px; }
.prose p, .prose li { color: var(--body); }
.prose ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--navy); }
.prose strong { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 16px 0; }

.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }

.note-box { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 20px 0; }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 20px; }
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 96px 0 40px; font-size: 15px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: #fff; line-height: 1.2; }

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .link-button { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.site-footer .link-button:hover { color: #fff; }

.footer-legal { padding-top: 28px; font-size: var(--small); line-height: 1.7; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .site-footer { padding-top: 64px; }
}

/* ─── WHATSAPP (solo mobile) ────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}

.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .wa-float { display: flex; }
  body.cookie-open .wa-float { display: none; }
}

/* ─── COOKIE ────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  max-width: 560px;
  background: #fff;
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(7, 38, 56, 0.16);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner h2 { font-family: var(--font-sans); font-size: 18px; color: var(--ink); margin-bottom: 8px; padding-right: 32px; }
.cookie-banner p { font-size: 15px; }
.cookie-banner a { color: var(--navy); }

.cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
}

.cookie-options { margin: 16px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.cookie-options[hidden] { display: none; }
.cookie-options label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.cookie-options input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.cookie-options small { display: block; color: var(--muted); font-size: 13px; }

.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.cookie-actions .btn { min-height: 46px; padding: 10px 16px; font-size: 15px; }
.cookie-actions .btn-choice { background: var(--navy); color: #fff; }
.cookie-actions .btn-choice:hover { background: var(--navy-deep); }
.cookie-more { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }

/* ─── MOVIMENTO (attivo solo con classe .has-motion, vedi js/motion.js) ── */
.has-motion [data-anim] { opacity: 0; }
.has-motion .hc-photo, .has-motion .hc-frame, .has-motion .hc-badge,
.has-motion .facts-note li { opacity: 0; }

.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }

.review-list.is-columns { display: block; }

.review-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.review-track > .review { margin-bottom: 40px; }

.timeline { position: relative; }
.has-motion .timeline li { padding-left: 20px; }

.has-motion .timeline::before,
.timeline-progress {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
}

.has-motion .timeline::before { background: var(--hairline); }
.timeline-progress { background: var(--accent); transform-origin: top center; }

.photo-curtain {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  transform-origin: right center;
}

.read-progress {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  background: var(--accent);
  transform-origin: left center;
  transition: top 0.35s var(--ease);
}

.read-progress.at-top { top: 0; }

/* ─── MOVIMENTO ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESTYLE 2 (ottobre 2026): stesso linguaggio della hero
   cornici accento sfalsate, badge che girano, foto che si scoprono,
   movimento continuo leggero. Niente gradienti.
   ============================================================ */

.acc { color: var(--accent-text); }

/* badge circolare con il logo (riusabile) */
.spin-badge {
  position: absolute; z-index: 3; width: 116px; height: 116px;
  border-radius: 50%; background: var(--canvas); box-shadow: 0 10px 30px rgba(10, 52, 79, 0.15);
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: hc-spin 18s linear infinite; }
.spin-badge text { font: 600 10px var(--font-sans); text-transform: uppercase; fill: var(--navy); }
.spin-badge img { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); }

/* bottoni principali: riflesso di luce (non nell'header né nella CTA finale) */
main .btn-primary { position: relative; overflow: hidden; }
main .btn-primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: rgba(255, 255, 255, 0.26); transform: skewX(-20deg);
  animation: hc-shine 5s ease-in-out 2.5s infinite;
}
.cta-final .btn-primary::after, .magnet .btn::after { animation: none; display: none; }
.hero .magnet .btn::after { display: block; animation: hc-shine 4.5s ease-in-out 2s infinite; }

/* link con freccia: sottolineatura che si disegna */
.link-arrow {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease);
}
.link-arrow:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ─── HOME: fascia scorrevole ─────────────────────────────── */
.marquee { overflow: hidden; padding: 18px 0; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.marquee-track { display: flex; width: max-content; animation: mq-move 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.mq-item { font-family: var(--font-serif); font-weight: 600; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; color: var(--navy); white-space: nowrap; padding: 0 22px; }
.mq-item--line { color: var(--accent-text); }
.mq-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes mq-move { to { transform: translateX(-50%); } }

/* ─── HOME: chi sono con cornice e badge ──────────────────── */
.framed { position: relative; }
.framed::before {
  content: ''; position: absolute; inset: 0; transform: translate(18px, 18px);
  border: 1.5px solid #E8A27E; border-radius: var(--radius); pointer-events: none;
}
.framed .split-photo { position: relative; z-index: 1; }
.section--navy p strong { color: #fff; font-weight: 600; }
.spin-badge--about { right: -40px; bottom: -40px; background: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); outline: 1.5px solid rgba(255, 255, 255, 0.18); }
.spin-badge--about text { fill: #fff; }
.spin-badge--about img { filter: brightness(0) invert(1); }

/* ─── HOME: anello attorno al 5,0 ─────────────────────────── */
.rb-score { position: relative; display: grid; place-items: center; width: 104px; height: 104px; flex-shrink: 0; }
.rb-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: hc-spin 22s linear infinite; }
.rb-ring text { font: 600 9px var(--font-sans); text-transform: uppercase; fill: var(--accent-text); }

/* ─── HOME: dove ricevo a righe numerate ──────────────────── */
.places { display: block; border-top: 1px solid var(--hairline); }
.place, .place + .place {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 5fr) auto;
  gap: 24px; align-items: baseline; padding: 32px 0; border: 0; border-bottom: 1px solid var(--hairline);
}
.place::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.6s var(--ease);
}
.place:hover::after { transform: scaleX(1); }
.place-num { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--accent-text); }
.place h3 { margin: 0; font-size: 26px; }
.place p { margin: 0; }
.place p:last-child a { display: inline-flex; gap: 8px; text-decoration: none; }
.place p:last-child a::after { content: '\2192'; transition: transform 0.3s var(--ease); }
.place:hover p:last-child a::after { transform: translateX(6px); }

@media (max-width: 900px) {
  .place, .place + .place { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px; padding: 24px 0; }
  .place p { grid-column: 2; }
}

/* ─── PAGINE INTERNE: testata con foto ────────────────────── */
.page-head--photo { padding: 48px 0 72px; overflow: hidden; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.page-head-grid h1 { max-width: 15ch; font-size: clamp(40px, 5vw, 64px); }
.page-head-media { position: relative; height: 440px; }
.ph-photo { position: absolute; right: 24px; top: 0; width: 340px; height: 420px; overflow: hidden; border-radius: var(--radius); z-index: 1; background: var(--surface); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-frame { position: absolute; right: 0; top: 22px; width: 340px; height: 420px; border: 1.5px solid var(--accent); border-radius: var(--radius); }
.spin-badge--head { right: 300px; bottom: -6px; }

/* barra indice dei trattamenti, fissa sotto l'header */
.toc-bar {
  position: sticky; top: 0; z-index: 900; background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline); transition: top 0.3s var(--ease);
}
.site-header:not(.is-hidden) ~ main .toc-bar { top: var(--header); }
.toc-bar-inner { display: flex; justify-content: space-between; gap: 24px; overflow-x: auto; scrollbar-width: none; padding-top: 14px; padding-bottom: 14px; scroll-padding-inline: 24px; }
@media (max-width: 1100px) {
  .toc-bar-inner { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
}
.toc-bar-inner::-webkit-scrollbar { display: none; }
.toc-bar a { position: relative; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 4px 0; transition: color 0.3s; }
.toc-bar a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.toc-bar a:hover, .toc-bar a.is-current { color: var(--navy); }
.toc-bar a.is-current::after { transform: scaleX(1); }

/* trattamenti: numero grande in trasparenza e foto con cornice */
.treatment [data-num] { position: relative; }
.treatment [data-num]::before {
  content: attr(data-num); position: absolute; right: 0; top: -64px; z-index: 0; pointer-events: none;
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(120px, 16vw, 220px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--hairline);
}
.treatment [data-num] > * { position: relative; z-index: 1; }
.treatment .split-photo { --frame-bg: var(--canvas); box-shadow: 16px 16px 0 -1.5px var(--frame-bg), 16px 16px 0 0 var(--accent); border-radius: var(--radius); }
.treatment:nth-of-type(even) .split-photo { --frame-bg: var(--surface); }

/* chi sono: punti della timeline che si accendono */
.has-motion .timeline li { position: relative; }
.has-motion .timeline li::before {
  content: ''; position: absolute; left: -5px; top: 26px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--canvas); border: 2px solid var(--hairline); z-index: 1;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.has-motion .timeline li.is-on::before { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.timeline li .when { transition: color 0.4s; }

/* chi sono: foto della bio con cornice (ombra a due strati: non viene tagliata dall'overflow) */
.bio-photo { box-shadow: 16px 16px 0 -1.5px var(--canvas), 16px 16px 0 0 var(--accent); border-radius: var(--radius); }

/* contatti: linea accento che si disegna nel campo attivo */
.field input, .field select, .field textarea {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size 0.45s var(--ease), border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { background-size: 100% 2px; outline-color: transparent; }
.field label { transition: color 0.3s; }
.field:focus-within label { color: var(--accent-text); }

.has-motion .ph-photo, .has-motion .ph-frame, .has-motion .spin-badge--head { opacity: 0; }

@media (max-width: 900px) {
  .page-head--photo { padding: 32px 0 56px; }
  .page-head-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-head-media { height: 340px; max-width: 360px; }
  .ph-photo, .ph-frame { width: 78%; height: 310px; }
  .ph-photo { right: 18px; }
  .spin-badge--head { right: auto; left: 0; bottom: 0; width: 92px; height: 92px; }
  .spin-badge--head img { width: 36px; height: 36px; }
  .spin-badge--about { right: -10px; bottom: -30px; width: 92px; height: 92px; }
  .spin-badge--about img { width: 36px; height: 36px; }
  .framed { margin: 0 18px 18px 0; }
  .treatment [data-num]::before { top: -40px; right: 0; }
  .treatment .split-photo { margin-right: 16px; margin-bottom: 16px; }
  .rb-score { width: 88px; height: 88px; }
  .framed + div strong, .section--navy strong { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .spin-badge svg, .rb-ring, .marquee-track, main .btn-primary::after { animation: none; }
}

/* chi sono: parole chiave in grassetto */
.bio-body p strong, .section-head p strong { color: var(--ink); font-weight: 600; }
.conditions li strong { color: var(--ink); font-weight: 600; }

/* segnaposto per i dati da chiedere al cliente: non pubblicare finché ci sono */
.tbd { white-space: nowrap; background: #FFE58A; color: #5A4500; font-size: 0.8em; font-weight: 700; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 3px; }

/* ─── DOMANDE FREQUENTI ───────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header) + 32px); }
.faq-head h2 { margin-bottom: 16px; }
.faq-head p { color: var(--body); display: grid; gap: 10px; justify-items: start; }
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--navy);
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border: 1.5px solid currentColor; border-radius: 50%; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq-item[open] .faq-icon { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] summary { color: var(--navy); }
.faq-a { padding: 0 52px 0 0; color: var(--body); overflow: hidden; }
.faq-a p { max-width: 40em; padding-bottom: 24px; }

@media (max-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-head { position: static; }
}
@media (max-width: 560px) {
  .faq-item summary { font-size: 18px; }
  .faq-a { padding-right: 0; }
}
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   MODIFICHE OTTOBRE 2026 (3): hero blu con nome in corsivo da firma,
   hero mobile con foto prima dei bottoni, recensioni a scorrimento
   continuo su telefono, titoli di sezione con testo sotto.
   ============================================================ */

/* ─── HERO BLU ─────────────────────────────────────────────── */
.hero, .page-head { background: var(--hero-bg); color: var(--on-navy); }
.hero .eyebrow, .page-head .eyebrow { color: var(--accent); }

.hero h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 1.3;
  letter-spacing: 0;
  color: #fff;
  max-width: none;
  margin-bottom: 32px;
}

.hero-rot-lab { color: var(--on-navy); }
.hero-rot-word { color: var(--accent); }
.hero-sub { color: var(--on-navy); }
.hero-sub strong { color: #fff; font-weight: 600; }

.hero .link-arrow { color: #fff; }
.hero :focus-visible, .page-head :focus-visible { outline-color: #fff; }

.hc-tag { color: var(--accent); }
.hc-photo:hover .hc-float { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.hc-float { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }

.hero .facts-note { border-top-color: rgba(255, 255, 255, 0.22); }
.hero .facts-note strong { color: #fff; }
.hero .facts-note span { color: var(--on-navy); }
.hero .facts-note a { color: #fff; }
.hero .facts-note a:hover { color: #fff; text-decoration-thickness: 2px; }

/* ─── HERO MOBILE: foto subito sotto la firma, poi testo e bottoni ── */
@media (max-width: 960px) {
  .hero h1 { font-size: clamp(46px, 13.5vw, 68px); margin-bottom: 16px; }
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero-collage { order: 1; margin: 0 0 40px; }
  .hero-rot, .hero-sub { order: 2; }
  .hero .actions { order: 3; }
  .hero-sub { margin-bottom: 32px; }
  .hc-badge { left: calc(38% - 80px); right: auto; top: 16px; }
  .facts-note { margin-top: 56px; }
  .facts-note li:last-child { grid-column: 1 / -1; }
}

/* ─── FIRMA: il nome si scrive da sinistra a destra (solo con il movimento attivo) ── */
.hero h1 .line { display: block; width: fit-content; padding: 0.1em 0.15em; margin: -0.1em -0.15em; }
.hero h1 .line.is-writing {
  --w: -16%;
  -webkit-mask-image: linear-gradient(90deg, #000 var(--w), transparent calc(var(--w) + 16%));
  mask-image: linear-gradient(90deg, #000 var(--w), transparent calc(var(--w) + 16%));
}

/* ─── FASCIA DEI TRATTAMENTI sotto l'hero, sul blu ───────── */
.marquee--hero { background: var(--navy-deep); border-bottom: 0; padding: 20px 0; }
.marquee--hero .mq-item { color: #fff; }
.marquee--hero .mq-item--line { color: var(--on-navy); }

/* ─── RECENSIONI: scorrimento continuo (desktop colonne, telefono nastro) ── */
.review-columns, .review-marquee { cursor: pointer; }

.review-marquee {
  overflow: hidden;
  padding: 8px 0 32px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.review-marquee .review-track { display: flex; width: max-content; }
.review-marquee .review-track > .review { flex: 0 0 min(300px, 80vw); margin: 0 16px 0 0; }

/* ─── TITOLO DI SEZIONE CON TESTO SOTTO ───────────────────── */
.section-head--stack { grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* ─── CHI SONO su telefono: la foto resta nel suo spazio ──── */
@media (max-width: 900px) {
  .bio-photo { top: auto; }
}

/* ─── CONTATTI: icona a linea davanti a ogni voce (Tabler, stesso set del sito) ── */
.contact-row dt { display: flex; align-items: center; gap: 12px; }
.contact-row dt .ci { flex: none; width: 22px; height: 22px; color: var(--navy); }
.contact-row dd { align-self: center; }
@media (max-width: 900px) {
  .contact-row dt { padding-top: 0; }
}

/* ─── TESTATE DELLE PAGINE INTERNE: stesso blu della hero ─────── */
.page-head { border-bottom: 0; }
.page-head h1 { color: #fff; }
.page-head h1 .acc { color: var(--accent); }
.page-head p { color: var(--on-navy); }
.page-head p strong { color: #fff; font-weight: 600; }
.page-head a { color: #fff; }
.ph-frame { border-color: var(--accent); }

/* ─── CONTRASTO SUL BLU: testi arancioni più chiari (>= 5:1 su navy e blu elettrico) ──
   L'arancione originale resta per bottoni, cornici e pallini. */
:root { --accent-on-dark: #E8A27E; }
.hero .eyebrow, .page-head .eyebrow,
.hero-rot-word, .hc-tag,
.hero .acc, .page-head .acc, .page-head h1 .acc, .hero h1 .acc { color: var(--accent-on-dark); }

/* firma dello studio che ha fatto il sito */
.powered-by { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-size: 12px; letter-spacing: 0.04em; color: var(--on-navy); opacity: 0.7; transition: opacity 0.3s; }
.powered-by:hover { opacity: 1; }
.powered-by a { display: inline-flex; padding: 6px 0; }
.powered-by img { display: block; height: 11px; width: auto; }
