/* Our Daily Love · sito pubblico · foglio di stile unico
   Direzione Scrapbook Vivente: base di carta ecru e sabbia calda,
   accento terracotta, con profondita petrolio e sfumatura botanica salvia.
   Editoriale, sobrio, animato · mobile first.
   Animazioni via GSAP + ScrollTrigger (vedi index.html). */

:root {
  /* Il sito e solo in chiaro: nessuna variante scura. */
  color-scheme: light;
  /* Accento di marca terracotta. Un ocra caldo per la seconda persona. */
  --accento: #c1603c;
  --accento-2: #b5843a;
  /* Palette Scrapbook Vivente. */
  --terracotta: #c1603c;
  --ocra: #d69a3c;
  --carta-zucchero: #7fa6b5;
  --petrolio: #2f5d66;
  --salvia: #83965a;
  /* Alias ricondotti alla palette: niente arcobaleni. */
  --viola: var(--accento);
  --rosa:  var(--accento);
  --arancio: var(--ocra);
  --verde: var(--salvia);
  --indigo: var(--petrolio);
  --pink: var(--accento);

  /* superfici · carta ecru calda */
  --bg: #f2ead7;
  --bg-soft: #ece2cd;
  --bg-card: #fbf6ec;
  --bg-glow: rgba(193, 96, 60, .12);
  --bg-glow2: rgba(47, 93, 102, .08);

  /* testo · inchiostro caldo */
  --text: #241c14;
  --text-soft: rgba(36, 28, 20, .6);
  --text-mute: rgba(36, 28, 20, .40);
  --line: #e3d8c2;

  --shadow: 0 1px 2px rgba(36, 28, 20, .04), 0 18px 40px rgba(36, 28, 20, .07);
  --shadow-sm: 0 1px 2px rgba(36, 28, 20, .04), 0 8px 20px rgba(36, 28, 20, .05);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 40px);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grana sottile su tutta la pagina · sopra ai fondali, tocco premium */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; }
img { max-width: 100%; display: block; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 .4em; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); position: relative; z-index: 2; }

/* Filo statico · motivo verticale del marchio (chiusura, carte) */
.filo {
  width: 3px;
  min-height: 56px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--indigo), var(--pink));
}
.filo-dot { display: block; width: 10px; height: 10px; border-radius: 50%; margin: 0 auto;
  background: radial-gradient(circle at 35% 35%, var(--pink), var(--indigo)); }

/* Filo vivo · si disegna lungo tutta la pagina mentre scorri.
   La geometria (viewBox, altezza, path) e' costruita in JS sull'altezza reale
   della pagina: scala 1:1, nessuna distorsione, tratto uniforme. */
/* Filo a tutta larghezza: ondeggia da destra a sinistra scendendo, ma si vede
   solo nei margini laterali. Una maschera lo nasconde sulla colonna dei
   contenuti, cosi non appare mai su testi, tasti o riquadri. Sta comunque
   dietro ai contenuti come ulteriore sicurezza. */
.filo-thread {
  position: absolute; top: 0; left: 0; width: 100%;
  z-index: 1; pointer-events: none; opacity: .55;
  --g: max(0px, calc((100% - 1120px) / 2));
  -webkit-mask: linear-gradient(to right,
    #000 0, #000 var(--g),
    transparent calc(var(--g) + 40px),
    transparent calc(100% - var(--g) - 40px),
    #000 calc(100% - var(--g)), #000 100%);
  mask: linear-gradient(to right,
    #000 0, #000 var(--g),
    transparent calc(var(--g) + 40px),
    transparent calc(100% - var(--g) - 40px),
    #000 calc(100% - var(--g)), #000 100%);
}
@media (max-width: 640px) { .filo-thread { opacity: .4; } }
.filo-path { fill: none; stroke: var(--accento); stroke-width: 2.4; stroke-linecap: round;
  will-change: stroke-dashoffset; }

/* Intestazione */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-head.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; transition: height .3s ease; }
.site-head.scrolled .wrap { height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.18rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 23px; height: 23px; flex: none; }
.brand-word { font-weight: 800; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { color: var(--text-soft); font-size: .95rem; }
.nav > a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 10px 22px; font-size: .95rem; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav .signin { color: var(--text); font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* Sottolineatura che cresce al passaggio */
.nav a:not(.btn), .closing-links a, .foot-links a {
  position: relative; display: inline-block;
}
.nav a:not(.btn)::after, .closing-links a::after, .foot-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--pink));
  transform: scaleX(0); transform-origin: left center; transition: transform .3s ease;
}
.nav a:not(.btn):hover::after, .closing-links a:hover::after, .foot-links a:hover::after { transform: scaleX(1); }

@media (max-width: 760px) {
  /* Su mobile la barra in alto resta sempre fissa e mostra solo il logo
     centrato: niente hamburger, niente menu a tendina. */
  .site-head {
    position: fixed; left: 0; right: 0; top: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .site-head .wrap { justify-content: center; }
  .brand { justify-content: center; }
  .nav, .menu-btn { display: none; }
  /* Riserva lo spazio della barra fissa, così il contenuto non finisce sotto. */
  body { padding-top: 64px; }
}

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1.02rem; padding: 14px 28px; border-radius: 980px;
  background: var(--indigo); color: #fff; border: 0; cursor: pointer; will-change: transform;
  transition: opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; opacity: .94; }
.btn-ghost { background: transparent; color: var(--indigo); border: 1.5px solid var(--line); }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }
/* Un pulsante non supera mai la colonna: su schermi stretti stringe i fianchi
   e manda l etichetta a capo invece di sbordare. */
.btn { max-width: 100%; text-align: center; }
@media (max-width: 400px) {
  .btn { padding: 13px 20px; }
  .btn-lg { padding: 15px 24px; }
}

/* Sezioni */
section { padding: clamp(60px, 9vw, 108px) 0; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .77rem; font-weight: 700;
  color: var(--viola); margin: 0 0 16px; }
.lead { font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: var(--text-soft); max-width: 42ch; }
.muted { color: var(--text-mute); }

/* Hero */
.hero { position: relative; padding-top: clamp(36px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -12% -10% auto -10%; height: 108%; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 48% at 18% 6%, var(--bg-glow), transparent 68%),
    radial-gradient(48% 44% at 88% 26%, var(--bg-glow2), transparent 70%),
    radial-gradient(40% 40% at 60% 90%, var(--bg-glow), transparent 72%);
  animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero-grid { display: grid; gap: clamp(30px, 5vw, 52px); align-items: center; position: relative; z-index: 2; }
.hero-copy { text-align: center; }
.hero .promise { max-width: 16ch; margin: 0 auto; }
.hero .promise .w { display: inline-block; }
.hero .lead { margin: 18px auto 0; max-width: 52ch; }
.hero-cta { margin: 30px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 320px; }
.hero-cta .btn { width: 100%; }

.hero-visual { position: relative; perspective: 1500px; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 5vw, 72px); }
  .hero-copy { text-align: left; }
  .hero .promise { margin: 0; max-width: 13ch; }
  .hero .lead { margin: 20px 0 0; }
  .hero-cta { margin: 32px 0 0; align-items: flex-start; }
}

/* Telefono interattivo · mostra l applicazione vera, non un segnaposto */
.device-stage { margin: 44px auto 0; width: 100%; max-width: 320px; position: relative; z-index: 2; perspective: 1400px; }
.phone {
  width: 100%;
  position: relative; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2a2731, #141216);
  box-shadow: 0 34px 74px rgba(27, 23, 18, .28), 0 8px 20px rgba(27, 23, 18, .16);
  border: 1px solid rgba(255, 255, 255, .06); will-change: transform;
}
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #050505; border-radius: 14px; z-index: 6;
}
.phone__screen {
  position: relative; border-radius: 36px; overflow: hidden; background: var(--bg);
  aspect-ratio: 9 / 19.3; display: flex; flex-direction: column; border: 1px solid rgba(0, 0, 0, .45);
}
.phone__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 22px 4px; font-size: .7rem; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.phone__bar-right { display: inline-flex; gap: 4px; align-items: center; }
.phone__bar-right i { width: 5px; height: 9px; border-radius: 1px; background: var(--text); opacity: .8; }

.app { position: relative; flex: 1; overflow: hidden; }
.app-view {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(0.32, 0.72, 0, 1);
}
.app-view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 10px; }
.app-head__t { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.app-people { display: inline-flex; }
.ppl {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: #fff; border: 2px solid var(--bg); font-style: normal;
}
.ppl--a { background: var(--accento); }
.ppl--b { background: var(--accento-2); margin-left: -8px; }

.app-scroll { flex: 1; overflow: hidden; padding: 0 16px 10px; }

/* Filo verticale dentro l app */
.app-filo { position: relative; padding-left: 22px; }
.app-filo::before {
  content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2.5px;
  border-radius: 2px; background: var(--accento); opacity: .4;
}
.app-dot { display: none; }
.app-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(27, 23, 18, .04);
}
.app-card::before {
  content: ""; position: absolute; left: -20px; top: 13px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accento);
}
.app-card--slim { padding: 10px 12px; }
.app-photo {
  height: 82px; border-radius: 10px; margin-bottom: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accento) 42%, var(--bg-card)),
    color-mix(in srgb, var(--accento) 16%, var(--bg-card)));
}
.app-txt { font-size: .82rem; line-height: 1.42; color: var(--text); margin: 0; }
.app-txt b { font-weight: 700; }
.app-rate { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.app-who {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .6rem; font-weight: 700; color: #fff; font-style: normal;
}
.app-who--a { background: var(--accento); }
.app-who--b { background: var(--accento-2); }
.app-stars { display: inline-flex; gap: 2px; }
.app-stars svg { width: 13px; height: 13px; fill: var(--accento); }
.app-stars svg.off { fill: var(--line); }

/* Cose · griglia di raccolte */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-tile {
  position: relative; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 12px; min-height: 76px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.app-tile__i { color: var(--accento); }
.app-tile__i svg { width: 22px; height: 22px; }
.app-tile__n { font-size: .8rem; font-weight: 600; margin-top: 10px; }
.app-tile__c {
  position: absolute; top: 12px; right: 13px; font-size: .72rem; font-weight: 700;
  color: var(--text-mute); font-variant-numeric: tabular-nums;
}

/* Calendario */
.app-month { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.app-month__name { font-weight: 700; font-size: .88rem; margin-bottom: 8px; }
.app-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  font-size: .58rem; color: var(--text-mute); text-align: center; margin-bottom: 4px;
}
.app-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.app-days span {
  aspect-ratio: 1; display: grid; place-items: center; font-size: .62rem;
  border-radius: 50%; color: var(--text);
}
.app-days .on { background: var(--accento); color: #fff; font-weight: 700; }
.app-days .ev { box-shadow: inset 0 0 0 1.5px var(--accento); }
.app-event {
  display: flex; align-items: center; gap: 9px; margin-top: 10px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.app-event__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accento); flex: none; }
.app-event__dot--b { background: var(--accento-2); }

/* Storia */
.app-year {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accento);
  opacity: .22; line-height: 1; margin: 0 0 8px;
}
.app-when {
  display: block; font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-mute); margin-bottom: 3px;
}

/* Barra schede dell app */
.app-tabbar {
  display: flex; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  padding: 8px 6px 16px;
}
.app-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: 0; cursor: pointer; color: var(--text-mute); padding: 4px 0;
  transition: color .25s ease;
}
.app-tab svg { width: 22px; height: 22px; }
.app-tab span { font-size: .54rem; font-weight: 600; }
.app-tab.is-on { color: var(--accento); }

/* Contenuti piu completi delle schermate */
.app-head { align-items: center; }
.app-sub { display: block; font-size: .64rem; color: var(--text-mute); font-weight: 600; margin-top: 1px; }
.app-streak {
  display: inline-flex; align-items: center; gap: 6px; font-size: .67rem; font-weight: 700;
  color: var(--accento); background: color-mix(in srgb, var(--accento) 10%, var(--bg-card));
  border-radius: 999px; padding: 5px 11px; margin-bottom: 12px;
}
.app-streak svg { width: 13px; height: 13px; }
.app-photo { position: relative; }
.app-photo__tag {
  position: absolute; left: 8px; bottom: 8px; font-size: .58rem; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .38); padding: 3px 8px; border-radius: 999px;
}
.app-note { display: flex; align-items: center; gap: 8px; }
.app-note .app-txt { margin: 0; }

.app-feat {
  display: flex; gap: 12px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(27, 23, 18, .04);
}
.app-feat__poster {
  width: 54px; flex: none; border-radius: 10px; min-height: 84px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accento) 46%, var(--bg-card)),
    color-mix(in srgb, var(--accento) 15%, var(--bg-card)));
}
.app-feat__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-feat__k { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); }
.app-feat__t { font-size: .9rem; font-weight: 700; }

.app-daytitle { font-size: .78rem; font-weight: 700; margin: 12px 0 8px; }

.app-recap {
  margin-top: 12px; display: flex; flex-direction: column; gap: 3px;
  background: color-mix(in srgb, var(--accento) 8%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accento) 18%, transparent);
  border-radius: 14px; padding: 12px;
}
.app-recap__t { font-size: .78rem; font-weight: 700; color: var(--accento); }
.app-recap__n { font-size: .68rem; color: var(--text-soft); }

/* Telefono piu grande e inclinato in 3D sul desktop, con parallasse al mouse */
.hero-visual .phone { transition: transform .35s ease; }
@media (min-width: 900px) {
  .device-stage { max-width: 372px; margin-top: 0; }
  .hero-visual .phone { transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 3deg)); }
}

/* Ingressi 3D degli elementi (attivati da GSAP quando il filo raggiunge i pin) */
/* Cuore alla fine del filo, appena sopra il footer */
.filo-fine { position: relative; z-index: 2; height: 100px; display: flex; align-items: center; justify-content: center; }
.filo-cuore {
  width: 34px; height: 34px; fill: var(--accento); opacity: 0; transform: scale(.4);
  transition: opacity .4s ease, transform .55s cubic-bezier(.2, 1.4, .5, 1);
  filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--accento) 40%, transparent));
}
.filo-cuore.on { opacity: 1; transform: scale(1); animation: battito 1.6s ease-in-out .6s infinite; }
@keyframes battito {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.18); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
}

/* Carte / funzioni */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 44px; }
.grid > .card { flex: 1 1 260px; max-width: 340px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin-bottom: 0; color: var(--text-soft); font-size: .98rem; }
/* Icona piccola, in alto a destra; niente riga di accento a sinistra. */
.icon { position: absolute; top: 20px; right: 20px; width: 18px; height: 18px; color: var(--accento); margin: 0; }
.card:has(.icon) h3 { padding-right: 28px; }

.soft { background: var(--bg-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Citazione da diario · editoriale, con grazie */
.quote {
  max-width: 680px; margin: 44px auto 0; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: clamp(30px, 5vw, 46px); text-align: center; position: relative;
}
.quote p { font-family: var(--serif); font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.4;
  color: var(--text); margin: 0 0 .6em; letter-spacing: -0.01em; }
.quote cite { display: block; font-style: normal; font-size: .9rem; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .08em; }

/* Statistiche · numeri che salgono */
.stats {
  max-width: var(--maxw); margin: 40px auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center;
}
.stat .num {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1;
  background: linear-gradient(180deg, var(--indigo), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { color: var(--text-soft); font-size: .95rem; margin-top: 10px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; gap: 30px; } }

/* Il momento speciale · scorrimento orizzontale bloccato */
.story-pin { margin-top: 52px; position: relative; z-index: 2; }
.story-viewport { overflow: hidden; width: 100%; }
.story-track { display: flex; gap: 24px; padding: 6px var(--pad); will-change: transform; }
.story-panel { flex: 0 0 78vw; max-width: 560px; }
.panel-inner {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(30px, 4vw, 46px); height: 100%;
}
.panel-inner .tl-date { font-size: .8rem; font-weight: 700; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .05em; }
.panel-inner h3 { margin: 8px 0 10px; font-size: clamp(1.3rem, 3vw, 1.7rem); font-family: var(--serif); font-weight: 600; }
.panel-inner p { color: var(--text-soft); margin: 0; }
.panel-quote .panel-inner { display: flex; flex-direction: column; justify-content: center; }
.panel-quote .q { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.4;
  color: var(--text); margin: 0 0 .6em; letter-spacing: -0.01em; }
.panel-quote cite { font-style: normal; font-size: .85rem; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .08em; }
.recap { margin-top: 48px; }

@media (min-width: 820px) {
  .story-viewport { min-height: 78vh; display: flex; align-items: center; }
  .story-panel { flex: 0 0 46vw; max-width: 560px; }
  .panel-inner { min-height: 340px; }
}
@media (max-width: 819px) {
  .story-viewport { overflow: visible; }
  .story-track { flex-direction: column; padding: 0 var(--pad); }
  .story-panel { flex: none; width: 100%; max-width: none; }
}
/* Senza animazioni (movimento ridotto o GSAP assente): tutti i pannelli visibili */
html:not(.anim) .story-viewport { overflow: visible; min-height: 0; }
html:not(.anim) .story-track { flex-wrap: wrap; justify-content: center; }

/* Prezzo */
.price-card { max-width: 460px; margin: 44px auto 0; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-top { padding: 28px 30px; border-bottom: 1px solid var(--line); }
.price-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; padding: 20px 30px; border-bottom: 1px solid var(--line); }
@media (max-width: 400px) { .price-row { padding: 18px 20px; } }
.price-row:last-child { border-bottom: 0; }
.price-row .amt { font-size: 1.55rem; font-weight: 700; font-family: var(--serif); font-variant-numeric: tabular-nums; }
.price-row .per { color: var(--text-mute); font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--rosa); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.price-note { padding: 22px 30px; font-size: .92rem; color: var(--text-soft); }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 4px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--viola); font-weight: 700; font-size: 1.5rem; line-height: 1; flex: none;
  transition: transform .25s ease; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 20px; margin: 0; color: var(--text-soft); }

/* Chiusura */
.closing { text-align: center; }
.closing .filo { margin-bottom: 28px; }
.closing .lead { margin-left: auto; margin-right: auto; }
.closing-links { margin-top: 24px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: .95rem; }
.closing-links a { color: var(--text-soft); }

/* Pie di pagina */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-mute); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: center; text-align: center; }
.site-foot a { color: var(--text-soft); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }

/* Pagine legali */
.legal { max-width: 760px; padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(40px, 7vw, 72px);
  animation: legalIn .6s ease both; }
@keyframes legalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.legal h1 { margin-top: 8px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.7em; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { padding-left: 1.2em; }
.legal .updated { color: var(--text-mute); font-size: .9rem; }
.legal a:hover { text-decoration: underline; }

/* ==== Stati iniziali per le animazioni GSAP (solo quando attive) ==== */
html.anim .reveal { opacity: 0; }
html.anim .reveal-group > * { opacity: 0; }
html.anim .hero .promise .w,
html.anim .hero .lead,
html.anim .hero-cta,
html.anim .device-stage { opacity: 0; }
@media (max-width: 819px) { html.anim .story-panel { opacity: 0; } }

/* Movimento ridotto · tutto fermo, tutto visibile */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { animation: none; }
  .legal { animation: none; }
  .card:hover { transform: none; }
  .nav { transition: none; }
  .filo-cuore.on { animation: none; }
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.foot-powered { white-space: nowrap; }
.lang-switch a {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
  font-size: 0.9rem;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
  text-decoration: underline;
}

/* Banner cookie completo (iniettato da cookie.js) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 16px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  transform: translateY(140%); opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.cookie-banner.is-open { transform: translateY(0); opacity: 1; }
.cookie-banner__t { flex: 1 1 320px; margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text-soft); }
.cookie-banner__link { color: var(--text); font-weight: 600; white-space: nowrap; }
.cookie-banner__azioni { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner__btn {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: 10px 20px; border-radius: 980px; border: 0;
  background: var(--indigo); color: #fff;
}
.cookie-banner__btn:hover { opacity: .94; }
.cookie-banner__btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner__azioni { justify-content: stretch; }
  .cookie-banner__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
