/* ==========================================================================
   Ocean Co. – foglio di stile del sito
   ========================================================================== */

@font-face {
  font-family: "Glitten";
  src: url("../fonts/glitten-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mostra One";
  src: url("../fonts/mostraone-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0d231e;
  --green-2: #15352d;
  --green-3: #20584c;
  --gold: #dda836;
  --sand: #e0bf9a;
  --white: #ffffff;
  --ink: #1d1d1b;
  --pill: #f2f2f2;

  --serif: "Glitten", "Didot", "Bodoni 72", Georgia, serif;
  --deco: "Mostra One", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* spaziatura delle lettere del Glitten (di suo molto stretto) */
  --tracking-text: .045em;
  --tracking-title: .015em;

  /* colori per ruolo: ogni stile grafico (theme-*.css) ridefinisce solo questi */
  --page-bg: var(--green);
  --page-fg: var(--white);
  --soft-fg: rgba(255, 255, 255, .85);
  --accent: var(--gold);
  --link: var(--sand);
  --line: rgba(255, 255, 255, .16);
  --muted: rgba(255, 255, 255, .3);
  --muted-hover: rgba(255, 255, 255, .7);
  --dot: #2f3f3b;
  --alt-bg: var(--white);
  --alt-fg: var(--ink);
  --zoom-fg: var(--white);
  --pill-bg: var(--pill);
  --pill-fg: var(--ink);
  --pill-icon-bg: var(--green);
  --pill-icon-fg: var(--white);
  --field-bg: rgba(165, 157, 157, .13);
  --field-bg-focus: rgba(165, 157, 157, .2);
  --field-border: rgba(255, 255, 255, .85);
  --field-fg: var(--white);
  --placeholder: rgba(255, 255, 255, .72);
  --button-bg: var(--green-2);
  --button-fg: var(--white);
  --button-border: rgba(255, 255, 255, .14);
  --button-hover: var(--green-3);
  --watermark: var(--white);
  --watermark-opacity: .07;
  --arrow-bg: rgba(0, 0, 0, .45);
  --arrow-hover: #000;
  --arrow-fg: var(--white);
  --arrow-border: rgba(255, 255, 255, .18);
  --footer-bg: var(--green);
  --footer-fg: var(--sand);
  --logo-on-dark: var(--white);
  --logo-on-light: var(--green);

  --header-h: clamp(72px, 8vw, 112px);
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: var(--tracking-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
button { font: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px;
  background: var(--white); color: var(--green);
  font-family: var(--deco); font-size: 13px; letter-spacing: .1em;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

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

/* --------------------------------------------------------------------------
   Intro con logo verticale
   -------------------------------------------------------------------------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--page-bg);
  /* rete di sicurezza: se il JavaScript non parte, l'intro sparisce comunque */
  animation: intro-safety .6s 4.5s forwards;
}
.intro__logo {
  height: min(46vh, 400px); aspect-ratio: 600 / 863; opacity: 0;
  background-color: var(--page-fg);
  -webkit-mask: url("../img/brand/logo-vertical.webp") center / contain no-repeat;
  mask: url("../img/brand/logo-vertical.webp") center / contain no-repeat;
}
@keyframes intro-safety { to { opacity: 0; visibility: hidden; } }

/* --------------------------------------------------------------------------
   Header con logo fisso
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: center;
  color: var(--logo-on-dark);
  pointer-events: none;
  transition: color .5s ease;
}
/* la sfumatura prende il colore della sezione sotto (impostato dal JavaScript) */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1;
  background: linear-gradient(to bottom, rgb(var(--hdr-rgb, 13 35 30) / .96) 45%, rgb(var(--hdr-rgb, 13 35 30) / 0));
}
.site-header.is-light { color: var(--logo-on-light); }
.js .site-header { opacity: 0; transition: opacity .8s ease, color .5s ease; }
.js .is-ready .site-header { opacity: 1; }

.site-logo {
  display: block;
  height: clamp(44px, 4.9vw, 72px);
  aspect-ratio: 700 / 404;
  pointer-events: auto;
}
.site-logo__mark {
  display: block; width: 100%; height: 100%;
  background-color: currentColor;
  -webkit-mask: url("../img/brand/logo-horizontal.webp") center / contain no-repeat;
  mask: url("../img/brand/logo-horizontal.webp") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Sezioni "scrolly": testi che si alternano scorrendo (hero, statement)
   -------------------------------------------------------------------------- */
.scrolly { position: relative; background: var(--page-bg); }
.scrolly__stage { padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.scrolly__step { max-width: 1000px; margin: 0 auto 64px; text-align: center; }
.scrolly--hero .scrolly__step--title {
  min-height: calc(100svh - var(--header-h) - 120px);
  display: flex; align-items: center; justify-content: center;
}

.motion .scrolly__stage { position: relative; height: 100svh; padding: 0; overflow: hidden; }
.motion .scrolly__step {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  max-width: none; margin: 0;
  padding: calc(var(--header-h) + 8px) var(--gutter) 32px;
}
.motion .scrolly__step > * { max-width: 1000px; will-change: transform, opacity; }
.motion .scrolly__step:not(:first-child) { visibility: hidden; }
.motion .scrolly--hero .scrolly__step--title { min-height: 0; }

.hero-title { font-weight: 400; line-height: 1; }
.hero-title > span { display: block; }
.hero-title__kicker { font-size: clamp(28px, 4.2vw, 60px); letter-spacing: .03em; }
.hero-title__main { font-size: clamp(42px, 8vw, 115px); letter-spacing: var(--tracking-title); margin: .08em 0 .12em; }
.hero-title__sub { font-size: clamp(22px, 3.3vw, 48px); letter-spacing: .04em; }

.prose {
  font-size: clamp(18px, min(2.05vw, 3.5vh), 31px);
  line-height: 1.5;
  letter-spacing: var(--tracking-text);
  word-spacing: .06em;
  text-wrap: pretty;
}
.prose::first-letter { font-size: 1.35em; line-height: 1; }

/* elementi usati solo da alcuni stili grafici: nascosti nello stile attuale */
.scrolly__block { position: relative; z-index: 1; }
.scrolly__num, .scrolly__bg, .tl-slide__year, .frame { display: none; }

/* scroll morbido (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  background: var(--page-bg);
  overflow: hidden;
}
.timeline__stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 1600px;
  min-height: 420px;
}
.timeline__track {
  position: relative;
  width: min(1040px, 82vw);
  aspect-ratio: 1040 / 360;
  touch-action: pan-y;
}
.tl-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(24px, 3vw, 44px);
  transform-origin: 25% 50%;
  opacity: 0; visibility: hidden;
  transition: transform .9s var(--ease-out), opacity .9s var(--ease-out), visibility 0s .9s;
  pointer-events: none;
}
.tl-slide.is-active,
.tl-slide.is-prev,
.tl-slide.is-next { visibility: visible; transition: transform .9s var(--ease-out), opacity .9s var(--ease-out), visibility 0s; }
.tl-slide.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.tl-slide.is-prev { opacity: .22; transform: translateX(-42%) scale(.42) rotateY(30deg); }
.tl-slide.is-next { opacity: .22; transform: translateX(90%) scale(.42) rotateY(-30deg); }
.tl-slide.is-before { transform: translateX(-70%) scale(.3); }
.tl-slide.is-after { transform: translateX(120%) scale(.3); }

.tl-slide__media {
  aspect-ratio: 633 / 385;
  border-radius: 6px; overflow: hidden;
  background: var(--green-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}
.tl-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.tl-slide__body { transition: opacity .5s ease .25s; }
.tl-slide:not(.is-active) .tl-slide__body { opacity: 0; transition-delay: 0s; }
.tl-slide__cat { color: var(--accent); font-size: clamp(14px, 1.15vw, 17px); letter-spacing: .06em; margin-bottom: .35em; }
.tl-slide__name { font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; letter-spacing: .025em; margin-bottom: .3em; }
.tl-slide__role { font-size: clamp(16px, 1.35vw, 21px); letter-spacing: var(--tracking-text); margin-bottom: .45em; }
.tl-slide__period { color: var(--accent); font-size: clamp(16px, 1.35vw, 21px); letter-spacing: var(--tracking-text); }

.timeline__arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center;
  border: 1px solid var(--arrow-border); border-radius: 50%;
  background: var(--arrow-bg); color: var(--arrow-fg);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.timeline__arrow:hover { background: var(--arrow-hover); }
.timeline__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.timeline__arrow--prev { left: clamp(12px, 2.2vw, 32px); }
.timeline__arrow--next { right: clamp(12px, 2.2vw, 32px); }

.timeline__years {
  position: relative;
  padding: 44px 0 max(26px, env(safe-area-inset-bottom));
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.timeline__years::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50px;
  border-top: 2px dashed var(--line);
}
.timeline__years-track {
  position: relative;
  display: flex; width: max-content;
  list-style: none; margin: 0; padding: 0;
  transition: transform .9s var(--ease-out);
}
.tl-year {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 96px; padding: 0 0 4px;
  background: none; border: 0; color: var(--muted);
  cursor: pointer;
  transition: color .3s;
}
.tl-year:hover { color: var(--muted-hover); }
.tl-year__dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--dot); border: 2px solid var(--dot);
  transition: background .3s, border-color .3s, transform .3s;
}
.tl-year__label {
  margin-top: 8px;
  font-size: 18px; line-height: 1; letter-spacing: .04em;
  transition: font-size .45s var(--ease-out), color .3s;
}
.tl-year__period {
  max-height: 0; overflow: hidden; opacity: 0;
  color: var(--accent); font-size: 12px; white-space: nowrap; letter-spacing: .05em;
  transition: opacity .4s, max-height .4s;
}
.tl-year::before {
  content: ""; position: absolute; top: -30px; left: 50%;
  border-left: 21px solid transparent; border-right: 21px solid transparent; border-top: 18px solid var(--accent);
  transform: translate(-50%, -8px); opacity: 0;
  transition: opacity .35s, transform .45s var(--ease-out);
}
.tl-year.is-active { color: var(--page-fg); }
.tl-year.is-active::before { opacity: 1; transform: translate(-50%, 0); }
.tl-year.is-active .tl-year__dot { background: var(--page-fg); border-color: var(--page-fg); transform: scale(1.1); }
.tl-year.is-active .tl-year__label { font-size: 44px; }
.tl-year.is-active .tl-year__period { max-height: 20px; opacity: 1; margin-top: 4px; }

/* --------------------------------------------------------------------------
   OCEAN SERVICE
   -------------------------------------------------------------------------- */
.services { position: relative; background: var(--page-bg); }
.services__stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.services__white { display: none; position: absolute; inset: 0; background: var(--alt-bg); opacity: 0; }
.motion .services__white { display: block; }
.services__zoom {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--zoom-fg);
  padding: var(--header-h) var(--gutter) 40px;
}
.motion .services__zoom { display: flex; }
.services__zoom-target { display: inline-block; }
.services__word { display: block; font-family: var(--deco); font-weight: 400; line-height: .92; letter-spacing: .02em; }
.services__word--top { font-size: clamp(54px, 9.4vw, 135px); }
.services__word--bottom { font-size: clamp(76px, 13.9vw, 200px); }
.services__intro {
  max-width: 34ch; margin: .9em auto 0;
  font-size: clamp(17px, 1.9vw, 27px); line-height: 1.3;
}

.services__content {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5.5vh, 60px);
  padding: calc(var(--header-h) + 12px) var(--gutter) 48px;
  color: var(--alt-fg); text-align: center;
  background: var(--alt-bg);
}
.motion .services__content { position: absolute; inset: 0; background: none; }
.services__title { font-weight: 400; }
.services__content .services__word--top { font-size: clamp(46px, 7.5vw, 108px); }
.services__content .services__word--bottom { font-size: clamp(64px, 11vw, 160px); }

.services__list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px 22px;
  max-width: 1000px;
  list-style: none; margin: 0; padding: 0;
}
.service-pill {
  display: flex; align-items: center;
  width: 300px; height: 54px;
  background: var(--pill-bg); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28), 0 10px 24px -14px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.service-pill:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0, 0, 0, .28), 0 18px 30px -16px rgba(0, 0, 0, .4); }
.service-pill__icon {
  flex: none; width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--pill-icon-bg); color: var(--pill-icon-fg);
}
.service-pill__icon svg { width: 25px; height: 25px; }
.service-pill__label {
  flex: 1; padding: 0 16px;
  font-family: var(--deco); font-size: 16px; letter-spacing: .1em;
  color: var(--pill-fg);
}

/* --------------------------------------------------------------------------
   Our Venues
   -------------------------------------------------------------------------- */
.venues {
  background: var(--venues-bg, var(--alt-bg)); color: var(--venues-fg, var(--alt-fg));
  padding: clamp(70px, 12vh, 140px) var(--gutter) clamp(80px, 15vh, 170px);
  text-align: center;
}
.venues__title {
  font-family: var(--deco); font-weight: 400;
  font-size: clamp(32px, 4vw, 54px); letter-spacing: .06em;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.venues__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(16px, 2.5vw, 36px) clamp(20px, 3.5vw, 52px);
  max-width: 1200px; margin: 0 auto; padding: 0; list-style: none;
}
.venue { flex: 0 1 190px; }
.venue img {
  width: 100%;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .4s, opacity .4s, transform .4s var(--ease-out);
}
.venue:hover img, .venue a:focus-visible img { filter: none; opacity: 1; transform: scale(1.04); }

/* --------------------------------------------------------------------------
   Contatti
   -------------------------------------------------------------------------- */
.contact {
  position: relative; overflow: hidden;
  background: var(--page-bg);
  padding: clamp(90px, 15vh, 160px) var(--gutter) clamp(90px, 15vh, 160px);
}
.contact__watermark {
  position: absolute; top: -12%; left: -8%;
  width: min(62vw, 720px); aspect-ratio: 578 / 1054;
  background-color: var(--watermark);
  -webkit-mask: url("../img/brand/logo-emblem.webp") center / contain no-repeat;
  mask: url("../img/brand/logo-emblem.webp") center / contain no-repeat;
  opacity: var(--watermark-opacity);
  pointer-events: none;
}
.contact__inner { position: relative; max-width: 470px; margin: 0 auto; text-align: center; }
.contact__title {
  font-family: var(--deco); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .06em;
  text-shadow: 0 0 10px rgba(0, 0, 0, .3);
  margin-bottom: clamp(26px, 4vh, 40px);
}
.contact-form { display: grid; gap: 14px; text-align: left; }
.field input,
.field textarea {
  display: block; width: 100%;
  padding: 12px 22px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 25px;
  color: var(--field-fg);
  font-family: var(--serif); font-size: 16px; line-height: 1.5; letter-spacing: var(--tracking-text);
  transition: border-color .25s, background .25s;
}
.field textarea { min-height: 128px; border-radius: 22px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); font-family: var(--deco); font-size: 12px; letter-spacing: .12em; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); background: var(--field-bg-focus); }
.field [aria-invalid="true"] { border-color: #e79a8f; }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 4px 4px 6px; cursor: pointer; font-size: 14px; line-height: 1.4; color: var(--soft-fg); }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--field-border); border-radius: 6px;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.checkbox__box::after {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg) scale(0); transition: transform .2s;
}
.checkbox input:checked + .checkbox__box { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked + .checkbox__box::after { transform: rotate(-45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.checkbox input[aria-invalid="true"] + .checkbox__box { border-color: #e79a8f; }
.checkbox a { color: var(--link); }

.button {
  width: 100%;
  padding: 13px 30px;
  background: var(--button-bg); color: var(--button-fg);
  border: 1px solid var(--button-border); border-radius: 35px;
  font-family: var(--deco); font-size: 14px; letter-spacing: .16em;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.button:hover { background: var(--button-hover); }
.button[disabled] { opacity: .6; cursor: progress; }
.contact-form__status { min-height: 1.4em; text-align: center; font-size: 16px; }
.contact-form__status.is-success { color: var(--link); }
.contact-form__status.is-error { color: #f0a59a; }

/* --------------------------------------------------------------------------
   Insegna (immagine ferma mentre la pagina scorre)
   -------------------------------------------------------------------------- */
.sign { position: relative; height: 100svh; clip-path: inset(0); background: var(--green-2); }
.sign__media { position: fixed; inset: 0; }
.sign__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* --------------------------------------------------------------------------
   Footer e torna su
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-fg);
  padding: 22px var(--gutter) max(22px, env(safe-area-inset-bottom));
  text-align: center;
  font-family: var(--deco); font-size: 11.5px; letter-spacing: .12em; line-height: 2;
}
.site-footer a { color: inherit; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--page-fg); }

.to-top {
  position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(13, 35, 30, .82); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-3); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Selettore degli stili grafici (solo in anteprima)
   -------------------------------------------------------------------------- */
.style-switcher {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px;
  background: rgba(20, 20, 20, .78); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; letter-spacing: 0;
}
.style-switcher__label { padding: 0 8px 0 10px; color: rgba(255, 255, 255, .55); }
.style-switcher a {
  padding: 7px 13px; border-radius: 999px;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.style-switcher a:hover { background: rgba(255, 255, 255, .12); }
.style-switcher a[aria-current] { background: #fff; color: #111; }
@media (max-width: 600px) {
  .style-switcher { font-size: 12px; max-width: calc(100vw - 20px); overflow-x: auto; }
  .style-switcher__label { display: none; }
  .style-switcher a { padding: 7px 10px; }
}

/* --------------------------------------------------------------------------
   Pagina privacy
   -------------------------------------------------------------------------- */
.page {
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 90px;
}
.page__inner { max-width: 760px; margin: 0 auto; }
.page__title { font-family: var(--deco); font-weight: 400; font-size: clamp(28px, 4vw, 46px); letter-spacing: .05em; margin-bottom: 36px; text-align: center; }
.page__body { font-size: 18px; line-height: 1.6; color: var(--soft-fg); }
.page__body h2 { font-family: var(--deco); font-weight: 400; font-size: 17px; letter-spacing: .12em; color: var(--accent); margin: 2.2em 0 .7em; }
.page__body p, .page__body ul { margin-bottom: 1em; }
.page__body .md-section {
  margin: 3.2em 0 1em; padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-size: 22px; color: var(--page-fg); text-align: center;
}
.page__body .md-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page__updated { color: rgba(255, 255, 255, .55); font-size: 15px; }
.page__body a { color: var(--link); }
.page__back { display: inline-block; margin-top: 40px; font-family: var(--deco); font-size: 13px; letter-spacing: .14em; color: var(--link); }

/* --------------------------------------------------------------------------
   Tablet e smartphone
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .timeline__track { width: min(560px, 84vw); aspect-ratio: auto; height: clamp(440px, 64svh, 560px); }
  .tl-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 22px; text-align: center; transform-origin: 50% 30%; }
  .tl-slide.is-prev { opacity: 0; transform: translateX(-110%) scale(.7); }
  .tl-slide.is-next { opacity: 0; transform: translateX(110%) scale(.7); }
  .timeline__arrow { top: auto; bottom: 8px; margin: 0; }
  .timeline__arrow--prev { left: calc(50% - 56px); }
  .timeline__arrow--next { right: calc(50% - 56px); }
  .timeline__stage { padding-bottom: 64px; }
  .tl-year { width: 84px; }
  .tl-year.is-active .tl-year__label { font-size: 36px; }
}

@media (max-width: 767px) {
  .service-pill { width: min(330px, 86vw); height: 50px; }
  .service-pill__icon { width: 50px; height: 50px; }
  .services__list { flex-direction: column; align-items: center; gap: 12px; }
  .venue { flex-basis: 40%; }
  .contact__watermark { width: 120vw; left: -40%; top: -6%; }
  .sign { height: auto; clip-path: none; }
  .sign__media { position: relative; }
  .sign__media img { height: auto; aspect-ratio: 1200 / 765; }
  .site-footer { font-size: 10.5px; letter-spacing: .1em; }
}

/* --------------------------------------------------------------------------
   Chi preferisce meno animazioni
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
