/* ==========================================================================
   ALIMAGIA — landing page
   Impianto editoriale "catalogo d'officina": carta avorio, scontorni in
   multiply, tipografia Cormorant Garamond/Archivo, accenti dal logo (rosso, giallo,
   azzurro, tricolore).
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../assets/fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --paper: #fbfaf6;
  --bone: #f2f0e8;
  --ink: #191b1e;
  --ink-soft: #5d6066;
  --hairline: #e0ddd2;
  --red: #c62e1b;        /* dal marchio A / logo Alimagia */
  --red-deep: #a72413;
  --yellow: #fad53e;     /* giallo delle ali */
  --cyan: #2ec7ed;       /* azzurro delle pennellate */
  --dark: #0d1f2d;       /* blu notte del sito originale */
  --green-it: #0a8a44;
  --red-it: #ce2b37;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  /* stacco fra il titolo di sezione e il primo contenuto */
  --title-gap: clamp(2rem, 3.5vw, 3rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Scala tipografica progressiva per schermi grandi (2K / 4K) */
html { font-size: 100%; }
@media (min-width: 1920px) { html { font-size: 112.5%; } }
@media (min-width: 2560px) { html { font-size: 137.5%; } }
@media (min-width: 3400px) { html { font-size: 175%; } }

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 5.5rem; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Bandiera / filetto tricolore ---------- */
.tricolore {
  display: flex;
  height: 3px;
}
.tricolore i { flex: 1; }
.tricolore i:nth-child(1) { background: var(--green-it); }
.tricolore i:nth-child(2) { background: #fff; }
.tricolore i:nth-child(3) { background: var(--red-it); }

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-block;
  white-space: nowrap;
  padding: .95rem 1.9rem;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border-radius: 2px;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

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

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn--yellow:hover { background: #f6ca18; }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: .2rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link-arrow::after {
  content: '→';
  transition: transform .2s var(--ease);
}
.link-arrow:hover { color: var(--red); border-color: var(--red); }
.link-arrow:hover::after { transform: translateX(.35rem); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 97%, var(--ink));
  border-bottom: 1px solid var(--hairline);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 4.75rem;
  transition: height .3s var(--ease);
}
.header.is-compact .header__inner { height: 3.9rem; }

.header__brand { flex-shrink: 0; }
.header__logo {
  width: auto;
  height: 2.6rem;
  transition: height .3s var(--ease);
}
.header.is-compact .header__logo { height: 2.2rem; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__list {
  display: flex;
  gap: 1.9rem;
}
.nav__link {
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .3rem 0;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 0 .5em;
  background-position: 0 78%;
  transition: background-size .2s var(--ease);
}
.nav__link:hover,
.nav__link.is-current { background-size: 100% .5em; }

.nav__extra {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__tel {
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav__tel:hover { color: var(--red); }
.nav__cta { padding: .7rem 1.3rem; }

.header__burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.header__burger span {
  display: block;
  width: 1.65rem;
  height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .3s;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(.31rem) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-.31rem) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 8vh, 6.5rem);
  /* stesso stacco delle sezioni: la strip resta centrata tra hero e "Chi siamo" */
  padding-bottom: var(--section-y);
}
.hero__head { position: relative; }
.hero__stamp {
  position: absolute;
  top: .1rem;
  right: 0;
  width: clamp(4.5rem, 8vw, 7rem);
  height: auto;
}
@media (max-width: 48rem) {
  .hero__stamp { display: none; }
}
.hero__kicker {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}
.line-mask { display: block; overflow: hidden; }
.line { display: inline-block; }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  flex-wrap: wrap;
}

/* ---------- Strip ---------- */
.strip {
  border-block: 1px solid var(--hairline);
  background: var(--paper);
}
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1.2rem;
  row-gap: .4rem;
  padding: 1.2rem 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strip__inner i { color: var(--yellow); font-style: normal; font-size: 1em; line-height: 1; }

/* ---------- Sezioni: impianto comune ---------- */
.section { padding-block: var(--section-y); }
.section--bone { background: var(--bone); }

.section__label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .7rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}
.section__title--wide { max-width: 22ch; margin-bottom: var(--title-gap); }

/* ---------- Chi siamo ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about__body {
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  max-width: 36rem;
}
.about__body strong { font-weight: 600; }

.about__facts {
  margin-top: 2.4rem;
  border-top: 1px solid var(--hairline);
}
.about__facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--hairline);
  counter-increment: fact;
}
.about__facts li::before {
  content: counter(fact, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: .9rem;
  color: var(--red);
  min-width: 1.6rem;
}
.about__facts { counter-reset: fact; }
.about__facts span { font-weight: 500; }

.about__barbu {
  margin-top: 2.4rem;
  height: 3rem;
  width: auto;
}

.about__media {
  position: relative;
  justify-self: center;
  max-width: 26rem;
}
/* il marchio è ancorato alla foto, non alla figura: così non finisce
   mai sopra la didascalia quando questa va a capo */
.about__photo-wrap {
  position: relative;
  display: block;
}
.about__photo {
  border-radius: 50%;
  width: 100%;
  display: block;
}
.about__marchio {
  position: absolute;
  left: -1.4rem;
  bottom: 0;
  width: clamp(4rem, 7vw, 5.5rem);
  height: auto;
}
/* Didascalie delle immagini editoriali: un solo trattamento per tutte
   (prima erano tre - centrata, centrata con altro margine, a destra). */
.about__caption,
.prow__media figcaption,
.band__caption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
}

.about__quote {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.about__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.25;
  text-align: center;
  max-width: 26ch;
  margin-inline: auto;
}

/* ---------- Prodotti: righe alternate ---------- */
.prow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--hairline);
}
.prow:last-of-type { border-bottom: 1px solid var(--hairline); }

.prow--flip .prow__text { order: 2; }
.prow--flip .prow__media { order: 1; }

.prow__index {
  position: absolute;
  top: 1.6rem;
  right: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--hairline);
  user-select: none;
}
.prow--flip .prow__index { right: auto; left: 0; }

.prow__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.prow__desc {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 30rem;
  margin-bottom: 1.1rem;
}
.prow__meta {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.7rem;
}
.prow__media { margin: 0; }
.prow__media img {
  mix-blend-mode: multiply;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}
.prow__media img[src*="scooter-nonno"] { max-width: 19rem; }

/* ---------- Banda fotografica ---------- */
.band { margin: 0; }
.band__wrap {
  height: clamp(18rem, 55vh, 34rem);
  height: clamp(18rem, 55svh, 34rem);
  overflow: clip;
}
.band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- Catalogo ---------- */
.catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.catalog__note {
  color: var(--ink-soft);
  max-width: 24rem;
  font-size: .95rem;
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: var(--title-gap) 0 clamp(2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1rem;
}
.filter {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .6rem .1rem .45rem;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.filter sup {
  font-size: .7em;
  margin-left: .2rem;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.filter:hover { color: var(--ink); }
.filter.is-active {
  color: var(--ink);
  border-color: var(--yellow);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.4rem);
}
.card { display: block; }
.card.is-hidden { display: none; }
.card__btn {
  display: block;
  width: 100%;
  text-align: left;
}
.card figure {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s var(--ease);
}
/* nessun sollevamento: la foto si avvicina appena, non fluttua */
.card__btn:hover img { transform: scale(1.02); }
.card figcaption {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  border-top: 1px solid var(--hairline);
  padding-top: .7rem;
}
.card__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  transition: color .2s var(--ease);
}
.card__btn:hover .card__name { color: var(--red); }
.card__cat {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* L'animazione va sugli elementi foglia: animare il li creerebbe uno
   stacking context che isola il multiply delle foto (riquadri bianchi). */
.card.is-entering img,
.card.is-entering figcaption {
  animation: cardIn .28s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(.4rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Custom ---------- */
.custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.custom__media img {
  mix-blend-mode: multiply;
  width: 100%;
}
.custom__desc {
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 28rem;
  margin-bottom: 1.8rem;
}
.custom__desc em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

/* ---------- Servizi ---------- */
.services__list {
  border-top: 1px solid var(--hairline);
  margin-top: var(--title-gap);
}
.srow {
  display: grid;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.5rem;
  align-items: baseline;
  /* niente rientro: testo e filetti restano sulla colonna della pagina */
  padding-block: clamp(1.3rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--hairline);
  transition: background-color .2s var(--ease);
}
.srow:hover { background: var(--bone); }
.srow__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--red);
}
.srow__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.2;
}
.srow__note {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}
.cta .tricolore {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.cta__inner { text-align: center; }
.cta__title {
  font-family: var(--serif);
  font-weight: 500;
  /* il minimo resta sotto l'H1 dell'hero, altrimenti sui telefoni piccoli
     il titolo della CTA diventava più grande del titolo di pagina */
  font-size: clamp(2.1rem, 5.6vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 20ch;
  margin-inline: auto;
}
.cta__title em {
  font-style: italic;
  color: var(--yellow);
}
.cta__sub {
  margin-top: 1.4rem;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: 1.05rem;
}
.cta__actions {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.cta__tel {
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  padding-bottom: .2rem;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cta__tel:hover { color: var(--yellow); border-color: var(--yellow); }

/* ---------- Contatti ---------- */
.contact { position: relative; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__list { margin-top: var(--title-gap); }
.contact__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
}
.contact__item:first-child { border-top: 1px solid var(--hairline); }
.contact__item dt {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: baseline;
  padding-top: .2rem;
}
.contact__item dd {
  font-size: 1rem;
  line-height: 1.6;
}
.contact__item a:hover { color: var(--red); }

/* Form */
.form {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
}
.form__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.form__note {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1.7rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: .45rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: .8rem .95rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.form.was-validated input:invalid,
.form.was-validated textarea:invalid {
  border-color: var(--red);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  cursor: pointer;
  margin: .4rem 0 1.6rem;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.check__box {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.check__box::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--paper);
  clip-path: polygon(14% 46%, 40% 72%, 86% 18%, 96% 30%, 40% 92%, 4% 58%);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.check input:checked + .check__box {
  background: var(--ink);
  border-color: var(--ink);
}
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.form.was-validated .check input:invalid + .check__box { border-color: var(--red); }
.check__label {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.form__submit { width: 100%; }
.form__success {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--bone);
  border-left: 3px solid var(--green-it);
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
}
.footer .tricolore { height: 3px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__brand img {
  width: min(15rem, 100%);
  height: auto;
}
.footer__tagline {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 18rem;
}
.footer__col h4 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.footer__col li { margin-bottom: .55rem; font-size: .95rem; }
.footer__col a:hover { color: var(--red); }
.footer__contacts li { line-height: 1.5; }

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
  border-top: 1px solid var(--hairline);
  font-size: .85rem;
  color: var(--ink-soft);
}
.footer__legal a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 3vw, 2.5rem);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--dark) 82%, black);
  animation: fadeIn .2s var(--ease);
}
.lightbox__panel {
  position: relative;
  background: var(--paper);
  width: min(56rem, 100%);
  max-height: min(88vh, 88svh);
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  animation: panelIn .25s var(--ease);
  margin: 0;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(.5rem); }
}
.lightbox__stage {
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: min(62vh, 62svh);
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.lightbox__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  margin-top: 1.2rem;
  padding-top: 1rem;
}
.lightbox__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
}
.lightbox__cat {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lightbox__close {
  position: absolute;
  top: .35rem;
  right: .5rem;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.lightbox__close:hover { color: var(--red); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  line-height: 1;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__nav:hover { color: var(--red); border-color: var(--red); }
.lightbox__nav--prev { left: -.9rem; }
.lightbox__nav--next { right: -.9rem; }

/* ---------- Animazioni di reveal ---------- */
/* Lo stato nascosto vale solo con JS attivo (html.js): senza script
   la pagina resta completamente leggibile. */
/* Lo scorrimento non deve essere uno spettacolo: spostamento corto e
   durata breve, quel tanto che basta a dare peso al contenuto. */
.js .reveal {
  opacity: 0;
  transform: translateY(.5rem);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-load {
  opacity: 0;
  transform: translateY(.5rem);
  animation: loadIn .5s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes loadIn {
  to { opacity: 1; transform: none; }
}
.reveal-line {
  display: inline-block;
  transform: translateY(110%);
  animation: lineIn .6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes lineIn {
  to { transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 72rem) {
  /* La riga a punti dei servizi sta su un rigo solo sopra i ~1120px:
     sotto andrebbe a capo lasciando i separatori appesi a fine riga.
     Spariscono i punti e la stretta forza una spezzatura 3 + 2 invece
     di lasciare una voce orfana in fondo. */
  .strip__inner {
    max-width: 40rem;
    column-gap: 2.4rem;
    row-gap: .6rem;
  }
  .strip__inner i { display: none; }

  /* Menu mobile */
  .header__burger { display: flex; }
  .header__nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    padding: var(--gutter);
    padding-top: 6rem;
    padding-bottom: 2.5rem;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .header__nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .35s var(--ease);
  }
  .nav__list {
    flex-direction: column;
    gap: 1.6rem;
  }
  .nav__link {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 500;
    opacity: 0;
    transform: translateY(.8rem);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
    transition-delay: calc(.08s + var(--i, 0) * .06s);
  }
  .header__nav.is-open .nav__link {
    opacity: 1;
    transform: none;
  }
  .nav__extra {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    opacity: 0;
    transition: opacity .5s var(--ease) .4s;
  }
  .header__nav.is-open .nav__extra { opacity: 1; }
  .nav__tel { font-size: 1.2rem; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 20rem; }

  .prow {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .prow--flip .prow__text { order: 1; }
  .prow--flip .prow__media { order: 2; }
  .prow__index { top: 1.2rem; right: 0; left: auto; }
  .prow--flip .prow__index { left: auto; right: 0; }
  /* a una colonna il titolo occupa tutta la riga: lascia libero
     l'angolo dove sta la lettera */
  .prow__title { padding-right: 3.6rem; }
  .prow__media img { max-width: 26rem; }
  .prow__media img[src*="scooter-nonno"] { max-width: 15rem; }

  .custom__grid { grid-template-columns: 1fr; }
  .custom__text { order: 1; }
  .custom__media { order: 2; }

  .contact__grid { grid-template-columns: 1fr; }

  .lightbox__nav--prev { left: .4rem; }
  .lightbox__nav--next { right: .4rem; }
}

@media (max-width: 64rem) {
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srow { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .srow__note { grid-column: 2; }
}

@media (max-width: 40rem) {
  .hero__title {
    max-width: none;
    /* sotto i ~370px la riga più lunga andrebbe a capo, rompendo
       la composizione a tre righe della reveal */
    font-size: clamp(2rem, 8.7vw, 3.4rem);
  }
  .about__marchio { left: 0; }

  .catalog__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .card img { aspect-ratio: auto; max-height: 16rem; margin-inline: auto; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .contact__item { grid-template-columns: 1fr; gap: .2rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__legal { justify-content: center; text-align: center; }

  /* su telefono ogni voce sta su una riga: elenco, non riga a capo */
  .strip__inner {
    flex-direction: column;
    row-gap: .55rem;
    padding-block: 1.5rem;
    font-size: .8rem;
  }
}

/* Telefoni in landscape: altezze ridotte */
@media (max-height: 35rem) and (orientation: landscape) {
  .hero { padding-top: 2rem; }
  .hero__title { font-size: clamp(2rem, 6vh, 3rem); }
  .band__wrap { height: 14rem; }
  .header__nav {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 5rem;
  }
  .nav__link { font-size: 1.4rem; }
  .nav__list { gap: .9rem; }
  .lightbox__img { max-height: 48vh; }
}

/* ---------- Riduzione del movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .reveal,
  .reveal-load,
  .reveal-line {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .card.is-entering img,
  .card.is-entering figcaption { animation: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
