/* Ottica Santalucia – demo sito vetrina
   Colori presi dal sito ufficiale: rosso #C00019, ardesia #727280, inchiostro #35322C */

@font-face {
  font-family: "Eurostile Extended";
  src: url("../fonts/eurostile-extended.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --rosso: #c00019;
  --rosso-scuro: #9b0014;
  --inchiostro: #35322c;
  --ardesia: #727280;
  --ardesia-chiara: #b5b5ba;
  --nebbia: #f3f3f5;
  --riga: #e6e6ea;
  --bianco: #ffffff;

  --font-titoli: "Eurostile Extended", "Helvetica Neue", Arial, sans-serif;
  --font-testo: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --testata: 72px;
  --margine: clamp(16px, 4vw, 56px);
  --larghezza: 1240px;
  --sezione: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Lenis (scorrimento morbido): CSS consigliato dalla libreria */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}


html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--testata); }

body {
  margin: 0;
  background: var(--bianco);
  color: var(--inchiostro);
  font-family: var(--font-testo);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2 {
  font-family: var(--font-titoli);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.55rem, 1.05rem + 2vw, 2.6rem);
  letter-spacing: 0.005em;
  max-width: 24ch;
}
h3 {
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

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

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

.salta {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--inchiostro);
  color: var(--bianco);
  padding: 10px 16px;
  text-decoration: none;
}
.salta:focus { top: 12px; }

/* Bottoni e collegamenti */
.bottone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--rosso);
  color: var(--bianco);
  font: 600 1rem/1.2 var(--font-testo);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.bottone:hover { background: var(--rosso-scuro); }
.bottone--chiaro {
  background: transparent;
  color: var(--inchiostro);
  box-shadow: inset 0 0 0 1.5px var(--inchiostro);
}
.bottone--chiaro:hover { background: var(--inchiostro); color: var(--bianco); }
.bottone--bianco { background: var(--bianco); color: var(--rosso); }
.bottone--bianco:hover { background: var(--nebbia); }
.bottone--piccolo { min-height: 40px; padding: 0 18px; font-size: 0.95rem; }

.azioni { display: flex; flex-wrap: wrap; gap: 12px; }

.collegamento {
  color: var(--rosso);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.collegamento:hover { color: var(--rosso-scuro); }

/* Testata */
.testata {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--testata);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--margine);
  background: var(--bianco);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.testata.is-scorrendo { border-bottom-color: var(--riga); }
.testata__marchio {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.testata__marchio img { width: 44px; height: 44px; object-fit: contain; }
.testata__marchio span {
  font-family: var(--font-titoli);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.testata__menu { display: flex; gap: 28px; }
.testata__menu a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  background: linear-gradient(var(--rosso), var(--rosso)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s;
}
.testata__menu a:hover { background-size: 100% 2px; }

/* APERTURA */
.apertura {
  position: relative;
  height: calc(100svh - var(--testata));
  min-height: 540px;
  background: var(--nebbia);
}
.apertura__scena {
  /* punto da mettere a fuoco (in frazioni della foto) e inquadratura della foto */
  --fuoco-x: 0.64;
  --fuoco-y: 0.4;
  --pos-x: 0.5;
  --pos-y: 0.5;
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.apertura__scena img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(var(--pos-x) * 100%) calc(var(--pos-y) * 100%);
}
.apertura__sfocata { display: none; }
.js .apertura__sfocata { display: block; }
.js .apertura__nitida { clip-path: circle(17vmin at 64% 40%); will-change: clip-path; }
.apertura__anello {
  display: none;
  position: absolute;
  left: 0; top: 0;
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}
.js .apertura__anello { display: block; }
.apertura__anello circle,
.apertura__anello line { fill: none; vector-effect: non-scaling-stroke; }
.anello__alone { stroke: rgba(255, 255, 255, 0.9); stroke-width: 7; }
.anello__bordo { stroke: var(--inchiostro); stroke-width: 2.2; }
.anello__interno { stroke: var(--inchiostro); stroke-width: 0.8; opacity: 0.55; }
.anello__tacche line { stroke: var(--inchiostro); stroke-width: 1; }
.apertura__anello text {
  font: 8px var(--font-titoli);
  fill: var(--inchiostro);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
}

.apertura__targa {
  position: absolute;
  left: var(--margine);
  bottom: clamp(24px, 5vh, 56px);
  z-index: 2;
  width: min(560px, calc(100% - 2 * var(--margine)));
  padding: 28px 32px 24px;
  background: var(--bianco);
  border-radius: 4px;
  box-shadow: 0 24px 48px -24px rgba(53, 50, 44, 0.35);
}
.apertura h1 {
  font-size: clamp(1.5rem, 0.9rem + 2.2vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35em;
}
.apertura__sotto { font-size: 1.1rem; margin-bottom: 1.2em; }
.apertura__suggerimento {
  margin: 1.1em 0 0;
  font-size: 0.85rem;
  color: var(--ardesia);
}
.se-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .se-mouse { display: none; }
  .se-touch { display: inline; }
}
html:not(.js) .apertura__suggerimento { display: none; }

/* OTTOTIPO */
.ottotipo {
  padding: var(--sezione) var(--margine);
  background: var(--nebbia);
}
.ottotipo__pannello {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) clamp(20px, 6vw, 88px);
  background: var(--bianco);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(53, 50, 44, 0.06), 0 40px 80px -40px rgba(53, 50, 44, 0.3);
}
.riga {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin: 0;
  padding: 0.35em 0;
  border-bottom: 1px solid var(--riga);
}
.riga:last-child { border-bottom: 0; }
.riga__testo {
  font-family: var(--font-titoli);
  font-size: min(var(--max), 9vw);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.js .riga__testo { white-space: nowrap; overflow-wrap: normal; }
.js .riga__testo--a-capo { white-space: normal; }
.riga--ultima .riga__testo { text-transform: none; letter-spacing: 0.02em; white-space: normal; }
.riga__decimi {
  flex: none;
  font-size: 0.8rem;
  color: var(--ardesia);
  font-variant-numeric: tabular-nums;
}
.riga__misura {
  position: absolute;
  left: -9999px; top: 0;
  font-size: 100px;
  white-space: nowrap;
  visibility: hidden;
}

/* ELISA */
.elisa {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: var(--sezione) var(--margine);
}
.elisa__foto { margin: 0; }
.elisa__foto img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.elisa__testo p { font-size: 1.12rem; }
.elisa__firma { color: var(--ardesia); font-size: 0.95rem !important; }

/* COME FUNZIONA */
.percorso {
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: var(--sezione) var(--margine) calc(var(--sezione) * 0.6);
}
.percorso > h2 { margin-bottom: clamp(24px, 4vw, 56px); }
.percorso__griglia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.percorso__visivo {
  position: sticky;
  top: calc(var(--testata) + 24px);
  height: min(calc(100svh - var(--testata) - 48px), 720px);
  border-radius: 4px;
  overflow: hidden;
  background: var(--nebbia);
}
.visivo { position: absolute; inset: 0; }
.visivo img { width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .visivo:not([data-passo="1"]) { display: none; }
.js .visivo { clip-path: circle(0% at 50% 50%); }
.js .visivo.is-attivo { clip-path: circle(75% at 50% 50%); }

.percorso__passi { list-style: none; margin: 0; padding: 0; }
.passo {
  position: relative;
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0 6vh 64px;
  transition: opacity 0.4s;
}
.passo--lungo { min-height: 130svh; }
.js .passo { opacity: 0.4; }
.js .passo.is-attivo { opacity: 1; }
.passo__numero {
  position: absolute;
  left: 0;
  top: calc(50% - 20px);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--inchiostro);
  font-weight: 600;
  font-size: 1rem;
}
.passo--lungo .passo__numero { top: auto; }
.passo.is-attivo .passo__numero { background: var(--rosso); color: var(--bianco); box-shadow: none; }
.passo__nota { font-size: 0.95rem; color: var(--ardesia); }

/* lente in sezione (passo 3) */
.visivo--lente { background: var(--nebbia); display: grid; place-items: center; }
.lente__fantasma { fill: none; stroke: var(--ardesia); stroke-width: 1.2; stroke-dasharray: 5 4; }
.lente__didascalia { margin: 0; font-size: 0.85rem; color: var(--ardesia); text-align: center; }
.lente {
  width: min(100%, 460px);
  padding: 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.lente__disegno { width: 100%; height: auto; max-height: 52vh; overflow: visible; }
.lente__asse { stroke: var(--ardesia-chiara); stroke-width: 1; stroke-dasharray: 4 5; }
.lente__profilo {
  fill: #ffffff;
  stroke: var(--inchiostro);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.lente__quota-linea { stroke: var(--rosso); stroke-width: 1.6; }
.lente__quota-testo { font: 600 13px var(--font-testo); fill: var(--rosso); }
.lente__materiali {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.lente__materiali li {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  text-align: center;
  font: 600 0.95rem var(--font-testo);
  color: var(--ardesia);
  box-shadow: inset 0 0 0 1px var(--riga);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.lente__materiali li.is-attivo { color: var(--bianco); background: var(--inchiostro); box-shadow: none; }
.lente__nota { font-size: 0.8rem; color: var(--ardesia); text-align: center; margin: 0; }

/* QUIZ */
.quiz {
  padding: var(--sezione) var(--margine);
  background: var(--nebbia);
}
.quiz__intro, .quiz__app { max-width: 980px; margin-inline: auto; }
.quiz__intro { margin-bottom: 32px; }
.quiz__intro p { font-size: 1.1rem; }
.quiz__app {
  min-height: 420px;
  padding: clamp(20px, 4vw, 48px);
  background: var(--bianco);
  border-radius: 4px;
  box-shadow: 0 40px 80px -48px rgba(53, 50, 44, 0.35);
}
.quiz__barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.quiz__progresso { margin: 0; font-size: 0.9rem; color: var(--ardesia); }
.quiz__indietro {
  font: 600 0.95rem var(--font-testo);
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--inchiostro);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.quiz__domanda { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); outline: none; }
.quiz__aiuto { color: var(--ardesia); }
.quiz__dedotto {
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--nebbia);
  font-size: 0.98rem;
}
.quiz__opzioni {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 24px 0 20px;
}
.quiz__opzioni--forma { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.opzione {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  min-height: 64px;
  padding: 16px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--bianco);
  box-shadow: inset 0 0 0 1.5px var(--riga);
  color: var(--inchiostro);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
}
.opzione:hover { box-shadow: inset 0 0 0 1.5px var(--inchiostro); }
.opzione[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--rosso); }
.opzione__etichetta { font-weight: 600; font-size: 1.05rem; }
.opzione__nota { font-size: 0.88rem; color: var(--ardesia); line-height: 1.4; }
.viso {
  width: 44px; height: 56px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 2.5;
}
.opzione:hover .viso, .opzione[aria-pressed="true"] .viso { stroke: var(--rosso); }

.risultato__testa { display: flex; gap: 24px; align-items: flex-start; }
.viso--grande { flex: none; width: 72px; height: 92px; stroke: var(--rosso); }
.risultato__montature {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.risultato__montature li {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 12px 16px;
  border-top: 2px solid var(--inchiostro);
  text-align: center;
  font-weight: 600;
}
.montatura { width: 100%; max-width: 220px; height: auto; overflow: visible; }
.montatura path { fill: none; stroke: var(--inchiostro); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.montatura .m-barra { stroke-width: 8; }
.montatura .m-asta { stroke-width: 2.6; }
.risultato__evita { color: var(--inchiostro); }
.risultato__nota { margin-top: 20px; font-size: 0.92rem; color: var(--ardesia); }
.quiz__risultato .azioni { margin-top: 24px; }

/* LENTI A CONTATTO */
.contatto-lenti {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: var(--sezione) var(--margine);
}
.contatto-lenti__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* MARCHI */
.marchi { padding: calc(var(--sezione) * 0.6) 0 var(--sezione); }
.marchi h2 { padding: 0 var(--margine); max-width: var(--larghezza); margin: 0 auto 32px; }
.marchi__nastro {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marchi__binario {
  list-style: none;
  margin: 0;
  padding: 0 var(--margine);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.marchi__binario li { flex: none; padding: 8px 20px; }
.marchi__binario img { height: 72px; width: auto; }
.js .marchi__binario.is-pronto {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0;
  animation: scorri-marchi 60s linear infinite;
}
.marchi__nastro:hover .marchi__binario,
.marchi__nastro:focus-within .marchi__binario { animation-play-state: paused; }
@keyframes scorri-marchi { to { transform: translateX(-50%); } }

/* RECENSIONI */
.recensioni {
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: 0 var(--margine) var(--sezione);
}
.recensioni__media { color: var(--ardesia); margin-bottom: 40px; }
.recensioni__elenco {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.recensione {
  margin: 0;
  padding-top: 20px;
  border-top: 2px solid var(--rosso);
}
.recensione p { font-size: 1.02rem; }
.recensione footer { font-weight: 600; }

/* OFFERTA */
.offerta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  overflow: hidden;
  background: var(--ardesia);
  color: var(--bianco);
}
.offerta__testo {
  padding: var(--sezione) var(--margine);
  padding-left: max(var(--margine), calc((100vw - var(--larghezza)) / 2 + var(--margine)));
}
.offerta h2 { font-size: clamp(1.8rem, 1.1rem + 3vw, 3.4rem); }
.offerta__domanda { font-size: 1.2rem; }
.offerta__prezzo { font-size: 1.15rem; }
.offerta__prezzo strong { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.01em; margin-right: 6px; }
.offerta__incluso { margin: 0 0 1.2em; padding-left: 1.1em; }
.offerta__incluso li { margin-bottom: 0.3em; }
.offerta__condizioni { font-size: 0.92rem; margin-bottom: 1.6em; }
.offerta__cappello { width: 100%; max-width: 440px; justify-self: end; align-self: end; }

/* DOMANDE */
.domande {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--sezione) var(--margine);
}
.domande details { border-bottom: 1px solid var(--riga); }
.domande summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.domande summary::-webkit-details-marker { display: none; }
.domande summary::before,
.domande summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--rosso);
  transition: transform 0.25s;
}
.domande summary::after { transform: rotate(90deg); }
.domande details[open] summary::after { transform: rotate(0deg); }
.domande details p { padding-bottom: 12px; }

/* CONTATTI */
.contatti {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: var(--larghezza);
  margin: 0 auto;
  padding: 0 var(--margine) var(--sezione);
}
.contatti__indirizzo { font-size: 1.25rem; }
.contatti__stato {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.contatti__stato::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ardesia-chiara);
}
.contatti__stato.is-aperto::before { background: #1f8a4c; }
.orari { border-collapse: collapse; margin: 8px 0 28px; width: 100%; max-width: 460px; }
.orari th, .orari td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--riga); font-weight: 400; }
.orari th { width: 9.5em; }
.orari tr.is-oggi th, .orari tr.is-oggi td { font-weight: 600; color: var(--rosso); }
.contatti__email { margin-top: 20px; }
.contatti__foto { margin: 0; }
.contatti__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 0% 60%; border-radius: 4px; }

/* PIEDE */
.piede {
  padding: 48px var(--margine) 64px;
  background: var(--inchiostro);
  color: #e9e8e6;
  font-size: 0.95rem;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.piede__marchio { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.piede__marchio p { margin: 0; font-family: var(--font-titoli); text-transform: uppercase; letter-spacing: 0.06em; }
.piede__social a, .piede__legale a { margin-right: 18px; }
.piede p { margin: 0; }

/* BARRA AZIONI SU MOBILE */
.barra-mobile { display: none; }

/* ---------- Tablet e telefono ---------- */
@media (max-width: 899px) {
  :root { --testata: 60px; }
  .testata__menu { display: none; }
  .testata__marchio img { width: 36px; height: 36px; }
  .testata__marchio span { font-size: 0.8rem; }

  .elisa, .contatto-lenti, .contatti { grid-template-columns: 1fr; }
  .contatto-lenti__foto { max-width: 420px; }
  .contatti__foto { order: -1; }
  .contatti__foto img { aspect-ratio: 3 / 2; }

  .percorso__griglia { grid-template-columns: 1fr; gap: 0; }
  .percorso__visivo {
    top: calc(var(--testata) + 8px);
    z-index: 2;
    height: 42svh;
  }
  .passo { min-height: 55svh; padding: 4vh 0 4vh 56px; justify-content: flex-start; }
  .passo--lungo { min-height: 100svh; }
  .passo__numero { top: 4vh; }
  .lente { padding: 12px; gap: 8px; }
  .lente__disegno { max-height: 26svh; }
  .lente__nota { display: none; }
  .lente__materiali li { min-width: 0; padding: 4px 10px; font-size: 0.85rem; }

  .recensioni__elenco { grid-template-columns: 1fr; }
  .offerta { grid-template-columns: 1fr; }
  .offerta__testo { padding-bottom: 24px; }
  .offerta__cappello { max-width: 260px; margin-right: var(--margine); }
  .risultato__montature { grid-template-columns: 1fr; }
  .risultato__montature li { grid-template-columns: 120px 1fr; justify-items: start; align-items: center; text-align: left; }
  .marchi__binario img { height: 56px; }

  .barra-mobile {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 8px;
    padding: 10px var(--margine) calc(10px + env(safe-area-inset-bottom));
    background: var(--bianco);
    box-shadow: 0 -8px 24px -12px rgba(53, 50, 44, 0.3);
    transform: translateY(110%);
    transition: transform 0.35s;
  }
  .barra-mobile.is-visibile { transform: none; }
  .barra-mobile a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--inchiostro);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .barra-mobile .barra-mobile__principale { background: var(--rosso); color: var(--bianco); box-shadow: none; }
  .piede { padding-bottom: 120px; }
}

@media (max-width: 760px) {
  .apertura { height: auto; min-height: 0; }
  .apertura__scena {
    --fuoco-x: 0.27;
    --fuoco-y: 0.45;
    --pos-x: 0;
    --pos-y: 0.3;
    position: relative;
    height: min(64svh, 130vw);
  }
  .js .apertura__nitida { clip-path: circle(20vmin at 27% 45%); }
  .apertura__targa {
    position: relative;
    left: auto; bottom: auto;
    width: auto;
    padding: 20px var(--margine) 24px;
    border-radius: 0;
    box-shadow: none;
  }
  .apertura__sotto { font-size: 1rem; margin-bottom: 1em; }
  .apertura .azioni .bottone { flex: 1 1 100%; }
  .quiz__opzioni { gap: 8px; margin: 18px 0 16px; }
  .quiz__opzioni--forma .opzione {
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    padding: 12px 16px;
  }
  .quiz__opzioni--forma .viso { grid-column: 1; grid-row: 1 / span 2; width: 36px; height: 46px; margin: 0; }
  .quiz__opzioni--forma .opzione__etichetta,
  .quiz__opzioni--forma .opzione__nota { grid-column: 2; }
  .risultato__testa { flex-direction: column; gap: 8px; }
  .viso--grande { width: 52px; height: 66px; }
}

@media (max-width: 380px) {
  .testata > .bottone { display: none; }
}

/* Chi preferisce meno movimento vede tutto fermo e già a fuoco */
@media (prefers-reduced-motion: reduce) {
  .js .apertura__nitida { clip-path: none; }
  .js .apertura__anello, .js .apertura__sfocata, .apertura__suggerimento { display: none; }
  .js .visivo { clip-path: none; opacity: 0; transition: none; }
  .js .visivo.is-attivo { opacity: 1; }
  .js .marchi__binario.is-pronto { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
