/* Evolve — sito di presentazione. Nessuna risorsa esterna: caratteri e immagini sono serviti da evolveapp.it. */
@import url('/fonts/fonts.css');

:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #eeebe3;
  --ink: #14231b;
  --ink-2: #4b5a51;
  --muted: #66706a;
  --line: #e2ded3;
  --brand: #14231b;
  --accent: #c8f169;
  --accent-2: #8fd14f;
  --accent-ink: #14231b;
  --hot: #e0673a;
  --ok: #2f7d4f;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 35, 27, 0.06), 0 12px 32px -14px rgba(20, 35, 27, 0.22);
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1511;
    --surface: #16201a;
    --surface-2: #1d2a22;
    --ink: #eef2ea;
    --ink-2: #b8c4bb;
    --muted: #8f9a92;
    --line: #26332b;
    --brand: #16201a;
    --ok: #5bbf85;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 12px;
}

/* ---------- Testata ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 20px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: flex;
  gap: 8px;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .header-cta .btn-login {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero .hl {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 4px;
}

@media (prefers-color-scheme: dark) {
  .hero .hl {
    background: none;
    color: var(--accent);
  }
}

.hero p.lead {
  margin-top: 20px;
  font-size: 19px;
  color: var(--ink-2);
  max-width: 560px;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero .note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 32px;
  }
}

/* telefono disegnato in CSS (niente immagini da scaricare) */
.phone {
  justify-self: center;
  width: min(320px, 100%);
  border-radius: 40px;
  padding: 12px;
  background: #14231b;
  box-shadow: var(--shadow);
}

.phone-screen {
  border-radius: 30px;
  background: #f4f2ec;
  color: #14231b;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.ph-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 15px/1 var(--display);
}

.ph-top img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.ph-title {
  font: 800 22px/1.1 var(--display);
}

.ph-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ph-days span {
  text-align: center;
  padding: 7px 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2ded3;
  font-weight: 700;
  font-size: 11px;
}

.ph-days span.on {
  background: #14231b;
  color: #f4f2ec;
  border-color: #14231b;
}

.ph-card {
  background: #fff;
  border: 1px solid #e2ded3;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-card.now {
  border-color: #14231b;
  box-shadow: 0 0 0 1px #14231b;
}

.ph-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ph-row b {
  font-weight: 700;
}

.ph-kcal {
  font: 800 26px/1 var(--display);
}

.ph-bar {
  display: flex;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
}

.ph-bar i:nth-child(1) {
  background: #3a6fe0;
  width: 30%;
}

.ph-bar i:nth-child(2) {
  background: #d9a21b;
  width: 45%;
}

.ph-bar i:nth-child(3) {
  background: #e0673a;
  width: 25%;
}

.ph-chip {
  background: #c8f169;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

.ph-swap {
  color: #66706a;
  font-size: 12px;
}

/* ---------- Sezioni ---------- */
section.block {
  padding: 72px 0;
}

section.block.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section.block:not(.alt) .card {
  background: var(--surface);
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.card li {
  display: flex;
  gap: 8px;
}

.card li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314231b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.card .link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  padding-top: 6px;
}

.card .link::after {
  content: ' →';
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}

.feature p {
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Come funziona ---------- */
.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font: 800 18px/1 var(--display);
}

/* ---------- Prezzi ---------- */
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
  margin-bottom: 24px;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: 600 15px/1 var(--font);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.billing-toggle button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.billing-toggle .save {
  font-size: 12px;
  color: var(--ok);
  font-weight: 700;
  margin-left: 4px;
}

.price-card.featured {
  border: 2px solid var(--ink);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price .amount {
  font: 800 44px/1 var(--display);
}

.price .per {
  color: var(--muted);
  font-size: 15px;
}

.price-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* ---------- Domande frequenti ---------- */
.faq {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::after {
  content: '+';
  font: 700 22px/1 var(--display);
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  padding-bottom: 18px;
  color: var(--ink-2);
}

/* ---------- Invito finale ---------- */
.final {
  padding: 72px 0;
}

.final .box {
  background: var(--brand);
  color: #f4f2ec;
  border-radius: 28px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (prefers-color-scheme: dark) {
  .final .box {
    border: 1px solid var(--line);
  }
}

.final .box p {
  opacity: 0.8;
  max-width: 560px;
}

/* ---------- Piè di pagina ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Pagine legali ---------- */
.legal {
  max-width: 760px;
  padding: 48px 20px 72px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.legal h2 {
  font-size: 24px;
  margin-top: 16px;
}

.legal ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft {
  border: 2px dashed var(--hot);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
}

.todo {
  background: color-mix(in srgb, var(--hot) 18%, transparent);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 600;
}

/* ---------- Banner dei cookie (solo con Google Analytics attivo: vedi js/consent.js) ---------- */
/* "Rifiuta" e "Accetta" hanno lo stesso aspetto: nessuna scelta spinta */
.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 15px;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.cookie-banner a {
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cookie-actions .btn {
  min-width: 110px;
}

.cookie-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

@media (min-width: 720px) {
  .cookie-banner {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 440px;
  }
}
