/* Favoro — sito di lancio. Un solo tema chiaro, voluto: crema, blu notte, teal, arancio, giallo. */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --crema: #F8F4EC; --sabbia: #EFE8DA; --bianco: #FFFFFF;
  --blu: #0F2D5C; --grigio: #5C6070; --linea: #8A8FA0;
  --teal: #14B8C4; --teal-chiaro: #D0F1F3;
  --arancio: #F47A20; --arancio-hover: #F68A3C;
  --giallo: #F6C443; --giallo-chiaro: #FDF0CC;
  --verde: #145A2E; --verde-chiaro: #E3F2E7; --rosso: #951C16; --rosso-chiaro: #FBE4E2;
  --font: Figtree, "Helvetica Neue", Arial, sans-serif;
  --r: 14px; --r-s: 8px;
  --ombra: 0 1px 2px rgba(15, 45, 92, .08), 0 6px 18px rgba(15, 45, 92, .07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--crema); color: var(--blu); font-family: var(--font); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blu); text-underline-offset: 4px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }

/* header */
.top { padding-block: 20px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top img { height: 44px; width: auto; display: block; }
.top nav { display: flex; gap: 8px; flex-wrap: wrap; }
.top nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.top nav a:hover { background: var(--sabbia); }

/* hero */
.hero { padding-block: 32px 56px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-s); background: var(--giallo); font-size: 17px; font-weight: 700; }
.hero h1 { font-size: 64px; line-height: 66px; font-weight: 700; margin-top: 20px; }
.hero .lead { font-size: 22px; line-height: 32px; margin-top: 16px; max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 26px; border-radius: var(--r); border: 2px solid transparent; font: inherit; font-size: 20px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn-primario { background: var(--arancio); color: var(--blu); }
.btn-primario:hover { background: var(--arancio-hover); }
.btn-secondario { background: var(--bianco); color: var(--blu); border-color: var(--blu); }
.btn-secondario:hover { background: var(--teal-chiaro); }
.btn-pieno { width: 100%; }
.hero-card { background: var(--teal); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.hero-card .riga { display: flex; align-items: center; gap: 14px; background: var(--crema); border-radius: var(--r); padding: 14px 16px; font-weight: 700; }
.hero-card .riga svg { width: 30px; height: 30px; flex: none; }
.hero-card small { display: block; font-weight: 400; font-size: 16px; line-height: 22px; color: var(--grigio); }

/* sezioni */
section.blocco { padding-block: 56px; }
section.blocco.chiaro { background: var(--bianco); }
.titolo { font-size: 40px; line-height: 46px; font-weight: 700; }
.sotto { font-size: 20px; line-height: 30px; color: var(--grigio); margin-top: 10px; max-width: 60ch; }

.passi { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.passi li { background: var(--crema); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.passi .n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--giallo); font-size: 26px; font-weight: 700; }
.passi h3 { font-size: 22px; line-height: 28px; }
.passi p { color: var(--grigio); }

.nota { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r); background: var(--teal-chiaro); margin-top: 24px; }
.nota svg { width: 28px; height: 28px; flex: none; margin-top: 1px; }
.nota.calda { background: var(--giallo-chiaro); }

.lavori { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lavori li { display: flex; align-items: center; gap: 14px; background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r); padding: 14px 16px; font-weight: 700; min-height: 72px; }
.lavori .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-chiaro); flex: none; }
.lavori .ic svg { width: 28px; height: 28px; }

/* moduli */
.moduli { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; align-items: start; }
.modulo { background: var(--bianco); border: 1px solid var(--linea); border-radius: 20px; box-shadow: var(--ombra); padding: 28px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 20px; }
.modulo-testa { display: flex; flex-direction: column; gap: 8px; }
.modulo-testa .etichetta { align-self: flex-start; padding: 4px 12px; border-radius: var(--r-s); font-size: 16px; font-weight: 700; }
.modulo h3 { font-size: 30px; line-height: 36px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo > label, .campo > legend, .lbl { font-weight: 700; font-size: 18px; line-height: 24px; padding: 0; }
.campo .aiuto { color: var(--grigio); font-size: 16px; line-height: 22px; }
fieldset.campo { border: 0; margin: 0; padding: 0; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 60px; padding: 12px 16px; border: 2px solid var(--linea); border-radius: var(--r);
  background: var(--bianco); color: var(--blu); font: inherit; font-size: 20px;
}
textarea { min-height: 120px; resize: vertical; line-height: 28px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2D5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 24px; padding-right: 48px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blu); outline-offset: 2px; border-color: var(--blu); }
[aria-invalid="true"] { border-color: var(--rosso) !important; }
.scelte { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scelta { position: relative; }
.scelta input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scelta span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 2px solid var(--linea); border-radius: var(--r); font-weight: 700; font-size: 17px; line-height: 22px; background: var(--bianco); }
.scelta span::before { content: ""; width: 22px; height: 22px; border: 2px solid var(--blu); border-radius: 6px; flex: none; background: var(--bianco); }
.scelta input:checked + span { border: 3px solid var(--blu); background: var(--teal-chiaro); padding: 9px 13px; }
.scelta input:checked + span::before { background: var(--blu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.scelta input:focus-visible + span { outline: 3px solid var(--blu); outline-offset: 3px; }
.consenso { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 25px; }
.consenso input { width: 28px; height: 28px; flex: none; margin: 0; accent-color: var(--blu); }
.errore { display: flex; gap: 8px; color: var(--rosso); font-weight: 700; font-size: 17px; }
.errore[hidden] { display: none; }
.privacy-breve { font-size: 16px; line-height: 22px; color: var(--grigio); }
.fatto { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 24px; }
.fatto .cerchio { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 999px; background: var(--verde-chiaro); color: var(--verde); }
.fatto .cerchio svg { width: 52px; height: 52px; }
.fatto h3 { font-size: 30px; line-height: 36px; }
.fatto .anteprima { font-size: 16px; color: var(--grigio); background: var(--sabbia); padding: 8px 12px; border-radius: var(--r-s); }

/* domande */
.domande { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.domande details { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--r); }
.domande summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 14px 20px; font-weight: 700; font-size: 20px; line-height: 26px; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: "+"; font-size: 30px; line-height: 1; font-weight: 400; }
.domande details[open] summary::after { content: "–"; }
.domande details p { padding: 0 20px 20px; color: var(--grigio); }

/* footer */
footer { background: var(--blu); color: var(--bianco); padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer a { color: var(--bianco); }
footer .colonne { display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer .colonne a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
footer small { display: block; font-size: 16px; opacity: .85; margin-top: 6px; }

/* pagine legali */
.legale { padding-block: 32px 64px; }
.legale h1 { font-size: 44px; line-height: 50px; }
.legale h2 { font-size: 26px; line-height: 32px; margin-top: 36px; }
.legale p, .legale ul { margin-top: 12px; }
.legale ul { padding-left: 24px; }
.legale li + li { margin-top: 6px; }
.legale .aggiornato { color: var(--grigio); margin-top: 8px; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 46px; line-height: 50px; }
  .passi { grid-template-columns: minmax(0, 1fr); }
  .moduli { grid-template-columns: minmax(0, 1fr); }
  .titolo { font-size: 32px; line-height: 38px; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .scelte { grid-template-columns: minmax(0, 1fr); }
  .modulo { padding: 22px 18px; }
  .top img { height: 38px; }
  .top nav a[href^="#"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
