/* ==========================================================================
   Onair International — foglio di stile
   Indice: 1 Font · 2 Variabili · 3 Base · 4 Layout · 5 Header · 6 Hero
           7 Testata pagine · 8 Componenti · 9 Sezioni · 10 Footer
           11 Animazioni · 12 Stampa
   ========================================================================== */

/* 1. Font (ospitati sul sito, nessuna chiamata a servizi esterni) ---------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* 2. Variabili ------------------------------------------------------------- */
:root {
  --petrol: #001a22;
  --petrol-2: #00252f;
  --petrol-3: #0b3642;
  --teal: #124d5e;
  --stratus: #eef2f2;
  --paper: #ffffff;
  --orange: #f29400;
  --ink: #0a2730;
  --ink-soft: #47606a;
  --mist: #a9bcc2;
  --rule: rgba(10, 39, 48, 0.16);
  --rule-dark: rgba(255, 255, 255, 0.18);

  --sans: "Jost", "Century Gothic", "Avenir Next", Avenir, system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --fs-display: clamp(3.5rem, 10.5vw, 10rem);
  --fs-h1: clamp(2.75rem, 6.4vw, 5.75rem);
  --fs-h2: clamp(2rem, 3.9vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 2.2vw, 2rem);
  --fs-lead: clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-body: clamp(1.0625rem, 1.05vw + 0.8rem, 1.1875rem);
  --fs-small: 0.9375rem;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9.5rem);
  --wrap: 82rem;
  --header-h: 5.5rem;
  --slant: -16.6deg;              /* l'inclinazione della freccia del marchio */
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; overflow-x: clip; }
body {
  margin: 0;
  background: var(--stratus);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.015em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
blockquote { margin: 0; }
::selection { background: var(--orange); color: var(--petrol); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.7rem 1rem; background: var(--orange); color: var(--petrol);
  font-family: var(--sans); text-decoration: none;
}
.skip:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 4. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper); }
.section--stratus { background: var(--stratus); }
.section--dark { background: var(--petrol); color: #fff; }
.section--dark .muted { color: var(--mist); }
.section--tight-top { padding-top: clamp(2.5rem, 5vw, 4.5rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--center { align-items: center; }
}
.prose { max-width: 38em; }
.prose h3 { margin: 2em 0 0.6em; }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.42;
  letter-spacing: -0.005em;
  max-width: 30em;
}
.muted { color: var(--ink-soft); }
.stack > * + * { margin-top: 1.4rem; }
.stack-lg > * + * { margin-top: clamp(1.75rem, 3vw, 2.75rem); }

/* 5. Header ---------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: height 0.4s var(--ease), background-color 0.4s, box-shadow 0.4s;
}
.header::before {                       /* velo scuro per leggere il menu sulle foto */
  content: ""; position: absolute; inset: 0 0 -2.5rem 0; z-index: -1;
  background: linear-gradient(rgba(0, 26, 34, 0.72), rgba(0, 26, 34, 0));
  transition: opacity 0.4s; pointer-events: none;
}
.header.is-stuck {
  height: 4.25rem;
  background: rgba(0, 26, 34, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.header.is-stuck::before { opacity: 0; }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { width: clamp(8.25rem, 11vw, 10.25rem); transition: width 0.4s var(--ease); }
.header.is-stuck .brand img { width: 8.25rem; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); font-family: var(--sans); }
.nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav__link {
  position: relative; display: block; padding: 0.5rem 0;
  font-size: 1rem; letter-spacing: 0.015em; text-decoration: none; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; letter-spacing: 0.04em; }
.lang a { text-decoration: none; opacity: 0.6; padding: 0.4rem 0.1rem; transition: opacity 0.3s; }
.lang a:hover { opacity: 1; }
.lang [aria-current="true"] { opacity: 1; border-bottom: 1px solid var(--orange); }
.lang span { opacity: 0.35; }

.burger {
  display: none; position: relative; z-index: 120;
  width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
  border: 0; background: none; color: inherit; cursor: pointer;
}
.burger span {
  position: absolute; left: 0.6rem; right: 0.6rem; height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s, top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 1rem; }
.burger span:nth-child(2) { top: 1.7rem; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 1.35rem; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 1.35rem; transform: rotate(-45deg); }

@media (max-width: 61.99rem) {
  :root { --header-h: 4.5rem; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: 6rem var(--pad) 3rem;
    background: var(--petrol);
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    visibility: hidden;
    transition: clip-path 0.65s var(--ease), visibility 0s 0.65s;
  }
  .nav.is-open {
    clip-path: polygon(-40% 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
    transition: clip-path 0.65s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0.35rem; }
  .nav__link { font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 300; letter-spacing: -0.02em; padding: 0.2rem 0; }
  .nav__link::after { bottom: 0; }
  .nav .btn { margin-top: 0.5rem; }
  .lang { font-size: 1.0625rem; }
  body.nav-open { overflow: hidden; }
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; z-index: 1; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--petrol); color: #fff;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5vw), 0 100%);
  margin-bottom: -4.5vw;
}
.hero__media { position: absolute; inset: -4% 0; z-index: -3; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(98deg, rgba(0, 26, 34, 0.9) 0%, rgba(0, 26, 34, 0.62) 34%, rgba(0, 26, 34, 0) 66%),
    linear-gradient(0deg, rgba(0, 26, 34, 0.7) 0%, rgba(0, 26, 34, 0) 42%);
}
.hero__curtain {                        /* tenda obliqua con filo arancio: si apre al caricamento */
  position: absolute; inset: -10% -40%; z-index: -1;
  background: var(--petrol); border-right: 2px solid var(--orange);
  transform: translateX(-130%) skewX(var(--slant));
  pointer-events: none;
}
.hero__content { padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero__title {
  font-size: var(--fs-display); font-weight: 200; line-height: 0.92; letter-spacing: -0.04em;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: block; }
.hero__lead {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: var(--fs-lead); line-height: 1.4; max-width: 24em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2.5rem;
  padding-top: 1.25rem; padding-bottom: calc(4.5vw + 1.5rem);
  border-top: 1px solid var(--rule-dark);
  font-family: var(--sans); font-size: var(--fs-small); letter-spacing: 0.015em;
}
.hero__foot .more { font-size: inherit; border-bottom-color: var(--rule-dark); }
.hero__foot .more:hover { border-bottom-color: var(--orange); }
@media (max-width: 47.99rem) {
  .hero__media { inset: 0 0 auto 0; height: 56%; }
  .hero__media img { object-position: 90% 40%; }
  .hero__shade {
    background:
      linear-gradient(0deg, var(--petrol) 0%, var(--petrol) 47%, rgba(0, 26, 34, 0.6) 58%, rgba(0, 26, 34, 0) 78%),
      linear-gradient(180deg, rgba(0, 26, 34, 0.5), rgba(0, 26, 34, 0) 22%);
  }
  .hero__title { font-size: clamp(3.25rem, 16vw, 4.75rem); }
  .hero__foot span:first-child { display: none; }
}

/* 7. Testata delle pagine interne ----------------------------------------- */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--petrol); color: #fff;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 8rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.pagehead::before {                     /* filo arancio obliquo, come nel marchio */
  content: ""; position: absolute; z-index: -1;
  right: clamp(8%, 22vw, 30%); top: -20%; width: 1px; height: 150%;
  background: linear-gradient(transparent, var(--orange) 30%, var(--orange) 60%, transparent);
  transform: rotate(16.6deg); transform-origin: top; opacity: 0.75;
}
.pagehead__title { font-weight: 200; letter-spacing: -0.035em; }
.pagehead__lead { margin-top: clamp(1.25rem, 2.5vw, 2rem); color: #dbe5e7; max-width: 26em; }
.pagehead__art { position: absolute; z-index: -2; pointer-events: none; }
.pagehead__art--draw { right: -4%; top: 12%; width: min(38rem, 48vw); opacity: 0.6; }
.pagehead__art--photo { right: 0; bottom: 0; width: min(40rem, 40vw); opacity: 0.9; }
.pagehead__art--clouds { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
@media (max-width: 47.99rem) {
  .pagehead__art--draw { width: 80vw; right: -30%; opacity: 0.3; }
}
@media (max-width: 61.99rem) { .pagehead__art--photo { display: none; } }
.anchors { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: clamp(2rem, 4vw, 3.25rem); font-family: var(--sans); font-size: 1rem; }
.anchors a { text-decoration: none; padding: 0.3rem 0; border-bottom: 1px solid var(--rule-dark); transition: border-color 0.3s, color 0.3s; }
.anchors a:hover { border-color: var(--orange); color: var(--orange); }

/* 8. Componenti ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.95em 1.5em 0.95em 1.6em;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--orange); color: var(--petrol);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.btn::after {                           /* la freccia del marchio */
  content: ""; width: 0.62em; height: 0.72em; flex: none;
  background: currentColor;
  clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { background: #fff; }
.btn:hover::after { transform: translateX(0.3em); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: #fff; color: var(--petrol); border-color: #fff; }
.btn--dark { background: var(--petrol); color: #fff; }
.btn--dark:hover { background: var(--petrol-3); }
.btn--small { padding: 0.7em 1.15em 0.7em 1.25em; font-size: 0.9375rem; }

.more {
  display: inline-flex; align-items: center; gap: 0.65em;
  font-family: var(--sans); font-size: 1.0625rem; letter-spacing: 0.01em; text-decoration: none;
  padding-bottom: 0.25rem; border-bottom: 1px solid currentColor;
  transition: color 0.3s, border-color 0.3s;
}
.more::after {
  content: ""; width: 0.56em; height: 0.66em; background: var(--orange);
  clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%);
  transition: transform 0.45s var(--ease);
}
.more:hover { color: var(--orange); }
.more:hover::after { transform: translateX(0.3em); }

.chev { display: grid; gap: 0.85em; }
.chev li { position: relative; padding-left: 1.6em; }
.chev li::before {
  content: ""; position: absolute; left: 0; top: 0.47em; width: 0.62em; height: 0.72em;
  background: var(--orange);
  clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%);
}

/* foto con il taglio obliquo già presente negli scatti */
.cut { position: relative; }
.cut img { width: 100%; }
.bleed-right { margin-right: calc(var(--pad) * -1); }
.bleed-left { margin-left: calc(var(--pad) * -1); }
@media (min-width: 88rem) {
  .bleed-right { margin-right: calc((100vw - var(--wrap)) / -2 - var(--pad)); }
  .bleed-left { margin-left: calc((100vw - var(--wrap)) / -2 - var(--pad)); }
}

/* numeri chiave */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 60rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.section--dark .fact { border-color: var(--rule-dark); }
.fact__n {
  display: block; font-family: var(--sans); font-weight: 200;
  font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.fact__n--icon svg { height: 1em; width: auto; }
.fact__l { display: block; margin-top: 0.7rem; font-size: 1rem; line-height: 1.4; color: var(--ink-soft); max-width: 16em; }
.section--dark .fact__l { color: var(--mist); }

/* mappa delle rotte: tratte tra città diverse, scelte a caso dallo script */
.routes { position: relative; aspect-ratio: 600 / 407; }
.routes > img, .routes > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.routes__arc { fill: none; stroke: var(--orange); stroke-width: 0.9; stroke-linecap: round; }
.routes__dot { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.routes__head { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 0.012 1; }
.routes.is-live .routes__static { display: none; }
.routes__live .routes__arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: route-arc var(--t, 6s) linear forwards; }
.routes__live .routes__head { animation: route-head var(--t, 6s) linear forwards; }
.routes__live .routes__dot--a { animation: route-a var(--t, 6s) linear forwards; }
.routes__live .routes__dot--b { animation: route-b var(--t, 6s) linear forwards; }
@keyframes route-arc {
  0% { stroke-dashoffset: 1; opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  46% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes route-head {
  0% { stroke-dashoffset: 0; opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  46% { stroke-dashoffset: -0.988; opacity: 1; }
  52%, 100% { stroke-dashoffset: -0.988; opacity: 0; }
}
@keyframes route-a {
  0% { opacity: 0; transform: scale(0.2); }
  5% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes route-b {
  0%, 42% { opacity: 0; transform: scale(0.2); }
  48% { opacity: 1; transform: scale(1.5); }
  54%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* sagome degli aeromobili, dall'elicottero al VIP airliner */
.scale {
  display: flex; align-items: flex-end; gap: clamp(1.25rem, 2.6vw, 2.5rem);
  overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--pad);
}
.scale::-webkit-scrollbar { display: none; }
.scale li {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  scroll-snap-align: start;
  font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.02em; color: var(--mist); white-space: nowrap;
}
.scale img { height: calc(var(--h) * 0.036rem + 1rem); width: auto; max-width: none; }
.scale li + li { border-left: 0; }
.scale span { padding-top: 0.6rem; border-top: 1px solid var(--orange); min-width: 100%; text-align: center; }

/* strisce della flotta (home) */
.strips { display: grid; gap: 0.5rem; }
.strip {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  height: clamp(6.5rem, 11vw, 9.5rem);
  color: #fff; text-decoration: none; background: var(--petrol);
  transition: height 0.8s var(--ease);
}
.strip img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  transform: scale(1.04); transition: transform 1.4s var(--ease), opacity 0.6s; opacity: 0.82;
}
.strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 26, 34, 0.88), rgba(0, 26, 34, 0.35) 55%, rgba(0, 26, 34, 0)), linear-gradient(0deg, rgba(0, 26, 34, 0.55), rgba(0, 26, 34, 0) 60%);
  transition: opacity 0.6s;
}
.strip__in {
  position: absolute; inset: auto 0 0 0; padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.strip__name { font-family: var(--sans); font-weight: 300; font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.05; }
.strip__text { font-size: 1.125rem; max-width: 30em; height: 0; opacity: 0; transform: translateY(0.5rem); transition: opacity 0.5s, transform 0.6s var(--ease); }
.strip.is-open { height: clamp(13rem, 27vw, 24rem); }
.strip.is-open img { transform: scale(1); opacity: 1; }
.strip.is-open::before { opacity: 0.9; }
.strip.is-open .strip__text { height: auto; opacity: 1; transform: none; transition-delay: 0.25s; }
@media (hover: none), (max-width: 47.99rem) {
  .strip, .strip.is-open { height: clamp(11rem, 46vw, 16rem); }
  .strip img { transform: none; opacity: 1; }
  .strip .strip__text { height: auto; opacity: 1; transform: none; }
  .strip::before { background: linear-gradient(0deg, rgba(0, 26, 34, 0.9), rgba(0, 26, 34, 0.1) 75%); }
}

/* elenco servizi con foto che cambia (home) */
.picker { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 60rem) { .picker { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.picker__list { border-top: 1px solid var(--rule); }
.picker__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(0.9rem, 1.6vw, 1.35rem) 0; border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.35rem); letter-spacing: -0.02em; line-height: 1.1;
  text-decoration: none; transition: padding-left 0.5s var(--ease), color 0.3s;
}
.picker__item::after {
  content: ""; flex: none; width: 0.5em; height: 0.58em; background: var(--orange);
  clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%);
  opacity: 0; transform: translateX(-0.5em); transition: opacity 0.3s, transform 0.5s var(--ease);
}
.picker__item:hover, .picker__item.is-on { padding-left: 0.6rem; }
.picker__item:hover::after, .picker__item.is-on::after { opacity: 1; transform: none; }
.picker__stage { position: relative; aspect-ratio: 16 / 9; display: none; overflow: clip; }
@media (min-width: 60rem) { .picker__stage { display: block; } }
.picker__stage img {
  position: absolute; right: 0; top: 50%; width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: right center;
  transform: translate(2.5rem, -50%); opacity: 0;
  transition: opacity 0.6s, transform 0.9s var(--ease);
}
.picker__stage img.is-on { opacity: 1; transform: translate(0, -50%); }

/* categorie della flotta (pagina Flotta) */
.craft + .craft { margin-top: clamp(4rem, 9vw, 8rem); }
.craft__photo { overflow: hidden; }
.craft__photo img { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (max-width: 47.99rem) { .craft__photo img { aspect-ratio: 16 / 9; } }
.craft__body { display: grid; gap: 1.25rem clamp(2rem, 5vw, 5rem); margin-top: clamp(1.75rem, 3.5vw, 3rem); }
@media (min-width: 60rem) { .craft__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* righe dei servizi (pagina Servizi esclusivi) */
.service {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--rule);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
@media (min-width: 60rem) { .service { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.service h2 { margin-bottom: 0.6em; font-size: var(--fs-h2); }

/* citazione della mission */
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 3.9vw, 3.5rem); line-height: 1.16; letter-spacing: -0.015em;
  max-width: 19em; text-wrap: balance;
}

/* contatti: telefono ed email sono testo, senza collegamenti */
.dials { border-bottom: 1px solid var(--rule); }
.dial {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem 2rem; align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--rule);
  transition: padding-left 0.6s var(--ease);
}
@media (min-width: 60rem) { .dial { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.dial__label { font-family: var(--sans); font-size: var(--fs-small); letter-spacing: 0.02em; color: var(--ink-soft); }
.dial__value {
  display: flex; align-items: center; gap: 0;
  font-family: var(--sans); font-weight: 200; font-size: clamp(1.4rem, 4.7vw, 4.25rem);
  letter-spacing: -0.03em; line-height: 1.05; white-space: nowrap;
}
.dial__value--xl { font-size: clamp(2.5rem, 7.4vw, 6.75rem); letter-spacing: -0.04em; }
.dial__value::after {
  content: ""; flex: none; margin-left: auto; width: 0.32em; height: 0.37em; background: var(--orange);
  clip-path: polygon(0 0, 42% 0, 100% 50%, 42% 100%, 0 100%, 58% 50%);
  opacity: 0; transform: translateX(-0.4em); transition: opacity 0.3s, transform 0.6s var(--ease);
}
@media (hover: hover) {
  .dial:hover { padding-left: 0.75rem; }
  .dial:hover .dial__value::after { opacity: 1; transform: none; }
}
@media (max-width: 47.99rem) { .dial__value::after { display: none; } }

/* indirizzi email: la chiocciola è disegnata qui, non sta nel sorgente della pagina */
.eml__at::before { content: "@"; }
.eml__at { font-style: normal; }
/* effetto al passaggio del mouse su telefono ed email (non sono collegamenti) */
.hov { transition: color 0.3s; }
.hov:hover { color: var(--orange); }

.details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem clamp(1.5rem, 4vw, 4rem); margin: 0; }
.stack-lg > .details { margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 34rem) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .details { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.details > div { border-top: 1px solid var(--rule); padding-top: 1rem; }
.details dt { font-family: var(--sans); font-size: var(--fs-small); letter-spacing: 0.02em; color: var(--ink-soft); }
.details dd { margin: 0.25rem 0 0; font-size: 1.125rem; overflow-wrap: anywhere; }

.mapbox {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(17rem, 30vw, 24rem);
  display: flex; align-items: flex-end;
  background: var(--petrol); color: #fff;
}
.mapbox__dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.mapbox__in { padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.mapbox__coords { font-family: var(--sans); font-weight: 200; font-size: clamp(1.6rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.mapbox__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.mapbox small { color: var(--mist); font-size: 0.875rem; }

/* 9. Sezioni specifiche ---------------------------------------------------- */
.intro__photo { margin-top: 1rem; }
@media (min-width: 60rem) { .intro__photo { margin-top: -2rem; } }

.safety { overflow: hidden; }
.safety__photo img { width: 100%; }
@media (min-width: 60rem) {
  .safety__photo { margin-block: calc(var(--section) * -0.45); }
}

.cabins { display: grid; gap: 0.75rem; }
.cabins .cut:nth-child(2) { margin-left: -6%; }

.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--petrol); color: #fff;
  padding-block: clamp(5rem, 11vw, 10rem) clamp(4rem, 8vw, 7rem);
  clip-path: polygon(0 4.5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -4.5vw;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0.5; filter: saturate(0.85); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 26, 34, 0.96) 10%, rgba(0, 26, 34, 0.7) 55%, rgba(0, 26, 34, 0.35));
}
.cta__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
@media (min-width: 60rem) { .cta__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.cta__phone {
  display: inline-block; font-family: var(--sans); font-weight: 200;
  font-size: clamp(2.2rem, 5.4vw, 4.75rem); letter-spacing: -0.035em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: color 0.3s;
}
.cta__phone:hover { color: var(--orange); }
.cta__mail { font-family: var(--sans); font-size: clamp(1.1rem, 1.6vw, 1.35rem); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 0.15rem; overflow-wrap: anywhere; }
.cta__mail:hover { color: var(--orange); }
.cta__label { font-family: var(--sans); font-size: var(--fs-small); letter-spacing: 0.02em; color: var(--mist); display: block; margin-bottom: 0.4rem; }

.notfound { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }

/* 10. Footer --------------------------------------------------------------- */
.footer { background: var(--petrol); color: #fff; padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-top: 1px solid var(--rule-dark); font-size: 1rem; line-height: 1.55; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__grid { display: grid; gap: 2.5rem clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34rem) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr); } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 60rem) { .footer__brand { grid-column: auto; } }
.footer__brand img { width: 10.5rem; }
.footer__brand p { margin-top: 1.25rem; color: var(--mist); max-width: 18em; }
.footer h2 { font-family: var(--sans); font-weight: 400; font-size: var(--fs-small); letter-spacing: 0.02em; color: var(--mist); margin-bottom: 0.9rem; }
.footer__nav li + li { margin-top: 0.35rem; }
.footer__members { display: flex; align-items: center; gap: 1.5rem; margin-top: 0.25rem; }
.footer__members img:first-child { height: 2.4rem; width: auto; }
.footer__members img:last-child { height: 3.75rem; width: auto; }
.footer__members-text { margin-top: 1rem; color: var(--mist); font-size: 0.875rem; line-height: 1.5; }
.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem;
  font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.01em; color: var(--mist);
}
.footer__legal a { border-bottom: 1px solid var(--rule-dark); }

/* 11. Animazioni ----------------------------------------------------------- */
@view-transition { navigation: auto; }

.js [data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"] > img {            /* il taglio sta sull'immagine: l'osservatore guarda il contenitore */
  clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%);
  transform: scale(1.06);
  transition: clip-path 1.5s var(--ease), transform 2.2s var(--ease); transition-delay: var(--d, 0s);
}
.js [data-reveal="wipe"].is-in > img { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); transform: none; }

/* sequenza d'ingresso (solo CSS: parte al primo disegno della pagina) */
.hero__curtain { animation: curtain 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.15s both; }
.hero__media img { animation: settle 3.2s var(--ease) 0.15s both; }
.hero__title .line > span { animation: rise 1.2s var(--ease) both; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.75s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.9s; }
.hero__lead { animation: fadeup 1.1s var(--ease) 1.25s both; }
.hero__actions { animation: fadeup 1.1s var(--ease) 1.4s both; }
.hero__foot { animation: fadeup 1.1s var(--ease) 1.6s both; }
.pagehead__title { animation: fadeup 1.1s var(--ease) 0.05s both; }
.pagehead__lead { animation: fadeup 1.1s var(--ease) 0.2s both; }
.pagehead .anchors, .pagehead .scale { animation: fadeup 1.1s var(--ease) 0.35s both; }
.pagehead::before { animation: hairline 1.6s var(--ease) 0.1s both; }
@keyframes curtain {
  from { transform: translateX(0) skewX(var(--slant)); }
  to { transform: translateX(-130%) skewX(var(--slant)); }
}
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }
@keyframes hairline {
  from { transform: rotate(16.6deg) scaleY(0); }
  to { transform: rotate(16.6deg) scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal="wipe"] > img { opacity: 1; transform: none; clip-path: none; }
  @view-transition { navigation: none; }
}

/* 12. Stampa --------------------------------------------------------------- */
@media print {
  .header, .hero__curtain, .burger, .cta__bg, .mapbox { display: none !important; }
  body, .section--dark, .cta, .footer, .pagehead, .hero { background: #fff !important; color: #000 !important; }
  .js [data-reveal], .js [data-reveal] > img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* raccordi con i tagli obliqui di hero e fascia contatti */
.hero + .section { padding-top: calc(var(--section) + 4.5vw); }
main > .section:has(+ .cta) { padding-bottom: calc(var(--section) + 4.5vw); }
