/* Proposta E «il club in una pagina» — the look (Triips grammar, our colours). */
@font-face {
  font-family: "Inter";
  src: url("./comune/font/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* ---------------------------------------------------------------- tokens: one set of colours, «tramonto»
   (14 Nov 2026: the owner chose it after thirteen other palettes; the second theme «laguna» and the chooser are gone) */
:root, [data-tema="tramonto"] {
  --pagina: #FBF7F1;
  --carta: #FFFFFF;
  --inchiostro: #1C2333;
  --inchiostro-2: #5A6272;
  --barra: #14324A;
  --barra-testo: #FFD979;
  --azione: #C23A17;          /* brief #D9431E darkened: 5.0:1 on the page, 5.4:1 under white text */
  --azione-scura: #A3300F;
  --azione-vivo: #D9431E;     /* large text, map routes, decorations only */
  --azione-tenue: #FBE3D9;
  --azione-testo: #FFFFFF;
  --risalto: #FFD45C;
  --risalto-testo: #1C2333;
  --cielo-1: #FFE3C2;
  --cielo-2: #FFD3DC;
  --cielo-3: #D6E9FF;
  --tinta-1: #DCEBFA;
  --tinta-2: #FFE2A8;
  --tinta-3: #14324A;
  --tinta-3-testo: #FFF3D6;
  --mare: #D9ECFB;
  --terra: #BFE3B4;
  --costa: #A6D39A;
  --rotta: #D9431E;
  --bordo: #ECE6DC;
  --bordo-forte: #D8D0C4;
  --nuvola: #FFFFFF;
  --ombra-rgb: 28, 35, 51;
}
:root {
  --ombra-p: 0 .5px 1px rgba(var(--ombra-rgb), .06), 0 3px 10px rgba(var(--ombra-rgb), .08);
  --ombra-g: 0 12px 32px rgba(var(--ombra-rgb), .07), 0 2px 8px rgba(var(--ombra-rgb), .04);
  --ombra-su: 0 2px 4px rgba(var(--ombra-rgb), .06), 0 14px 30px rgba(var(--ombra-rgb), .14);
  --molla: cubic-bezier(.22, 1, .36, 1);
  --foglio: cubic-bezier(.32, .72, 0, 1);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--pagina); color: var(--inchiostro);
  font-family: var(--font); font-size: 1rem; line-height: 1.5; font-weight: 450;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.12; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
a { color: var(--azione); }
:focus-visible { outline: 3px solid var(--azione); outline-offset: 3px; }
.simboli { position: absolute; width: 0; height: 0; overflow: hidden; }
.solo-lettori { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icona { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.accento { color: var(--azione); }
h1 .accento { color: var(--azione-vivo); }
[hidden] { display: none !important; }
.tag {
  display: inline-flex; align-items: center; height: 1.375rem; padding: 0 .55rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: .35em;
  background: var(--carta); color: var(--inchiostro-2); border: 1px solid var(--bordo-forte); white-space: nowrap;
}
.occhiello { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--inchiostro-2); }

/* ---------------------------------------------------------------- sky */
.cielo {
  position: absolute; inset: 0 0 auto 0; height: 76rem; pointer-events: none; overflow: hidden; z-index: 0;
  background:
    radial-gradient(80% 42% at 82% 8%, var(--cielo-1) 0%, transparent 60%),
    radial-gradient(70% 40% at 4% 30%, var(--cielo-2) 0%, transparent 60%),
    radial-gradient(70% 38% at 92% 46%, var(--cielo-3) 0%, transparent 58%),
    radial-gradient(60% 30% at 20% 64%, var(--cielo-3) 0%, transparent 60%);
}
.cielo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18rem; background: linear-gradient(transparent, var(--pagina)); }
.nuvola { position: absolute; color: var(--nuvola); width: 10rem; height: 4.5rem; opacity: .95; filter: drop-shadow(0 6px 10px rgba(var(--ombra-rgb), .05)); animation: deriva 120s linear infinite alternate; }
.nuvola--1 { top: 5.5rem; left: -3rem; width: 9rem; animation-duration: 140s; }
.nuvola--2 { top: 3rem; right: -2.5rem; width: 11rem; height: 5rem; animation-duration: 170s; animation-direction: alternate-reverse; }
.nuvola--3 { top: 19rem; right: -4rem; width: 8rem; animation-duration: 110s; }
.nuvola--4 { top: 31rem; left: -4rem; width: 12rem; height: 5.4rem; animation-duration: 190s; opacity: .8; }
.nuvola--5 { top: 46rem; right: 6%; width: 9rem; animation-duration: 150s; opacity: .7; }
@keyframes deriva { from { transform: translateX(0); } to { transform: translateX(3.5rem); } }
.aereino { position: absolute; width: 1.6rem; height: 1.6rem; color: var(--barra); opacity: .38; top: 14rem; left: -2rem; animation: attraversa 46s linear infinite; }
.aereino--2 { top: 27rem; width: 1.1rem; height: 1.1rem; opacity: .26; animation-duration: 64s; animation-delay: -30s; }
@keyframes attraversa { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(calc(100vw + 4rem), -7rem) rotate(-8deg); } }

/* ---------------------------------------------------------------- the floating bar */
.barra {
  position: fixed; z-index: 20; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 26rem); height: 3rem; padding: 0 5px 0 12px; gap: 6px;
  display: flex; align-items: center; background: var(--barra); border-radius: 999px; box-shadow: var(--ombra-su);
}
.barra-marchio { display: flex; align-items: center; gap: 7px; color: var(--barra-testo); text-decoration: none; font-weight: 800; letter-spacing: -.02em; min-width: 0; margin-right: auto; border-radius: 999px; min-height: 44px; }
.barra-logo { width: 1.6rem; height: 1.6rem; flex: none; }
.barra-nome { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-saluto { display: none; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 0 1.15rem;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .9375rem; line-height: 1.1; white-space: nowrap;
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--molla), box-shadow .2s;
  -webkit-user-select: none; user-select: none;
}
.pill:active { transform: scale(.96); }
.pill--azione { background: var(--azione); color: var(--azione-testo); }
.pill--azione:hover { background: var(--azione-scura); }
.pill--piccola { min-height: 38px; padding: 0 1rem; font-size: .875rem; }
.barra .pill { min-height: 38px; }
.pill--demo { background: transparent; color: var(--barra-testo); border-color: rgba(255, 255, 255, .28); padding: 0 .8rem; font-size: .8125rem; }
.pill--demo:hover { background: rgba(255, 255, 255, .1); }
.barra :focus-visible { outline-color: var(--barra-testo); outline-offset: 2px; }
.pill--grande { min-height: 52px; padding: 0 2rem; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- arrival */
main { position: relative; z-index: 1; }
.arrivo { padding: 5.25rem 16px 1.25rem; text-align: center; max-width: 52rem; margin: 0 auto; }
.stato {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem .35rem .7rem; border-radius: 999px;
  background: var(--carta); box-shadow: var(--ombra-p); font-size: .875rem; font-weight: 500; color: var(--inchiostro-2);
}
.stato #saluto { color: var(--inchiostro); font-weight: 650; }
.stato-resto::before { content: "·"; margin-right: .4rem; color: var(--bordo-forte); }
.stato-ping { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: #3BC46B; flex: none; }
.stato-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3BC46B; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.arrivo h1 { margin-top: 1rem; font-size: clamp(2.5rem, 11vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.sotto { margin: .7rem auto 0; max-width: 22rem; font-size: 1.0625rem; line-height: 1.4; color: var(--inchiostro-2); }
.citta { margin: 1.25rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 34rem; }
.pill--citta {
  background: var(--carta); color: var(--inchiostro); border-color: var(--bordo); box-shadow: var(--ombra-p);
  min-height: 48px; padding: 0 1.15rem; font-size: 1rem; font-weight: 650;
}
.pill--citta:hover { border-color: var(--bordo-forte); transform: translateY(-1px); }
.pill--citta[aria-pressed="true"] { background: var(--barra); color: var(--barra-testo); border-color: var(--barra); box-shadow: 0 6px 16px rgba(var(--ombra-rgb), .2); }
.pill--citta[aria-pressed="true"]::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--barra-testo); }
.pill--paesi { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--bordo-forte); }

/* ---------------------------------------------------------------- the panel */
.pannello {
  position: relative; margin: .5rem 10px 0; padding: 1.35rem 12px 1rem; border-radius: 28px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--ombra-g);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pannello-testa { padding: 0 4px; }
.pannello h2 { font-size: 1.6rem; line-height: 1.15; }
.pannello-conta { margin-top: .3rem; font-size: .875rem; color: var(--inchiostro-2); }
.cerca-pill {
  margin-top: .85rem; width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1rem;
  border-radius: 999px; border: 1.5px solid var(--bordo); background: var(--carta); box-shadow: var(--ombra-p);
  font-size: .9rem; color: var(--inchiostro-2); text-align: left; transition: border-color .2s, transform .18s var(--molla);
}
.cerca-pill strong { color: var(--azione); font-weight: 700; }
.cerca-pill span { flex: 1; min-width: 0; }
.cerca-pill:hover { border-color: var(--bordo-forte); }
.cerca-pill:active { transform: scale(.98); }
.icona--freccia { color: var(--azione); }
.comandi { margin-top: .9rem; display: flex; flex-direction: column; gap: .7rem; }
.filtri { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 6px; margin: 0 -12px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
.filtri::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .55rem 0 1rem; border-radius: 999px;
  background: var(--carta); border: 1.5px solid var(--bordo); font-size: .9375rem; font-weight: 650; color: var(--inchiostro);
  transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--molla);
}
.filtro-n { min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 999px; background: var(--pagina); font-size: .8rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.filtro[aria-pressed="true"] { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--carta); }
.filtro[aria-pressed="true"] .filtro-n { background: var(--risalto); color: var(--risalto-testo); }
.filtro:active { transform: scale(.95); }
.filtro:disabled { opacity: .45; cursor: default; }
.interruttore { display: flex; padding: 4px; border-radius: 999px; background: rgba(var(--ombra-rgb), .06); align-self: stretch; position: relative; }
.interruttore-voce { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: .9375rem; color: var(--inchiostro-2); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.interruttore-voce[aria-pressed="true"] { background: var(--carta); color: var(--inchiostro); box-shadow: var(--ombra-p); }
.corpo { margin-top: .85rem; }
.corpo[data-vista="lista"] .colonna-mappa { display: none; }
.corpo[data-vista="mappa"] .colonna-lista { display: none; }

/* ---------------------------------------------------------------- the deal card */
.carte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.carte > li { min-width: 0; }
.carta {
  display: block; width: 100%; padding: 10px 10px 12px; border: 0; border-radius: 24px; background: var(--carta);
  box-shadow: var(--ombra-p); text-align: left; color: var(--inchiostro);
  transition: transform .25s var(--molla), box-shadow .25s;
}
.carta:hover { transform: translateY(-3px); box-shadow: var(--ombra-su); }
.carta:active { transform: scale(.985); }
.carta-foto { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--colore, #9ab); }
.carta-foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fuoco, 50% 50%); transition: transform .6s var(--molla); }
.carta:hover .carta-foto img { transform: scale(1.04); }
.prezzo-pill {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: baseline; gap: .35rem; padding: .4rem .8rem .42rem;
  border-radius: 999px; background: var(--barra); color: var(--barra-testo); box-shadow: var(--ombra-p);
}
.prezzo-pill-n { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.prezzo-pill-e { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: .8; }
.sconto {
  position: absolute; left: 10px; bottom: 10px; padding: .3rem .65rem; border-radius: 999px; background: var(--risalto); color: var(--risalto-testo);
  font-size: .9375rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; box-shadow: var(--ombra-p);
}
.carta-testi { display: block; padding: .8rem 6px 0; }
.carta-rotta { display: block; font-size: 1.1875rem; font-weight: 800; letter-spacing: -.02em; color: var(--azione); line-height: 1.2; }
.carta-rotta .freccia-ar { color: var(--inchiostro-2); font-weight: 600; margin: 0 .15em; }
.carta-fatti { display: block; margin-top: .2rem; font-size: .875rem; color: var(--inchiostro-2); }
.carta-abituale { display: block; margin-top: .35rem; font-size: .9375rem; color: var(--inchiostro); }
.carta-abituale b { font-weight: 750; }
.mesi-tag { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.mese-tag { padding: .2rem .6rem; border-radius: 999px; background: var(--pagina); border: 1px solid var(--bordo); font-size: .8125rem; font-weight: 650; color: var(--inchiostro-2); }
.carta-bottone {
  margin-top: .85rem; display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; border-radius: 999px;
  background: var(--azione); color: var(--azione-testo); font-weight: 750; font-size: .9375rem; transition: background-color .2s;
}
.carta:hover .carta-bottone { background: var(--azione-scura); }
.carta-bottone .icona { transition: transform .25s var(--molla); }
.carta:hover .carta-bottone .icona { transform: translateX(3px); }
.entra { animation: entra .34s var(--molla) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes entra { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.carte--esce > li { opacity: 0; transform: translateY(-6px); transition: opacity .12s, transform .12s; }
.vuoto { padding: 2rem 1rem; text-align: center; color: var(--inchiostro-2); }

.fine-lista {
  margin-top: 14px; width: 100%; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: 24px;
  border: 2px dashed var(--bordo-forte); background: rgba(255, 255, 255, .55); text-align: left; transition: border-color .2s, background-color .2s;
}
.fine-lista:hover { border-color: var(--azione); background: var(--carta); }
.fine-lista-emoji { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 50%; background: var(--azione-tenue); color: var(--azione); flex: none; }
.fine-lista-testi { flex: 1; display: flex; flex-direction: column; gap: .1rem; font-size: .875rem; color: var(--inchiostro-2); }
.fine-lista-testi strong { font-size: 1.0625rem; color: var(--inchiostro); }

/* ---------------------------------------------------------------- the map */
.colonna-mappa { position: relative; }
.oblo { position: relative; width: 100%; max-width: 34rem; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--mare);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .9), inset -18px -24px 60px rgba(var(--ombra-rgb), .10), var(--ombra-g); isolation: isolate; }
.oblo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(60% 50% at 30% 22%, rgba(255, 255, 255, .35), transparent 70%); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .9); }
.mappa-posto { position: absolute; inset: 0; }
.mappa-posto .mappa {
  --mappa-carta: var(--mare); --mappa-mare: var(--mare); --mappa-mare-chiaro: var(--mare); --mappa-terra: var(--terra); --mappa-costa: var(--costa);
  --mappa-confine: rgba(255, 255, 255, .55); --mappa-rotta: var(--rotta); --mappa-arco: color-mix(in srgb, var(--rotta) 45%, transparent);
  --mappa-partenza: var(--barra); --mappa-inchiostro: var(--inchiostro); --mappa-font: var(--font); --mappa-font-titolo: var(--font);
  --mappa-margine-alto: 64; --mappa-margine-basso: 70; --mappa-margine-sinistra: 46; --mappa-margine-destra: 46;
}
.mappa-posto .mappa-nome { padding: .2rem .5rem; border-radius: 999px; background: var(--carta); color: var(--inchiostro); text-shadow: none; box-shadow: var(--ombra-p); font-weight: 700; font-size: .75rem; }
.mappa-posto .mappa-nome--visibile { opacity: 1; }
.mappa-posto .mappa-nome--fronte { background: var(--barra); color: var(--barra-testo); font-size: .875rem; }
.mappa-posto .mappa-nome--partenza { background: var(--barra); color: var(--barra-testo); }
.oblo-etichetta { position: absolute; z-index: 4; left: 50%; top: 5%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px; background: var(--carta); box-shadow: var(--ombra-p); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.mini {
  position: relative; z-index: 5; margin: -2.25rem auto 0; max-width: 26rem; display: flex; align-items: center; gap: .8rem; padding: 8px 8px 8px 8px;
  border-radius: 22px; background: var(--carta); box-shadow: var(--ombra-su); animation: entra .34s var(--molla) both;
}
.mini img { width: 5rem; height: 5rem; border-radius: 16px; object-fit: cover; object-position: var(--fuoco, 50% 50%); background: var(--colore, #9ab); flex: none; }
.mini-testi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.mini-rotta { font-size: .9375rem; font-weight: 800; color: var(--azione); letter-spacing: -.02em; line-height: 1.2; }
.mini-prezzo { font-size: .875rem; color: var(--inchiostro-2); display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; }
.mini-prezzo b { color: var(--inchiostro); font-size: 1.0625rem; font-weight: 800; }
.mini .pill { flex: none; padding: 0 .9rem; font-size: .875rem; }
.mappa-aiuto { margin-top: .75rem; text-align: center; font-size: .875rem; color: var(--inchiostro-2); }

/* ---------------------------------------------------------------- lower sections */
.sezione { max-width: 60rem; margin: 0 auto; padding: 3.5rem 16px 0; text-align: center; }
.sezione h2 { font-size: 2rem; margin-top: .35rem; }
.biglietti-come { list-style: none; margin: 1.75rem auto 0; padding: 0; display: grid; gap: 14px; max-width: 28rem; text-align: left; }
.bc { position: relative; display: flex; align-items: stretch; min-height: 7.5rem; border-radius: 18px; box-shadow: var(--ombra-p); color: var(--inchiostro); }
.bc::before, .bc::after { content: ""; position: absolute; left: 4.25rem; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--pagina); }
.bc::before { top: -8px; } .bc::after { bottom: -8px; }
.bc--1 { background: var(--tinta-1); transform: rotate(-1.2deg); }
.bc--2 { background: var(--tinta-2); transform: rotate(.55deg); }
.bc--3 { background: var(--tinta-3); color: var(--tinta-3-testo); transform: rotate(2deg); }
.bc-numero { flex: none; width: 4.25rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; letter-spacing: -.03em;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.4px); background-size: 2px 9px; background-repeat: repeat-y; background-position: right center; }
.bc-numero { background-image: linear-gradient(currentColor 50%, transparent 0); background-size: 2px 8px; opacity: 1; }
.bc-testi { display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1rem 1.1rem 1rem 1.1rem; font-size: .9375rem; line-height: 1.5; }
.bc-testi strong { font-size: 1.0625rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.bc-numero { position: relative; background: none; }
.bc-numero::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; border-right: 2px dotted currentColor; opacity: .45; }
.biglietti-come--fermo .bc { animation: none; }
.biglietti-come.vede .bc { animation: biglietto 1.1s cubic-bezier(.33, 0, .2, 1) both; }
.biglietti-come.vede .bc--2 { animation-delay: .12s; } .biglietti-come.vede .bc--3 { animation-delay: .24s; }
@keyframes biglietto { from { opacity: 0; transform: translateY(24px) rotate(-6deg); } }
.come-fine { margin-top: 1.5rem; font-weight: 650; font-size: 1.0625rem; }
.domande-lista { margin: 1.5rem auto 0; max-width: 46rem; display: grid; gap: 10px; text-align: left; }
.domanda { border-radius: 16px; background: var(--carta); box-shadow: var(--ombra-p); }
.domanda summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 1.15rem; font-weight: 700; font-size: 1.0313rem; cursor: pointer; border-radius: 16px; }
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary .icona { color: var(--inchiostro-2); transition: transform .3s var(--molla); }
.domanda[open] summary .icona { transform: rotate(180deg); }
.domanda p { padding: 0 1.15rem 1.1rem; color: var(--inchiostro-2); line-height: 1.55; }
.domanda[open] p { animation: entra .3s var(--molla) both; }
.chiusura {
  position: relative; margin: 3.5rem 10px 0; padding: 3rem 18px 2.5rem; border-radius: 28px; text-align: center; overflow: hidden;
  background: radial-gradient(90% 80% at 85% 10%, var(--cielo-1), transparent 60%), radial-gradient(80% 80% at 0% 100%, var(--cielo-2), transparent 60%), radial-gradient(60% 60% at 60% 70%, var(--cielo-3), transparent 70%), var(--carta);
  box-shadow: var(--ombra-g);
}
.chiusura h2 { font-size: 2rem; max-width: 30rem; margin: 0 auto; }
.chiusura > p { margin: .7rem auto 1.4rem; color: var(--inchiostro-2); }
.piede { position: relative; z-index: 1; padding: 2rem 16px 2.5rem; text-align: center; }
.piede-link { border: 0; background: none; color: var(--inchiostro-2); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 .5rem; }

/* the small forms (waitlist, «avvisami») */
.modulino { margin: 1.1rem auto 0; max-width: 24rem; display: grid; gap: .7rem; text-align: left; }
.modulino-campo { display: grid; gap: .3rem; font-size: .875rem; font-weight: 650; }
.modulino-campo input { min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--bordo-forte); background: var(--carta); font-size: 1rem; }
.modulino-campo input:focus-visible { outline-offset: 1px; }
.modulino-ok { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--inchiostro-2); min-height: 44px; }
.modulino-ok input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--azione); flex: none; }
.modulino .pill { justify-self: stretch; }
.modulino-esito:empty { display: none; }
.modulino-esito { padding: .8rem 1rem; border-radius: 16px; background: var(--azione-tenue); color: var(--inchiostro); font-size: .9375rem; }
.modulino-esito--errore { background: #FFF1E6; }
/* pagina vera, fase 3: the real sign-up, in the grammar above (no new colour): the departure line with «Cambia», the
   world's airports as «su misura»'s suggestions, the site's consent and the text under the form, small and quiet */
.modulino-partenza { display: flex; flex-wrap: nowrap; align-items: center; column-gap: .35rem; min-height: 36px; margin-top: -.35rem; font-size: .8125rem; color: var(--inchiostro-2); }
.modulino-partenza b { font-weight: 700; color: var(--inchiostro); }
/* fase 2 (B8): one line whatever the place's name: the name is cut with «…», «· Cambia» never wraps */
.modulino-partenza [data-partenza] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modulino-partenza .modulino-punto, .modulino-cambia { flex: none; white-space: nowrap; }
/* its tap area's padding never runs past the line's edge when the name is cut (the left pull of -.2rem stays) */
.modulino-partenza .modulino-cambia { margin-right: 0; }
.modulino-cambia { min-height: 36px; padding: 0 .2rem; margin: 0 -.2rem; border: 0; background: none; color: var(--azione); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.modulino-altra { display: grid; gap: .1rem; }
.modulino-altra .m-sugg { margin-top: .5rem; }
.modulino-altra .m-sugg button { min-height: 52px; }
.modulino-altra .m-sugg .m-sugg-segno { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; color: var(--inchiostro-2); }
.modulino-nota:empty { display: none; }
.modulino-nota, .modulino-aiuto { margin-top: .3rem; font-size: .8125rem; color: var(--inchiostro-2); }
.modulino-consenso { font-size: .8125rem; }
.modulino-consenso label { line-height: 1.45; }
.modulino-ok a, .modulino-fine a { color: inherit; text-underline-offset: 2px; }
.modulino-fine { font-size: .75rem; line-height: 1.45; color: var(--inchiostro-2); }
.modulino-esito-riga { display: block; }
.modulino-esito-riga + .modulino-esito-riga { margin-top: .25rem; font-size: .8125rem; color: var(--inchiostro-2); }
.modulino-usa { border: 0; padding: 0; background: none; color: var(--azione); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
/* the trap field (as the site's .hp) and the texts of the double opt-in (as the site's [data-doi] rules) */
.hp { position: absolute; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }
[data-doi] .doi-only, [data-doi] .doi-on-block { display: none; }
[data-doi="on"] .doi-only { display: inline; }
[data-doi="on"] .doi-on-block { display: block; }
[data-doi="on"] .doi-off { display: none; }
/* without a script the form without a script is the band's form: the button that would reveal it does nothing (it also
   carries hidden until e.js is ready: fase 7, P6) */
@media (scripting: none) { #apri-lista { display: none; } }
/* big text (200 %): the form's column is never wider than the band, so the consent and the text under the form wrap
   instead of being cut (a grid track grows to an input's own width, or to a long word, unless told not to) */
.modulino, .modulino-campo { grid-template-columns: minmax(0, 1fr); }
.modulino-campo input { min-width: 0; }
.modulino .pill { white-space: normal; text-align: center; }
.modulino-esito, .modulino-fine, .modulino-consenso label { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- sheets */
dialog.foglio {
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; padding: 1.25rem 16px 1.5rem; border: 0; border-radius: 28px 28px 0 0;
  background: var(--pagina); color: var(--inchiostro); box-shadow: 0 -10px 40px rgba(var(--ombra-rgb), .2); overflow: auto; overscroll-behavior: contain;
}
dialog.foglio[open] { animation: sale .42s var(--foglio) both; }
dialog.foglio::backdrop { background: rgba(var(--ombra-rgb), .38); animation: velo .3s ease both; }
@keyframes sale { from { transform: translateY(100%); } }
@keyframes velo { from { opacity: 0; } }
.foglio-testa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.foglio-testa h2 { font-size: 1.6rem; }
.foglio-sotto { margin-top: .3rem; color: var(--inchiostro-2); }
.tondo { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--carta); box-shadow: var(--ombra-p); display: inline-flex; align-items: center; justify-content: center; color: var(--inchiostro); transition: transform .18s var(--molla); }
.tondo:active { transform: scale(.92); }
.paesi { margin-top: 1rem; display: grid; gap: 1rem; }
.paese h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--inchiostro-2); margin-bottom: .45rem; }
.paese-citta { display: flex; flex-wrap: wrap; gap: .45rem; }
.foglio--piccolo { text-align: center; }
.foglio--piccolo h2 { font-size: 1.6rem; }
.foglio--piccolo p { margin: .6rem auto 1.2rem; max-width: 22rem; color: var(--inchiostro-2); }
.piccolo-emoji { font-size: 2.5rem; }
.foglio--piccolo .pill { min-width: 12rem; }
.foglio--demo h3 { margin: 1.4rem 0 .6rem; font-size: 1.05rem; letter-spacing: -.01em; }
.demo-riga { margin-top: .7rem; line-height: 1.55; }
.crediti { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .8125rem; color: var(--inchiostro-2); }
.crediti li { display: flex; gap: .6rem; align-items: center; }
.crediti img { width: 2.5rem; height: 2.5rem; border-radius: 10px; object-fit: cover; flex: none; background: var(--bordo); }
.crediti a { overflow-wrap: anywhere; }
.demo-nota { margin-top: 1rem; font-size: .8125rem; color: var(--inchiostro-2); }

/* ---------------------------------------------------------------- the deal sheet */
dialog.foglio--scheda { padding: 0; max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; background: var(--pagina); }
.s-griglia { min-height: 100%; }
.s-foto { position: relative; margin: 0; height: 44vh; min-height: 15rem; max-height: 26rem; background: var(--colore, #9ab); overflow: hidden; }
.s-foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fuoco, 50% 50%); animation: zoom 1.4s var(--molla) both; }
@keyframes zoom { from { transform: scale(1.08); } }
.s-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), transparent 30%, transparent 70%, rgba(0, 0, 0, .35)); pointer-events: none; }
.s-indietro { position: absolute; z-index: 2; top: 14px; left: 14px; }
.s-foto .prezzo-pill { z-index: 2; top: 14px; right: 14px; }
.s-credito { position: absolute; z-index: 2; right: 12px; bottom: 30px; max-width: 70%; padding: .15rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .6875rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-credito:hover { text-decoration: underline; }
.s-corpo { position: relative; margin-top: -1.5rem; padding: 1.4rem 16px 2.5rem; border-radius: 28px 28px 0 0; background: var(--pagina); z-index: 2; }
.s-corpo h2 { font-size: 1.85rem; color: var(--inchiostro); }
.s-corpo h2 .freccia-ar { color: var(--inchiostro-2); font-weight: 600; }
.s-frase { margin-top: .35rem; color: var(--inchiostro-2); font-size: 1.0625rem; }
.s-risparmio { margin-top: 1.1rem; padding: 1.1rem 1.1rem 1rem; border-radius: 24px; background: var(--carta); box-shadow: var(--ombra-p); display: grid; gap: .35rem; }
.s-prezzo { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.s-prezzo-n { font-size: 2.6rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--inchiostro); }
.s-prezzo-c { color: var(--inchiostro-2); font-size: .9375rem; }
.s-righe { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .9375rem; }
.s-righe .sconto { position: static; box-shadow: none; }
.s-ricontrollo { display: flex; align-items: center; gap: .45rem; font-size: .8125rem; color: var(--inchiostro-2); }
.fatti { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fatti li { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .8rem; border-radius: 999px; background: var(--carta); border: 1px solid var(--bordo); font-size: .875rem; font-weight: 600; }
.fatti .icona { color: var(--azione); }
.s-domanda { margin-top: 1.75rem; font-size: 1.5rem; }
.s-domanda b { color: var(--azione); font-weight: 800; }
.s-mesi { position: relative; margin-top: .85rem; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(var(--ombra-rgb), .06); overflow-x: auto; scrollbar-width: none; }
.s-mesi-indicatore { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--inchiostro); transition: transform .35s var(--molla), width .35s var(--molla); }
.s-mese { position: relative; z-index: 1; flex: 1 0 auto; min-height: 44px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; font-weight: 700; color: var(--inchiostro); display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: color .25s; }
.s-mese-n { font-size: .75rem; font-weight: 800; opacity: .65; font-variant-numeric: tabular-nums; }
.s-mese[aria-pressed="true"] { color: var(--carta); }
.s-mese[aria-pressed="true"] .s-mese-n { opacity: .9; color: var(--risalto); }
.s-persone { margin-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .35rem .4rem .35rem 1rem; border-radius: 999px; background: var(--carta); border: 1px solid var(--bordo); }
.s-persone-l { font-weight: 700; }
.stepper { display: flex; align-items: center; gap: .3rem; }
.stepper-n { min-width: 2rem; text-align: center; font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.stepper .tondo { box-shadow: none; background: var(--pagina); border: 1px solid var(--bordo); }
.stepper .tondo:disabled { opacity: .35; cursor: default; }
.s-date { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: 8px; }
.data { border-radius: 20px; background: var(--carta); box-shadow: var(--ombra-p); overflow: hidden; }
.data-riga { width: 100%; display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .7rem .9rem .7rem 1rem; border: 0; background: transparent; text-align: left; transition: background-color .2s; }
.data-riga:hover { background: rgba(var(--ombra-rgb), .025); }
.data-quando { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.data-giorni { font-weight: 750; letter-spacing: -.01em; }
.data-notti { font-size: .8125rem; color: var(--inchiostro-2); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.basso { padding: .1rem .5rem; border-radius: 999px; background: var(--risalto); color: var(--risalto-testo); font-size: .6875rem; font-weight: 800; letter-spacing: .02em; }
.data-prezzo { text-align: right; display: flex; flex-direction: column; gap: .05rem; }
.data-prezzo b { font-size: 1.1875rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.data-prezzo span { font-size: .75rem; color: var(--inchiostro-2); white-space: nowrap; }
.data-riga .icona { color: var(--inchiostro-2); transition: transform .3s var(--molla); }
.data-riga[aria-expanded="true"] .icona { transform: rotate(180deg); }
.data-aperta { padding: 0 10px 12px; }
.ricerca { position: relative; height: 3.25rem; margin: .25rem 4px .5rem; border-radius: 999px; background: var(--pagina); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 650; color: var(--inchiostro-2); }
.ricerca::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 50%; border-top: 2px dashed var(--bordo-forte); }
.ricerca .icona { position: absolute; left: 0; top: 50%; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; color: var(--azione); animation: vola-barra .6s cubic-bezier(.45, 0, .2, 1) both; }
.ricerca span { position: relative; padding: 0 .6rem; background: var(--pagina); }
@keyframes vola-barra { from { transform: translateX(-2rem); } to { transform: translateX(min(80vw, 34rem)); } }
.altri-voli { margin-top: .6rem; width: 100%; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--azione); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.altri-voli .icona { transition: transform .3s var(--molla); }
.altri-voli[aria-expanded="true"] .icona { transform: rotate(180deg); }
.s-avvisami { margin-top: 1.75rem; padding: 1.1rem; border-radius: 24px; background: var(--azione-tenue); }
.s-avvisami-apri { width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 44px; border: 0; background: transparent; font-weight: 750; font-size: 1.0625rem; text-align: left; padding: 0; }
.s-avvisami .modulino { margin-top: .6rem; }
.s-altre { margin-top: 1rem; }

/* ---------------------------------------------------------------- the ticket */
.biglietto { position: relative; border-radius: 20px; background: var(--carta); border: 1px solid var(--bordo); padding: 1rem 1rem .95rem; box-shadow: var(--ombra-p); animation: biglietto-in .45s var(--molla) both; }
.biglietto + .biglietto { margin-top: 10px; }
@keyframes biglietto-in { from { opacity: 0; transform: translateY(12px) rotate(-1.5deg); } }
.b-testa { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.b-etichetta { font-size: .8125rem; font-weight: 800; color: var(--azione); }
.b-tratta { margin-top: .75rem; display: grid; grid-template-columns: auto 1fr auto; gap: .15rem .7rem; align-items: center; }
.b-tratta-nome { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--inchiostro-2); }
.b-ora { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.b-ora sup { font-size: .6875rem; color: var(--azione); margin-left: .1rem; }
.b-ora small { display: block; font-size: .8125rem; font-weight: 650; color: var(--inchiostro-2); letter-spacing: 0; }
.b-ora--fine { text-align: right; }
.b-linea { position: relative; height: 1.5rem; display: flex; align-items: center; justify-content: center; }
.b-linea::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted var(--bordo-forte); }
.b-linea .icona { position: relative; color: var(--azione); background: var(--carta); padding: 0 .2rem; width: 1.5rem; height: 1.5rem; }
.b-info { grid-column: 1 / -1; font-size: .8125rem; color: var(--inchiostro-2); }
.b-piede { margin-top: .9rem; padding-top: .85rem; border-top: 2px dashed var(--bordo); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.b-prezzo b { font-size: 1.375rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.b-prezzo span { display: block; font-size: .8125rem; color: var(--inchiostro-2); }
.b-perche { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.b-perche span { padding: .15rem .55rem; border-radius: 999px; background: var(--pagina); font-size: .75rem; font-weight: 650; color: var(--inchiostro-2); }
.biglietto .pill--azione { min-height: 44px; font-size: .875rem; }

/* ---------------------------------------------------------------- «su misura» */
dialog.foglio--misura { padding: 0; height: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
.m-testa { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: 12px 14px; background: var(--pagina); }
.m-punti { flex: 1; display: flex; justify-content: center; gap: .4rem; }
.m-punto { width: .55rem; height: .55rem; border-radius: 999px; background: var(--bordo-forte); transition: width .35s var(--molla), background-color .3s; }
.m-punto--fatto { background: var(--inchiostro-2); }
.m-punto--ora { width: 1.6rem; background: var(--azione); }
.m-corpo { padding: .5rem 16px 2.5rem; max-width: 40rem; margin: 0 auto; }
.m-passo { animation: passo .38s var(--molla) both; }
@keyframes passo { from { opacity: 0; transform: translateX(18px); } }
.m-da { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--carta); box-shadow: var(--ombra-p); font-size: .8125rem; font-weight: 650; color: var(--inchiostro-2); }
.m-domanda { margin-top: .9rem; font-size: 2rem; letter-spacing: -.04em; }
.m-domanda b { color: var(--azione); }
.m-campo { margin-top: 1.1rem; position: relative; }
.m-campo input { width: 100%; min-height: 56px; padding: 0 1.2rem 0 3rem; border-radius: 999px; border: 2px solid var(--bordo-forte); background: var(--carta); font-size: 1.0625rem; font-weight: 600; }
.m-campo input:focus { border-color: var(--azione); outline: none; box-shadow: 0 0 0 4px var(--azione-tenue); }
.m-campo .icona { position: absolute; left: 1.1rem; top: 50%; margin-top: -.6em; color: var(--inchiostro-2); }
.m-sugg { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 8px; }
.m-sugg button { width: 100%; display: flex; align-items: center; gap: .8rem; min-height: 60px; padding: 6px 1rem 6px 6px; border-radius: 20px; border: 0; background: var(--carta); box-shadow: var(--ombra-p); text-align: left; transition: transform .18s var(--molla); }
.m-sugg button:active { transform: scale(.98); }
.m-sugg img, .m-sugg .m-sugg-segno { width: 3rem; height: 3rem; border-radius: 14px; object-fit: cover; flex: none; background: var(--pagina); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.m-sugg-testi { display: flex; flex-direction: column; min-width: 0; }
.m-sugg-testi b { font-weight: 750; }
.m-sugg-testi span { font-size: .8125rem; color: var(--inchiostro-2); }
.m-scelte { margin-top: 1.1rem; display: grid; gap: 10px; }
.m-scelta { width: 100%; display: flex; align-items: center; gap: .9rem; min-height: 68px; padding: .7rem 1rem; border-radius: 22px; border: 2px solid transparent; background: var(--carta); box-shadow: var(--ombra-p); text-align: left; transition: border-color .2s, transform .18s var(--molla); }
.m-scelta:hover { border-color: var(--bordo-forte); }
.m-scelta:active { transform: scale(.98); }
.m-scelta[aria-pressed="true"] { border-color: var(--azione); }
.m-scelta-emoji { font-size: 1.6rem; width: 2.5rem; text-align: center; flex: none; }
.m-scelta-testi { display: flex; flex-direction: column; }
.m-scelta-testi b { font-size: 1.0625rem; font-weight: 750; }
.m-scelta-testi span { font-size: .875rem; color: var(--inchiostro-2); }
.m-date-libere { margin-top: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.m-date-libere label { display: grid; gap: .25rem; font-size: .8125rem; font-weight: 650; }
.m-date-libere input { min-height: 48px; padding: 0 .8rem; border-radius: 16px; border: 1.5px solid var(--bordo-forte); background: var(--carta); min-width: 0; width: 100%; }
.m-avanti { margin-top: 1rem; width: 100%; }
.m-riepilogo { margin-top: .6rem; color: var(--inchiostro-2); }
.m-stato { margin-top: 1.25rem; padding: 1.25rem; border-radius: 22px; background: var(--carta); box-shadow: var(--ombra-p); text-align: center; }
.m-stato p + p { margin-top: .5rem; }
.m-stato .pill { margin-top: .9rem; }
.m-alternative { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.m-alternative .pill { background: var(--carta); border-color: var(--bordo-forte); color: var(--inchiostro); margin-top: 0; }
.m-voli { margin-top: 1rem; }
.m-nota { margin-top: .75rem; font-size: .8125rem; color: var(--inchiostro-2); text-align: center; }

/* ---------------------------------------------------------------- wider phones and tablets */
@media (min-width: 600px) {
  .pannello { margin: .75rem 24px 0; padding: 1.75rem 22px 1.25rem; }
  .carte { grid-template-columns: 1fr 1fr; }
  .filtri { margin: 0; padding-left: 4px; padding-right: 4px; flex-wrap: wrap; overflow: visible; }
  .comandi { flex-direction: row; align-items: center; justify-content: space-between; }
  .interruttore { align-self: auto; min-width: 15rem; }
  dialog.foglio--piccolo, dialog.foglio--paesi, dialog.foglio--demo { margin: auto; max-width: 34rem; border-radius: 28px; }
  dialog.foglio--piccolo[open], dialog.foglio--paesi[open], dialog.foglio--demo[open] { animation: appare .32s var(--molla) both; }
  @keyframes appare { from { opacity: 0; transform: translateY(16px) scale(.97); } }
  .chiusura { margin: 4rem auto 0; max-width: 60rem; }
}

/* ---------------------------------------------------------------- wide: list beside the map */
@media (min-width: 960px) {
  .barra { top: 24px; width: 40rem; height: 3.4rem; padding: 0 6px 0 18px; }
  .barra-nome { font-size: 1.05rem; }
  .barra-saluto { display: block; flex: 1; height: 1.4rem; overflow: hidden; text-align: center; color: rgba(255, 255, 255, .78); font-size: .875rem; font-weight: 500; }
  .barra-saluto-riga { display: block; animation: riga-su .55s var(--foglio) both; }
  @keyframes riga-su { from { transform: translateY(100%); opacity: 0; } }
  .barra-marchio { margin-right: 0; }
  .arrivo { padding-top: 8.25rem; padding-bottom: 2rem; }
  .arrivo h1 { font-size: 4.75rem; }
  .sotto { max-width: 42rem; font-size: 1.25rem; margin-top: 1rem; }
  .citta { margin-top: 1.75rem; max-width: 48rem; }
  .pill--citta { min-height: 52px; padding: 0 1.4rem; font-size: 1.0625rem; }
  .pannello { max-width: 76rem; margin: .5rem auto 0; padding: 2.1rem 2.25rem 1.75rem; }
  .pannello-testa { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 2rem; }
  .pannello h2 { font-size: 2.1rem; }
  .pannello-conta { grid-column: 1; }
  .cerca-pill { grid-column: 2; grid-row: 1 / span 2; width: auto; margin-top: 0; padding: 0 1.25rem; }
  .interruttore { display: none; }
  .corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 2rem; align-items: start; }
  .corpo[data-vista] .colonna-mappa, .corpo[data-vista] .colonna-lista { display: block; }
  .colonna-mappa { position: sticky; top: 6.5rem; }
  .sezione h2, .chiusura h2 { font-size: 3rem; }
  .biglietti-come { max-width: 56rem; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bc { flex-direction: column; min-height: 13rem; }
  .bc-numero { width: auto; height: 4rem; justify-content: flex-start; padding-left: 1.2rem; }
  .bc-numero::after { left: 12px; right: 12px; top: auto; bottom: 0; border-right: 0; border-bottom: 2px dotted currentColor; }
  .bc::before, .bc::after { left: auto; top: 4rem; margin: -8px 0 0; }
  .bc::before { left: -8px; } .bc::after { right: -8px; bottom: auto; }
  .bc-testi { justify-content: flex-start; padding-top: 1rem; }
  dialog.foglio--scheda { margin: auto; width: min(68rem, calc(100% - 64px)); height: auto; max-height: calc(100vh - 64px); border-radius: 28px; overflow: hidden; }
  dialog.foglio--scheda[open] { animation: appare .36s var(--molla) both; }
  .s-griglia { display: grid; grid-template-columns: 1fr 1fr; height: calc(100vh - 64px); max-height: 56rem; }
  .s-foto { height: 100%; max-height: none; }
  .s-corpo { margin: 0; border-radius: 0; overflow: auto; padding: 2rem 2rem 2.5rem; }
  .s-credito { bottom: 14px; }
  dialog.foglio--misura { margin: auto; width: min(44rem, calc(100% - 64px)); height: auto; max-height: calc(100vh - 64px); border-radius: 28px; }
  dialog.foglio--misura[open] { animation: appare .36s var(--molla) both; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .aereino { display: none; }
}

/* ---------------------------------------------------------------- small fixes after looking */
.m-domanda:focus { outline: none; }
@media (max-width: 359px) {
  .barra { padding-left: 9px; gap: 4px; }
  .barra-logo { width: 1.35rem; height: 1.35rem; }
  .barra-nome { font-size: .8125rem; }
  .pill--demo { padding: 0 .55rem; font-size: .75rem; }
  .barra .pill--azione { padding: 0 .75rem; font-size: .8125rem; }
}
.barra { height: 3.25rem; overflow: hidden; }
.barra .pill { min-height: 44px; }
@media (max-width: 24em) { .barra .pill--demo { display: none; } }
@media (max-width: 599px) {
  .mini { flex-wrap: wrap; margin-top: -1.5rem; }
  .mini-testi { flex: 1 1 9rem; }
  .mini .pill { flex: 1 0 100%; }
}

/* ---------------------------------------------------------------- integration pass (13 Nov, after the first test drive) */
/* what is scrolled into view never hides under the floating pill bar */
html { scroll-padding-top: 4.75rem; }
.pannello, .sezione, .chiusura { scroll-margin-top: 4.75rem; }
@media (min-width: 960px) { html { scroll-padding-top: 6rem; } .pannello, .sezione, .chiusura { scroll-margin-top: 6rem; } }
/* the search pill on phones: two tidy lines (grey question, bold answer) instead of a ragged wrap */
@media (max-width: 599px) {
  .cerca-pill { min-height: 56px; padding-top: .45rem; padding-bottom: .45rem; line-height: 1.3; border-radius: 28px; }
  .cerca-pill > span strong { display: block; font-size: .975rem; }
}
/* the browser's blue clear cross clashed with our colours */
.m-campo input::-webkit-search-cancel-button, .m-campo input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
/* wide: a little more room for the two cards beside the globe */
@media (min-width: 1200px) { .pannello { max-width: 82rem; } }

/* the moving wall of places (between «Come funziona» and «Domande») */
.muro { margin-top: 1rem; overflow: hidden; }
.muro-sotto { margin-top: .6rem; color: var(--inchiostro-2); font-size: 1rem; }
.muro-righe { margin-top: 1.5rem; display: grid; gap: 14px; }
.muro-riga { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.muro-pista { list-style: none; margin: 0; padding: 4px 0 10px; display: flex; gap: 14px; width: max-content; animation: muro-scorre 110s linear infinite; }
.muro-riga--2 .muro-pista { animation-duration: 125s; animation-direction: reverse; }
.muro-riga:hover .muro-pista, .muro-riga:focus-within .muro-pista, .muro--fermo .muro-pista { animation-play-state: paused; }
@keyframes muro-scorre { to { transform: translateX(calc(-50% - 7px)); } }
.posto {
  display: block; width: 12rem; padding: 8px 8px 10px; border: 0; border-radius: 20px; background: var(--carta); box-shadow: var(--ombra-p);
  text-align: left; color: var(--inchiostro); transition: transform .25s var(--molla), box-shadow .25s;
}
.posto:hover { transform: translateY(-3px); box-shadow: var(--ombra-su); }
.posto:active { transform: scale(.97); }
.posto img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: var(--fuoco, 50% 50%); border-radius: 13px; background: var(--colore, #9ab); }
.posto-testi { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .3rem 0; }
.posto-testi b { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.posto-testi span { font-size: .8125rem; color: var(--inchiostro-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posto-testi b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 960px) { .posto { width: 16rem; } .muro { margin-top: 2rem; } }
@media (prefers-reduced-motion: reduce) {
  .muro-riga { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .muro-pista { animation: none; padding-left: 16px; padding-right: 16px; }
  .muro-pista > li[aria-hidden="true"] { display: none; }
}

/* tickets in a narrow box (320 px phones, 200% text): smaller times so nothing is cut */
.data-aperta, .m-voli { container-type: inline-size; }
@container (max-width: 20rem) {
  .b-tratta { gap: .15rem .4rem; }
  .b-ora { font-size: 1.05rem; }
  .b-linea .icona { width: 1.1rem; height: 1.1rem; }
}
/* the tilted tickets must never widen the page (seen at 200% text) */
.come { overflow-x: clip; }
.barra .pill--demo { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 200% text: the sheet's overflow came from the saving box's grid column sizing to its widest line (round 2, §D2) */

/* ================================================================ round 2 (13 Nov night): the phone's first screen and small fixes */
.sotto-corto, .riga-cerca { display: none; }
.tag { font-size: .75rem; }
/* §D3: one «esempio» per card stays, but lighter */
.prezzo-pill-e { font-size: .75rem; font-weight: 500; letter-spacing: .01em; text-transform: none; opacity: .66; }
.riga-cerca-b {
  width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem 1rem; border-radius: 999px;
  border: 1.5px dashed var(--bordo-forte); background: rgba(255, 255, 255, .6); font-size: .9375rem; line-height: 1.3;
  color: var(--inchiostro-2); text-align: left; transition: border-color .2s, background-color .2s, transform .18s var(--molla);
}
.riga-cerca-b strong { color: var(--azione); font-weight: 700; white-space: nowrap; }
.riga-cerca-b > span { flex: 1; min-width: 0; }
.riga-cerca-b:hover { border-color: var(--azione); background: var(--carta); }
.riga-cerca-b:active { transform: scale(.98); }

/* §A1: the city pills on one row that scrolls sideways, with soft fades at the edges */
@media (max-width: 699px) {
  .sotto-lungo { display: none; }
  .sotto-corto { display: inline; }
  .citta {
    --sx: 0px; --dx: 0px; position: relative;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
    max-width: none; margin: .9rem -16px 0; padding: 4px 16px 10px; scroll-padding-inline: 24px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sx), #000 calc(100% - var(--dx)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--sx), #000 calc(100% - var(--dx)), transparent);
  }
  .citta::-webkit-scrollbar { display: none; }
  .citta--sx { --sx: 28px; }
  .citta--dx { --dx: 40px; }
  .citta > .pill--citta { flex: none; }
  .citta > .pill--citta:hover { transform: none; }
}

/* §A2–A6: tighter hero, one-row panel heading, search row inside the list */
@media (max-width: 599px) {
  .arrivo { padding: 4.65rem 16px .8rem; }
  .arrivo h1 { margin-top: .75rem; }
  .sotto { margin-top: .45rem; font-size: 1rem; }
  .pannello { margin-top: .2rem; padding-top: 1rem; }
  .pannello-testa { display: flex; align-items: center; gap: .5rem; padding: 0 2px 0 6px; }
  .pannello h2 { flex: 1; min-width: 0; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.035em; }
  .pannello h2 .tag { vertical-align: .2em; margin-left: .05rem; height: 1.25rem; padding: 0 .45rem; letter-spacing: .04em; }
  .h2-resto, .pannello-conta { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cerca-pill--testa { display: none; }
  .interruttore { flex: none; align-self: center; padding: 3px; }
  .interruttore-voce { flex: none; position: relative; min-height: 34px; padding: 0 .6rem; gap: .28rem; font-size: .8125rem; }
  .interruttore-voce::after { content: ""; position: absolute; inset: -5px 0; }
  .interruttore-voce .icona { width: 1rem; height: 1rem; }
  .comandi { margin-top: .65rem; }
  .corpo { margin-top: .5rem; }
  .riga-cerca { display: block; }
}
@media (max-width: 379px) {
  .voce-testo { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .interruttore-voce { padding: 0 .7rem; }
  .riga-cerca-b { font-size: .875rem; padding: .45rem .85rem; }
}
/* tablets: heading and switch on one row, the search pill under them */
@media (min-width: 600px) and (max-width: 959px) {
  .pannello-testa { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; }
  .pannello-testa > .pannello-conta, .pannello-testa > .cerca-pill { grid-column: 1 / -1; }
}

/* §B: wide screens */
@media (min-width: 960px) {
  .stato { display: none; }
  .arrivo { padding-top: 7.25rem; }
  .arrivo h1 { margin-top: 0; }
  .corpo[data-vista] .colonna-mappa { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 6.75rem; }
  .colonna-mappa > .oblo { grid-area: 1 / 1; }
  .colonna-mappa > .mini, .colonna-mappa > .mappa-aiuto { grid-area: 2 / 1; align-self: center; margin: .5rem auto 0; }
  .colonna-mappa > .mini { width: 100%; }
}
/* §B3: the «Partenza» label sits on the globe's rim, off the route lines */
.colonna-mappa { padding-top: .95rem; }
.colonna-mappa > .oblo-etichetta { top: 0; transform: translate(-50%, 0); z-index: 6; }
/* §C: ghost tickets while «su misura» searches */
.fantasmi { margin-top: .9rem; display: grid; gap: 10px; }
.fantasma {
  position: relative; overflow: hidden; display: grid; gap: .7rem; padding: 1.1rem 1rem 1rem; border-radius: 20px;
  background: var(--carta); border: 1px solid var(--bordo); box-shadow: var(--ombra-p);
}
.fantasma::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .7) 50%, transparent 80%);
  animation: luccica 1.4s ease-in-out infinite;
}
.fantasma-riga { display: block; height: .85rem; border-radius: 999px; background: rgba(var(--ombra-rgb), .08); }
.fantasma-riga--corta { width: 38%; }
.fantasma-riga--lunga { height: 1.6rem; border-radius: 10px; }
.fantasma-riga--lunga + .fantasma-riga--lunga { width: 82%; }
.fantasma-riga--bottone { height: 2.75rem; width: 46%; justify-self: end; margin-top: .2rem; }
.fantasma:nth-child(2)::after { animation-delay: .15s; }
.fantasma:nth-child(3)::after { animation-delay: .3s; }
@keyframes luccica { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .fantasma::after { display: none; } }
/* §D2: the saving box in the deal sheet never widens the sheet (it overflowed by 13-23 px at 200% text) */
.s-risparmio { grid-template-columns: minmax(0, 1fr); }
.s-risparmio > * { min-width: 0; }
.s-ricontrollo { flex-wrap: wrap; }
/* the ticket's «Prenota» pill wraps instead of being cut (seen at 200% text) */
.biglietto .pill--azione { max-width: 100%; white-space: normal; text-align: center; padding-top: .45rem; padding-bottom: .45rem; }
/* ---------------------------------------------------------------- round 3 */
/* part 2: month chips with a small calendar; the sheet says what the number on the month means */
.mesi-tag-v { display: contents; }
.mesi-icona { width: 1.05rem; height: 1.05rem; align-self: center; color: var(--inchiostro-2); opacity: .7; }
.s-date-conta { margin: .85rem 0 0; font-size: .875rem; font-weight: 650; color: var(--inchiostro-2); }
.s-date-conta + .s-date { margin-top: .45rem; }
/* R11: phone held sideways, the deal photo takes at most about 45% of the height */
@media (max-height: 500px) and (max-width: 959px) { .s-foto { height: 45vh; height: 45dvh; min-height: 0; } }
/* R12: at 200% text the «Come funziona» tickets shrink instead of sticking out */
@media (max-width: 959px) { .biglietti-come { grid-template-columns: minmax(0, 1fr); } }
.bc { min-width: 0; max-width: 100%; }
.bc-testi { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 959px) { .bc-numero { width: min(4.25rem, 18vw); } }
/* R12: the big pill wraps at 200% text; the tilted tickets keep inside the screen */
.pill--grande { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 959px) { .bc { margin-inline: 5px; } .bc--3 { transform: rotate(1.2deg); } }
/* ---- round 3, part 3.1: less red in tramonto. Route names and the map routes take --rotta (the bar's dark blue);
   buttons, the key word of each heading and the links keep the action colour */
[data-tema="tramonto"] { --rotta: #14324A; }
.carta-rotta, .mini-rotta { color: var(--rotta); }
.oblo { --globo-rotta: var(--rotta); }
[data-tema="tramonto"] .oblo { --globo-rotta: #2E6FA8; }
/* ---- round 3, part 3.2: «su misura» results. A band with the place (photo or evening sky), then the best ticket and rows */
:root, [data-tema="tramonto"] { --banda-cielo: linear-gradient(160deg, #14324A 0%, #2E6FA8 52%, #F39A76 100%); }
.m-banda {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 10.5rem; margin: .9rem 0 0;
  border-radius: 26px; background: var(--colore, transparent); background-image: var(--banda-cielo); color: #fff; box-shadow: var(--ombra-g);
}
.m-banda--foto { background-image: none; }
.m-banda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fuoco, 50% 50%); animation: zoom 1.4s var(--molla) both; }
.m-banda--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .05), transparent 35%, rgba(0, 0, 0, .58)); }
.m-banda-testi { position: relative; z-index: 1; padding: 1rem 1.15rem 1.05rem; }
.m-banda-rotta { margin: 0; font-size: clamp(1.625rem, 7vw, 2.25rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.05; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.m-banda-sotto { margin: .3rem 0 0; font-size: .9375rem; font-weight: 650; opacity: .95; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.m-banda-credito { position: absolute; z-index: 2; top: 10px; right: 10px; max-width: 70%; padding: .15rem .55rem; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .6875rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-banda-credito:hover { text-decoration: underline; }
.m-banda-linea { position: absolute; top: 34%; left: 8%; right: 8%; height: 0; border-top: 3px dotted rgba(255, 255, 255, .7); transform: rotate(-7deg); transform-origin: left center; }
.m-banda-linea .icona { position: absolute; right: -6px; top: -15px; width: 28px; height: 28px; color: #fff; transform: rotate(7deg); }
.m-altri-t { margin: 1.4rem 0 .5rem; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; }
.m-righe { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-riga .data-giorni { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.m-orari { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .m-banda img { animation: none; } }
/* ---- round 3, part 3.3: «Come funziona» shows the message that arrives (under the tickets on phones, beside on wide screens) */
.messaggio-posto { max-width: 24rem; margin: 2rem auto 0; text-align: left; }
.messaggio-sopra { margin: 0 0 .55rem 1rem; font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--inchiostro-2); }
.messaggio {
  position: relative; display: grid; gap: .65rem; width: 100%; padding: .85rem .95rem 1rem; border: 0; border-radius: 24px; text-align: left;
  background: rgba(255, 255, 255, .9); color: var(--inchiostro); box-shadow: var(--ombra-su);
  transition: transform .35s var(--molla); animation: messaggio-arriva .7s var(--molla) both;
}
.messaggio:hover { transform: translateY(-3px); }
.msg-testa { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; }
.msg-testa b { font-weight: 750; }
.msg-marchio { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px; background: var(--barra); color: var(--barra-testo); }
.msg-marchio .icona { width: 1.15rem; height: 1.15rem; }
.msg-ora { margin-left: auto; color: var(--inchiostro-2); }
.msg-corpo { display: flex; gap: .75rem; align-items: center; }
.msg-foto { flex: none; width: 4rem; height: 4rem; border-radius: 14px; overflow: hidden; background: var(--colore, #9ab); }
.msg-foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fuoco, 50% 50%); }
.msg-testi { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.msg-testi strong { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.msg-testi span { font-size: .875rem; color: var(--inchiostro-2); }
.messaggio .tag { justify-self: start; }
@keyframes messaggio-arriva { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .messaggio { animation: none; transition: none; } }
@media (min-width: 1200px) {
  .come { max-width: 78rem; }
  .come-griglia { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; align-items: center; margin-top: 1.75rem; }
  .come-griglia .biglietti-come { margin-top: 0; max-width: none; }
  .messaggio-posto { margin: 0; }
}
/* ---- round 3, part 3.4: the far deals as pills under the globe; tags that the rim would cut hide */
.mappa-posto .mm-punto.e-bordo .mm-prezzo { visibility: hidden; }
.lontane { margin: .9rem auto 0; max-width: 34rem; text-align: center; }
.lontane[hidden] { display: none; }
.lontane-t { margin: 0 0 .5rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 650; color: var(--inchiostro-2); }
.lontane-riga { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lontana { min-height: 40px; padding: .35rem .9rem; gap: .35rem; background: var(--carta); color: var(--inchiostro); border: 1px solid var(--bordo); box-shadow: var(--ombra-p); font-size: .875rem; font-weight: 650; }
.lontana b { padding: .1rem .5rem; border-radius: 999px; background: var(--barra); color: var(--barra-testo); font-weight: 800; font-size: .8125rem; }
.lontana:hover { border-color: var(--rotta); transform: translateY(-1px); }
@media (min-width: 960px) {
  .corpo[data-vista] .colonna-mappa { grid-template-rows: auto auto 6.75rem; }
  .colonna-mappa > .lontane { grid-area: 2 / 1; }
  .colonna-mappa > .mini, .colonna-mappa > .mappa-aiuto { grid-area: 3 / 1; }
}
/* ---- round 3, part 3.5: tablets use the phone's one-row panel heading and the sideways city row; short wide screens trim the hero */
@media (min-width: 600px) and (max-width: 959px) {
  .citta {
    --sx: 0px; --dx: 0px; position: relative;
    flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
    max-width: none; margin-top: .9rem; padding: 4px 16px 10px; scroll-padding-inline: 24px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--sx), #000 calc(100% - var(--dx)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--sx), #000 calc(100% - var(--dx)), transparent);
  }
  .citta::-webkit-scrollbar { display: none; }
  .citta--sx { --sx: 28px; }
  .citta--dx { --dx: 40px; }
  .citta > .pill--citta { flex: none; }
  .pannello { padding-top: 1.25rem; }
  .pannello-testa { display: flex; align-items: center; gap: .75rem; padding: 0 2px 0 6px; }
  .pannello h2 { flex: 1; min-width: 0; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.035em; }
  .h2-resto, .pannello-conta { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cerca-pill--testa { display: none; }
  .interruttore { flex: none; align-self: center; min-width: 0; }
  .comandi { margin-top: .75rem; }
  .corpo { margin-top: .6rem; }
  .riga-cerca { display: block; grid-column: 1 / -1; }
}
@media (min-width: 960px) and (max-height: 820px) {
  .arrivo { padding-top: 5.25rem; }
  .pannello { padding-top: 1.4rem; }
}
/* the message card at 200% text: its head wraps instead of sticking out */
.msg-testa { flex-wrap: wrap; min-width: 0; }
.msg-testa b, .msg-testi strong { overflow-wrap: anywhere; }
.messaggio { grid-template-columns: minmax(0, 1fr); }
.msg-testi { flex: 1 1 0; }
.messaggio .tag { max-width: 100%; white-space: normal; height: auto; }

/* ---- round 3, coordinator, after the verifier (V1, V5): --rotta only in tramonto (line 774); the hero line breaks evenly */
.sotto { text-wrap: balance; }

/* ---- pagina vera, fase 2 «lingue» (B3): long texts of other languages. From the trials T1-T5 of fase-2/finta.
   Neutral rules act only when a text no longer fits its box (never in Italian at the measured sizes); the others are
   scoped to the other languages, so Italian cannot change by construction. */
/* T1 (neutral) a single word too long for the whole row breaks instead of running out of its band */
#titolo-offerte, #titolo-chiusura { overflow-wrap: break-word; }
/* T2 (neutral) the «esempio» tag of a «su misura» row never runs under the price: its column keeps to its box */
.m-riga .data-giorni { max-width: 100%; }
.m-riga .data-giorni .tag { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the panel heading on phones and wide screens: when the heading has no room beside the List/Map switch, the switch
   takes a line of its own (at the right) instead of a word breaking or running under it */
:root:not(:lang(it)) .pannello-testa { flex-wrap: wrap; row-gap: .5rem; }
:root:not(:lang(it)) .pannello-testa h2 { min-width: auto; }   /* never narrower than its longest word */
:root:not(:lang(it)) .pannello-testa .interruttore { margin-left: auto; }
/* T3 the greeting line of the wide bar ends with «…» instead of losing its second line silently */
:root:not(:lang(it)) .barra-saluto-riga { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* T4 names and distances on the photo wall take up to two lines instead of «…» */
:root:not(:lang(it)) .posto-testi b, :root:not(:lang(it)) .posto-testi span { white-space: normal; overflow-wrap: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* T5 a date row lets its price column narrow and its small line wrap («per person · €138 for two») before the dates
   take four lines; the price itself never breaks */
:root:not(:lang(it)) .data-riga .data-prezzo { flex: 0 1 auto; max-width: 46%; }
:root:not(:lang(it)) .data-riga .data-prezzo span { white-space: normal; }
:root:not(:lang(it)) .data-prezzo b { white-space: nowrap; }

/* ================================================================ pagina vera, fase 4 (part A): what every page of the
   site needs and E lacks, in E's grammar and with new class names only (nothing above changes): the skip link, the
   bar's link versions (the language code pill, «Iscriviti» as a link), a free secondary pill, the site's footer (the six
   languages as pills, the legal lines), a plain text link row, and a still sky for the pages without a script (nothing
   there could pause it). The reading column and the cards of the other pages are in e-pagine.css. */
.salta { position: fixed; z-index: 30; top: 10px; left: 10px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; background: var(--barra); color: var(--barra-testo); font-weight: 700; text-decoration: none; box-shadow: var(--ombra-su); }
.salta:focus-visible { outline-color: var(--barra-testo); outline-offset: 2px; }
.salta:not(:focus) { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cielo--fermo { height: min(76rem, 100%); }
.cielo--fermo .nuvola { animation: none; }
.barra-sito .barra-marchio { margin-right: auto; }
.pill--lingua { background: transparent; color: var(--barra-testo); border-color: rgba(255, 255, 255, .28); padding: 0 .8rem; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; flex: none; }
.pill--lingua:hover { background: rgba(255, 255, 255, .1); }
.barra-sito .pill--azione { flex: none; }
@media (max-width: 359px) { .pill--lingua { padding: 0 .55rem; font-size: .75rem; } }
.pill--seconda { background: var(--carta); border-color: var(--bordo-forte); color: var(--inchiostro); }
.pill--seconda:hover { border-color: var(--inchiostro-2); }
.righe-link { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .2rem; font-size: .875rem; color: var(--inchiostro-2); }
.righe-link a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .4rem; color: var(--inchiostro-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.righe-link a:hover { color: var(--inchiostro); }
@media (max-width: 599px) { .righe-link { flex-direction: column; } .righe-link-punto { display: none; } }
.piede-sito { display: grid; justify-items: center; gap: 1.5rem; }
.piede-lingue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 46rem; }
.piede-lingue a {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1.5px solid var(--bordo); background: var(--carta); color: var(--inchiostro); box-shadow: var(--ombra-p);
  font-size: .875rem; font-weight: 650; line-height: 1.1; white-space: nowrap; text-decoration: none; transition: border-color .2s, transform .18s var(--molla);
}
.piede-lingue a:hover { border-color: var(--bordo-forte); transform: translateY(-1px); }
.piede-lingue a[aria-current] { background: var(--barra); color: var(--barra-testo); border-color: var(--barra); box-shadow: 0 6px 16px rgba(var(--ombra-rgb), .2); }
.piede-lingue a[aria-current]::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--barra-testo); }
.piede-legale { display: grid; gap: .4rem; max-width: 40rem; font-size: .8125rem; line-height: 1.5; color: var(--inchiostro-2); overflow-wrap: anywhere; }
.piede-legale a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.piede-legale a:hover { color: var(--inchiostro); }

/* the wordmark: the drawing of the letters (strumenti/marchio/scritta.svg, written into the page by the generator),
   1.25em tall, its width from its viewBox (92.29 x 19.80): the name for screen readers is the .solo-lettori beside it */
.scritta { display: inline-flex; align-items: center; overflow: visible; }
.scritta-disegno { display: block; height: 1.25em; width: 5.826em; flex: none; }
