/* Kindrya — kindrya.it
   Palette e impianto tipografico dell'export Buildpad, con il wordmark
   ufficiale e i componenti aggiunti (form estesi, cookie bar, WhatsApp,
   pagine legali). */

:root {
  --green: #1C3828;
  --green-mid: #2A5040;
  --sage: #2E7D43;
  --mint: #7FE0CF;
  --terra: #C4683C;
  --terra-light: #E8855E;
  --cream: #FAF7F1;
  --cream-dark: #F0EAE0;
  --text: #1C2820;
  --text-muted: #5A6B60;
  --error: #B23B2E;
  --line: rgba(28, 56, 40, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ------------------------------------------------------------------ brand */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
}

.brand-word {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--green);
}

.brand-light .brand-word { color: var(--cream); }

.brand-rule { margin-top: -2px; }

/* -------------------------------------------------------------------- nav */

/* `body > nav` e non `nav`: l'indice degli articoli e' anch'esso un <nav>, e
   con il selettore generico ereditava position:fixed finendo incollato in
   cima alla pagina sopra l'intestazione. */
body > nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(250, 247, 241, 0.92);
  border-bottom: 1px solid rgba(28, 56, 40, 0.08);
  backdrop-filter: blur(8px);
}

.nav-links { display: flex; gap: 1.75rem; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover, .nav-link:focus-visible { border-color: var(--terra); color: var(--terra); }

/* ------------------------------------------------------------------- hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(196, 104, 60, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid rgba(196, 104, 60, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--green);
  max-width: 820px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.25s;
}

.hero-title em { font-style: italic; color: var(--terra); }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.55s;
}

.btn-primary, .btn-outline {
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary { background: var(--green); color: var(--cream); border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--green); border: 1px solid rgba(28, 56, 40, 0.3); }
.btn-outline:hover { border-color: var(--green); transform: translateY(-1px); }

/* -------------------------------------------------------------- come funziona */

.how { background: var(--green); padding: 5rem 2rem; }
.how-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.how-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.45);
  margin-bottom: 1rem;
}

.how-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--cream);
  margin-bottom: 3.5rem;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* Quattro voci nei 900px del contenitore sarebbero colonne da 195px, e la
   quarta finirebbe da sola su una seconda riga. Due righe da due respirano.
   Il testo passa a sinistra: centrato su una colonna larga il doppio
   diventerebbe una scaletta di righe frastagliate. */
.steps-4 { grid-template-columns: repeat(2, 1fr); gap: 2.75rem 3.5rem; text-align: left; }

.step-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title { font-size: 0.9rem; font-weight: 500; color: var(--cream); margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.step-desc { font-size: 0.82rem; line-height: 1.6; color: rgba(250, 247, 241, 0.58); }

/* --------------------------------------------------------------- sezioni */

.section { padding: 6rem 2rem; scroll-margin-top: 5rem; }
.section-alt { background: var(--cream-dark); }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; }

.section-body { font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }

/* ------------------------------------------------------------------ form */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(28, 56, 40, 0.06);
}

.form-card.terra { background: var(--green); border-color: transparent; }

.form-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.form-card.terra .form-title { color: var(--cream); }

.form-subtitle { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.55; }
.form-card.terra .form-subtitle { color: rgba(250, 247, 241, 0.62); }

.form-body { display: flex; flex-direction: column; gap: 0.9rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-card.terra .field label { color: rgba(250, 247, 241, 0.6); }

.form-input {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(28, 56, 40, 0.2);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

textarea.form-input { resize: vertical; min-height: 2.6rem; }

.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 67, 0.14); }

.form-card.terra .form-input {
  background: rgba(250, 247, 241, 0.08);
  border-color: rgba(250, 247, 241, 0.22);
  color: var(--cream);
}

.form-card.terra .form-input::placeholder { color: rgba(250, 247, 241, 0.4); }
.form-card.terra .form-input:focus { border-color: var(--terra-light); box-shadow: 0 0 0 3px rgba(232, 133, 94, 0.2); }

.form-input.has-error { border-color: var(--error); }

/* Honeypot: fuori schermo, non display:none — alcuni bot ignorano i campi
   nascosti con display:none ma compilano quelli assenti dal viewport. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-consent { margin-top: 0.2rem; }

/* Selettore allineato a `.field label` per specificità: il consenso è una
   frase da leggere, non un'etichetta, quindi niente maiuscolo né spaziatura
   allargata. */
.field label.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
}

.form-card.terra .field label.consent { color: rgba(250, 247, 241, 0.68); }

.consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--sage);
  cursor: pointer;
}

.consent a { color: var(--terra); }
.form-card.terra .consent a { color: var(--terra-light); }

.field-error, .form-error {
  font-size: 0.75rem;
  color: var(--error);
  min-height: 0;
}

.form-card.terra .field-error, .form-card.terra .form-error { color: #FFB3A6; }

.field-error:empty, .form-error:empty { display: none; }

.form-btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 0.3rem;
}

.form-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.form-btn:disabled { opacity: 0.55; cursor: progress; }

.form-btn-green { background: var(--green); color: var(--cream); }
.form-btn-terra { background: var(--terra); color: #fff; }

.form-note { font-size: 0.73rem; color: var(--text-muted); text-align: center; }
.form-card.terra .form-note { color: rgba(250, 247, 241, 0.42); }

.form-success { display: none; text-align: center; padding: 1.5rem 0; }
.form-success.is-visible { display: block; }
.form-success-icon { font-size: 2rem; color: var(--sage); margin-bottom: 0.5rem; }
.form-success-text { font-size: 0.95rem; font-weight: 400; }
.form-success-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }
.form-card.terra .form-success-icon { color: var(--mint); }
.form-card.terra .form-success-text { color: var(--cream); }
.form-card.terra .form-success-note { color: rgba(250, 247, 241, 0.5); }

/* --------------------------------------------------------- pagine legali */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 9rem 2rem 5rem;
}

.legal h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green);
  margin-bottom: 0.5rem;
}

.legal .legal-updated { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.legal h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--green);
  margin: 2.5rem 0 0.75rem;
}

.legal h3 { font-size: 0.95rem; font-weight: 500; color: var(--green); margin: 1.5rem 0 0.5rem; }

.legal p, .legal li { font-size: 0.94rem; line-height: 1.75; color: var(--text-muted); }
.legal p { margin-bottom: 0.9rem; }
.legal ul, .legal ol { margin: 0 0 1rem 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--terra); }

.legal-note {
  background: var(--cream-dark);
  border-left: 3px solid var(--terra);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.legal-note p:last-child { margin-bottom: 0; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.86rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 500; color: var(--green); background: var(--cream-dark); }
.legal-table td { color: var(--text-muted); }
.table-scroll { overflow-x: auto; }

/* ----------------------------------------------------------------- footer */

footer { background: var(--green); padding: 3.5rem 2rem 2rem; margin-top: auto; }
.footer-inner { max-width: 1100px; margin: 0 auto; }

/* Marchio piu' quattro colonne: ecosistema, mercati, Kindrya, legale. La
   larghezza sale a 1100px perche' a 1000 le quattro colonne mandavano a capo
   "Preferenze cookie" e "Scrivici su WhatsApp". */
.footer-main {
  display: grid;
  /* Il conteggio arriva dal template: le colonne senza voci non vengono
     stampate, e la griglia non deve tenere loro il posto. */
  grid-template-columns: 1.6fr repeat(var(--footer-cols, 4), 1fr);
  gap: 2.5rem 2rem;
  padding: 0 0 2rem;
}

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer-current { font-size: 0.84rem; color: var(--cream); font-weight: 500; }

.footer-tagline { font-size: 0.82rem; color: rgba(250, 247, 241, 0.5); margin-top: 0.9rem; max-width: 24rem; }

.footer-heading {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.4);
  margin-bottom: 0.8rem;
}

.footer-col a, .link-button {
  font-size: 0.84rem;
  color: rgba(250, 247, 241, 0.62);
  text-decoration: none;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}

.footer-col a:hover, .link-button:hover { color: var(--terra-light); }

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  font-size: 0.78rem;
  color: rgba(250, 247, 241, 0.4);
  text-align: center;
}

/* --------------------------------------------------------------- WhatsApp */

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s, opacity 0.2s;
}

.whatsapp-fab:hover { transform: scale(1.06); }

/* Mentre il banner cookie è aperto il bottone si sposta, per non coprirlo. */
body.cookie-open .whatsapp-fab { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------- cookie bar */

.cookie-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  border-top: 2px solid var(--sage);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  animation: slideUp 0.35s ease;
}

.cookie-bar[hidden] { display: none; }

.cookie-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-bar-text strong { font-size: 0.92rem; font-weight: 500; display: block; margin-bottom: 0.3rem; }
.cookie-bar-text p { font-size: 0.82rem; line-height: 1.6; color: rgba(250, 247, 241, 0.68); max-width: 62ch; }
.cookie-bar-text a { color: var(--terra-light); }

.cookie-bar-actions { display: flex; gap: 0.7rem; flex: none; }

.btn-cookie {
  padding: 0.7rem 1.3rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, border-color 0.2s;
}

.btn-cookie-solid { background: var(--terra); color: #fff; border: 1px solid var(--terra); }
.btn-cookie-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(250, 247, 241, 0.35); }
.btn-cookie:hover { opacity: 0.88; }

/* ------------------------------------------------------------- animazioni */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-badge, .hero-title, .hero-sub, .hero-buttons { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body > nav { padding: 0.9rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-link { font-size: 0.72rem; letter-spacing: 0.04em; }
  .hero { padding: 8rem 1.5rem 4rem; min-height: auto; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 1.25rem; }
  .section-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal { padding: 7.5rem 1.25rem 4rem; }
  .cookie-bar-inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem 1.25rem; }
  .cookie-bar-actions { flex-direction: column-reverse; }
  .btn-cookie { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 1.75rem; }
  .whatsapp-fab { right: 1rem; bottom: 1rem; }
}

@media (max-width: 420px) {
  .nav-links a:first-child { display: none; }
}

/* ------------------------------------------------------------------- FAQ */

/* Le sezioni senza modulo occupano tutta la larghezza invece di lasciare
   una colonna vuota. */
.section-inner-wide { grid-template-columns: 1fr; max-width: 760px; gap: 0; }

.faq-teaser { background: var(--cream-dark); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-inner .section-title { margin-bottom: 2rem; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--green);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--terra);
  flex: none;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.faq-more { margin-top: 1.75rem; font-size: 0.9rem; }
.faq-more a { color: var(--terra); text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }

.faq-list { margin-top: 2.5rem; }
.faq-entry { margin-bottom: 2.25rem; }
.faq-entry h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* ------------------------------------------------------------------ blog */

.post-list { margin-top: 2.5rem; display: grid; gap: 1.5rem; }

.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  transition: border-color 0.2s, transform 0.15s;
}

.post-card:hover { border-color: var(--sage); transform: translateY(-2px); }

.post-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.post-card h2 a { text-decoration: none; }
.post-card p { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }

.post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.post-body { margin-top: 2rem; }
.post-body h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.post-body h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.post-body ul, .post-body ol { margin: 0 0 1.1rem 1.25rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  border-left: 3px solid var(--terra);
  padding-left: 1.1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-toc {
  background: var(--cream-dark);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.post-toc span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.post-toc ol { margin: 0 0 0 1.1rem; }
.post-toc li { font-size: 0.88rem; margin-bottom: 0.3rem; }
.post-toc a { color: var(--green); text-decoration: none; }
.post-toc a:hover { color: var(--terra); }

.post-back { display: inline-block; margin-top: 3rem; font-size: 0.88rem; color: var(--terra); text-decoration: none; }
.post-back:hover { text-decoration: underline; }

/* ------------------------------------------------------- nodi segnaposto */

/* Pagina inerte: marchio, una riga, un recapito. Nessun modulo, quindi
   nessuna sessione, quindi nessun cookie. */
.nav-minimal { justify-content: flex-start; }

.placeholder {
  min-height: 72vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 10rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.placeholder h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.placeholder h1 em { font-style: italic; color: var(--terra); }

.placeholder p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 34rem;
}

.placeholder-contact { margin-top: 2rem; }
.placeholder-contact a { color: var(--terra); text-decoration: none; border-bottom: 1px solid rgba(196, 104, 60, 0.35); }
.placeholder-contact a:hover { border-color: var(--terra); }

@media (max-width: 768px) {
  .placeholder { padding: 8rem 1.5rem 4rem; min-height: 60vh; }
}

/* Blocco approfondimenti in home: la voce in nav da sola non basta. */
.blog-teaser { max-width: 900px; margin: 0 auto; }
.blog-teaser .section-title { margin-bottom: 2rem; }
.blog-teaser .post-list { grid-template-columns: repeat(3, 1fr); }
.blog-teaser .post-card h2 { font-size: 1.15rem; }
.blog-teaser .post-card p { font-size: 0.85rem; }

@media (max-width: 900px) {
  .blog-teaser .post-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- elenchi */

/* Un elenco dentro una sezione: il .com riduce "il problema" a quattro righe
   invece di due paragrafi, perche' li' il problema e' la frammentazione, non
   la difficolta' di trovare una RSA. */
.section-list { list-style: none; margin: 1.25rem 0 0; display: grid; gap: 0.65rem; }

.section-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.section-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 1px;
  background: var(--sage);
}

.section-close { margin-top: 1.25rem; color: var(--text); }

/* ------------------------------------------------------------- ecosistema */

.ecosystem { background: var(--cream); }
.ecosystem-inner { max-width: 1060px; margin: 0 auto; }
.ecosystem-inner .section-title { margin-bottom: 0.75rem; }
.ecosystem-sub { max-width: 46rem; }

.eco-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.eco-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.9rem 1.75rem;
  scroll-margin-top: 6rem;
  transition: border-color 0.25s, transform 0.25s;
}

.eco-card:hover { border-color: rgba(46, 125, 67, 0.4); transform: translateY(-2px); }

.eco-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eco-name {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Lo stato e' contenuto, non decorazione: senza, "Store" sembra un negozio
   aperto e "One" un prodotto che si puo' comprare oggi. */
.eco-status {
  flex: none;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1px solid rgba(196, 104, 60, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.eco-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 0.7rem;
}

.eco-desc { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); flex: 1; }

.eco-cta {
  margin-top: 1.4rem;
  align-self: flex-start;
  font-size: 0.85rem;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 104, 60, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.eco-cta:hover { border-color: var(--terra); }

/* ------------------------------------------------------- doppio percorso */

/* Due tracce parallele al posto dei tre passi lineari: la richiesta e' un
   punto di ingresso per la famiglia e per la struttura, non un traguardo. */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; text-align: left; }

.path-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(250, 247, 241, 0.16);
}

.path-stages { list-style: none; counter-reset: stage; display: grid; gap: 1.35rem; }

.path-stage { position: relative; padding-left: 2.2rem; counter-increment: stage; }

.path-stage::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: rgba(127, 224, 207, 0.55);
}

.path-stage-name { display: block; font-size: 0.92rem; font-weight: 500; color: var(--cream); margin-bottom: 0.25rem; }
.path-stage-desc { display: block; font-size: 0.82rem; line-height: 1.6; color: rgba(250, 247, 241, 0.58); }

.paths-note {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 247, 241, 0.14);
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(250, 247, 241, 0.62);
  text-align: left;
}

/* ----------------------------------------------------------------- mercati */

.market-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.market-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.25s;
}

.market-card:hover { border-color: rgba(46, 125, 67, 0.4); }

.market-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green);
}

.market-status { font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.market-domain { margin-top: 0.3rem; font-size: 0.78rem; color: var(--terra); }

@media (max-width: 820px) {
  .eco-grid, .paths, .market-grid { grid-template-columns: 1fr; }
  .paths { gap: 2.5rem; }
}

@media (max-width: 420px) {
  .eco-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ------------------------------------------------- provenienza articoli */

/* Ambito, fonte e data di verifica. In assistenza agli anziani "quanto costa"
   e "come si accede" cambiano da regione a regione: un articolo che non
   dichiara territorio, fonte e data e' informazione che invecchia senza che
   il lettore possa accorgersene. */
.post-fonte {
  margin: 1.75rem 0 2.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--cream-dark);
  border-left: 2px solid var(--sage);
  border-radius: 0 3px 3px 0;
}

.post-fonte-heading {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.post-fonte dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.post-fonte dt { color: var(--text-muted); }
.post-fonte dd { color: var(--text); }
.post-fonte a { color: var(--terra); text-decoration: none; border-bottom: 1px solid rgba(196, 104, 60, 0.3); }
.post-fonte a:hover { border-color: var(--terra); }

.post-regione { color: var(--sage); }

.post-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid rgba(46, 125, 67, 0.3);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}

/* ------------------------------------------------------- footer contatti */

.footer-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-top: 1.1rem; }

.footer-contacts a {
  font-size: 0.84rem;
  color: rgba(250, 247, 241, 0.62);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contacts a:hover { color: var(--terra-light); }

@media (max-width: 480px) {
  .post-fonte dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .post-fonte dd { margin-bottom: 0.55rem; }
}
