/* Font del sito: Urbanist (Demi, peso 600), gratuito con licenza SIL Open Font License.
   Ospitato sul sito: nessuna chiamata a Google, nessun dato inviato a terzi. */
@font-face{font-family:'Urbanist';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/urbanist-latin-600-normal.woff2') format('woff2');}

/* =========================================================
   AIMPROVE – Palette "Elettrico" e stili di base
   Mobile first: telefono < 640px, tablet 640–1023px, desktop ≥ 1024px
   ========================================================= */

:root {
  --nero: #050507;
  --blu-notte: #10223F;
  --blu-notte-chiaro: #1A3358;
  --blu-profondo: #0A1528;
  --celeste: #1EB8FF;
  --celeste-chiaro: #5ECAFF;
  --celeste-scuro: #0072A6;
  --magenta: #EC008C;
  --magenta-chiaro: #FF4FB0;
  --giallo: #FCEB19;
  --rosso: #FC050E;
  --ghiaccio: #EEF9FF;
  --grigio: #A9B9CC;

  --font: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 24px);
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --section: clamp(56px, 9vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--nero);
  color: var(--ghiaccio);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--celeste); }
a:hover { color: var(--celeste-chiaro); }
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.band { background: var(--blu-notte); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--celeste); color: var(--nero); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Testi ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--grigio);
}
.eyebrow--accent { color: var(--celeste); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--giallo); display: inline-block; flex: none; }
.h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: 20px; font-weight: 600; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--grigio); line-height: 1.6; }
.muted { color: var(--grigio); }
.hl { color: var(--celeste); }
.placeholder-note { color: var(--grigio); font-size: 14px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--celeste); transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--celeste); color: var(--nero); }
.btn--primary:hover { background: var(--celeste-chiaro); border-color: var(--celeste-chiaro); color: var(--nero); }
.btn--ghost { background: transparent; color: var(--ghiaccio); }
.btn--ghost:hover { color: var(--celeste-chiaro); border-color: var(--celeste-chiaro); }
.btn--small { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(5, 5, 7, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--blu-notte); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.header__logo img { height: 48px; width: auto; }
.nav { display: none; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ghiaccio); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--celeste); }
.nav .btn { color: var(--nero); }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--blu-notte-chiaro); border-radius: 12px; color: var(--ghiaccio); cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--blu-notte); padding: 8px 0 24px; }
.mobile-nav a { display: block; padding: 14px 0; color: var(--ghiaccio); text-decoration: none; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--blu-notte); }
.mobile-nav a:hover { color: var(--celeste); }
.mobile-nav .btn { margin-top: 20px; width: 100%; color: var(--nero); border-bottom: 2px solid var(--celeste); }
@media (min-width: 1024px) {
  .header__logo img { height: 56px; }
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(48px, 7vw, 80px); }
.hero .lead { max-width: 680px; }
.hero .btn-row { justify-content: center; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.chip { background: var(--blu-notte); color: var(--ghiaccio); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.section-head .muted { max-width: 420px; }
.section-head .eyebrow { margin-bottom: 12px; }

.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ghiaccio);
  background: var(--blu-notte); border: 2px solid var(--blu-notte); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--celeste); color: var(--ghiaccio); }
.card--dark { background: var(--nero); border-color: var(--nero); }
.card__art { background: var(--blu-profondo); padding: 24px 16px 0; display: flex; justify-content: center; }
.card__art svg { width: 100%; height: 140px; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card__body p.muted { flex-grow: 1; font-size: 15px; line-height: 1.55; }
.card__kicker { font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--grigio); }
.card__title { font-size: 24px; font-weight: 600; }
.card__link { color: var(--celeste); font-weight: 600; font-size: 15px; }
.card--big { border-radius: var(--r-xl); }
.card--big .card__art svg { height: 170px; }
.card--big .card__body { padding: 32px; gap: 12px; }
.card--big .card__title { font-size: clamp(26px, 3vw, 32px); }
.card--pad { padding: 28px; gap: 12px; }
.card--pad svg { width: 32px; height: 32px; }

.badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--blu-notte-chiaro); color: var(--ghiaccio); }
.badge--magenta { background: var(--magenta); color: var(--nero); }

.feature { background: var(--blu-notte); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 32px; height: 32px; }
.feature p { font-size: 14px; color: var(--grigio); line-height: 1.6; }

.audience { border-top: 3px solid var(--celeste); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.audience--magenta { border-top-color: var(--magenta); }
.audience p { font-size: 15px; color: var(--grigio); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 340px; min-width: 0; }
.panel { background: var(--blu-notte); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 64px); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stat__n { font-size: clamp(32px, 4vw, 40px); font-weight: 600; color: var(--celeste); line-height: 1.1; }
.stat__l { font-size: 14px; color: var(--grigio); margin-top: 4px; }

.partners { border-top: 1px solid var(--blu-notte); border-bottom: 1px solid var(--blu-notte); }
.partners__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.partners__logos { display: flex; flex-wrap: wrap; gap: 16px; }
.partner-slot { border: 1px dashed var(--blu-notte-chiaro); color: var(--grigio); border-radius: 12px; padding: 18px 28px; font-size: 14px; }

.quote { margin: 0; background: var(--blu-notte); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.quote figcaption { font-size: 14px; color: var(--grigio); }

/* ---------- Pagina città ---------- */
.facts { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fact__l { font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--grigio); }
.fact__v { font-size: 20px; font-weight: 600; margin-top: 8px; }
.city-art { background: var(--blu-notte); border-radius: var(--r-xl); padding: 32px 24px 0; display: flex; flex-direction: column; gap: 16px; }
.city-art svg { width: 100%; height: clamp(180px, 28vw, 280px); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; margin-left: 7px; padding: 0 0 24px 24px; border-left: 2px solid var(--blu-notte-chiaro); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--celeste); }
.timeline li.accent::before { background: var(--magenta); }
.timeline .t { font-size: 14px; font-weight: 600; color: var(--celeste); }
.timeline li.accent .t { color: var(--magenta-chiaro); }
.timeline .d { margin-top: 6px; font-size: 17px; }
.back-link { font-size: 14px; font-weight: 600; text-decoration: none; }

/* ---------- Modulo contatti ---------- */
.form { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--grigio); }
.field input, .field select, .field textarea {
  background: var(--nero); border: 1px solid var(--blu-notte-chiaro); color: var(--ghiaccio);
  border-radius: 12px; padding: 14px; font: 600 16px var(--font); width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--celeste); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--grigio); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--celeste); flex: none; }
.form-msg { font-size: 14px; }
.form-msg--err { color: #FF8A8F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--blu-notte); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; }
.footer__top img { height: 60px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 16px 32px; font-size: 16px; font-weight: 600; }
.footer a { color: var(--grigio); text-decoration: none; }
.footer a:hover { color: var(--celeste); }
.footer__nav a { color: var(--ghiaccio); }
.footer__legal { border-top: 1px solid var(--blu-notte-chiaro); margin-top: 32px; padding: 24px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--grigio); }
.footer__company { flex: 1 1 520px; max-width: 760px; line-height: 1.7; }
.footer__company a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__company a:hover { color: var(--celeste); }
.footer__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.linklike { background: none; border: 0; padding: 0; color: var(--grigio); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--celeste); }

/* ---------- Pagine legali (tema chiaro per leggere meglio) ---------- */
.legal { background: var(--ghiaccio); color: var(--nero); }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #1d2433; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--celeste-scuro); }
.legal a:hover { color: #00577F; }
.legal .updated { color: #4a5568; font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid #cfdbe6; border-radius: 12px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #cfdbe6; vertical-align: top; color: #1d2433; }
.legal th { background: #dceefa; font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px;
  background: var(--blu-notte); color: var(--ghiaccio); border: 1px solid var(--blu-notte-chiaro);
  border-radius: var(--r-lg); padding: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  max-width: 980px; margin: 0 auto;
}
.cookie-banner__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; color: var(--ghiaccio); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.cookie-banner__close:hover { background: var(--blu-notte-chiaro); }
.cookie-banner h2 { font-size: 18px; font-weight: 600; margin: 0 48px 8px 0; }
.cookie-banner p { font-size: 14px; color: var(--grigio); line-height: 1.6; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
@media (min-width: 640px) {
  .cookie-banner { padding: 24px 28px; }
  .cookie-banner__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cookie-banner .btn { width: 100%; min-height: 46px; padding: 10px 16px; font-size: 15px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 7, .75); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }
.modal {
  background: var(--blu-notte); border: 1px solid var(--blu-notte-chiaro); border-radius: var(--r-lg);
  width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; padding: 24px; position: relative;
}
.modal h2 { font-size: 22px; font-weight: 600; margin: 0 48px 8px 0; }
.modal > p { font-size: 14px; color: var(--grigio); }
.pref { border-top: 1px solid var(--blu-notte-chiaro); padding: 18px 0; display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.pref h3 { font-size: 16px; }
.pref p { font-size: 14px; color: var(--grigio); margin-top: 4px; }
.pref small { display: block; font-size: 13px; color: var(--grigio); margin-top: 6px; font-style: italic; }
.switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--blu-notte-chiaro); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ghiaccio); transition: transform .15s; }
.switch input:checked + span { background: var(--celeste); }
.switch input:checked + span::after { transform: translateX(22px); background: var(--nero); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--celeste); outline-offset: 2px; }
.modal__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .modal__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.modal .btn { width: 100%; padding: 10px 14px; font-size: 15px; }

/* ---------- Pagine semplici ---------- */
.center-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 64px var(--pad); }
.center-page img { height: 64px; width: auto; margin-bottom: 16px; }

/* =========================================================
   Animazione iniziale del logo (circa 6 secondi)
   Ogni livello è un'immagine grande quanto tutto il logo:
   le animazioni lavorano su posizione, ritaglio e luce.
   ========================================================= */

@property --sweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.intro[hidden] { display: none; }
.intro {
  position: fixed; inset: 0; z-index: 120; background: var(--nero);
  display: flex; align-items: center; justify-content: center;
  animation: introOut .6s ease-in 6.4s both;
}
.intro__skip {
  position: absolute; top: 20px; right: 20px; min-height: 44px; padding: 10px 22px;
  background: transparent; color: var(--grigio); border: 1px solid var(--blu-notte-chiaro);
  border-radius: 999px; font: 600 14px var(--font); cursor: pointer;
}
.intro__skip:hover { color: var(--ghiaccio); border-color: var(--celeste); }

.logo-stage {
  position: relative; aspect-ratio: 9179 / 4093;
  width: min(76vw, 400px); transform: translate(4vw, 3vh);
}
@media (min-width: 640px) { .logo-stage { width: min(56vw, 400px); transform: translate(min(9vw, 120px), min(6vh, 50px)); } }
@media (min-width: 1024px) { .logo-stage { width: min(46vw, 400px); transform: translate(min(12vw, 160px), min(7vh, 60px)); } }

.L { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.k-globe { animation: globeSpin 1s cubic-bezier(.15,.6,.3,1) 0s both; transform-origin: 27.2% 29.4%; }
.k-orbit { animation: orbitSpin .7s cubic-bezier(.2,.7,.3,1) .7s both; transform-origin: 27.6% 28.5%; }
.k-orbhl {
  -webkit-mask-image: linear-gradient(90deg, transparent 32.5%, #000 36.5%);
  mask-image: linear-gradient(90deg, transparent 32.5%, #000 36.5%);
  animation: orbHL 1.2s ease-in-out 4.9s both;
}
/* "a": la stanghetta cresce, poi l'anello con AIMPROVE si disegna girando */
.k-astem { clip-path: inset(94.5% 0 0 21.86%); animation: growA .3s ease-in-out 1.4s both; }
.k-ring {
  clip-path: inset(0 78.1% 0 0);
  -webkit-mask-image: conic-gradient(from 70deg at 12.73% 70.65%, transparent 0 calc(360deg - var(--sweep)), #000 0);
  mask-image: conic-gradient(from 70deg at 12.73% 70.65%, transparent 0 calc(360deg - var(--sweep)), #000 0);
  animation: sweep 1.25s linear 1.6s both;
}
.k-afull { animation: fadeIn .15s ease-out 2.85s both; }
.k-i { animation: growI .3s ease-in-out 2.9s both; }
.k-s { animation: wipeS .25s ease-in-out 3.2s both; }
.k-r { animation: wipeR .25s ease-in-out 3.4s both; }
.k-l { animation: wipeL .25s ease-in-out 3.6s both; }
.k-trail { animation: trail .6s cubic-bezier(.6,0,.3,1) 3.8s both; }
.k-red { animation: slideUp .35s ease-out 4.35s both, glowR 1.1s ease-in-out 4.9s both; }
.k-mag { animation: slideUp .3s ease-out 4.45s both; }
.k-yel { animation: spark .5s ease-out 4.7s both; transform-origin: 96.3% 37.5%; }
.streak {
  position: absolute; left: 93.95%; top: 16.5%; width: .27%; margin-left: -.135%; margin-top: -3.4%;
  filter: blur(.6px) drop-shadow(0 0 4px #FFFFFF) drop-shadow(0 0 10px #FFFFFF);
  animation: streak 1s ease-out 4.95s both; pointer-events: none;
}

@keyframes globeSpin { 0% { opacity: 0; transform: perspective(1600px) rotateY(-540deg) scale(.5); } 25% { opacity: 1; } 100% { opacity: 1; transform: perspective(1600px) rotateY(0deg) scale(1); } }
@keyframes orbitSpin { 0% { opacity: 0; transform: rotate(-540deg) scale(.3); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 340deg; } }
@keyframes growA { from { clip-path: inset(94.5% 0 0 21.86%); } to { clip-path: inset(40% 0 0 21.86%); } }
@keyframes growI { from { clip-path: inset(93.5% -5% -5% -5%); } to { clip-path: inset(39.5% -5% -5% -5%); } }
@keyframes wipeS { from { clip-path: inset(-5% 66.2% -5% 33.8%); } to { clip-path: inset(-5% 58.8% -5% 33.8%); } }
@keyframes wipeR { from { clip-path: inset(-5% 58.65% -5% 41.35%); } to { clip-path: inset(-5% 50.96% -5% 41.35%); } }
@keyframes wipeL { from { clip-path: inset(-5% 50.95% -5% 49.05%); } to { clip-path: inset(-5% 45% -5% 49.05%); } }
@keyframes trail { from { clip-path: inset(0 45.7% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slideUp { from { opacity: 0; transform: translate(-2%, 4%); } to { opacity: 1; transform: none; } }
@keyframes spark { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 28px #FCEB19); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 8px #FCEB19); } }
@keyframes glowR { 0% { filter: none; } 35% { filter: brightness(1.6) drop-shadow(0 0 4px #FFFFFF) drop-shadow(0 0 16px #FFFFFF) drop-shadow(0 0 36px #FF6A6E); } 100% { filter: brightness(1.15) drop-shadow(0 0 3px #FFFFFF) drop-shadow(0 0 14px #FF6A6E); } }
@keyframes orbHL { 0% { opacity: 0; filter: none; } 45% { opacity: 1; filter: brightness(1.9) drop-shadow(0 0 6px #FFFFFF) drop-shadow(0 0 14px #9FE2FF); } 100% { opacity: 1; filter: brightness(1.45) drop-shadow(0 0 4px #FFFFFF) drop-shadow(0 0 10px #9FE2FF); } }
@keyframes streak { 0% { opacity: 0; transform: rotate(-11deg) scaleY(.3); } 45% { opacity: .75; transform: rotate(-11deg) scaleY(1); } 100% { opacity: 0; transform: rotate(-11deg) scaleY(.9); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

.page-reveal { animation: fadeIn .7s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro * { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* Pagina nascosta durante l'intro */
.intro-on .site { visibility: hidden; }
.intro-on body { overflow: hidden; }
.header__menu[hidden] { display: none; }

/* Tutto il testo in Urbanist Demi (peso 600), senza grassetti finti */
html { font-synthesis: none; }
body, body *:not(svg):not(path):not(circle):not(rect):not(ellipse) { font-weight: 600 !important; }

/* ---------- Foto ---------- */
.card__art--photo { padding: 0; display: block; }
.card__art--photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card--big .card__art--photo img { height: clamp(200px, 24vw, 260px); }
.city-photo { border-radius: var(--r-xl); overflow: hidden; background: var(--blu-notte); }
.city-photo img { width: 100%; height: clamp(240px, 36vw, 440px); object-fit: cover; display: block; }
.about-photo { width: 100%; height: clamp(200px, 26vw, 320px); object-fit: cover; border-radius: var(--r-lg); margin-top: 8px; }
.partner-logo-wrap { background: var(--ghiaccio); border-radius: 12px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; height: 80px; }
.partner-logo { height: 56px; width: auto; max-width: 160px; object-fit: contain; }

/* ---------- Galleria foto delle città ---------- */
.gallery .section-head { margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: var(--blu-notte); color: var(--ghiaccio); border: 2px solid var(--blu-notte);
  font: 600 15px var(--font); display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { border-color: var(--celeste); }
.tab[aria-selected="true"] { background: var(--celeste); border-color: var(--celeste); color: var(--nero); }
.tab__n { font-size: 12px; opacity: .75; }
.g-stage { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--blu-notte); }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; background: var(--nero); }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
@media (min-width: 640px) { .g-slide img { aspect-ratio: 16 / 9; max-height: 620px; } }
.g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(5, 5, 7, .7); color: var(--ghiaccio); backdrop-filter: blur(4px);
}
.g-arrow:hover { background: var(--celeste); color: var(--nero); }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-count {
  position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(5, 5, 7, .7); font-size: 14px; color: var(--ghiaccio);
}
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.g-thumb { flex: 0 0 auto; width: 96px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--blu-notte); opacity: .6; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-current="true"], .g-thumb:hover { border-color: var(--celeste); opacity: 1; }
@media (max-width: 639px) { .g-arrow { width: 40px; height: 40px; } .g-thumb { width: 72px; height: 50px; } }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(5, 5, 7, .96); color: var(--ghiaccio); }
.lightbox::backdrop { background: rgba(5, 5, 7, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 12px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255, 255, 255, .18); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 14px; color: var(--grigio); }

/* Le sezioni raggiunte dai link interni non finiscono sotto l'intestazione fissa */
section[id], main [id] { scroll-margin-top: 88px; }

.g-caption {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 110px); margin: 0;
  padding: 6px 14px; border-radius: 999px; background: rgba(5, 5, 7, .75); color: var(--ghiaccio);
  font-size: 14px; line-height: 1.4; pointer-events: none;
}
.lb-caption { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 16px; color: var(--ghiaccio); text-align: center; width: 90vw; }
.card:not(.card--big) .card__art--photo img { height: 164px; }

.checklist--2col { display: grid; grid-template-columns: 1fr; gap: 16px 32px; }
@media (min-width: 640px) { .checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Foto grande in alto nelle pagine città: sempre intera, su ogni schermo */
.city-photo img { height: auto; aspect-ratio: auto; object-fit: contain; }

/* Foto principale delle città: stesso formato orizzontale 16:9 per tutte le destinazioni */
.city-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Modulo contatti: frase che cambia con la scelta */
.form-intro { min-height: 4.8em; transition: opacity .15s ease; }
.form-intro.is-changing { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .form-intro { transition: none; } }
