/* greedys.it — home + legali. Convertito da design_system/public (Claude Design,
   progetto "Greedys Public Design System"): token da Colors/Type/Spacing,
   layout da Screens/Landing + Legal* + Error404. Font self-hosted (GDPR). */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/fredoka-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-var-latin.woff2') format('woff2');
}

:root {
  /* teal ladder (Colors.dc.html) */
  --teal: #3B9994;          /* A60 PRIMARY */
  --teal-light: #45B2AD;    /* A70 */
  --teal-bright: #58E5DE;   /* A90 */
  --teal-deep: #276663;     /* A40 */
  --teal-ink: #1D4D4A;      /* A30 */
  --teal-a20: #143331;
  --teal-a10: #0A1A19;
  --star: #F0AD4E;

  /* light surfaces */
  --surface: #FAF8F5;
  --container: #FFFFFF;
  --variant: #EEF4F3;
  --ink: #303030;
  --ink-soft: #5E5E5E;
  --ink-dim: #919191;
  --hairline: #E7E0D6;
  --rule: #F2EDE5;
  --heading: var(--teal-ink);
  --link: var(--teal-deep);
  --card-border: var(--hairline);
  --badge-border: #D7E3E1;
  --hero-grad: linear-gradient(135deg, #EEF4F3 0%, #FAF8F5 70%);
  --phone-shadow: 0 18px 50px rgba(39, 102, 99, .4);
  --elev1: 0 6px 20px rgba(20, 51, 49, .06);
  --elev2: 0 6px 20px rgba(20, 51, 49, .10);
  --cta-shadow: 0 6px 20px rgba(59, 153, 148, .3);
  --footer-bg: #143331;
  --footer-text: #9FC4C0;
  --footer-dim: #7FA9A5;
  --footer-rule: rgba(255, 255, 255, .1);
  --chip-bg: var(--variant);
  --chip-text: var(--teal-deep);
  --toc-active-bg: var(--variant);
  --toc-active-border: var(--teal);
  --wordmark-light: block;
  --wordmark-dark: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0A1A19;
    --container: #143331;
    --variant: #1D4D4A;
    --ink: #F1EAE1;
    --ink-soft: #9FC4C0;
    --ink-dim: #7FA9A5;
    --hairline: rgba(255, 255, 255, .08);
    --rule: rgba(255, 255, 255, .08);
    --heading: #F1EAE1;
    --link: #58E5DE;
    --card-border: rgba(255, 255, 255, .08);
    --badge-border: #276663;
    --hero-grad: linear-gradient(135deg, #143331 0%, #0A1A19 70%);
    --phone-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    --elev1: none;
    --elev2: none;
    --cta-shadow: 0 6px 20px rgba(59, 153, 148, .4);
    --footer-bg: #0A1A19;
    --footer-rule: rgba(255, 255, 255, .08);
    --chip-bg: #1D4D4A;
    --chip-text: #9FC4C0;
    --toc-active-bg: #1D4D4A;
    --toc-active-border: #4FCCC5;
    --wordmark-light: none;
    --wordmark-dark: block;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
img { max-width: 100%; }
a { color: var(--link); }

h1, h2, .display {
  font-family: 'Fredoka', 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -.01em;
}

/* wordmark: variante teal in light, cream in dark */
.wm-teal { display: var(--wordmark-light); }
.wm-cream { display: var(--wordmark-dark); }

/* ---------- Nav ---------- */
.site-nav { border-bottom: 1px solid var(--rule); }
.site-nav .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.site-nav .brand { line-height: 0; }
.site-nav .brand img { height: 38px; }
.site-nav .spacer { flex: 1; }
.site-nav a.navlink {
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.site-nav a.navlink:hover { color: var(--link); }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 11px;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--hero-grad); }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px;
  align-items: center; padding-top: 54px; padding-bottom: 54px;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--container); border: 1px solid var(--badge-border);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 20px;
}
.hero .pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--teal); }
@media (prefers-color-scheme: dark) { .hero .pill .dot { background: var(--teal-bright); } }
.hero .pill span:last-child { font-size: 12px; font-weight: 700; color: var(--chip-text); }
.hero h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; }
.hero .sub { font-size: 16px; color: var(--ink-soft); margin-top: 16px; max-width: 440px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn-hero {
  font-weight: 800; font-size: 15px; padding: 13px 24px; border-radius: 13px;
}
.btn-hero.btn-primary { box-shadow: var(--cta-shadow); }
.btn-outline {
  border: 1.5px solid var(--teal); background: transparent;
  color: var(--link); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 13px;
}
.btn-outline:hover { background: var(--variant); }
.hero .art { display: flex; justify-content: center; }

/* mock telefono: flusso di prenotazione (stile SlotPicker del DS) */
.phone {
  width: 270px; border-radius: 34px; padding: 10px;
  background: var(--teal-ink); box-shadow: var(--phone-shadow);
  transform: rotate(2deg);
}
.phone-screen {
  border-radius: 26px; overflow: hidden; background: var(--surface);
}
.phone .p-cover {
  height: 86px;
  background: linear-gradient(135deg, #45B2AD, #276663);
}
.phone .p-body { padding: 14px 16px 18px; }
.phone .p-name { font-weight: 800; font-size: 15px; color: var(--ink); }
.phone .p-tag { font-size: 11.5px; color: var(--ink-dim); margin-top: 2px; }
.phone .p-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--chip-text); margin-top: 14px;
}
.phone .p-slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px;
}
.phone .p-slots span {
  text-align: center; font-size: 12.5px; font-weight: 700; color: var(--link);
  border: 1.5px solid var(--badge-border); border-radius: 9px; padding: 7px 0;
  background: var(--container);
}
.phone .p-slots .sel {
  background: var(--teal); border-color: var(--teal); color: #fff;
  box-shadow: 0 4px 12px rgba(59, 153, 148, .35);
}
.phone .p-slots .full {
  color: var(--ink-dim); border-style: dashed; text-decoration: line-through;
  background: transparent;
}
.phone .p-cta {
  margin-top: 14px; background: var(--teal); color: #fff; text-align: center;
  font-weight: 800; font-size: 13.5px; border-radius: 11px; padding: 11px 0;
  box-shadow: var(--cta-shadow);
}
.phone .p-note {
  text-align: center; font-size: 10.5px; color: var(--ink-dim); margin-top: 9px;
}

/* ---------- Sections ---------- */
section { padding: 40px 0; }
.section-title {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 24px;
  color: var(--heading); text-align: center; margin-bottom: 24px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.band { background: var(--variant); }
.section-lead {
  max-width: 680px; margin: -8px auto 0; text-align: center;
  font-size: 15.5px; color: var(--ink-soft);
}

/* ---------- Challenge (teaser: si nomina, non si spiega) ---------- */
.teaser {
  max-width: 620px; margin: 0 auto; text-align: center;
  padding: 12px 0 4px;
}
.teaser-badge {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--chip-text); background: var(--container);
  border: 1px solid var(--badge-border); border-radius: 999px; padding: 6px 14px;
}
.teaser-title {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: clamp(30px, 5vw, 42px); color: var(--heading);
  letter-spacing: -.01em; margin-top: 16px;
}
.teaser-line { font-size: 16.5px; color: var(--ink-soft); margin-top: 12px; }
.teaser .btn { margin-top: 24px; }

.card {
  background: var(--container); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 22px; box-shadow: var(--elev1);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--variant);
  color: var(--chip-text); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) { .card .icon { color: var(--teal-bright); } }
.card h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; color: var(--heading); }
.card p { font-size: 13px; color: var(--ink-soft); margin-top: 7px; }

.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  width: 38px; height: 38px; border-radius: 999px; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px; flex: none;
}
.step h3 { font-weight: 700; font-size: 15px; color: var(--ink); font-family: 'Manrope', sans-serif; }
.step p { font-size: 13px; color: var(--ink-dim); margin-top: 3px; line-height: 1.4; }

/* ---------- Form richiesta attivazione ---------- */
.request { background: var(--variant); }
.request .inner {
  max-width: 620px; margin: 0 auto; background: var(--container);
  border: 1px solid var(--card-border); border-radius: 18px;
  padding: 32px; box-shadow: var(--elev2);
}
.request .section-title { margin-bottom: 8px; text-align: left; }
.request .hint { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--card-border);
  border-radius: 12px; padding: 11px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal);
}
.request .send { width: 100%; margin-top: 6px; }
.request .mail-note { font-size: 12.5px; color: var(--ink-dim); margin-top: 14px; text-align: center; }
.request .mail-note a { color: var(--link); }

/* ---------- Vetrina ---------- */
.showcase-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
}
.showcase-head .section-title { text-align: left; margin-bottom: 0; }
.shop-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border);
  background: var(--container); box-shadow: var(--elev1);
  text-decoration: none; display: block;
}
.shop-card .cover { height: 104px; background: linear-gradient(135deg, #45B2AD, #276663); }
@media (prefers-color-scheme: dark) { .shop-card .cover { background: linear-gradient(135deg, #31807B, #143331); } }
.shop-card .body { padding: 14px; }
.shop-card .name { font-weight: 700; font-size: 15px; color: var(--ink); }
.shop-card .tag { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.shop-card .row {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
}
.shop-card .chip {
  font-size: 12px; font-weight: 700; color: var(--chip-text);
  background: var(--chip-bg); border-radius: 999px; padding: 3px 10px;
}
.shop-card .cta { font-size: 12px; font-weight: 700; color: var(--link); }

/* ---------- Footer (identico su tutte le pagine) ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; }
.site-footer .top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .top img { height: 34px; }
.site-footer .spacer { flex: 1; }
.site-footer a { font-size: 13px; font-weight: 600; color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .rule { height: 1px; background: var(--footer-rule); margin: 20px 0; }
.site-footer .legal-line { font-size: 12px; color: var(--footer-dim); }
.site-footer .legal-line .ph {
  border: 1px dashed var(--footer-dim); border-radius: 4px; padding: 0 5px;
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
}

/* ---------- Pagine legali ---------- */
.legal-page .wrap {
  max-width: 980px; padding-top: 48px; padding-bottom: 56px;
  display: flex; gap: 44px; align-items: flex-start;
}
.legal-toc { width: 230px; flex: none; position: sticky; top: 24px; }
.legal-toc .label {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px;
}
.legal-toc nav { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.legal-toc a {
  padding: 8px 12px; border-radius: 10px; color: var(--ink-soft);
  text-decoration: none; border-left: 3px solid transparent;
}
.legal-toc a:hover {
  background: var(--toc-active-bg); color: var(--heading);
  border-left-color: var(--toc-active-border);
}
.legal-body { flex: 1; min-width: 0; }
.legal-body h1 { font-size: clamp(26px, 4vw, 32px); }
.legal-body .updated {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  color: var(--ink-dim); margin-top: 10px;
}
.legal-body h2 {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px;
  color: var(--heading); margin-top: 32px;
}
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-top: 10px; }
.legal-body ul { margin: 2px 0 0 18px; }
.legal-body strong { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.legal-body th, .legal-body td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--card-border); color: var(--ink-soft);
}
.legal-body th { background: var(--variant); color: var(--heading); font-weight: 700; }
.rights-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rights-chips span {
  background: var(--chip-bg); color: var(--chip-text); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 10px 16px; font-size: 13.5px; font-weight: 600;
}
.contact-card {
  margin-top: 12px; background: var(--container); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.contact-card .badge-ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--teal);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-card .who { font-size: 14px; color: var(--ink-soft); }
.contact-card .addr {
  font-family: ui-monospace, Menlo, monospace; font-size: 14px;
  color: var(--heading); font-weight: 500; margin-top: 3px;
}
.placeholder {
  border: 1px dashed var(--star); border-radius: 4px; padding: 1px 6px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #8a6a12;
  background: rgba(240, 173, 78, .08);
}
@media (prefers-color-scheme: dark) { .placeholder { color: #EAC76B; } }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 56px 24px;
}
.page-404 .digits { display: flex; align-items: center; justify-content: center; gap: 6px; }
.page-404 .four {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 120px;
  line-height: 1; color: var(--teal); letter-spacing: -4px;
}
.page-404 .plate {
  position: relative; width: 104px; height: 104px; border-radius: 999px;
  background: var(--container); border: 9px solid var(--teal-light);
  box-shadow: var(--elev2); display: inline-flex; align-items: center; justify-content: center;
}
.page-404 .plate .ring { width: 58px; height: 58px; border-radius: 999px; border: 2px solid var(--badge-border); }
.page-404 .plate .cutlery-l, .page-404 .plate .cutlery-r {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 5px; height: 46px; border-radius: 3px; background: var(--ink-dim);
}
.page-404 .plate .cutlery-l { left: -22px; }
.page-404 .plate .cutlery-r { right: -22px; }
.page-404 h1 { font-size: 28px; margin-top: 14px; }
.page-404 p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; max-width: 380px; }
.page-404 .btn { margin-top: 28px; height: 48px; line-height: 48px; padding: 0 28px; font-weight: 800; font-size: 15px; border-radius: 12px; box-shadow: var(--cta-shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .art { order: 1; margin-top: 8px; }
  .phone { transform: none; width: 250px; }
  .grid-3 { grid-template-columns: 1fr; }
  .legal-page .wrap { flex-direction: column; }
  .legal-toc { position: static; width: 100%; }
}
