/* ==========================================================
   Pneus Planet Store - stile della home
   Colori presi dal sito attuale e dal logo.
   ========================================================== */

:root {
  --rosso: #e1202a;          /* il rosso del logo */
  --rosso-scuro: #b3161e;
  --antracite: #434343;      /* il grigio delle sezioni del sito attuale */
  --grafite: #2b2b2b;
  --cemento: #f1f1ef;
  --bianco: #ffffff;
  --testo: #222222;
  --testo-tenue: #5e5e5e;

  --obliquo: -12deg;         /* la stessa inclinazione delle barre del logo */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --testata: 5rem;

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

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

html { scroll-padding-top: var(--testata); }

body {
  margin: 0;
  padding-top: var(--testata);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--testo);
  background: var(--bianco);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

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

.contenitore { width: min(100% - 2rem, 76rem); margin-inline: auto; }

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

.salta {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--bianco); font-weight: 700;
}
.salta:focus { top: 1rem; }

#sentinella { position: absolute; top: 0; left: 0; width: 1px; height: 3rem; }

/* ---------- Titoli e riquadri rossi inclinati ---------- */

.etichetta {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .22em .55em .14em;
  color: var(--bianco);
  font-stretch: 62%;
  font-weight: 850;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}
.etichetta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rosso);
  transform: skewX(var(--obliquo));
  transform-origin: left center;
}
.etichetta > span { display: inline-block; }

.titolo-sezione { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

.lead {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-stretch: 85%;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Pulsanti ---------- */

.bottone {
  --sfondo: var(--rosso);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 1.5em;
  color: var(--bianco);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}
.bottone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sfondo);
  transform: skewX(var(--obliquo));
  transition: background-color .2s;
}
.bottone:hover { --sfondo: var(--rosso-scuro); }
.bottone svg { width: 1.15em; height: 1.15em; flex: none; }

.bottone-chiaro { --sfondo: var(--bianco); color: var(--testo); }
.bottone-chiaro:hover { --sfondo: var(--cemento); }

.azioni { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 2rem; }

/* ---------- Intestazione ---------- */

.testata {
  --altezza: var(--testata);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bianco);
  transition: box-shadow .3s;
}
.testata.compatta { --altezza: 3.75rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .1); }

.testata-interno {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: var(--altezza);
  transition: height .35s var(--ease);
}

.logo img { width: auto; height: calc(var(--altezza) - 1.6rem); transition: height .35s var(--ease); }

.bottone-chiama { margin-left: auto; padding: .7em 1em; }
.bottone-chiama span { display: none; }

.menu-apri {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--testo);
  cursor: pointer;
}
.menu-apri svg { width: 1.75rem; height: 1.75rem; }

/* Menu su telefono: pannello che si apre sotto l'intestazione (popover nativo) */
.menu {
  position: fixed;
  inset: var(--altezza) 0 auto 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: .5rem 1rem 1.5rem;
  border: 0;
  background: var(--bianco);
  color: var(--testo);
  box-shadow: 0 24px 40px rgba(0, 0, 0, .18);
}
.menu ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block;
  padding: .6rem 0;
  font-size: 1.5rem;
  font-stretch: 75%;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 30em) {
  .bottone-chiama span { display: inline; }
}

@media (min-width: 62em) {
  .contenitore { width: min(100% - 4rem, 76rem); }

  .menu {
    display: block;
    position: static;
    margin: 0 0 0 auto;
    padding: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .menu ul { flex-direction: row; gap: 1.75rem; }
  .menu a {
    display: inline;
    padding: .35rem 0;
    font-size: .98rem;
    font-stretch: 100%;
    font-weight: 600;
    background: linear-gradient(var(--rosso), var(--rosso)) left bottom / 0 2px no-repeat;
    transition: background-size .3s var(--ease);
  }
  .menu a:hover { background-size: 100% 2px; }

  .bottone-chiama { margin-left: 1.25rem; }
  .menu-apri { display: none; }
}

/* ---------- Apertura ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--testata));
  overflow: hidden;
  color: var(--bianco);
  background: var(--grafite);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 45%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 20, 20, .8), rgba(20, 20, 20, .2) 55%, rgba(20, 20, 20, 0));
}

.hero-contenuto { padding-block: 6rem 3.5rem; }

/* i margini lasciano spazio alle punte inclinate di barre e riquadro */
.hero-marchio { display: flex; align-items: stretch; gap: clamp(.4rem, 1vw, .65rem); padding-inline: clamp(1rem, 2vw, 1.5rem); }

.barre { display: flex; gap: inherit; }
.barre span { width: clamp(.65rem, 1.5vw, 1.35rem); background: var(--rosso); transform: skewX(var(--obliquo)); }

.hero-riquadro {
  position: relative;
  isolation: isolate;
  padding: clamp(1rem, 2.4vw, 1.75rem) clamp(1.1rem, 3vw, 2.5rem);
}
.hero-riquadro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rosso);
  transform: skewX(var(--obliquo));
  transform-origin: left center;
}

/* Le due frasi stanno nella stessa cella e si danno il cambio */
.hero-testi { display: grid; }
.hero-slide { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero-slide:not(.attiva) { opacity: 0; transform: translateX(-1.5rem); }
.hero-slide.uscita { opacity: 0; transform: translateX(1.5rem); }

.hero-titolo {
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  font-stretch: 62%;
  font-weight: 850;
  font-style: italic;
  line-height: .92;
  text-transform: uppercase;
}
.hero-titolo span { display: block; }

.hero-sotto {
  margin-top: .6rem;
  font-size: clamp(1.05rem, 2.3vw, 1.85rem);
  font-stretch: 75%;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-sotto .sep { margin-inline: .25em; opacity: .55; }

.striscia {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: clamp(.88rem, 1.4vw, 1rem);
  line-height: 2.15;
}
.striscia span {
  padding: .3em .6em;
  background: var(--rosso);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Foto con parallasse ---------- */

.media { overflow: hidden; view-timeline: --media; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Il centro ---------- */

.centro-griglia {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.centro-testo > * + * { margin-top: 1.75rem; }
.centro-testo p + p { margin-top: 1rem; }
.centro-testo p:not(.lead) { max-width: 60ch; color: var(--testo-tenue); }
.centro-foto { aspect-ratio: 4 / 3; }

@media (min-width: 56em) {
  .centro-griglia { grid-template-columns: 5fr 6fr; align-items: center; gap: 4.5rem; }
}

/* ---------- Servizi ---------- */

.servizi { padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--cemento); }

.sezione-testa { max-width: 40rem; margin-bottom: 2.5rem; }
.sezione-testa p { margin-top: 1.25rem; font-size: 1.15rem; color: var(--testo-tenue); }

.griglia-servizi { display: grid; gap: 1rem; }

.servizio {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 17rem;
  overflow: hidden;
  color: var(--bianco);
  background: var(--grafite);
}
.servizio img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.servizio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 18, 18, .88), rgba(18, 18, 18, .1) 65%);
}
.servizio:hover img { transform: scale(1.05); }

.servizio-testo { padding: 1.5rem 1.6rem; }
.servizio h3 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); }
.servizio p { max-width: 36ch; margin-top: .8rem; color: rgba(255, 255, 255, .9); }

@media (min-width: 48em) {
  .griglia-servizi { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(15.5rem, auto); }
  .servizio { grid-column: span 3; min-height: 0; }
  .servizio-grande { grid-row: span 2; }
}

/* ---------- Officina Auto Randazzo ---------- */

.officina { color: var(--bianco); background: var(--antracite); }

.officina-media { height: clamp(15rem, 36vw, 28rem); }

.officina-griglia {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
/* Titolo con il logo, centrato sopra la foto */
.titolo-sopra-foto {
  padding-block: clamp(2.75rem, 6vw, 4rem) clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}
/* quando la scritta va a capo (telefono) anche il logo resta centrato */
.titolo-sopra-foto .titolo-con-logo > span { justify-content: center; }

.officina-testo > * + * { margin-top: 1.75rem; }
.officina-testo p + p { margin-top: 1rem; }
.officina-testo p:not(.lead) { max-width: 55ch; color: rgba(255, 255, 255, .82); }
.officina-foto { aspect-ratio: 3 / 2; }

/* Logo Auto Randazzo dentro il riquadro rosso, su forma bianca come nel cartello del capannone */
.titolo-con-logo > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3em .35em; }
.logo-in-titolo {
  display: inline-grid;
  place-items: center;
  padding: .07em .32em;
  background: var(--bianco);
  border-radius: 999px;
}
.logo-in-titolo img { width: auto; height: 1.05em; }

/* Elenco dei lavori: ogni voce ha una barretta rossa inclinata come quelle del logo */
.lista-officina { display: grid; margin: 0; padding: 0; list-style: none; align-content: start; }
.lista-officina li {
  position: relative;
  padding: 1.35rem 0 1.35rem 1.9rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.lista-officina li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: 1.6rem;
  width: .55rem;
  height: 1.25rem;
  background: var(--rosso);
  transform: skewX(var(--obliquo));
}
.lista-officina h3 {
  font-size: 1.45rem;
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  text-transform: uppercase;
}
.lista-officina p { margin-top: .35rem; color: rgba(255, 255, 255, .78); }

@media (min-width: 40em) {
  .lista-officina { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 62em) {
  .officina-griglia { grid-template-columns: 5fr 6fr; gap: 2.25rem 4.5rem; align-items: start; }
  /* su schermi larghi l'elenco torna in colonna, così pareggia l'altezza di testo e foto */
  .lista-officina { grid-template-columns: 1fr; }
}

/* ---------- Custodia stagionale ---------- */

.deposito {
  position: relative;
  isolation: isolate;
  padding-top: clamp(9rem, 26vw, 19rem);
}
.deposito-media { position: absolute; inset: 0 0 6rem 0; z-index: -1; }

.deposito-pannello {
  max-width: 30rem;
  margin-top: 2rem;
  padding: 2rem 2.25rem 2.25rem;
  background: var(--bianco);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
}
.numero {
  color: var(--rosso);
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  font-stretch: 62%;
  font-weight: 850;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  line-height: .9;
}
.numero .unita { margin-left: .08em; font-size: .45em; }
.deposito-pannello p + p { margin-top: 1rem; font-size: 1.1rem; }

/* ---------- TPMS ---------- */

.tpms-griglia {
  display: grid;
  gap: 2rem;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.tpms-griglia .lead { margin-top: 1.5rem; }
.tpms-testo { max-width: 40rem; }
.tpms-testo p + p, .tpms-testo details { margin-top: 1rem; }

details summary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding-block: .4rem;
  color: var(--rosso-scuro);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details .piu {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1.3rem;
  line-height: 1;
  border: 2px solid currentColor;
  transition: transform .3s var(--ease);
}
details[open] .piu { transform: rotate(45deg); }
details p { margin-top: 1rem; }

@media (min-width: 56em) {
  .tpms-griglia { grid-template-columns: 4fr 7fr; gap: 4.5rem; align-items: start; }
}

/* ---------- Marchi ---------- */

.marchi { padding-block: clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; border-top: 1px solid #e6e6e6; }

.nastro {
  margin-top: 2.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.nastro-pista { display: flex; width: max-content; }
.nastro ul {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0;
  padding: 0 clamp(2.5rem, 5vw, 4.5rem) 0 0;
  list-style: none;
}
.nastro img {
  width: auto;
  height: clamp(2.2rem, 3.6vw, 2.9rem);
  filter: grayscale(1);
  opacity: .7;
  transition: filter .3s, opacity .3s;
}
.nastro img:hover { filter: none; opacity: 1; }

/* ---------- Proposte da scegliere (Prenotazione A/B, Ingressi A/B) ---------- */

/* Riquadro tratteggiato con nome e descrizione della proposta: quando se ne sceglie una, si toglie */
.proposta {
  max-width: 64ch;
  margin-bottom: 1.75rem;
  padding: .85rem 1rem;
  font-size: .92rem;
  line-height: 1.5;
  border: 1px dashed currentColor;
  opacity: .9;
}
.proposta-titolo { font-weight: 700; }
.proposta p + p { margin-top: .25rem; }
.proposta-spazio { margin-top: 2rem; }

/* ---------- Prenotazione ---------- */

/* Titolo bianco con scritta rossa, per le sezioni su fondo rosso */
.etichetta-bianca { color: var(--rosso); }
.etichetta-bianca::before { background: var(--bianco); }

/* Scelta del servizio: due pulsanti affiancati */
.scelta-servizio { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .3rem; background: rgba(0, 0, 0, .16); }
.scelta-servizio button {
  padding: .65rem 1.15rem;
  font: inherit;
  font-weight: 700;
  color: var(--bianco);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.scelta-servizio button[aria-pressed="true"] { color: var(--rosso-scuro); background: var(--bianco); }

/* Proposta A: fascia rossa con tre canali */
.prenota-rossa { padding-block: clamp(3.5rem, 8vw, 6rem); color: var(--bianco); background: var(--rosso); }
.prenota-rossa .lead { max-width: 44ch; margin-top: 1.25rem; }
.prenota-rossa .scelta-servizio { margin-top: 2rem; }

.canali { display: grid; gap: 1rem; margin-top: 1.25rem; }
.canale {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.5rem 1.5rem 1.6rem;
  color: var(--testo);
  text-decoration: none;
  background: var(--bianco);
  transition: box-shadow .25s;
}
.canale:hover { box-shadow: 0 18px 30px rgba(0, 0, 0, .18); }
.canale svg { width: 2rem; height: 2rem; color: var(--rosso); }
.canale-nome {
  margin-top: .6rem;
  font-size: 1.7rem;
  font-stretch: 62%;
  font-weight: 850;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}
.canale-dettaglio { color: var(--testo-tenue); }
.canale-azione { margin-top: auto; padding-top: .9rem; font-weight: 700; color: var(--rosso-scuro); }
.prenota-orari { margin-top: 1.5rem; font-size: .98rem; color: rgba(255, 255, 255, .92); }

/* Proposta B: modulo breve */
.prenota-modulo { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--cemento); }
.prenota-griglia { display: grid; gap: 2.5rem; margin-top: 2rem; }
.prenota-spiega .lead { max-width: 30ch; }
/* I passi sono davvero una sequenza, per questo sono numerati */
.passi { display: grid; gap: 1rem; margin: 1.75rem 0 0; padding: 0; list-style: none; counter-reset: passo; }
.passi li { position: relative; padding-left: 2.75rem; color: var(--testo-tenue); counter-increment: passo; }
.passi li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -.15rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-weight: 800;
  font-style: italic;
  color: var(--bianco);
  background: var(--rosso);
  transform: skewX(var(--obliquo));
}
.passi strong { color: var(--testo); }
.preferisci { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #dadada; }
.preferisci a { font-weight: 700; color: var(--rosso-scuro); }

.modulo {
  display: grid;
  gap: 1.15rem;
  padding: 2rem 1.75rem 2.25rem 2.25rem;
  background: var(--bianco);
  border-left: .45rem solid var(--rosso);
}
.modulo fieldset { margin: 0; padding: 0; border: 0; }
.modulo legend, .campo label { display: block; margin-bottom: .4rem; font-size: .95rem; font-weight: 600; }
.modulo .scelta-servizio { background: var(--cemento); }
.modulo .scelta-servizio button { color: var(--testo); }
.modulo .scelta-servizio button[aria-pressed="true"] { color: var(--bianco); background: var(--rosso); }
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: .75rem .85rem;
  font: inherit;
  color: var(--testo);
  background: var(--bianco);
  border: 1px solid #cdcdcd;
  border-radius: 0;
}
.campo textarea { min-height: 5.5rem; resize: vertical; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 3px solid var(--rosso); outline-offset: 0; border-color: var(--rosso); }
.facoltativo { font-weight: 400; color: var(--testo-tenue); }
.due { display: grid; gap: 1.15rem; }
.invia { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: .4rem; }
.bottone-scuro { --sfondo: var(--antracite); }
.bottone-scuro:hover { --sfondo: var(--grafite); }
button.bottone { font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer; }
.nota-modulo { font-size: .9rem; color: var(--testo-tenue); }

/* Messaggio che arriverebbe, mostrato finché manca il numero WhatsApp */
.anteprima-messaggio {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  font-size: .95rem;
  white-space: pre-wrap;
  color: var(--testo);
  background: var(--cemento);
  border: 1px dashed #b5b5b5;
}
.anteprima-messaggio.mostra { display: block; }

@media (min-width: 36em) {
  .due { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48em) {
  .canali { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 62em) {
  .prenota-griglia { grid-template-columns: 4fr 7fr; gap: 4rem; align-items: start; }
}

/* ---------- Contatti ---------- */

.contatti { padding-block: clamp(4rem, 9vw, 7rem); color: var(--bianco); background: var(--antracite); }

.contatti h3 {
  margin-bottom: .6rem;
  font-size: 1.4rem;
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.contatti a { text-underline-offset: .2em; }

.contatti-testa .lead { max-width: 38ch; margin-top: 1.5rem; color: rgba(255, 255, 255, .88); }

/* Due "biglietti" bianchi: a sinistra il centro gomme, a destra l'officina,
   come le due metà del biglietto da visita */
.biglietti { display: grid; gap: 1.25rem; margin-top: 2.5rem; }

.biglietto {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.9rem 1.75rem 2rem 2.25rem;
  color: var(--testo);
  background: var(--bianco);
}
/* Banda rossa sul bordo, come la riga che divide il biglietto da visita */
.biglietto::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .45rem;
  background: var(--rosso);
}

/* align-self evita che il logo venga stirato a tutta larghezza */
.biglietto-logo { align-self: flex-start; width: auto; height: 3rem; margin-block: .3rem; }
/* il logo AR è più alto, così i due titoli restano allineati */
.biglietto-logo-ar { height: 3.6rem; margin-block: 0; }

.biglietto .etichetta {
  align-self: flex-start;
  margin: 0 0 0 .3rem;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-stretch: 62%;
  font-weight: 850;
}

.biglietto-cosa { max-width: 44ch; color: var(--testo-tenue); }

.biglietto-recapiti {
  display: grid;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #e4e4e4;
}
.biglietto-telefono {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-stretch: 62%;
  font-weight: 850;
  font-style: italic;
  line-height: 1;
  color: var(--testo);
  text-decoration: none;
}
.biglietto-telefono svg { width: .62em; height: .62em; color: var(--rosso); }
.biglietto-telefono:hover { color: var(--rosso-scuro); }
.biglietto-email { width: fit-content; color: var(--testo); }
.biglietto-vai {
  width: fit-content;
  margin-top: .35rem;
  font-weight: 700;
  color: var(--rosso-scuro);
  text-decoration: none;
}
.biglietto-vai:hover { text-decoration: underline; }
/* Pulsante «Scrivici su WhatsApp»: largo quanto la scritta, con spazio per la punta inclinata */
.biglietto-recapiti .bottone { width: fit-content; margin-block: .4rem .2rem; margin-left: .3rem; }

/* I due ingressi del capannone: centro gomme in Via Val d'Ossola, officina in Via Fratelli Gracchi */
.ingresso-nome {
  font-size: 1.35rem;
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  text-transform: uppercase;
}
.ingresso-indirizzo {
  margin-top: .5rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
}
.ingresso-angolo, .ingresso-comune { margin-top: .25rem; }
.ingresso-come { margin-top: .75rem; font-size: .98rem; }
/* min-height e overflow: le due foto restano alte uguali anche se hanno proporzioni diverse */
.ingresso-foto { min-height: 0; overflow: hidden; }
.ingresso-foto img { width: 100%; height: 100%; object-fit: cover; }

/* Ingressi A: fascia "Dove siamo" con i due ingressi affiancati */
.ingressi { margin-top: 1.25rem; padding: 2rem 1.75rem 2.25rem; background: var(--grafite); }
.ingressi-testa p { margin-top: .35rem; color: rgba(255, 255, 255, .85); }
.ingressi-griglia { display: grid; gap: 1.75rem; margin-top: 1.75rem; }
.ingresso { display: flex; flex-direction: column; gap: 1.1rem; }
.ingresso .ingresso-foto { aspect-ratio: 16 / 10; }
.ingresso .ingresso-angolo, .ingresso .ingresso-comune, .ingresso .ingresso-come { color: rgba(255, 255, 255, .85); }
/* il pulsante va in fondo, così i due "Come arrivare" restano allineati */
.ingresso .azioni { margin-top: auto; padding-top: .35rem; }
.orari-riga {
  display: grid;
  gap: .75rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.orari-riga h3 { margin: 0; }

/* Ingressi B: l'ingresso dentro ogni biglietto, con la striscia degli orari sotto */
.contatti-alternativa { border-top: 4px dashed rgba(255, 255, 255, .25); }
.contatti-con-ingressi .biglietto-recapiti { margin-top: 0; }
.biglietto-ingresso { display: grid; gap: .9rem; padding-top: 1.25rem; border-top: 1px solid #e4e4e4; }
.biglietto-ingresso .ingresso-foto { aspect-ratio: 16 / 9; }
.biglietto-ingresso .ingresso-nome { color: var(--rosso-scuro); }
.biglietto-ingresso .ingresso-angolo, .biglietto-ingresso .ingresso-comune, .biglietto-ingresso .ingresso-come { color: var(--testo-tenue); }
.striscia-orari {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 2rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: var(--grafite);
}
.striscia-orari h3 { margin: 0; }
.striscia-orari p { color: rgba(255, 255, 255, .88); }

.orari { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: 0; line-height: 1.5; }
.orari dt { font-weight: 600; }
.orari dd { margin: 0; color: rgba(255, 255, 255, .85); }

/* Riquadro tratteggiato per i contenuti ancora da confermare (sezioni scure) */
.da-completare {
  display: inline-block;
  margin-top: 1rem;
  padding: .35rem .8rem;
  font-size: .95rem;
  line-height: 1.4;
  border: 1px dashed rgba(255, 255, 255, .65);
}

@media (min-width: 48em) {
  .biglietti { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .ingressi-griglia { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .orari-riga { grid-template-columns: auto 1fr; align-items: baseline; }
}

/* ---------- Piè di pagina: marchio, sede legale, dati fiscali, privacy ---------- */

.piede { padding-block: 2.5rem; font-size: .9rem; color: rgba(255, 255, 255, .78); background: var(--grafite); }
.piede-griglia { display: grid; gap: 1.25rem 3rem; }
.piede p { line-height: 1.7; }
.piede strong { font-weight: 700; color: var(--bianco); }
.piede a { text-underline-offset: .2em; }
/* «Preferenze cookie» è un pulsante (apre una finestra) ma ha l'aspetto di un link */
.link-preferenze {
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (min-width: 48em) {
  .piede-griglia { grid-template-columns: 1fr 1.5fr 1fr auto; }
}

/* ---------- Banner dei cookie e finestra delle preferenze ---------- */

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  display: grid;
  gap: 1.25rem;
  max-width: 62rem;
  margin-inline: auto;
  padding: 1.5rem 3rem 1.5rem 2rem;
  color: var(--testo);
  background: var(--bianco);
  border-left: .45rem solid var(--rosso);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.cookie-banner[hidden] { display: none; }
.cookie-titolo {
  font-size: 1.5rem;
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
}
.cookie-testo p + p { margin-top: .5rem; font-size: .95rem; color: var(--testo-tenue); }
.cookie-testo a { font-weight: 700; color: var(--rosso-scuro); }
.cookie-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; }
/* «Accetta» e «Rifiuta» hanno la stessa grandezza: rifiutare deve essere facile come accettare */
.cookie-azioni .bottone { min-width: 10rem; justify-content: center; }
.cookie-link {
  padding: .4rem 0;
  font: inherit;
  font-weight: 700;
  color: var(--rosso-scuro);
  text-decoration: underline;
  text-underline-offset: .2em;
  background: none;
  border: 0;
  cursor: pointer;
}
.cookie-chiudi {
  position: absolute;
  top: .6rem;
  right: .6rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--testo-tenue);
  background: none;
  border: 0;
  cursor: pointer;
}

/* Finestra delle preferenze: elemento <dialog> nativo del browser */
.cookie-preferenze {
  width: min(100% - 2rem, 38rem);
  max-height: calc(100svh - 2rem);
  padding: 0;
  color: var(--testo);
  background: var(--bianco);
  border: 0;
  border-top: .45rem solid var(--rosso);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.cookie-preferenze::backdrop { background: rgba(20, 20, 20, .55); }
.preferenze-corpo { padding: 1.75rem 1.75rem 1.5rem; }
.preferenze-corpo > p { margin-top: .5rem; color: var(--testo-tenue); }
.categoria { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid #e6e6e6; }
.categoria:first-of-type { margin-top: 1rem; border-top: 1px solid #e6e6e6; }
.categoria h3 { font-size: 1.05rem; font-weight: 700; }
.categoria p { grid-column: 1 / -1; font-size: .93rem; color: var(--testo-tenue); }
.sempre-attivi { font-size: .85rem; font-weight: 700; color: var(--testo-tenue); }
.preferenze-azioni { display: flex; flex-wrap: wrap; gap: .9rem 1.25rem; padding: 1.25rem 1.75rem 1.5rem; background: var(--cemento); }

/* Interruttore acceso/spento fatto con una normale casella da spuntare */
.interruttore { position: relative; display: inline-block; width: 3rem; height: 1.7rem; }
.interruttore input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.interruttore span { position: absolute; inset: 0; background: #c9c9c9; border-radius: 999px; transition: background-color .2s; pointer-events: none; }
.interruttore span::after {
  content: "";
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--bianco);
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.interruttore input:checked + span { background: var(--rosso); }
.interruttore input:checked + span::after { transform: translateX(1.3rem); }
.interruttore input:focus-visible + span { outline: 3px solid var(--rosso); outline-offset: 2px; }

/* Sul telefono il banner è più compatto: copre meno pagina, pulsanti affiancati */
@media (max-width: 35.99em) {
  .cookie-banner { inset: auto .5rem .5rem .5rem; gap: .9rem; padding: 1.1rem 2.5rem 1.1rem 1.25rem; }
  .cookie-titolo { font-size: 1.25rem; }
  .cookie-testo p + p { font-size: .88rem; line-height: 1.5; }
  .cookie-azioni { gap: .75rem 1rem; }
  .cookie-azioni .bottone { flex: 1; min-width: 0; padding-inline: .8em; white-space: nowrap; }
  .cookie-azioni .cookie-link { flex-basis: 100%; padding-block: .1rem; text-align: left; }
}

@media (min-width: 56em) {
  .cookie-banner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
  .cookie-azioni { flex-direction: column; align-items: stretch; }
  .cookie-link { text-align: center; }
}

/* ---------- Pagina Privacy e cookie ---------- */

.pagina-semplice { padding-top: 0; }
.testata-semplice { background: var(--bianco); border-bottom: 1px solid #e6e6e6; }
.testata-semplice .contenitore { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.testata-semplice img { width: auto; height: 2.9rem; }
.torna { font-weight: 700; color: var(--rosso-scuro); text-decoration: none; }
.torna:hover { text-decoration: underline; }

.pagina-testo { padding-block: clamp(3rem, 7vw, 5rem); }
.pagina-testo .titolo-sezione { margin-bottom: 1.5rem; }
.pagina-testo .aggiornata { color: var(--testo-tenue); }
.indice { margin-top: 2rem; padding: 1.25rem 1.5rem; background: var(--cemento); border-left: .45rem solid var(--rosso); }
.indice p { font-weight: 700; }
.indice ol { margin: .5rem 0 0; padding-left: 1.3rem; }
.indice a { color: var(--testo); }
.testo-legale { max-width: 70ch; }
.testo-legale section { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.testo-legale h2 {
  margin-bottom: .75rem;
  font-size: 1.6rem;
  font-stretch: 75%;
  font-weight: 800;
  font-style: italic;
  line-height: 1.15;
  text-transform: uppercase;
}
.testo-legale p + p, .testo-legale ul { margin-top: .75rem; }
.testo-legale ul { padding-left: 1.3rem; }
.testo-legale li + li { margin-top: .35rem; }
.testo-legale a { color: var(--rosso-scuro); }
.riquadro-dati { margin-top: .75rem; padding: 1rem 1.25rem; background: var(--cemento); }
/* Tabella dei cookie: su telefono scorre di lato senza allargare la pagina */
.tabella-scorre { margin-top: 1rem; overflow-x: auto; }
.tabella-scorre + p { margin-top: 1rem; }
.tabella-cookie { width: 100%; min-width: 34rem; font-size: .93rem; border-collapse: collapse; }
.tabella-cookie th, .tabella-cookie td { padding: .65rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid #e0e0e0; }
.tabella-cookie th { font-weight: 700; background: var(--cemento); }


/* ==========================================================
   ANIMAZIONI
   Tutte spente se il visitatore ha chiesto meno movimento.
   ========================================================== */

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

  /* 1. Apertura: zoom lento della foto, barre che entrano, riquadro che si apre */
  .hero-media img { animation: avvicina 9s var(--ease) both; }

  .barre span { animation: entra-barra .9s var(--ease) both; }
  .barre span:nth-child(1) { animation-delay: .1s; }
  .barre span:nth-child(2) { animation-delay: .2s; }
  .barre span:nth-child(3) { animation-delay: .3s; }

  .hero-riquadro::before { animation: apri .7s var(--ease) .45s both; }
  .hero-testi { animation: compari .6s var(--ease) .85s both; }
  .striscia { animation: sali .7s var(--ease) 1.1s both; }
  .hero .azioni { animation: sali .7s var(--ease) 1.25s both; }

  /* 2. Parallasse: le foto scorrono più lente della pagina (funzione nativa del browser) */
  [data-parallax] { transform: scale(1.25); }

  @supports (animation-timeline: scroll()) {
    .hero-media {
      animation: hero-scorri auto linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    [data-parallax] {
      animation: parallasse auto linear both;
      animation-timeline: --media;
    }
  }

  /* 6. Marchi: striscia continua, si ferma col mouse sopra */
  .nastro-pista { animation: nastro 45s linear infinite; }
  .nastro:hover .nastro-pista { animation-play-state: paused; }
}

/* 3-4. Comparse allo scorrimento (la classe .visibile la aggiunge animazioni.js) */
.movimento .rivela-su {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.movimento .rivela-su.visibile { opacity: 1; transform: none; }

.movimento .rivela .etichetta::before {
  transform: skewX(var(--obliquo)) scaleX(0);
  transition: transform .65s var(--ease) calc(var(--i, 0) * 120ms + .15s);
}
.movimento .rivela.visibile .etichetta::before { transform: skewX(var(--obliquo)) scaleX(1); }

.movimento .rivela .etichetta > span {
  opacity: 0;
  transform: translateX(-.75rem);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms + .5s);
}
.movimento .rivela.visibile .etichetta > span { opacity: 1; transform: none; }

/* Senza animazioni: i marchi diventano una griglia ferma */
@media (prefers-reduced-motion: reduce) {
  .nastro { -webkit-mask-image: none; mask-image: none; }
  .nastro-pista { width: auto; }
  .nastro ul { flex-wrap: wrap; justify-content: center; padding: 0 1rem; row-gap: 1.5rem; }
  .nastro ul[aria-hidden] { display: none; }
}

@keyframes avvicina { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes entra-barra {
  from { opacity: 0; transform: translateX(-60vw) skewX(var(--obliquo)); }
  to   { opacity: 1; transform: skewX(var(--obliquo)); }
}
@keyframes apri {
  from { transform: skewX(var(--obliquo)) scaleX(0); }
  to   { transform: skewX(var(--obliquo)) scaleX(1); }
}
@keyframes compari { from { opacity: 0; transform: translateX(-1rem); } to { opacity: 1; transform: none; } }
@keyframes sali { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@keyframes hero-scorri { to { transform: translateY(25%); } }
@keyframes parallasse {
  from { transform: translateY(-10%) scale(1.25); }
  to   { transform: translateY(10%) scale(1.25); }
}
@keyframes nastro { to { transform: translateX(-50%); } }
