/* ════════════════════════════════════════════════════════════
   Burrachino — Design System condiviso (landing pages)
   Allineato a index.html / regole.html (DsColors dell'app)
   ════════════════════════════════════════════════════════════ */
:root {
  --coral: #E63946;
  --coral-dark: #C8403A;
  --coral-light: #F07B73;
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --felt: #2D7A3E;
  --felt-dark: #1B5E20;
  --bg: #FFF6F2;
  --surface: #FFFBF9;
  --card: #FFFFFF;
  --ink: #2D2D2D;
  --ink-soft: #6B7280;
  --line: rgba(45, 45, 45, .08);

  --shadow-sm: 0 2px 8px rgba(200, 64, 58, .08);
  --shadow-md: 0 12px 32px rgba(200, 64, 58, .14);
  --shadow-lg: 0 28px 70px rgba(150, 40, 38, .22);
  --shadow-gold: 0 16px 40px rgba(212, 175, 55, .32);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-pill: 999px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --maxw: 1120px;
  --maxw-content: 840px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ════ Background texture ════ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 550px at 80% -5%, rgba(240, 123, 115, .18), transparent 60%),
    radial-gradient(800px 600px at -5% 15%, rgba(212, 175, 55, .12), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .45;
  pointer-events: none;
  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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-content); margin: 0 auto; padding: 0 24px; }

/* ════ Typography ════ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.015em;
}
.h-display { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ════ NAV ════ */
header { position: sticky; top: 0; z-index: 50; transition: .3s; }
header.scrolled {
  background: rgba(255, 251, 249, .82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(200, 64, 58, .06);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}
nav .logo { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--ink); opacity: .78; transition: .2s; }
.nav-links a:hover { opacity: 1; color: var(--coral); }
.nav-links a.active { color: var(--coral); opacity: 1; }
.nav-cta {
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--coral); cursor: pointer; }

/* ════ BUTTONS ════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3a2e05; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px) scale(1.02); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--coral); color: var(--coral); }
.btn-lg { padding: 19px 38px; font-size: 1.1rem; }

/* ════ STORE BADGES ════ */
.store-badges { display: inline-flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  min-width: 190px;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; fill: #fff; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb-text small { font-size: .68rem; opacity: .82; font-weight: 500; }
.store-badge .sb-text b { font-size: 1.05rem; font-weight: 700; }

/* ════ SECTIONS ════ */
section { position: relative; padding: 80px 0; }
.sec-head { max-width: 620px; margin-bottom: 48px; }
.sec-head h2 { margin: 14px 0 16px; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ════ HERO (centered) ════ */
.hero { position: relative; padding: 60px 0 70px; text-align: center; }
.hero h1 { margin: 12px 0 20px; }
.hero h1 .ink-coral { color: var(--coral); position: relative; white-space: nowrap; }
.hero h1 .ink-coral svg { position: absolute; left: 0; bottom: -12px; width: 100%; height: 14px; }
.hero .lead { margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ════ PROSE (contenuti testuali SEO) ════ */
.prose { max-width: var(--maxw-content); margin: 0 auto; }
.prose h2 { margin: 8px 0 18px; }
.prose h3 { margin: 30px 0 12px; font-size: 1.4rem; }
.prose p { color: var(--ink); margin-bottom: 16px; font-size: 1.05rem; }
.prose p.muted { color: var(--ink-soft); }
.prose ul { list-style: none; margin: 8px 0 20px; }
.prose li { padding: 6px 0; display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.prose li::before { content: "♠"; color: var(--coral); font-weight: 800; flex-shrink: 0; }
.prose a.inline { color: var(--coral); font-weight: 700; border-bottom: 2px solid rgba(230, 57, 70, .3); }
.prose a.inline:hover { border-color: var(--coral); }

/* ════ CARD GRID ════ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:hover::after { transform: scaleX(1); }
.card .ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(230, 57, 70, .12), rgba(212, 175, 55, .14));
}
.card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ════ SURFACE SECTION ════ */
.surface { background: var(--surface); border-block: 1px solid var(--line); }

/* ════ CITY / LOCAL ════ */
.local-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(45, 122, 62, .1);
  color: var(--felt);
  border: 1.5px solid rgba(45, 122, 62, .22);
  font-weight: 700;
  font-size: .86rem;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

/* ════ FAQ / DETAILS ════ */
.faq-list { max-width: var(--maxw-content); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary {
  padding: 22px 26px;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.7rem; color: var(--coral); transition: .3s; line-height: 1; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 26px 24px; color: var(--ink-soft); }
.faq .faq-body p { margin-bottom: 10px; }

/* ════ FINAL CTA ════ */
.final { position: relative; }
.final-card {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  border-radius: var(--r-lg);
  padding: 62px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ctext y='32' font-size='30' fill='white'%3E%E2%99%A5%3C/text%3E%3C/svg%3E");
  background-size: 64px;
}
.final-card h2 { color: #fff; position: relative; margin-bottom: 16px; }
.final-card p { color: rgba(255, 255, 255, .92); max-width: 48ch; margin: 0 auto 32px; position: relative; font-size: 1.12rem; }
.final-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.final-card .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); }
.final-card .btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; border-color: #fff; }
.final-card .store-badge { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.25); }

/* ════ FOOTER ════ */
footer { padding: 54px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
footer .logo { height: 34px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); font-weight: 600; font-size: .94rem; transition: .2s; }
.foot-links a:hover { color: var(--coral); }
.foot-copy { width: 100%; text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: .86rem; }

/* ════ REVEAL on scroll ════ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,251,249,.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.1);
    z-index: 100;
    align-items: center;
  }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .final-card { padding: 46px 24px; }
  .store-badge { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
