/* ============================================================
   Recensioni Penna 3D, direzione artistica "Il Giardino".
   Botanico, naturale, morbido. Crema, foresta, salvia, terracotta, senape.
   Titoli Gloock (serif alto contrasto), corpo Karla. Solo colori OKLCH.
   Accessibilita 40-70: corpo >=18px, interlinea >=1.6, contrasto >=4.5:1,
   link sottolineati, target >=48px, prefers-reduced-motion.
   ============================================================ */

:root {
  /* palette "Il Giardino" */
  --cream:      oklch(0.96 0.02 100);
  --cream-deep: oklch(0.93 0.03 98);
  --paper:      oklch(0.985 0.01 100);
  --forest:     oklch(0.40 0.07 150);   /* verde foresta, testo principale */
  --forest-d:   oklch(0.33 0.06 150);
  --sage:       oklch(0.70 0.06 150);   /* salvia */
  --sage-soft:  oklch(0.84 0.04 150);
  --terracotta: oklch(0.60 0.12 40);    /* terracotta, accento + CTA */
  --terra-d:    oklch(0.52 0.12 40);
  --mustard:    oklch(0.78 0.12 88);     /* senape */
  --ink:        oklch(0.34 0.05 150);    /* testo corpo, contrasto su crema */
  --ink-soft:   oklch(0.46 0.04 150);
  --line:       oklch(0.86 0.025 120);

  /* blob */
  --blob-sage:    oklch(0.84 0.045 150 / 0.55);
  --blob-mustard: oklch(0.86 0.085 90 / 0.45);

  --shadow: oklch(0.40 0.05 150 / 0.14);
  --shadow-soft: oklch(0.40 0.05 150 / 0.08);

  --read: 64ch;
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 26px;
  --radius-lg: 38px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  font-size: clamp(18px, 0.5vw + 17px, 20px);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(58% 48% at 92% -4%, oklch(0.86 0.085 90 / 0.30), transparent 70%),
    radial-gradient(46% 40% at -8% 4%, oklch(0.78 0.05 150 / 0.20), transparent 72%);
  background-attachment: fixed;
}

/* ---------- tipografia ---------- */
h1, h2, h3 {
  font-family: "Gloock", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); margin: 1.7em 0 0.5em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 1.4em 0 0.4em; }

p { margin: 0 0 1.1em; max-width: var(--read); }
strong { font-weight: 700; color: var(--forest-d); }
em { font-style: italic; }

a {
  color: var(--terra-d);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: oklch(0.60 0.12 40 / 0.5);
}
a:hover { color: var(--terracotta); text-decoration-color: currentColor; }

img, svg { max-width: 100%; display: block; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; max-width: var(--read); }
li { margin: 0.4em 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.reading { max-width: 760px; }
.reading p, .reading ul, .reading ol { max-width: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -56px;
  background: var(--forest); color: var(--cream);
  padding: 12px 18px; border-radius: 0 0 14px 14px; z-index: 50;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 0; color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* sprig / leaf accents inherit colour via currentColor */
.sprig { color: var(--sage); flex: none; }
.sprig-wrap { display: inline-flex; vertical-align: -0.32em; margin-right: 0.45rem; color: var(--terracotta); }
.leaf-corner { color: var(--sage); }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: oklch(0.96 0.02 100 / 0.92);
  backdrop-filter: saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.head-in {
  max-width: var(--maxw); margin-inline: auto;
  padding: 12px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--forest);
  font-family: "Gloock", serif; font-size: 1.4rem;
  min-height: 48px;
}
.brand:hover { color: var(--forest); }
.brand-mark { display: inline-flex; color: var(--terracotta); }
.brand-mark .sprig { color: var(--terracotta); width: 28px; height: 28px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1rem;
  padding: 0.55em 0.85em; border-radius: 999px;
  min-height: 48px; display: inline-flex; align-items: center;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--sage-soft); color: var(--forest-d); }
.main-nav a[aria-current="page"] { background: var(--forest); color: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-in {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(28px, 5vw, 64px) var(--pad) clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
  position: relative; z-index: 2;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--terra-d); margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--terracotta);
}
.hero h1 { margin: 0 0 0.45em; }
.hero .lede {
  font-size: clamp(1.1rem, 1.4vw, 1.32rem);
  color: var(--ink-soft); max-width: 38ch; margin-bottom: 1.6rem;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 0 24px 50px var(--shadow);
}
.photo-leaf {
  position: absolute; left: -22px; bottom: -8px;
  color: var(--mustard);
}
.photo-leaf .leaf-corner { color: var(--mustard); width: 96px; height: 96px; }

/* blob decorativi */
.blob { position: absolute; z-index: 1; pointer-events: none; }
.hero .blob-1 { width: clamp(360px, 50vw, 620px); top: -14%; right: -10%; }
.hero .blob-2 { width: clamp(260px, 34vw, 420px); bottom: -28%; left: -8%; }
.page-head .blob-1 { width: clamp(320px, 44vw, 520px); top: -38%; right: -12%; opacity: 0.8; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.7em 1.5em;
  border-radius: 999px; font-family: "Karla", sans-serif;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s, background 0.2s;
}
.btn-pri { background: var(--terracotta); color: var(--cream); box-shadow: 0 10px 24px var(--shadow); }
.btn-pri:hover { background: var(--terra-d); color: var(--cream); transform: translateY(-3px); box-shadow: 0 16px 32px var(--shadow); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }

/* ============================================================
   DIVISORE A FOGLIA
   ============================================================ */
.leaf-div {
  max-width: 560px; margin: clamp(28px, 5vw, 56px) auto;
  padding-inline: var(--pad); color: var(--sage);
}
.leaf-div svg { width: 100%; height: 24px; }

/* ============================================================
   TLDR
   ============================================================ */
.tldr {
  background: var(--paper);
  border: 1.5px solid var(--sage-soft);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  margin: clamp(24px, 4vw, 40px) 0;
  box-shadow: 0 12px 30px var(--shadow-soft);
}
.tldr h2 {
  margin: 0 0 0.6em; font-size: 1.15rem;
  font-family: "Karla", sans-serif; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--terra-d);
}
.tldr h2 .sprig-wrap { vertical-align: -0.28em; }
.tldr ul { margin: 0; list-style: none; padding: 0; max-width: none; }
.tldr li {
  position: relative; padding-left: 1.9em; margin: 0.6em 0;
}
.tldr li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 15px; height: 15px;
  background: var(--sage);
  border-radius: 0 72% 0 72%;
  rotate: -20deg;
}

/* ============================================================
   SEZIONI A BANDA
   ============================================================ */
.band { padding: clamp(36px, 6vw, 72px) 0; margin: clamp(28px, 5vw, 56px) 0; position: relative; }
.band-sage { background: var(--sage-soft); }
.band-cream { background: var(--cream-deep); }
.band h2:first-child { margin-top: 0; }

.pull {
  font-family: "Gloock", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4; color: var(--forest);
  background: oklch(0.86 0.085 90 / 0.28);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px) clamp(22px, 3.5vw, 34px);
  margin: 1.8em 0; max-width: none;
}

/* ============================================================
   TABELLA COMPARATIVA
   ============================================================ */
.tablewrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px var(--shadow-soft);
  border: 1.5px solid var(--sage-soft);
}
.tablewrap:focus-visible { outline-offset: 0; }
.compare {
  width: 100%; border-collapse: collapse;
  font-size: 0.98rem; min-width: 640px;
}
.compare caption { text-align: left; }
.compare th, .compare td {
  text-align: left; padding: 14px 16px; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: "Gloock", serif; font-weight: 400;
  font-size: 1.05rem; color: var(--forest);
  background: var(--cream-deep);
  position: sticky; top: 0;
}
.compare thead th.us { background: var(--mustard); color: var(--forest-d); }
.compare tbody th.crit {
  font-family: "Karla", sans-serif; font-weight: 700;
  color: var(--forest-d); background: oklch(0.94 0.025 120 / 0.6);
}
.compare td.us {
  background: oklch(0.86 0.085 90 / 0.22);
  font-weight: 600; color: var(--forest-d);
}
.compare .star { color: var(--terracotta); font-size: 1.05em; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.note {
  font-size: 0.92rem; color: var(--ink-soft);
  margin-top: 0.9em; font-style: italic;
}

/* ============================================================
   VERDETTO
   ============================================================ */
.verdict-list { list-style: none; padding: 0; max-width: none; }
.verdict-list li {
  position: relative; padding: 0 0 0 2.2em; margin: 1em 0;
  line-height: 1.6;
}
.verdict-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 16px; height: 16px; background: var(--terracotta);
  border-radius: 0 72% 0 72%; rotate: -18deg;
}

/* ============================================================
   FOTO
   ============================================================ */
.photo {
  max-width: var(--maxw); margin: clamp(30px, 5vw, 56px) auto;
  padding-inline: var(--pad);
}
.photo img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 44px var(--shadow);
}
.photo figcaption {
  margin-top: 0.8em; font-size: 0.95rem; color: var(--ink-soft);
  font-style: italic; text-align: center;
}

/* ============================================================
   LINK CARDS (layout fluido, ognuna con accento a foglia)
   ============================================================ */
.link-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 24px); margin-top: 1.4em;
}
.link-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius);
  padding: 26px 24px 22px; text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--sage-soft);
  box-shadow: 0 8px 20px var(--shadow-soft);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s;
}
.link-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px var(--shadow); color: var(--ink); }
.lc-leaf {
  position: absolute; top: -14px; right: -14px; opacity: 0.35;
  color: var(--sage); transition: opacity 0.28s, transform 0.28s;
}
.link-card:hover .lc-leaf { opacity: 0.6; transform: rotate(-8deg); }
.link-card h3 { margin: 0 0 0.3em; color: var(--forest); }
.link-card p { margin: 0 0 1em; color: var(--ink-soft); font-size: 0.98rem; }
.lc-go {
  margin-top: auto; font-weight: 700; color: var(--terra-d);
  display: inline-flex; align-items: center; gap: 0.4em;
}
.lc-go::after { content: "→"; transition: transform 0.2s; }
.link-card:hover .lc-go::after { transform: translateX(4px); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--forest); color: var(--cream);
  margin-top: clamp(40px, 6vw, 80px); padding: clamp(40px, 6vw, 72px) 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin: 0 0 0.4em; }
.cta-band p { color: oklch(0.9 0.03 120); margin: 0 auto 1.5em; max-width: 46ch; }
.cta-band .btn-pri { background: var(--mustard); color: var(--forest-d); }
.cta-band .btn-pri:hover { background: oklch(0.82 0.13 88); color: var(--forest-d); }

/* ============================================================
   PAGE HEAD (pagine interne)
   ============================================================ */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 64px) 0 clamp(8px, 2vw, 20px);
}
.page-head .eyebrow { margin-bottom: 0.8rem; }
.page-head h1 { max-width: 18ch; }
.page-head .lede {
  font-size: clamp(1.1rem, 1.4vw, 1.28rem); color: var(--ink-soft);
  max-width: 52ch; line-height: 1.6;
}

/* ============================================================
   FASCE ETA + STEPS
   ============================================================ */
.band-label {
  display: inline-block; font-family: "Karla", sans-serif;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--terra-d);
  background: oklch(0.86 0.085 90 / 0.4);
  padding: 0.4em 1em; border-radius: 999px; margin: 0 0 0.4em;
}
.age-block { padding: clamp(20px, 3vw, 30px) 0; border-bottom: 1px solid var(--line); }
.age-block:last-of-type { border-bottom: none; }

.steps { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); margin: 1.4em 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 2.5vw, 26px);
  align-items: start;
  background: var(--paper); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); border: 1.5px solid var(--sage-soft);
  box-shadow: 0 8px 20px var(--shadow-soft);
}
.step-n {
  font-family: "Gloock", serif; font-size: 2rem; line-height: 1;
  color: var(--cream); background: var(--sage);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.step-body h2 { margin-top: 0; }
.step-body > *:last-child { margin-bottom: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex; flex-direction: column; gap: 12px;
  margin: clamp(20px, 4vw, 36px) 0;
}
.faq-item {
  background: var(--paper); border: 1.5px solid var(--sage-soft);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow-soft);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 56px;
  font-family: "Gloock", serif; font-size: 1.15rem; color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terra-d); }
.faq-item .chev {
  flex: none; width: 14px; height: 14px;
  border-right: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage);
  rotate: 45deg; transition: rotate 0.25s;
}
.faq-item[open] .chev { rotate: -135deg; }
.faq-item .a { padding: 0 24px 22px; }
.faq-item .a p { margin: 0; color: var(--ink); }

/* ============================================================
   CTA inline + reading sections
   ============================================================ */
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 2.4em 0 1em; }
.reading section:first-of-type h2 { margin-top: 0.6em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  background: var(--forest); color: oklch(0.9 0.03 120);
  margin-top: clamp(48px, 8vw, 90px);
  position: relative; overflow: hidden;
}
.foot-in {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(36px, 5vw, 56px) var(--pad);
  position: relative; z-index: 2;
}
.foot-leaf {
  position: absolute; top: 14px; right: var(--pad); opacity: 0.4; z-index: 1;
}
.foot-leaf .leaf-corner { color: var(--sage); width: 130px; height: 130px; }
.site-foot .editeur {
  font-size: 1rem; max-width: 56ch; color: oklch(0.93 0.03 120);
  line-height: 1.6;
}
.site-foot .mentions { font-size: 0.92rem; color: oklch(0.84 0.03 120); max-width: 60ch; }
.site-foot .mentions.soft { color: oklch(0.78 0.025 120); font-style: italic; }
.site-foot a { color: var(--mustard); text-decoration-color: oklch(0.78 0.12 88 / 0.6); }
.site-foot a:hover { color: oklch(0.85 0.13 88); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 440px; margin-inline: auto; }
  .photo-leaf { left: 4px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 0.5em 0.7em; font-size: 0.96rem; }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .step-n { width: 48px; height: 48px; font-size: 1.6rem; }
}

/* ============================================================
   MOTION (rispetta le preferenze)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
