/* ============================================================
   LADINVM — Bottega v1.0 · shared design system
   Single source of truth for v2/ pages (Home · Why · Where · Contact).
   Do not invent tokens outside docs/BRAND-IDENTITY.md.
   ============================================================ */

:root{
  /* primary + secondary greens */
  --green-900:#0E2725; --green-800:#143A35; --green-700:#1E4F47;
  /* secondary action */
  --gold-500:#B8923E; --gold-300:#D9B45E;
  /* tertiary seasoning */
  --olive-500:#7C8A55; --clay-500:#C0693F;
  /* neutrals */
  --cream-100:#F4EFE3; --cream-200:#EBE4D4;
  --ink-900:#0A1A18; --muted-500:#5A6B64;
  /* lines */
  --line:rgba(10,26,24,.14); --line-dark:rgba(244,239,227,.16);
  /* semantic */
  --bg:var(--cream-100); --bg-dark:var(--green-900);
  --text:var(--ink-900); --text-dark:var(--cream-100); --action:var(--gold-500);
  /* radius */
  --r-s:4px; --r-m:10px; --r-l:16px;
  /* elevation */
  --shadow-sm:0 1px 2px rgba(10,26,24,.06);
  --shadow-md:0 8px 30px rgba(10,26,24,.10);
  --shadow-lg:0 30px 80px rgba(10,26,24,.18);
  /* type */
  --display:'Fraunces', Georgia, 'Times New Roman', serif;
  --quote:'Cormorant Garamond', Georgia, serif;
  --body:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --util:'Archivo', system-ui, sans-serif;
  /* layout */
  --maxw:1140px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-weight:400;
  line-height:1.6;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  /* paper grain */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; border:0; background:none; cursor:pointer; color:inherit; }
:focus-visible{ outline:2px solid var(--gold-500); outline-offset:2px; }
h1,h2,h3,h4{ margin:0; font-family:var(--display); font-weight:500; }
::selection{ background:var(--gold-500); color:var(--ink-900); }

/* ---------- Layout ---------- */
.wrap{ width:min(100%, var(--maxw)); margin:0 auto; padding:0 24px; }
.wrap--narrow{ max-width:760px; }
.wrap--wide{ max-width:1280px; }
section{ padding:96px 0; position:relative; }
@media (max-width:768px){ section{ padding:64px 0; } }

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-family:var(--util); font-weight:600;
  font-size:.72rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-500); margin:0 0 18px;
  display:inline-flex; align-items:center; gap:12px;
}
.eyebrow::before{ content:""; width:26px; height:1px; background:currentColor; opacity:.9; }
.eyebrow--center{ justify-content:center; }
.eyebrow--muted{ color:var(--muted-500); }

.h-xl{ font-size:clamp(2.7rem,6.4vw,5.2rem); line-height:1.04; letter-spacing:-.02em; }
.h-l{ font-size:clamp(2rem,4.2vw,3.3rem); line-height:1.1; letter-spacing:-.01em; }
.h-m{ font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.15; }
.h-display{ font-size:clamp(3rem,9vw,7rem); line-height:.98; letter-spacing:-.025em; }
.accent{ font-family:var(--quote); font-style:italic; font-weight:500; color:var(--gold-500); }

.lede{ font-size:1.12rem; line-height:1.65; max-width:60ch; }
p{ margin:0 0 1rem; }
.copy{ color:var(--muted-500); max-width:62ch; }
.copy p:last-child{ margin-bottom:0; }
.quote{
  font-family:var(--quote); font-style:italic; color:var(--gold-500);
  font-size:clamp(1.5rem,3.2vw,2.2rem); line-height:1.3; max-width:24ch;
}
.pull{
  font-family:var(--quote); font-style:italic; color:var(--gold-500);
  font-size:clamp(1.7rem,3.6vw,2.7rem); line-height:1.28;
}
.tnum{ font-feature-settings:"tnum"; font-variant-numeric:tabular-nums; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--util); font-weight:600; font-size:.84rem; letter-spacing:.04em;
  padding:15px 28px; border-radius:var(--r-s);
  transition:background .25s ease, color .25s ease, transform .2s ease, border-color .25s ease;
}
.btn .arw{ transition:transform .25s ease; }
.btn:hover .arw{ transform:translateX(4px); }
.btn--primary{ background:var(--gold-500); color:var(--ink-900); }
.btn--primary:hover{ background:var(--gold-300); transform:translateY(-1px); }
.btn--ghost-dark{ border:1.5px solid var(--green-900); color:var(--green-900); }
.btn--ghost-dark:hover{ background:var(--green-900); color:var(--cream-100); }
.btn--ghost-light{ border:1.5px solid var(--gold-500); color:var(--cream-100); }
.btn--ghost-light:hover{ background:var(--gold-500); color:var(--ink-900); }
.btn--block{ display:flex; width:100%; justify-content:center; }
.btn--lg{ padding:18px 34px; font-size:.9rem; }

.textlink{
  font-family:var(--util); font-weight:600; font-size:.82rem; letter-spacing:.04em;
  display:inline-flex; align-items:center; gap:8px; color:var(--gold-500);
  border-bottom:1px solid transparent; transition:border-color .25s, gap .25s;
}
.textlink:hover{ border-color:currentColor; gap:12px; }
.sec-light .textlink{ color:var(--green-900); }

/* ---------- Section themes ---------- */
.sec-dark{ background:var(--green-900); color:var(--cream-100); }
.sec-dark .copy{ color:rgba(244,239,227,.82); }
.sec-dark .eyebrow{ color:var(--gold-300); }
.sec-dark .lede{ color:rgba(244,239,227,.86); }
.sec-paper{ background:var(--cream-200); }
.sec-deep{ background:var(--ink-900); color:var(--cream-100); }
.sec-deep .copy{ color:rgba(244,239,227,.8); }
.sec-deep .eyebrow{ color:var(--gold-300); }

.hairline{ height:1px; background:var(--line); border:0; margin:0; }
.sec-dark .hairline,.sec-deep .hairline{ background:var(--line-dark); }
.gold-rule{ height:1px; width:100%; background:linear-gradient(90deg,transparent,var(--gold-500),transparent); border:0; opacity:.5; }

/* ---------- Nav · floating glass pill ---------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  padding-top:clamp(10px,1.6vw,18px);
  color:var(--cream-100);
  pointer-events:none; /* solo la pillola è cliccabile, il resto della striscia lascia passare i click sulla hero */
  transition:transform .35s cubic-bezier(.4,0,.2,1);
}
/* mobile: si nasconde scrollando in giù, riappare scrollando in su (vedi ladinum.js) */
.nav.is-hidden{ transform:translateY(-140%); }
.nav__in{
  pointer-events:auto;
  width:min(100% - 32px, var(--maxw));
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:11px 14px 11px 26px;
  background:rgba(14,39,37,.92);
  -webkit-backdrop-filter:blur(16px) saturate(1.4); backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid var(--line-dark);
  border-radius:999px;
  box-shadow:0 10px 34px rgba(10,26,24,.22);
  transition:padding .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.is-scrolled .nav__in{
  padding-top:8px; padding-bottom:8px;
  background:rgba(14,39,37,.96);
  border-color:rgba(217,180,94,.30);
  box-shadow:0 14px 40px rgba(10,26,24,.32);
}
.logo{
  font-family:var(--display); font-weight:500; font-size:1.35rem;
  letter-spacing:.16em; color:var(--gold-500);
}
.nav__links{ display:flex; align-items:center; gap:28px; }
.nav__link{ font-family:var(--body); font-weight:500; font-size:.95rem; color:var(--cream-100); transition:color .25s; position:relative; }
.nav__link:hover{ color:var(--gold-300); }
.nav__link[aria-current="page"]{ color:var(--gold-300); }
.nav__pill{
  font-family:var(--util); font-weight:600; font-size:.8rem; letter-spacing:.04em;
  background:var(--gold-500); color:var(--ink-900);
  padding:11px 22px; border-radius:999px; transition:background .25s, transform .2s;
}
.nav__pill:hover{ background:var(--gold-300); transform:translateY(-1px); }
.burger{ display:none; padding:8px; color:var(--cream-100); }
.burger svg{ display:block; }

.drawer{
  position:fixed; inset:0; z-index:100; background:var(--green-900);
  display:none; flex-direction:column; padding:28px 24px;
}
.drawer.is-open{ display:flex; }
.drawer__top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:56px; }
.drawer__nav{ display:flex; flex-direction:column; gap:30px; }
.drawer__nav a{ font-family:var(--display); font-size:2rem; color:var(--cream-100); }
.drawer__nav a.accent{ color:var(--gold-500); }
@media (max-width:900px){
  .nav__links .nav__link,.nav__links .nav__pill{ display:none; }
  .burger{ display:block; }
}

/* ---------- Generic split (text + media) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split--rev .split__media{ order:-1; }
@media (max-width:900px){
  .split{ grid-template-columns:1fr; gap:44px; }
  .split--rev .split__media{ order:0; }
}
.split__media{ display:flex; justify-content:center; }

/* phone bezel */
.phone{
  background:var(--ink-900); padding:12px; border-radius:34px;
  box-shadow:var(--shadow-md); position:relative; width:fit-content;
  border:1px solid rgba(255,255,255,.06);
}
.sec-dark .phone,.sec-deep .phone{ box-shadow:0 24px 60px rgba(0,0,0,.45); }
.phone::before{
  content:""; position:absolute; top:18px; left:50%; transform:translateX(-50%);
  width:86px; height:5px; border-radius:999px; background:rgba(244,239,227,.18); z-index:2;
}
.phone img{ border-radius:24px; max-height:620px; width:auto; }

/* ---------- Steps (cards) ---------- */
.center-head{ text-align:center; max-width:760px; margin:0 auto 56px; }
.center-head .copy{ margin-left:auto; margin-right:auto; }
.step__n{
  font-family:var(--display); font-weight:500; font-size:2.6rem; line-height:1;
  color:var(--gold-500); font-feature-settings:"tnum";
}

/* ---------- FAQ ---------- */
.faq{ border-top:1px solid var(--line); }
.faq__q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 4px; text-align:left; font-weight:500; font-size:1.05rem; color:var(--green-900);
}
.sec-dark .faq{ border-color:var(--line-dark); }
.sec-dark .faq__q{ color:var(--cream-100); }
.faq__ic{ flex:0 0 auto; width:24px; height:24px; position:relative; }
.faq__ic::before,.faq__ic::after{ content:""; position:absolute; top:50%; left:50%; width:12px; height:1.5px; background:var(--gold-500); transform:translate(-50%,-50%); transition:transform .3s ease; }
.faq__ic::after{ transform:translate(-50%,-50%) rotate(90deg); }
.faq.is-open .faq__ic::after{ transform:translate(-50%,-50%) rotate(0); }
.faq__a{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.faq__a p{ color:var(--muted-500); font-size:.96rem; padding:0 4px 22px; margin:0; }
.sec-dark .faq__a p{ color:rgba(244,239,227,.78); }

/* ---------- Footer ---------- */
.footer{ background:var(--green-900); color:var(--cream-100); padding:72px 0 56px; }
.footer__grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:820px){ .footer__grid{ grid-template-columns:1fr 1fr; gap:36px 24px; } }
@media (max-width:480px){ .footer__grid{ grid-template-columns:1fr; } }
.footer .logo{ display:inline-block; margin-bottom:16px; }
.footer__tag{ color:rgba(244,239,227,.68); font-size:.95rem; max-width:30ch; }
.footer h4{ font-family:var(--util); font-weight:700; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--gold-300); margin-bottom:18px; }
.footer a.flink{ display:block; color:rgba(244,239,227,.8); font-size:.92rem; margin-bottom:12px; transition:color .2s; }
.footer a.flink:hover{ color:var(--gold-300); }

/* ---------- WhatsApp float ---------- */
.wa-float{ position:fixed; right:20px; bottom:20px; z-index:60; width:56px; height:56px; border-radius:999px; background:#25D366; box-shadow:var(--shadow-md); display:grid; place-items:center; }
.wa-float img{ width:32px; height:32px; }

/* ---------- Reveal ---------- */
[data-reveal]{ opacity:0; transform:translateY(12px); transition:opacity .6s ease-out, transform .6s ease-out; }
[data-reveal].is-in{ opacity:1; transform:none; }
[data-reveal][data-reveal-d="1"]{ transition-delay:.08s; }
[data-reveal][data-reveal-d="2"]{ transition-delay:.16s; }
[data-reveal][data-reveal-d="3"]{ transition-delay:.24s; }
[data-reveal][data-reveal-d="4"]{ transition-delay:.32s; }

@media (prefers-reduced-motion:reduce){
  *{ scroll-behavior:auto !important; }
  [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }
  .btn,.nav__pill,.nav{ transition:none !important; }
  [data-pulse]{ animation:none !important; }
}

/* ============================================================
   Cookie consent — banner + preferences modal (Bottega)
   ============================================================ */
.cc{
  position:fixed; left:0; right:0; bottom:0; z-index:1000;
  padding:16px; display:flex; justify-content:center;
  transform:translateY(120%); transition:transform .4s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.cc.is-in{ transform:translateY(0); pointer-events:auto; }
@media (prefers-reduced-motion:reduce){ .cc{ transition:none; } }
.cc__panel{
  width:100%; max-width:var(--maxw);
  background:var(--green-900); color:var(--cream-100);
  border:1px solid var(--line-dark); border-radius:var(--r-l);
  box-shadow:var(--shadow-lg);
  padding:20px 22px; display:flex; flex-direction:column; gap:16px;
}
.cc__title{ font-family:var(--display); font-weight:500; font-size:1.15rem; margin:0 0 6px; }
.cc__text{ font-family:var(--body); font-size:.92rem; line-height:1.55; margin:0; color:rgba(244,239,227,.82); max-width:62ch; }
.cc__actions{ display:flex; flex-wrap:wrap; gap:10px; }
.cc__btn{
  font-family:var(--util); font-weight:700; font-size:.82rem; letter-spacing:.04em;
  border-radius:var(--r-s); padding:12px 20px; cursor:pointer; border:1.5px solid transparent;
  transition:background .2s, color .2s, transform .15s;
}
.cc__btn--gold{ background:var(--gold-500); color:var(--ink-900); border-color:var(--gold-500); }
.cc__btn--gold:hover{ background:var(--gold-300); border-color:var(--gold-300); transform:translateY(-1px); }
.cc__btn--ghost{ background:transparent; color:var(--cream-100); border-color:var(--gold-500); }
.cc__btn--ghost:hover{ background:var(--gold-500); color:var(--ink-900); }
.cc__btn:focus-visible, .ccm__close:focus-visible{ outline:2px solid var(--gold-300); outline-offset:3px; }
@media (min-width:760px){
  .cc__panel{ flex-direction:row; align-items:center; justify-content:space-between; gap:28px; }
  .cc__actions{ flex-shrink:0; }
}

/* preferences modal */
.ccm{ position:fixed; inset:0; z-index:1100; display:none; }
.ccm.is-in{ display:block; }
.ccm__backdrop{ position:absolute; inset:0; background:rgba(10,26,24,.6); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.ccm__panel{
  position:relative; margin:auto; top:50%; transform:translateY(-50%);
  width:calc(100% - 32px); max-width:540px; max-height:88vh; overflow:auto;
  background:var(--cream-100); color:var(--ink-900);
  border-radius:var(--r-l); box-shadow:var(--shadow-lg); padding:26px;
}
.ccm__top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.ccm__title{ font-family:var(--display); font-weight:500; font-size:1.45rem; margin:0; }
.ccm__close{ background:none; border:none; font-size:1.8rem; line-height:1; cursor:pointer; color:var(--muted-500); padding:4px 8px; border-radius:var(--r-s); }
.ccm__close:hover{ color:var(--ink-900); }
.ccm__cats{ margin:14px 0 22px; }
.cc__cat{ padding:16px 0; border-top:1px solid var(--line); }
.cc__cat:first-child{ border-top:none; }
.cc__catHead{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.cc__catName{ font-family:var(--display); font-weight:500; font-size:1.1rem; margin:0; }
.cc__catDesc{ font-family:var(--body); font-size:.86rem; line-height:1.5; color:var(--muted-500); margin:6px 0 0; }
.cc__always{ font-family:var(--util); font-weight:700; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--olive-500); }
.ccm__actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.cc__sr{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
/* toggle switch */
.cc__switch{ position:relative; display:inline-flex; align-items:center; width:46px; height:26px; flex-shrink:0; cursor:pointer; }
.cc__switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.cc__slider{ width:46px; height:26px; border-radius:999px; background:var(--muted-500); transition:background .2s; position:relative; }
.cc__slider::after{ content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--cream-100); transition:transform .2s; }
.cc__switch input:checked + .cc__slider{ background:var(--gold-500); }
.cc__switch input:checked + .cc__slider::after{ transform:translateX(20px); }
.cc__switch input:focus-visible + .cc__slider{ outline:2px solid var(--gold-300); outline-offset:2px; }

/* ============================================================
   Legal / system pages (privacy, cookie, terms, 404)
   ============================================================ */
.lg{ max-width:760px; padding-top:clamp(110px,16vh,160px); padding-bottom:clamp(64px,10vh,110px); }
.lg-title{ font-family:var(--display); font-weight:500; font-size:clamp(2.2rem,5vw,3.2rem); line-height:1.06; letter-spacing:-.02em; margin:.4em 0 .3em; }
.lg-intro{ font-family:var(--body); font-size:1.1rem; line-height:1.6; color:var(--muted-500); max-width:60ch; margin:0 0 18px; }
.lg-meta{ font-family:var(--util); font-size:.8rem; letter-spacing:.02em; color:var(--muted-500); margin:0 0 22px; }
.lg-meta a{ color:var(--green-900); text-decoration:underline; text-underline-offset:2px; }
.lg-note{ background:var(--cream-200); border-left:3px solid var(--gold-500); border-radius:var(--r-s); padding:14px 16px; font-size:.9rem; color:var(--ink-900); margin-bottom:36px; }
.lg-prose{ font-family:var(--body); font-size:1.02rem; line-height:1.72; color:var(--ink-900); }
.lg-prose h2{ font-family:var(--display); font-weight:500; font-size:1.4rem; margin:1.8em 0 .5em; }
.lg-prose p{ margin:0 0 1em; max-width:68ch; }
.lg-prose ul{ margin:0 0 1.2em; padding-left:1.2em; }
.lg-prose li{ margin:.4em 0; max-width:66ch; }
.lg-prose a{ color:var(--green-900); text-decoration:underline; text-underline-offset:2px; }
.lg-prose a:hover{ color:var(--gold-500); }
.lg-table{ overflow-x:auto; margin:0 0 1.4em; }
.lg-table table{ border-collapse:collapse; width:100%; font-size:.94rem; }
.lg-table th, .lg-table td{ text-align:left; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--line); }
.lg-table th{ font-family:var(--util); font-weight:700; font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-500); }
.lg-tag{ font-family:var(--util); font-weight:700; font-size:.62rem; letter-spacing:.06em; text-transform:uppercase; color:var(--olive-500); }

/* 404 / system */
.sys{ min-height:100svh; display:flex; align-items:center; justify-content:center; text-align:center; background:var(--green-900); color:var(--cream-100); padding:40px 24px; }
.sys__in{ max-width:520px; }
.sys__code{ font-family:var(--util); font-weight:800; font-size:.8rem; letter-spacing:.22em; text-transform:uppercase; color:var(--gold-500); }
.sys__title{ font-family:var(--display); font-weight:500; font-size:clamp(2rem,7vw,3rem); line-height:1.08; margin:.4em 0 .3em; }
.sys__text{ font-family:var(--body); color:rgba(244,239,227,.82); line-height:1.6; margin:0 auto 28px; max-width:42ch; }
.sys__actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* form errors / states */
.form__err{ background:rgba(192,105,63,.12); border-left:3px solid var(--clay-500); border-radius:var(--r-s); padding:11px 14px; font-size:.92rem; color:#7a3a20; margin:0 0 14px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"]{ border-color:var(--clay-500); box-shadow:0 0 0 2px rgba(192,105,63,.18); }

/* ============================================================
   Real iPhone frame (wraps app screenshots) — reusable
   Markup: <div class="iphone"><span class="iphone__island"></span>
             <div class="iphone__screen"><img ...></div></div>
   ============================================================ */
.iphone{
  position:relative; width:100%; max-width:250px; margin:0 auto;
  background:linear-gradient(150deg,#3a3a3e,#0e0e10 45%,#1c1c1f);
  border-radius:46px; padding:9px;
  box-shadow:0 0 0 2px #050506, 0 26px 60px rgba(10,26,24,.42), inset 0 1px 1px rgba(255,255,255,.18);
}
.iphone__screen{
  position:relative; border-radius:38px; overflow:hidden; background:#000;
  aspect-ratio:470/1000;
}
.iphone__screen img{ width:100%; height:100%; object-fit:cover; display:block; }
.iphone__island{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  width:32%; height:20px; background:#000; border-radius:999px; z-index:3;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
/* side buttons */
.iphone::before, .iphone::after{
  content:""; position:absolute; left:-2px; width:3px; border-radius:3px 0 0 3px; background:#1a1a1d;
}
.iphone::before{ top:120px; height:54px; box-shadow:0 76px 0 #1a1a1d; }   /* volume up + down */
.iphone::after{ right:-2px; left:auto; top:140px; height:74px; border-radius:0 3px 3px 0; background:#1a1a1d; } /* power */
