/* Coming soon page in the v2 «Notte a Verona» style (ncc-verona-2: tokens.css, base.css, 01-Header,
   02-Hero, 11-Footer). Ink page, ivory text, amber only on the pictograms, Archivo with wide capitals. */
@font-face {
  font-family: Archivo; src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800; font-stretch: 100% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo fallback"; src: local("Arial");
  font-weight: 400 800; size-adjust: 102.2878%; ascent-override: 85.8362%; descent-override: 20.5303%; line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --c-pannello: #0a0d10;
  --c-cemento: #0c1013;
  --c-bianco: #141a1f;
  --c-avorio: #ebe5da;
  --c-nebbia: #9da5ab;
  --c-grafite-2: #1d252c;
  --c-linea: #242c33;
  --c-giallo: #e3a75b;
  --ink: #0c1013;
  --font: Archivo, "Archivo fallback", Arial, sans-serif;
  --fs-display: clamp(1.625rem, 1rem + 2.6vw, 2.25rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-testo: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-piccolo: 0.875rem;
  --fs-etichetta: 0.8125rem;
  --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem; --s-16: 4rem;
  --r-2: 4px;
  --gutter: 1rem;
  --content-max: 75rem;
  --header-h: 56px;
}
@media (min-width: 400px) { :root { --gutter: 1.25rem; } }
@media (min-width: 768px) { :root { --gutter: 2rem; } }
@media (min-width: 1024px) { :root { --gutter: 3rem; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--c-cemento); color: var(--c-avorio);
  font-family: var(--font); font-size: var(--fs-testo); line-height: 1.5;
  font-variation-settings: "wdth" 100; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, p, ul { margin: 0; }
:focus-visible { outline: 3px solid var(--c-giallo); outline-offset: 2px; }
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon { display: inline-block; flex: none; vertical-align: middle; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--c-pannello); }
.hdr-in { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { font-weight: 700; font-variation-settings: "wdth" 112; font-size: 0.9375rem; white-space: nowrap; }
.brand span { font-weight: 500; color: var(--c-nebbia); }
.lang { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-piccolo); font-weight: 500; }
.lang [aria-current] { font-weight: 650; }
.lang a { color: var(--c-nebbia); text-decoration: none; min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.lang a:hover { color: var(--c-avorio); text-decoration: underline; }
@media (min-width: 1024px) { .brand { font-size: 1.125rem; } }

/* Hero */
.hero { flex: 1; background: var(--c-cemento); }
.hero-panel { background: var(--c-pannello); }
.hero-panel-in { padding: var(--s-6) var(--gutter) var(--s-8); max-width: 40rem; }
.badge {
  display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4);
  padding: 6px 12px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px rgba(235, 229, 218, 0.22);
  font-size: var(--fs-etichetta); font-weight: 600; font-variation-settings: "wdth" 125;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-giallo); }
.hero-title {
  font-size: var(--fs-display); font-weight: 600; font-variation-settings: "wdth" 125;
  line-height: 1.1; letter-spacing: 0.035em; text-transform: uppercase; max-width: 16ch;
}
.hero-sub { margin-top: var(--s-3); color: var(--c-nebbia); font-size: var(--fs-lead); line-height: 1.5; max-width: 46ch; }

.hero-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-grafite-2); }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 74%;
  filter: brightness(0.92) saturate(0.9) contrast(1.04);
}

/* Facts: amber signage pictograms, a card over the photo's edge on phones, a bar on the asphalt on computers */
.facts-wrap--desktop { display: none; }
.facts-wrap--mobile { margin-top: -28px; position: relative; padding-bottom: var(--s-8); }
.facts {
  list-style: none; padding: 0; background: var(--c-bianco); border-radius: var(--r-2);
  box-shadow: inset 0 0 0 1px var(--c-linea);
}
.facts li { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; font-weight: 500; line-height: 1.3; }
.facts li + li { border-top: 1px solid var(--c-linea); }
.picto {
  width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center;
  background: var(--c-giallo); color: var(--ink); border-radius: 50%;
}

@media (min-width: 1024px) {
  .hero { position: relative; background: var(--c-pannello); }
  .hero-panel { position: relative; z-index: 1; background: transparent; }
  .hero-panel-in {
    display: flex; flex-direction: column; max-width: none;
    min-height: min(900px, calc(100svh - var(--header-h)));
    padding: var(--s-16) max(var(--gutter), calc((100vw - var(--content-max)) / 2)) var(--s-6);
  }
  .hero-title { max-width: 24ch; font-size: clamp(2rem, 0.9rem + 1.7vw, 2.5rem); }
  .hero-sub { max-width: 60ch; }

  /* the stage: the centre of the car (41 % across, 69 % down the frame) in the middle of the screen */
  .hero-photo { position: absolute; inset: 0; aspect-ratio: auto; container-type: size; background: var(--c-pannello); }
  .hero-photo img {
    position: absolute; left: 50%; top: 55%; max-width: none; height: auto; object-fit: fill;
    width: max(105cqw, 184cqh);
    transform: translate(-41%, -69%);
    filter: brightness(0.98) saturate(0.9) contrast(1.04);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(0deg, transparent 0, #000 8%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(0deg, transparent 0, #000 8%);
    mask-composite: intersect;
  }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, #0a0d10 0, rgba(10, 13, 16, 0.55) 7%, rgba(10, 13, 16, 0) 16%),
      linear-gradient(270deg, rgba(10, 13, 16, 0.6) 0, rgba(10, 13, 16, 0) 12%),
      linear-gradient(180deg, rgba(10, 13, 16, 0.9) 0, rgba(10, 13, 16, 0.72) 24%, rgba(10, 13, 16, 0.25) 42%, rgba(10, 13, 16, 0) 56%),
      linear-gradient(0deg, rgba(10, 13, 16, 0.85) 0, rgba(10, 13, 16, 0) 22%);
  }

  .facts-wrap--mobile { display: none; }
  .facts-wrap--desktop { display: block; margin-top: auto; }
  .facts {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(10, 13, 16, 0.78); box-shadow: inset 0 0 0 1px rgba(235, 229, 218, 0.14);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .facts li { padding: 14px 18px; }
  .facts li + li { border-top: 0; border-left: 1px solid rgba(235, 229, 218, 0.14); }
}

/* Footer */
.ftr { background: var(--c-pannello); color: var(--c-nebbia); border-top: 1px solid var(--c-grafite-2); padding-block: var(--s-8); font-size: var(--fs-piccolo); }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6); }
.ftr-brand { color: var(--c-avorio); font-weight: 700; font-variation-settings: "wdth" 112; font-size: 1rem; }
.ftr-brand span { color: var(--c-nebbia); font-weight: 500; }
