@import url("variables.css");
@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Barlow+Semi+Condensed:wght@500;600&display=swap");

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
p { margin: 0; }
button { font: inherit; cursor: pointer; }
code { font-family: inherit; font-weight: 600; }

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

.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 64rem) {
  .wrap { padding-inline: var(--sp-4); }
}

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

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--sage-line);
  position: relative;
  z-index: 40;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  color: var(--green);
}
.logo-tag {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 24ch;
}
@media (min-width: 48rem) {
  .logo { flex-direction: row; align-items: center; gap: var(--sp-2); }
  .logo-tag {
    max-width: 32ch;
    padding-left: var(--sp-2);
    border-left: 1px solid var(--sage-line);
  }
}

.portal-link {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--green-deep);
  background: var(--sage-pale);
  border: 1px solid var(--sage);
  border-radius: var(--r-pill);
  transition: background 0.15s ease;
}
.portal-link::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
}
.portal-link:hover { background: var(--sage); }

/* Seconda riga: navigazione */
.main-nav { display: none; }

@media (min-width: 64rem) {
  .portal-link { display: inline-flex; }
  .main-nav { display: block; }
  .main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--sp-4);
  }
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 0.35rem 0 0.9rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav > ul > li:hover > a,
.main-nav > ul > li:focus-within > a { color: var(--green-deep); border-bottom-color: var(--sage); }
.main-nav > ul > li > a[aria-current="page"] { border-bottom-color: var(--orange); }

.mega {
  position: absolute;
  top: calc(100% + 1px);
  left: -1rem;
  min-width: 15rem;
  padding: var(--sp-1);
  background: var(--paper);
  border: 1px solid var(--sage);
  border-radius: 0 0 var(--r-field) var(--r-field);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.main-nav li:hover .mega,
.main-nav li:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}
.mega a:hover { background: var(--sage-pale); color: var(--green-deep); }

/* Toggle mobile */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--sage);
  border-radius: var(--r-pill);
  font-weight: 500;
}
@media (min-width: 64rem) { .nav-toggle { display: none; } }
.nav-toggle .bar { width: 16px; height: 2px; background: currentColor; display: block; position: relative; }
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle .bar::before { top: -5px; }
.nav-toggle .bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-5px) rotate(-45deg); }

/* Pannello mobile */
.mobile-nav {
  display: none;
  padding: 0 var(--sp-3) var(--sp-3);
  border-top: 1px solid var(--sage-line);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 64rem) { .mobile-nav { display: none !important; } }
.mobile-nav > a,
.mobile-nav summary {
  display: block;
  padding: 0.85rem 0;
  font-weight: 500;
  font-size: var(--step-1);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--sage-line);
}
.mobile-nav summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--green); }
.mobile-nav details[open] summary::after { content: "−"; }
.mobile-nav .mega-mobile {
  display: flex;
  flex-direction: column;
  padding: var(--sp-1) 0 var(--sp-2) var(--sp-2);
  border-bottom: 1px solid var(--sage-line);
}
.mobile-nav .mega-mobile a { padding: 0.4rem 0; color: var(--ink-soft); }
.mobile-nav .mobile-portal {
  margin-top: var(--sp-3);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--sage);
  display: inline-flex;
  font-family: var(--font-body);
  font-size: var(--step-0);
}

/* =========================================================
   BOTTONI
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.4rem;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
/* Testo scuro sull'arancio: il bianco non raggiunge il contrasto AA */
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn-ghost:hover { background: var(--sage-pale); }
.btn-ghost.on-dark { border-color: var(--sage); color: var(--paper); }
.btn-ghost.on-dark:hover { background: rgba(255, 255, 255, 0.1); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* =========================================================
   HOME — HERO con disegno di montaggio
   ========================================================= */
.hero { padding-block: var(--sp-5); }
.hero .wrap {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 64rem) {
  .hero { padding-block: var(--sp-5); }
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
}
.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
  color: var(--ink);
}
.hero .lede {
  margin-top: var(--sp-4);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 44ch;
}
.hero .cta-row { margin-top: var(--sp-4); }

.install-figure {
  margin: 0;
  background: var(--sage);
  border-radius: var(--r-panel);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  max-width: 30rem;
}
.install-figure svg { width: 100%; height: auto; margin-inline: auto; }
.install-figure figcaption {
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
}

/* Disegno: stili delle parti */
.rad-col { fill: var(--green); }
.rad-hub { fill: var(--green-deep); }
.rad-pipe { stroke: var(--green-deep); stroke-width: 12; stroke-linecap: round; fill: none; }
.rad-axis { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 10 4 2 4; opacity: 0.55; }
.dim-line { stroke: var(--orange); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.dim-ext { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dim-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; fill: var(--ink); }
.dev-body { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.dev-lcd { fill: var(--sage-pale); stroke: var(--ink); stroke-width: 1; }
.dev-digits { font-family: var(--font-display); font-weight: 600; font-size: 17px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dev-unit { font-family: var(--font-body); font-size: 8px; fill: var(--ink-soft); }
.dev-button { fill: var(--sage); stroke: var(--ink); stroke-width: 1; }

/* L'unico momento animato del sito: la quota si traccia fino al 75%,
   poi il ripartitore si posa nella sua posizione di montaggio. */
.dim-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dim-draw 0.9s 0.3s cubic-bezier(.6,0,.2,1) forwards; }
.dim-late { opacity: 0; animation: fade-in 0.4s 1.1s ease forwards; }
.device { opacity: 0; transform: translateY(-28px); animation: device-set 0.6s 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes dim-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes device-set { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   HOME — indice delle aree
   ========================================================= */
.pillars { padding-block: var(--sp-5); }
.pillars h2 { font-size: var(--step-3); max-width: 20ch; }

.pillars-list {
  container-type: inline-size;
  margin-top: var(--sp-4);
  border-top: 2px solid var(--ink);
}
.pillar {
  display: grid;
  gap: 0.35rem var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--sage-line);
}
@container (min-width: 46rem) {
  .pillar { grid-template-columns: 15rem 1fr auto; align-items: baseline; }
}
.pillar .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--green);
}
.pillar .desc { color: var(--ink-soft); max-width: 52ch; }
.pillar .go {
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--green-deep);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.pillar:hover .go { text-decoration-color: var(--orange); }
.pillar:hover .name { color: var(--green-deep); }

/* =========================================================
   HOME — indiretta / diretta
   ========================================================= */
.split { padding-block: var(--sp-5); }
.split > .wrap {
  background: var(--sage-pale);
  border-radius: var(--r-panel);
  padding-block: var(--sp-4);
}
@media (min-width: 64rem) {
  .split > .wrap { padding: var(--sp-5); }
}
.split h2 { font-size: var(--step-3); max-width: 20ch; }
.split .lede { margin-top: var(--sp-2); color: var(--ink-soft); max-width: 56ch; font-size: var(--step-1); line-height: 1.5; }

.split-grid {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 48rem) {
  .split-grid { grid-template-columns: 1fr 1fr; }
}
.split-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-panel);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
}
.split-card .tag {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
}
.split-card h3 { margin-top: 0.35rem; font-size: var(--step-2); color: var(--ink); }
.split-card p { margin-top: var(--sp-2); color: var(--ink-soft); }
.split-card a {
  margin-top: auto;
  padding-top: var(--sp-3);
  align-self: flex-start;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.split-card a:hover { text-decoration-color: var(--orange); }

/* =========================================================
   HOME — chi siamo
   ========================================================= */
.about-teaser { padding-block: var(--sp-5) var(--sp-6); }
.about-teaser .wrap { display: grid; gap: var(--sp-3); }
@media (min-width: 48rem) {
  .about-teaser .wrap { grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; }
}
.about-teaser h2 { font-size: var(--step-3); max-width: 14ch; }
.about-teaser p { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.about-teaser .cta-row { margin-top: var(--sp-4); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: var(--sp-4);
  background: var(--green);
  color: var(--paper);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
}
.site-footer .wrap {
  padding-block: var(--sp-5) var(--sp-4);
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .f-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sage);
}
.site-footer address { font-style: normal; margin-top: var(--sp-3); font-size: var(--step--1); line-height: 1.75; }
.site-footer h4 { color: var(--sage); font-size: var(--step-1); font-weight: 500; margin-bottom: var(--sp-2); }
.site-footer ul { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--sage); }
.site-footer :focus-visible { outline-color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-bottom .wrap {
  padding-block: var(--sp-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  font-size: var(--step--1);
}

/* =========================================================
   PAGINE INTERNE
   ========================================================= */

/* ---------- Testata di pagina ---------- */
.page-head { padding-block: var(--sp-5) var(--sp-4); }
.breadcrumb {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--green-deep); text-decoration-color: var(--orange); }
.page-head h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.page-head .lede {
  margin-top: var(--sp-3);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Indice delle ancore: pillole, come le teste delle colonne del radiatore */
.toc {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}
.toc a {
  padding: 0.4rem 0.95rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--green-deep);
  background: var(--sage-pale);
  border: 1px solid var(--sage);
  border-radius: var(--r-pill);
  transition: background 0.15s ease;
}
.toc a:hover { background: var(--sage); }

/* ---------- Sezioni: titolo nella colonna sinistra, fisso durante lo scorrimento ---------- */
.section {
  padding-block: var(--sp-5);
  scroll-margin-top: var(--sp-2);
}
.section + .section > .wrap { position: relative; }
.section + .section > .wrap::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--sp-5));
  left: var(--sp-3);
  right: var(--sp-3);
  border-top: 1px solid var(--sage-line);
}
/* Le sezioni "alt" hanno un fondo salvia chiaro a tutta larghezza */
.section-alt { background: var(--sage-pale); }
.section-alt + .section > .wrap::before,
.section + .section-alt > .wrap::before { display: none; }

.section > .wrap > * + * { margin-top: var(--sp-3); }
.section > .wrap > h2 {
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--green);
  max-width: 18ch;
}
.section > .wrap > .lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
}
.section > .wrap > h3 { margin-top: var(--sp-4); font-size: var(--step-2); }
.section > .wrap > .cta-row { margin-top: var(--sp-4); }

@media (min-width: 64rem) {
  .section > .wrap {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--sp-5);
    row-gap: 0;
    align-items: start;
  }
  .section > .wrap > * { grid-column: 2; }
  .section > .wrap > h2 {
    grid-column: 1;
    grid-row: 1 / span 40;
    position: sticky;
    top: var(--sp-4);
    font-size: var(--step-2);
    line-height: 1.1;
  }
  .section > .wrap > h2 + * { margin-top: 0; }
  .section + .section > .wrap::before { left: var(--sp-4); right: var(--sp-4); }
}

/* ---------- Colonna di testo ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { font-size: var(--step-2); margin-top: var(--sp-4); color: var(--ink); }
.prose h4 { font-size: var(--step-1); margin-top: var(--sp-4); }
.prose h3 + *, .prose h4 + * { margin-top: var(--sp-2); }
.prose ul { display: grid; gap: var(--sp-2); }
.prose li { padding-left: 1.4rem; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
}
.prose strong { font-weight: 600; }
.prose a,
.placeholder a,
.form .consent a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prose a:hover,
.placeholder a:hover,
.form .consent a:hover { text-decoration-color: var(--orange); }

/* ---------- Dati tecnici: formule e legende ---------- */
.formula {
  max-width: var(--measure);
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--sage);
  border-radius: var(--r-panel);
  padding: var(--sp-4) var(--sp-3);
  overflow-x: auto;
}
.section-alt .formula { border-color: var(--sage); }
.formula sub { font-size: 0.55em; }

.spec-list {
  margin: 0;
  max-width: var(--measure);
  display: grid;
  border-top: 1px solid var(--sage);
}
.spec-list dt {
  padding-top: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--green-deep);
}
.spec-list dd {
  margin: 0;
  padding: 0.2rem 0 var(--sp-2);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--sage);
}
@media (min-width: 48rem) {
  .spec-list { grid-template-columns: minmax(6rem, max-content) 1fr; }
  .spec-list dt { padding-block: var(--sp-2); padding-right: var(--sp-4); border-bottom: 1px solid var(--sage); }
  .spec-list dd { padding-top: calc(var(--sp-2) + 0.2rem); }
}

/* ---------- Elenco download ---------- */
.download-list {
  max-width: 52rem;
  display: grid;
  border-top: 1px solid var(--sage);
}
.download-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1) var(--sp-3);
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--sage);
  transition: background 0.15s ease;
}
.download-item:hover { background: var(--sage-pale); }
.section-alt .download-item:hover { background: var(--paper); }
.download-item .name { font-weight: 600; }
.download-item .variant { font-weight: 400; color: var(--ink-soft); }
.download-item .file {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.7rem;
  color: var(--green-deep);
  background: var(--sage-pale);
  border: 1px solid var(--sage);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.section-alt .download-item .file { background: var(--paper); }

/* ---------- Segnaposto (contenuti non ancora forniti) ---------- */
.placeholder {
  max-width: var(--measure);
  padding: var(--sp-3);
  background: var(--paper);
  border: 2px dashed var(--orange);
  border-radius: var(--r-field);
}
.placeholder .label,
.figure-placeholder .label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-1);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}
.placeholder .label::before,
.figure-placeholder .label::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--orange);
}
.placeholder p { color: var(--ink-soft); }

/* Tratteggio da disegno tecnico: riconoscibile come area vuota */
.figure-placeholder {
  margin: 0;
  max-width: var(--measure);
  min-height: 16rem;
  display: grid;
  align-content: end;
  gap: 0.25rem;
  padding: var(--sp-3);
  border: 2px dashed var(--orange);
  border-radius: var(--r-panel);
  background:
    repeating-linear-gradient(135deg, var(--sage-pale) 0 2px, transparent 2px 14px),
    var(--paper);
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.figure-placeholder figcaption { max-width: 52ch; background: var(--paper); padding: 0.25rem 0; }
.figure-placeholder .label { background: var(--paper); justify-self: start; padding-right: 0.5rem; }

/* ---------- FAQ / fisarmonica ---------- */
.faq-list {
  max-width: var(--measure);
  border-top: 1px solid var(--sage);
}
.faq-list details { border-bottom: 1px solid var(--sage); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green-deep);
  font-family: var(--font-body);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > :not(summary) {
  padding-bottom: var(--sp-3);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Modulo ---------- */
.form {
  display: grid;
  gap: var(--sp-3);
  max-width: 38rem;
}
.form .field { display: grid; gap: 0.4rem; }
.form label { font-weight: 600; font-size: var(--step--1); }
.form input,
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--sage);
  border-radius: var(--r-field);
  transition: border-color 0.15s ease;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--green); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 0;
  border-color: var(--green);
}
.form textarea { min-height: 10rem; resize: vertical; }
.form .consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.form .consent input { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; accent-color: var(--green); }
.form .form-note { font-size: var(--step--1); color: var(--ink-soft); }
