/* LS Private Driver — "The place carries it" (tasteskill, seed 615158955), night version.
   One evening in Turin from top to bottom: near-black blue ground, ivory ink, the logo's champagne
   as the one accent. Newsreader for titles, Work Sans for running text. Square corners everywhere. */

/* Typefaces served by the site itself (SIL Open Font Licence), so no visitor data goes to a font service.
   Variable files: Newsreader weights 300-500 with optical sizes, Work Sans 400-500. */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/assets/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/assets/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('/assets/fonts/worksans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('/assets/fonts/worksans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070a12;
  --surface: #0d1322;
  --field-2: #1f2b4d;
  --ink: #eeeeeb;
  --muted: #b2b8c6;
  --accent: #c9a46a;
  --accent-hover: #d8b67f;
  --accent-ink: #0a0e18;
  --paper: #f3f3f1;
  --paper-ink: #1f2b4d;
  --paper-muted: #586079;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --step-head: clamp(2.25rem, 1rem + 4.4vw, 5.5rem);
  --step-display: clamp(5rem, 1rem + 15vw, 17rem);

  --m: clamp(16px, 2.2vw, 32px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --rise: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: var(--m); top: -80px; z-index: 100; padding: 12px 16px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Logo: SVG shapes used as a mask, so it takes any colour ---------- */

.logo { display: block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logo-wide { --src: url('/assets/logo/logo-wide.svg?v=c6ba48b3'); aspect-ratio: 1164.8 / 182.5; width: 100%; }
.logo-stack { --src: url('/assets/logo/logo-stack.svg?v=d6cfacce'); aspect-ratio: 481.5 / 352.1; width: 100%; display: none; }
.logo-mark { --src: url('/assets/logo/logo-mark.svg?v=d4995132'); aspect-ratio: 114.6 / 104; height: 34px; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-small) / 1.2 var(--sans); text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-big { min-height: 56px; padding: 14px 28px; font-size: var(--step-body); }
.btn-full { width: 100%; }
.text-link {
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; transition: text-underline-offset 0.25s var(--ease), color 0.25s;
}
.text-link:hover { text-underline-offset: 0.34em; color: var(--accent); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--m);
  color: var(--ink); transition: background-color 0.35s var(--ease);
}
.nav.is-solid { background: var(--bg); }
.nav-mark { color: var(--accent); display: block; }
.nav-links { display: flex; gap: 24px; margin-right: auto; font-size: var(--step-small); }
.nav-links a, .nav-lang { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-lang:hover { color: var(--accent); }
.nav-end { display: flex; align-items: center; gap: 20px; font-size: var(--step-small); }
.nav-menu, .nav-sheet { display: none; }

/* ---------- Hero ---------- */

.hero { position: relative; height: 240svh; background: var(--bg); }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: auto 0 0; height: 34%;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.85), rgba(7, 10, 18, 0)); /* taste-skill-ignore: neutral scrim over the photo, under the name only */
}
.hero-text { position: absolute; left: var(--m); top: calc(var(--nav-h) + 3svh); max-width: 30ch; }
.hero-text h1 { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.hero-text p { margin-top: 8px; font-size: var(--step-small); line-height: 1.5; color: var(--muted); max-width: 44ch; }
.hero-name { position: absolute; left: var(--m); right: var(--m); bottom: 20px; color: var(--accent); }

/* ---------- Dove ti porto: the section holds still and the services pass sideways ---------- */

.services { position: relative; height: 650svh; }
.services-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.services-track {
  display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 var(--m);
  height: calc(100svh - var(--nav-h) - 40px); margin-top: var(--nav-h);
  will-change: transform;
}
.srv-intro {
  flex: 0 0 min(560px, 44vw); display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding-right: 32px;
}
.srv-intro h2 { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; font-weight: 300; }
.srv-lead { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.srv-hint { font-size: var(--step-small); color: var(--muted); }
.srv { position: relative; flex: 0 0 78vw; overflow: hidden; background: var(--surface); }
.srv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.srv:hover img { transform: scale(1.03); }
.srv::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.88) 0%, rgba(7, 10, 18, 0.35) 34%, rgba(7, 10, 18, 0) 58%); /* taste-skill-ignore: neutral scrim under the caption only */
}
.srv-text { position: absolute; z-index: 1; left: 36px; bottom: 32px; right: 36px; max-width: 34ch; }
.srv h3 { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; font-weight: 300; }
.srv ul { list-style: none; margin: 14px 0 16px; padding: 0; font-size: var(--step-body); line-height: 1.55; }

/* ---------- Luca: magazine profile, the portrait holds still while the text scrolls ---------- */

.about {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: clamp(80px, 10vw, 140px) var(--m); background: var(--bg);
}
.about-photo {
  grid-column: 1 / 6; margin: 0; align-self: start;
  position: sticky; top: calc(var(--nav-h) + 16px); height: calc(100svh - var(--nav-h) - 32px);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.about-copy { grid-column: 7 / 12; padding: 14svh 0 18svh; display: flex; flex-direction: column; gap: 28px; }
.about-copy h2 { font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; font-weight: 300; }
.about-lead { font-family: var(--serif); font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.about-copy > p:not(.about-lead):not(.about-line) { max-width: 52ch; }
.about-line { font-size: var(--step-small); color: var(--muted); }
.about-sign { display: flex; align-items: center; gap: 18px; margin-top: 12px; color: var(--accent); }
.about-sign .logo-mark { height: 64px; }
.about-sign p { font-size: var(--step-small); color: var(--muted); }

/* ---------- Come si prenota ---------- */

.verbs { background: var(--bg); }
.verb { position: relative; height: 100svh; overflow: clip; }
.verb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } /* a backdrop: a tap never opens the player */
.verb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, rgba(7, 10, 18, 0.85) 0%, rgba(7, 10, 18, 0.3) 40%, rgba(7, 10, 18, 0.2) 100%); /* taste-skill-ignore: neutral scrim, darkest under the sentence */
}
.verb-word-wrap { position: sticky; top: 25svh; height: 50svh; z-index: 1; display: grid; place-items: center; }
.verb-word { font-size: var(--step-display); font-weight: 300; line-height: 0.9; letter-spacing: -0.05em; }
/* the verb shows only while its panel is well inside the screen, so it never slides under the bars */
html.js .verb-word { opacity: 0; transition: opacity 0.6s var(--ease); }
html.js .verb.on .verb-word { opacity: 1; }
.verb-line { position: absolute; z-index: 1; left: var(--m); bottom: calc(var(--m) + 8px); max-width: 38ch; font-size: var(--step-lead); font-family: var(--serif); line-height: 1.35; }

/* ---------- Domande ---------- */

.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--m); background: var(--surface); }
.faq-col { grid-column: 1 / 6; padding: clamp(110px, 12vw, 180px) 0; }
.faq h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.faq-facts { margin: 28px 0 0; display: grid; gap: 12px; }
.faq-facts dt { font-size: var(--step-small); color: var(--muted); }
.faq-facts dd { margin: 2px 0 0; font-size: var(--step-body); line-height: 1.45; }
.faq-list { margin-top: 44px; display: grid; gap: 28px; }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative; padding-right: 36px;
  font: 500 var(--step-body) / 1.4 var(--sans); transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  /* chevron from two 2px strokes */
  content: ''; position: absolute; right: 6px; top: 0.45em; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); top: 0.65em; }
.faq-item p { margin-top: 10px; font-size: var(--step-body); max-width: 56ch; }
.faq-actions { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.faq-photos { grid-column: 7 / 13; position: relative; margin-bottom: 80px; }
.faq-tall { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq-square { position: absolute; width: 36%; aspect-ratio: 1; object-fit: cover; left: -40px; bottom: -40px; }

/* ---------- Prenota: la mappa della scia di luce accanto al biglietto ---------- */

.contact { position: relative; padding: clamp(80px, 10vw, 140px) var(--m); overflow-x: clip; } /* the stamp lands from larger than the card */
.book { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1400px; margin: 0 auto; }
.map-scene { perspective: 1400px; perspective-origin: 50% 30%; height: clamp(440px, 46vw, 700px); display: grid; place-items: center; overflow: hidden; }
.map3d { width: min(100%, 520px); height: auto; transform: rotateX(40deg) rotateZ(-10deg) scale(0.94); transform-origin: 50% 40%; overflow: visible; }
.map3d .reg { fill: rgba(31, 43, 77, 0.55); stroke: rgba(201, 164, 106, 0.3); stroke-width: 2; }
.map3d .reg.home { fill: rgba(31, 43, 77, 0.95); }
.map3d .dot { fill: var(--ink); }
.map3d .dot.base { fill: var(--accent); }
.map3d .ring { fill: none; stroke: var(--accent); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: map-ring 2.4s var(--ease) infinite; }
@keyframes map-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
.map3d text { fill: var(--ink); font: 400 30px var(--sans); }
.map3d text.base { fill: var(--accent); font: 500 38px var(--serif); }
.map3d .route { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(201, 164, 106, 0.9)); } /* taste-skill-ignore: the light trail is the subject, its glow is the light itself */
.map3d .car { fill: #fff; filter: drop-shadow(0 0 12px #fff); } /* taste-skill-ignore: the car's headlights on the night map */
.map-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.map-chips button {
  min-height: 44px; padding: 8px 14px; background: rgba(238, 238, 235, 0.09); color: var(--ink); border: 0;
  font: 400 var(--step-small) var(--sans); cursor: pointer;
  transition: transform 160ms var(--ease), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.map-chips button:hover { background: rgba(238, 238, 235, 0.16); }
.map-chips button:active { transform: scale(0.97); }
.map-chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.map-out { margin-top: 20px; min-height: 2.6em; font: 400 var(--step-lead) / 1.3 var(--serif); }

.ticket { position: relative; padding: 32px; background: var(--paper); color: var(--paper-ink); }
.ticket h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.ticket-intro { margin-top: 10px; font-size: var(--step-small); color: var(--paper-muted); }
.ticket-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ticket-grid .f-wide { grid-column: 1 / -1; }
.ticket label span { display: block; font-size: var(--step-small); color: var(--paper-muted); margin-bottom: 4px; }
.ticket input, .ticket select {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c8ccd6; border-radius: 0;
  background: #fff; color: var(--paper-ink); font: 400 var(--step-small) / 1.3 var(--sans);
  color-scheme: light; transition: border-color 0.2s;
}
.ticket input:hover, .ticket select:hover { border-color: var(--paper-ink); }
.ticket-label { margin-top: 20px; font-size: var(--step-small); color: var(--paper-muted); }
.ticket-msg { display: block; margin-top: 6px; padding: 14px 16px; background: #e6e7ea; font-size: var(--step-small); line-height: 1.5; white-space: pre-line; }
.ticket-send { margin-top: 20px; }
.ticket-or { margin-top: 14px; font-size: var(--step-small); color: var(--paper-muted); }
.ticket-or a { color: var(--paper-ink); font-weight: 500; }
.ticket-privacy { margin-top: 10px; font-size: var(--step-small); line-height: 1.5; color: var(--paper-muted); }
.ticket-privacy a { color: var(--paper-ink); }

/* Il timbro LS quando il biglietto parte */
.ts-label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.ts-label.swap { filter: blur(3px); opacity: 0.4; }
.ticket-stamp {
  position: absolute; right: 22px; top: 22px; width: 104px; height: 104px; border-radius: 50%;
  border: 3px solid var(--accent); color: var(--accent); display: grid; place-items: center;
  opacity: 0; transform: rotate(-14deg) scale(1.7); pointer-events: none;
}
.ticket-stamp::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid var(--accent); } /* taste-skill-ignore: the inner ring of a rubber stamp */
.ticket-stamp .logo-mark { height: 36px; }
.ticket.stamped .ticket-stamp { opacity: 1; transform: rotate(-14deg) scale(1); transition: opacity 120ms ease, transform 380ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.ticket.hit { animation: ticket-hit 260ms var(--ease); }
@keyframes ticket-hit { 30% { transform: translateY(3px) scale(0.995); } 100% { transform: none; } }

/* ---------- Footer: the name returns, full width ---------- */

main { position: relative; z-index: 1; background: var(--bg); }
.footer {
  position: sticky; bottom: 0; z-index: 0; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 40px var(--m) 20px; background: var(--field-2); color: var(--ink);
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--step-small); line-height: 1.6; color: var(--muted); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-head { color: var(--ink); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; transition: color 0.2s; }
.footer-cols a:hover { color: var(--accent); }
.footer-name { grid-row: 3; color: var(--accent); margin-bottom: 20px; }
.footer-legal { grid-row: 4; font-size: var(--step-small); color: var(--muted); }
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Privacy e cookie: a plain reading page ---------- */

.legal-page { max-width: calc(68ch + 2 * var(--m)); margin: 0 auto; padding: calc(var(--nav-h) + 64px) var(--m) 96px; }
.legal-page h1 { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-weight: 300; }
.legal-updated { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }
.legal-page h2 { margin-top: 52px; font-size: var(--step-lead); line-height: 1.25; }
.legal-page h2 + p, .legal-page h2 + ul { margin-top: 14px; }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page p + p, .legal-page ul + p, .legal-page p + ul { margin-top: 14px; }
.legal-page ul { margin-bottom: 0; padding-left: 1.2em; }
.legal-page li + li { margin-top: 8px; }
.legal-page strong { font-weight: 500; }
.legal-page a { color: var(--accent); }
.legal-back { margin-top: 64px; }
.legal-foot { margin-top: 24px; font-size: var(--step-small); color: var(--muted); }

.dock { display: none; }

/* ---------- Prova "dalla notte all'alba": main.js schiarisce il fondo mentre si scorre ---------- */

html.alba body, html.alba main { background: var(--bg-live, var(--bg)); }
html.alba .nav.is-solid { background: var(--bg-live, var(--bg)); }
html.alba .about, html.alba .faq, html.alba .hero, html.alba .verbs { background: transparent; }
.srv[hidden] { display: none; }

/* ---------- Entrances ---------- */

html.js .rise { opacity: 0; translate: 0 var(--rise); transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); transition-delay: var(--d, 0ms); }
html.js .rise.in { opacity: 1; translate: 0 0; }

/* Without the script (or with less motion) the services simply stack */
html:not(.js) .services, html.calm .services { height: auto; }
html:not(.js) .services-stage, html.calm .services-stage { position: static; height: auto; display: block; }
html:not(.js) .services-track, html.calm .services-track { flex-direction: column; height: auto; padding: 120px var(--m); }
html:not(.js) .srv, html.calm .srv { flex: none; aspect-ratio: 16 / 9; }

/* ---------- Phone ---------- */

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .nav-end .btn { display: none; }
  .nav-menu {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none;
    color: inherit; font: 500 var(--step-small) var(--sans); cursor: pointer;
  }
  .nav-sheet {
    position: fixed; z-index: 39; top: var(--nav-h); left: 0; right: 0; display: grid; padding: 8px var(--m) 20px;
    background: var(--bg-live, var(--bg)); transform-origin: top;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }
  .nav-sheet[hidden] { display: none; }
  .nav-sheet.is-closed { opacity: 0; transform: translateY(-8px); }
  .nav-sheet a { padding: 14px 0; font: 400 1.6rem/1.1 var(--serif); text-decoration: none; }
  .nav.menu-open { background: var(--bg-live, var(--bg)); }

  /* phone: the whole car stands at the foot of the frame (bottom-aligned, only the sky is cut);
     the name and the title sit in the sky above it, nothing lies on the car */
  .hero { height: 170svh; --logo-w: min(64vw, 300px, (100svh - 520px) * 1.37); } /* shorter phones get a smaller name */
  .hero-poster { object-position: 50% 100%; }
  .hero-scrim { display: none; }
  .hero-name { top: calc(var(--nav-h) + 1.5svh); bottom: auto; left: 50%; right: auto; width: var(--logo-w); translate: -50% 0; }
  .hero-name .logo-wide { display: none; }
  .hero-name .logo-stack { display: block; }
  .hero-text { top: calc(var(--nav-h) + 1.5svh + var(--logo-w) * 0.731 + 18px); left: var(--m); right: var(--m); max-width: none; text-align: center; }
  .hero-text h1 { font-size: 1.35rem; }
  .hero-text p { margin-inline: auto; max-width: 34ch; }

  /* phone: the services pass sideways as on the computer; each card is the photo with its text below */
  .services { height: 480svh; }
  .services-track { gap: 12px; height: calc(100svh - var(--nav-h) - 24px); align-items: center; }
  .srv-intro { flex: 0 0 84vw; padding-right: 8px; gap: 16px; }
  .srv { flex: 0 0 84vw; display: flex; flex-direction: column; height: calc(63vw + 270px); max-height: 100%; } /* every card as tall as the one with the longest text */
  .srv img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .srv::after { content: none; }
  .srv-text { position: static; max-width: none; padding: 18px 18px 22px; }
  html:not(.js) .srv, html.calm .srv { aspect-ratio: auto; }

  .srv h3 { font-size: 1.875rem; }
  .srv ul { font-size: 1rem; }

  /* phone: a small portrait beside the name, like a magazine byline; the text follows full width */
  .about { grid-template-columns: 38% 1fr; column-gap: 16px; align-items: end; padding-top: 72px; }
  .about-photo { position: static; grid-column: 1; grid-row: 1 / 3; height: auto; }
  .about-photo img { height: auto; aspect-ratio: 4 / 5; }
  .about-copy { display: contents; }
  .about-copy h2 { grid-column: 2; grid-row: 1; font-size: 2.25rem; }
  .about-copy .about-line { grid-column: 2; grid-row: 2; align-self: start; margin-top: 10px; }
  .about-copy > :not(h2):not(.about-line) { grid-column: 1 / -1; margin-top: 22px; }
  .about-copy > .about-lead { margin-top: 32px; }

  .verb { height: 82svh; }
  .verb-word { font-size: 24vw; }
  .verb-line { left: var(--m); right: var(--m); bottom: calc(56px + var(--m) + env(safe-area-inset-bottom)); max-width: none; font-size: 1.2rem; }

  .faq { display: flex; flex-direction: column-reverse; padding: 0 var(--m) 80px; }
  .faq-col { padding: 48px 0 0; }
  .faq-photos { margin: 0 calc(-1 * var(--m)) 40px; }
  .faq-tall { aspect-ratio: 4 / 5; }
  .faq-square { width: 38%; left: auto; right: var(--m); bottom: -40px; }
  .faq-actions .btn { width: 100%; }


  .contact { padding: 64px var(--m) 96px; }
  /* phone: the map fills the width, centred and only gently tilted */
  .book { grid-template-columns: minmax(0, 1fr); }
  .map-scene { height: auto; aspect-ratio: 1000 / 1180; perspective: 1200px; perspective-origin: 50% 20%; }
  .map3d { width: 88%; transform: rotateX(20deg); transform-origin: 50% 50%; }
  .map3d text { font-size: 40px; }
  .map3d text.base { font-size: 50px; }
  .ticket { padding: 24px 20px; }
  .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* day and time side by side, people below */
  .ticket input, .ticket select { font-size: 16px; } /* sotto i 16px iPhone ingrandisce la pagina quando tocchi il campo */
  .ticket-stamp { width: 84px; height: 84px; right: 14px; top: 14px; }
  .ticket-stamp .logo-mark { height: 28px; }


  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-name { margin: 20svh 0 16px; }
  .footer-name .logo-wide { display: none; }
  .footer-name .logo-stack { display: block; }
  .footer { padding-bottom: calc(20px + 64px + env(safe-area-inset-bottom)); }
  .legal-page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: calc(64px + 56px + env(safe-area-inset-bottom)); }

  .dock {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom); background: var(--field-2);
  }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-weight: 500; text-decoration: none; color: var(--ink); }
  .dock a:first-child { background: var(--accent); color: var(--accent-ink); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .rise { opacity: 1; translate: 0 0; transition: none; }
  html.js .verb-word { opacity: 1; transition: none; }
  .srv img { transition: none; }
  .btn:active { transform: none; }
}
