/* Aprire in Albania: landing a una pagina. Font auto-ospitati, un solo accento (blu Adriatico) più un tocco di
   sabbia, neutri tinti verso il blu (OKLCH), tema chiaro/scuro automatico. Il movimento racconta: le parole del titolo
   che salgono, la foto che entra, il timbro che gira, le tasse che scendono a zero, la linea dei tre passi che si
   disegna scorrendo. Tutto spento con prefers-reduced-motion. Vedi DESIGN.md. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/hanken-grotesk-latin.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: italic; font-weight: 300 800; font-display: swap; src: url(../fonts/hanken-grotesk-italic-latin.woff2) format('woff2'); }

:root {
  --bg: oklch(97.5% 0.006 220);
  --surface: oklch(99.2% 0.003 220);
  --ink: oklch(22% 0.03 240);
  --muted: oklch(47% 0.025 235);
  --line: oklch(89% 0.014 220);
  --accent: oklch(49% 0.105 225);        /* blu Adriatico */
  --accent-deep: oklch(42% 0.1 228);
  --accent-ink: oklch(98% 0.005 220);
  --accent-soft: oklch(94% 0.03 215);
  --accent-soft-ink: oklch(35% 0.08 228);
  --sun: oklch(95.5% 0.045 85);          /* sabbia: luce dell'hero, timbro */
  --sun-ink: oklch(45% 0.1 70);
  --radius: 24px;                        /* immagini, celle, banda. Bottoni: pillola. */
  --pill: 999px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 60px -28px oklch(49% 0.105 225 / .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-q: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(17% 0.022 240);
    --surface: oklch(21.5% 0.028 240);
    --ink: oklch(95% 0.008 220);
    --muted: oklch(72% 0.02 230);
    --line: oklch(29% 0.03 240);
    --accent: oklch(78% 0.1 212);
    --accent-deep: oklch(84% 0.09 210);
    --accent-ink: oklch(17% 0.022 240);
    --accent-soft: oklch(28% 0.05 228);
    --accent-soft-ink: oklch(90% 0.05 212);
    --sun: oklch(30% 0.05 80);
    --sun-ink: oklch(86% 0.1 85);
    --shadow: 0 24px 60px -28px oklch(0% 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: clip; }
/* grana leggera su tutta la pagina: carta, non schermo */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .055; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; opacity: .07; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .muted a { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.salta { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--pill); z-index: 70; }
.salta:focus { left: 8px; }

/* ── Bottoni ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: var(--pill); white-space: nowrap;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 1.02rem; line-height: 1;
  border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s;
}
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--accent-deep); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); box-shadow: none; border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .72rem 1.15rem; font-size: .95rem; }

/* ── Testata ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in oklab, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.is-stuck { border-color: var(--line); box-shadow: 0 12px 32px -24px oklch(0% 0 0 / .3); }
.top-in { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marchio { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap; }
.marchio-segno { width: 28px; height: 28px; color: var(--accent); flex: none; }
.menu { display: flex; gap: 30px; }
.menu a { color: var(--muted); font-weight: 500; position: relative; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover { color: var(--ink); }
.menu a:hover::after { transform: scaleX(1); }
.sentinella { height: 1px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 8px; overflow-x: clip; }
.hero::before { content: ""; position: absolute; right: -8%; top: -30%; width: 58vw; height: 58vw; max-width: 980px; max-height: 980px; border-radius: 50%; background: radial-gradient(closest-side, var(--sun), transparent 72%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
h1 { font-size: clamp(2.75rem, 5.4vw, 4.5rem); font-weight: 750; line-height: .98; letter-spacing: -.038em; margin-bottom: 26px; }
h1 em { font-style: normal; color: var(--accent); }
/* le parole salgono una dopo l'altra da sotto una riga nascosta */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .w > span { display: inline-block; transform: translateY(112%); transition: transform .95s var(--ease); }
.js.pronto .w > span { transform: none; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 34ch; margin: 0 0 32px; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; margin-right: calc(-1 * max(20px, (100vw - 1120px) / 2)); }
.hero-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius) 0 0 var(--radius); transform-origin: 70% 50%; }
.js .hero-media img { clip-path: inset(0 0 0 100%); transform: scale(1.08); transition: clip-path 1.3s var(--ease) .15s, transform 1.6s var(--ease) .15s; }
.js.pronto .hero-media img { clip-path: inset(0 0 0 0); transform: none; }
/* il timbro: la burocrazia che qui si chiude in un giorno */
.timbro { position: absolute; left: -40px; bottom: 44px; width: 172px; height: 172px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; transform: rotate(-9deg); border: 1.5px solid color-mix(in oklab, var(--sun-ink) 40%, transparent); box-shadow: 0 24px 50px -26px oklch(0% 0 0 / .45); }
.timbro::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--sun-ink) 45%, transparent); }
.timbro svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: gira 26s linear infinite; }
.timbro text { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.timbro strong { font-family: var(--display); font-weight: 800; font-size: 2.7rem; letter-spacing: -.06em; line-height: 1; position: relative; }
.js .timbro { opacity: 0; transform: rotate(-9deg) scale(.55); transition: opacity .5s ease .95s, transform .9s var(--ease) .95s; }
.js.pronto .timbro { opacity: 1; transform: rotate(-9deg) scale(1); }
@keyframes gira { to { transform: rotate(360deg); } }

/* ── Cifre ───────────────────────────────────────────────── */
.cifre { padding: 56px 0 0; }
.cifre ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cifre li { padding: 30px 24px 30px 0; }
.cifre li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.cifre strong { display: block; font-family: var(--display); font-weight: 750; font-size: clamp(2.5rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.045em; color: var(--accent); }
.cifre span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; margin-top: 10px; }

/* il nastro delle città con il nome italiano: l'Albania che parla italiano */
.nastro { overflow: hidden; padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.nastro-in { display: flex; width: max-content; animation: scorri 46s linear infinite; }
.nastro:hover .nastro-in { animation-play-state: paused; }
.nastro span { font-family: var(--display); font-weight: 650; font-size: clamp(1.5rem, 2.8vw, 2.25rem); letter-spacing: -.025em; color: var(--muted); padding: 0 30px; position: relative; white-space: nowrap; }
.nastro span::after { content: ""; position: absolute; right: 0; top: 50%; height: 1em; width: 1px; background: var(--line); transform: translateY(-50%); }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ── Sezioni ─────────────────────────────────────────────── */
section { padding: clamp(72px, 9vw, 120px) 0; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 750; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 18px; max-width: 22ch; }
.intro { color: var(--muted); font-size: 1.15rem; line-height: 1.55; max-width: 56ch; margin: 0 0 44px; }

/* Vantaggi: sei celle, una grande con l'accento e il conto alla rovescia, una con la foto, una tinta */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.cell:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.cell h3 { font-size: 1.4rem; font-weight: 680; letter-spacing: -.02em; }
.cell p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.cell-big { grid-column: span 2; background: var(--accent); color: var(--accent-ink); border-color: transparent; overflow: hidden; }
.cell-big h3 { font-size: 2rem; }
.cell-big p { color: inherit; opacity: .88; max-width: 52ch; }
.cell-big .num { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 11vw, 8.5rem); line-height: .88; letter-spacing: -.06em; margin: -6px 0 auto -4px; font-variant-numeric: tabular-nums; }
.cell-photo { grid-row: span 2; padding: 0; overflow: hidden; }
.cell-photo img { width: 100%; flex: 1; min-height: 240px; object-fit: cover; transition: transform 1s var(--ease); }
.cell-photo:hover img { transform: scale(1.045); }
.cell-photo div { padding: 22px 30px 28px; }
.cell-soft { grid-column: span 2; background: var(--accent-soft); color: var(--accent-soft-ink); border-color: transparent; }
.cell-soft p { color: inherit; opacity: .85; max-width: 60ch; }

/* Per chi: quattro voci grandi in due colonne, solo fili */
.pubblico { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 8px; }
.pubblico div { padding: 30px 0 32px; border-top: 1px solid var(--line); }
.pubblico h3 { font-size: 1.7rem; font-weight: 680; margin-bottom: 8px; letter-spacing: -.025em; }
.pubblico p { margin: 0; color: var(--muted); max-width: 46ch; }

/* Come funziona: banda fotografica con parallasse + tre passi lungo una linea che si disegna */
.banda { overflow: hidden; border-radius: var(--radius); aspect-ratio: 21 / 9; margin-bottom: 64px; }
.banda img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.passi { list-style: none; margin: 8px 0 0; padding: 0; max-width: 760px; position: relative; }
.passi::before, .passi::after { content: ""; position: absolute; left: 23px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.passi::after { background: var(--accent); transform: scaleY(0); transform-origin: top; }
.passo { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 32px 0; }
.passo .n { position: relative; width: 48px; text-align: center; background: var(--bg); font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.05em; color: var(--accent); padding: 4px 0; }
.passo h3 { font-size: 1.5rem; font-weight: 680; margin-bottom: 6px; letter-spacing: -.02em; }
.passo p { margin: 0; color: var(--muted); max-width: 52ch; }
@supports (animation-timeline: view()) {
  .banda img { animation: parallasse linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .passi::after { animation: disegna linear both; animation-timeline: view(); animation-range: entry 40% cover 75%; }
}
@keyframes parallasse { from { transform: translateY(-7%) scale(1.14); } to { transform: translateY(7%) scale(1.14); } }
@keyframes disegna { to { transform: scaleY(1); } }

/* Chi sono: colonna stretta, ritratto un po' storto come una foto appoggiata */
.chi { max-width: 660px; text-align: center; }
.chi h2 { margin-left: auto; margin-right: auto; }
.chi p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.chi .foto { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; border: 5px solid var(--surface); box-shadow: var(--shadow); transform: rotate(-4deg); transition: transform .6s var(--ease); }
.chi:hover .foto { transform: rotate(0); }
div.foto { display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); font-weight: 600; font-size: .95rem; border-style: dashed; border-color: var(--sun-ink); }

/* Domande: titolo a sinistra, fisarmonica che si apre con calma */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px 56px; align-items: start; }
.faq h2 { position: sticky; top: 94px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 0; font-family: var(--display); font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .2s; }
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 1.8rem; font-weight: 400; color: var(--accent); line-height: 1; transition: transform .35s var(--ease); }
details.is-open summary::after { transform: rotate(45deg); }
.risposta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.risposta > div { overflow: hidden; }
details.is-open .risposta { grid-template-rows: 1fr; }
details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* Invito finale: banda blu con una luce calda nell'angolo */
.cta { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; right: -140px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, oklch(100% 0 0 / .16), transparent 72%); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { color: inherit; font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 10px; }
.cta p { margin: 0; opacity: .9; font-size: 1.12rem; max-width: 46ch; }
.cta .btn { background: var(--accent-ink); color: var(--accent); }
.cta .btn:hover { background: var(--accent-ink); box-shadow: 0 20px 44px -22px oklch(0% 0 0 / .55); }

/* Piede */
.piede { padding: 40px 0 32px; border-top: 1px solid var(--line); font-size: .95rem; }
.piede-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.piede p { margin: 0 0 6px; }
.piede .marchio { font-size: 1.15rem; }
.piede .muted { line-height: 1.7; }
.nota { color: var(--muted); font-size: .85rem; max-width: 90ch; margin-bottom: 14px; }
.credito { color: var(--muted); font-size: .85rem; }
.credito a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Movimento: entra chi arriva nel viewport ─────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .w > span, .js .hero-media img, .js .timbro { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js .timbro { transform: rotate(-9deg); }
  .timbro svg, .nastro-in, .banda img, .passi::after { animation: none; }
  .nastro-in { width: auto; flex-wrap: wrap; justify-content: center; }
  .btn, .cell, .cell-photo img, summary::after, .risposta, .chi .foto, .menu a::after { transition: none; }
}

/* ── Telefono e tablet ───────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { margin-right: 0; max-width: 560px; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .js .hero-media img { clip-path: inset(0 0 100% 0); }
  .js.pronto .hero-media img { clip-path: inset(0); }
  .timbro { width: 136px; height: 136px; left: auto; right: 14px; bottom: -22px; }
  .timbro strong { font-size: 2.1rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .cell-big, .cell-soft { grid-column: span 2; }
  .cell-photo { grid-row: span 1; grid-column: span 2; }
  .cell-photo img { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .cta { grid-template-columns: 1fr; }
  .piede-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .menu { display: none; }
  .top-in { gap: 12px; height: 64px; }
  .marchio { font-size: 1.1rem; }
  .marchio-segno { width: 24px; height: 24px; }
  .btn-sm { padding: .65rem .95rem; font-size: .875rem; }
  .hero-media { max-width: none; }
  .hero-media img { aspect-ratio: 4 / 3.4; }
  .timbro { width: 118px; height: 118px; right: 10px; bottom: -18px; }
  .timbro strong { font-size: 1.8rem; }
  .timbro text { font-size: 10px; letter-spacing: .1em; }
  .lead { font-size: 1.1rem; }
  .cifre { padding-top: 48px; }
  .cifre ul { grid-template-columns: 1fr 1fr; }
  .cifre li { padding: 22px 16px 22px 0; }
  .cifre li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cifre li:nth-child(even) { padding-left: 16px; }
  .cifre li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nastro { padding: 16px 0; }
  .nastro span { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .cell-big, .cell-soft, .cell-photo { grid-column: span 1; }
  .cell { padding: 24px; }
  .pubblico { grid-template-columns: 1fr; }
  .pubblico h3 { font-size: 1.45rem; }
  .banda { aspect-ratio: 4 / 3; margin-bottom: 44px; }
  .passo { grid-template-columns: 52px 1fr; gap: 14px; }
  .passi::before, .passi::after { left: 17px; }
  .passo .n { width: 36px; font-size: 2.4rem; }
  .piede-grid { grid-template-columns: 1fr; gap: 20px; }
  .azioni .btn { width: 100%; }
}
