/* ═══════════════════════════════════════════════════════════════════════════
   LANDING DI GIUSEPPE TUCCILLO
   Colori del personal brand (dalla maglia e dal legno): blu, legno, sabbia.
   Font: ARCHIVO per i titoli (stretto, maiuscolo, pesante), INTER per il testo.
   Stanno nella cartella font/ — niente chiamate a servizi esterni.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Archivo';
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  src: url('font/archivo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  src: url('font/inter-latin.woff2') format('woff2');
}

:root {
  --blu: #2B344F;
  --blu-scuro: #1C2338;
  --legno: #7E6750;
  --sabbia: #E2D3BC;
  --carta: #F5EFE4;
  --bianco: #FCFAF6;
  --testo: #1C2338;
  --testo-tenue: #424A63;
  --linea: rgba(43, 52, 79, .16);
  --titoli: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --raggio: 6px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bianco);
  color: var(--testo);
  font-family: var(--corpo);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--legno); outline-offset: 3px; border-radius: 3px; }
.fascia-blu :focus-visible, .piede :focus-visible { outline-color: var(--sabbia); }

.contenitore { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ── titoli: la forma «manifesto» — stretto, maiuscolo, pesante ─────────── */
h1, h2, h3, .numero {
  font-family: var(--titoli);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .98;
  margin: 0;
}
h1 { font-size: clamp(3rem, 11.5vw, 6.2rem); color: var(--blu); }
h2 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); color: var(--blu); }
h3 { font-size: 1.55rem; font-stretch: 80%; line-height: 1.05; color: var(--blu); }
.fascia-blu h2 { color: var(--sabbia); }

.occhiello {
  margin: 0 0 14px;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--legno);
}
.occhiello-chiaro { color: var(--sabbia); opacity: .85; }

/* ── bottoni ───────────────────────────────────────────────────────────── */
.bottone {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 999px;
  font: 650 1rem/1 var(--corpo); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bottone:hover { transform: translateY(-1px); }
.bottone:active { transform: translateY(0); }
.bottone-pieno { background: var(--blu); color: var(--sabbia); }
.bottone-pieno:hover { background: var(--blu-scuro); }
.bottone-vuoto { border-color: var(--blu); color: var(--blu); }
.bottone-vuoto:hover { background: var(--blu); color: var(--sabbia); }
.bottone-sabbia { background: var(--sabbia); color: var(--blu); width: 100%; }
.bottone-sabbia:hover { background: #EEE3D1; }
.bottone-piccolo { min-height: 42px; padding: 0 20px; font-size: .9375rem; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 420px) {
  .testata-riga { gap: 12px; }
  .marchio { gap: 9px; }
  .marchio img { width: 38px; }
  .marchio-testo { font-size: 1.12rem; }
  .bottone-piccolo { padding: 0 16px; }
}

/* ── fascia «bozza» e testata ──────────────────────────────────────────── */
.bozza {
  margin: 0; padding: 6px 12px; text-align: center;
  background: var(--legno); color: #fff;
  font-size: .75rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
}
.testata {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 239, 228, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--linea);
}
.testata-riga { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blu); }
.marchio img { width: 46px; height: auto; }
.marchio-testo {
  display: flex; flex-direction: column;
  font-family: var(--titoli); font-stretch: 75%; font-weight: 800;
  font-size: 1.3rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em;
}
.marchio-testo small {
  margin-top: 4px; font-family: var(--corpo); font-stretch: 100%; font-weight: 600;
  font-size: .625rem; letter-spacing: .18em; color: var(--legno);
}
.menu { display: none; gap: 28px; }
.menu a { text-decoration: none; font-size: .9375rem; font-weight: 550; color: var(--testo-tenue); }
.menu a:hover { color: var(--blu); }
@media (min-width: 820px) { .menu { display: flex; } }

/* ── apertura ──────────────────────────────────────────────────────────── */
.apertura { background: var(--carta); padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); }
.apertura-griglia { display: grid; gap: 44px; align-items: center; }
.lead { margin: 22px 0 0; max-width: 34ch; font-size: clamp(1.1875rem, 2.6vw, 1.4rem); line-height: 1.5; color: var(--testo-tenue); }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.credenziali { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: .9375rem; font-weight: 600; color: var(--blu); }
.credenziali li { padding: 0 16px; border-left: 2px solid var(--legno); line-height: 1.2; }
.credenziali li:first-child { padding-left: 0; border-left: 0; }
.apertura-foto { margin: 0; position: relative; max-width: 440px; justify-self: center; width: 100%; }
.apertura-foto::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; z-index: 0;
  background: var(--blu); border-radius: var(--raggio);
}
.apertura-foto img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: var(--raggio); }
@media (min-width: 900px) {
  .apertura-griglia { grid-template-columns: 1.15fr .85fr; gap: 72px; }
  .apertura-foto { justify-self: end; }
}

/* ── fascia blu «la funzione» ──────────────────────────────────────────── */
.fascia { padding: clamp(56px, 9vw, 104px) 0; }
.fascia-blu { background: var(--blu); color: var(--sabbia); }
.fascia-stretta, .stretta { max-width: 820px; }
.fascia-stretta h2 { margin-bottom: 22px; }
.fascia-stretta p { margin: 0; font-size: clamp(1.125rem, 2.4vw, 1.3rem); line-height: 1.6; color: #E9DDCA; }
.fascia-stretta p + p { margin-top: 16px; }

/* ── sezioni ───────────────────────────────────────────────────────────── */
.sezione { padding: clamp(60px, 9vw, 108px) 0; }
.sezione-carta { background: var(--carta); }
.sezione h2 { margin-bottom: 40px; }

.pilastri { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pilastri li { padding: 28px 26px 30px; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--raggio); }
/* niente icone: il nome del gruppo è il titolo, grande */
.pilastri h3 { font-size: clamp(2rem, 3.6vw, 2.5rem); font-stretch: 75%; line-height: 1; margin-bottom: 14px; }
.pilastri p { margin: 0; color: var(--testo-tenue); font-size: 1rem; line-height: 1.6; }
/* su più colonne i testi partono alla stessa altezza anche se un titolo va su due righe */
@media (min-width: 640px) {
  .pilastri { grid-template-columns: repeat(2, 1fr); }
  .pilastri li { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .pilastri h3 { align-self: end; }
}
@media (min-width: 1000px) { .pilastri { grid-template-columns: repeat(4, 1fr); } }

.passi { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; counter-reset: passo; }
.passi li { padding-top: 22px; border-top: 3px solid var(--blu); }
.numero { display: block; font-size: 3.6rem; font-stretch: 70%; color: var(--legno); margin-bottom: 14px; }
.passi h3 { margin-bottom: 10px; }
.passi p { margin: 0; color: var(--testo-tenue); }
@media (min-width: 640px) { .passi { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; } }
@media (min-width: 1000px) { .passi { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.chi-griglia { display: grid; gap: 40px; align-items: center; }
.chi-foto { margin: 0; max-width: 400px; width: 100%; justify-self: center; }
.chi-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--raggio); }
.chi-testo p { margin: 0 0 16px; max-width: 56ch; color: var(--testo-tenue); }
.chi-testo h2 { margin-bottom: 22px; }
.dati { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.dati li { padding: 14px 0; border-bottom: 1px solid var(--linea); color: var(--testo-tenue); font-size: .9375rem; }
.dati strong { display: block; color: var(--blu); font-size: 1.0625rem; font-weight: 650; }
@media (min-width: 900px) { .chi-griglia { grid-template-columns: .8fr 1.2fr; gap: 80px; } .chi-foto { justify-self: start; } }

/* ── contatto e modulo ─────────────────────────────────────────────────── */
.contatto-griglia { display: grid; gap: 40px; align-items: start; }
.contatto-testo h2 { margin-bottom: 22px; }
.contatto-testo p { margin: 0 0 16px; max-width: 42ch; color: #E9DDCA; font-size: 1.125rem; }
.contatto-modulo { min-width: 0; }
.oppure { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-weight: 650; font-size: 1.0625rem; color: var(--sabbia); }
.oppure::before, .oppure::after { content: ""; flex: 1; height: 1px; background: rgba(226, 211, 188, .3); }
.oppure[hidden] { display: none; }
.alternativa { margin: 22px 0 0; text-align: center; font-size: .9375rem; color: #E9DDCA; }
.alternativa a { color: var(--sabbia); text-underline-offset: 3px; }
.bottone-wa { background: var(--sabbia); color: var(--blu); width: 100%; margin-top: 12px; }
.bottone-wa:hover { background: #EEE3D1; }
.bottone-wa[hidden] { display: none; }
@media (min-width: 900px) { .bottone-wa { width: auto; min-width: 280px; } }
@media (min-width: 900px) { .contatto-griglia { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

.modulo { background: var(--blu-scuro); border: 1px solid rgba(226, 211, 188, .18); border-radius: 10px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 22px; }
.campo { margin: 0; padding: 0; border: 0; min-width: 0; }
.modulo label, .modulo legend { display: block; margin: 0 0 8px; padding: 0; font-size: .9375rem; font-weight: 600; color: var(--sabbia); }
.facoltativo { font-weight: 400; opacity: .7; }
.modulo input[type="text"], .modulo textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--raggio);
  border: 1.5px solid rgba(226, 211, 188, .35); background: var(--bianco); color: var(--testo);
  font: 400 1rem/1.4 var(--corpo);
}
.modulo textarea { resize: vertical; min-height: 92px; }
.modulo input[type="text"]:focus-visible, .modulo textarea:focus-visible { outline: 3px solid var(--sabbia); outline-offset: 2px; }
.modulo .nota { margin: 8px 0 0; font-size: .8125rem; opacity: .75; color: var(--sabbia); }

.pillole { display: flex; flex-wrap: wrap; gap: 10px; }
.pillole label { margin: 0; position: relative; }
.pillole input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pillole span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid rgba(226, 211, 188, .4); border-radius: 999px;
  color: var(--sabbia); font-weight: 550; font-size: .9375rem;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pillole input:checked + span { background: var(--sabbia); color: var(--blu); border-color: var(--sabbia); }
.pillole input:focus-visible + span { outline: 3px solid var(--sabbia); outline-offset: 3px; }

.consenso { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400 !important; font-size: .875rem !important; line-height: 1.5; }
.consenso input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sabbia); }
.consenso a { color: var(--sabbia); text-underline-offset: 3px; }

.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stato { margin: 0; min-height: 1.4em; font-size: .9375rem; font-weight: 550; color: var(--sabbia); }
.stato.errore { color: #F4B5A5; }
.stato.ok { color: #BFE0C0; }

/* ── piede ─────────────────────────────────────────────────────────────── */
.piede { background: var(--blu-scuro); color: #CFC2AC; padding: 40px 0; font-size: .9375rem; }
.piede-riga { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.piede-marchio { display: flex; align-items: center; gap: 14px; }
.piede-marchio img { width: 52px; height: auto; }
.piede p { margin: 0; line-height: 1.5; }
.piede strong { color: var(--sabbia); font-family: var(--titoli); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .01em; }
.piede-dati { text-align: right; }
.piede a { color: var(--sabbia); text-underline-offset: 3px; }
.da-completare { background: var(--legno); color: #fff; padding: 1px 8px; border-radius: 3px; }

/* ── pagina privacy ────────────────────────────────────────────────────── */
.testo-lungo { max-width: 740px; padding: 48px 0 80px; }
.testo-lungo h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 28px; }
.testo-lungo h2 { font-size: 1.5rem; margin: 34px 0 10px; font-stretch: 80%; }
.testo-lungo p, .testo-lungo li { color: var(--testo-tenue); }
.avviso-bozza { background: #F6E9CF; border-left: 4px solid var(--legno); padding: 14px 18px; border-radius: 4px; color: var(--testo); font-size: .9375rem; }

/* ── per chi è / per chi non è ─────────────────────────────────────────── */
.perchi { display: grid; gap: 22px; }
.perchi > div { padding: 28px 26px 30px; border-radius: var(--raggio); border: 1px solid var(--linea); }
.perchi-si { background: var(--carta); }
.perchi-no { background: transparent; border-style: dashed !important; }
.perchi h3 { margin-bottom: 14px; }
.perchi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perchi li { position: relative; padding-left: 26px; color: var(--testo-tenue); font-size: 1rem; line-height: 1.55; }
.perchi li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; }
.perchi-si li::before { background: var(--blu); }
.perchi-no li::before { background: transparent; border: 2px solid var(--legno); }
@media (min-width: 820px) { .perchi { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ── domande frequenti ─────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 650; font-size: 1.0625rem; color: var(--blu); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--legno); border-bottom: 2px solid var(--legno); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--testo-tenue); }

/* ── bottone chiaro su blu, WhatsApp ───────────────────────────────────── */
.bottone-vuoto-chiaro { border-color: var(--sabbia); color: var(--sabbia); margin-top: 8px; }
.bottone-vuoto-chiaro:hover { background: var(--sabbia); color: var(--blu); }
.bottone-vuoto-chiaro[hidden] { display: none; }

/* ── barra fissa sul telefono ──────────────────────────────────────────── */
.barra-cta { display: none; }
@media (max-width: 819px) {
  .barra-cta {
    position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30;
    align-items: center; justify-content: center; min-height: 54px; border-radius: 999px;
    background: var(--blu); color: var(--sabbia); font: 650 1rem/1 var(--corpo); text-decoration: none;
    box-shadow: 0 8px 24px rgba(28, 35, 56, .35), 0 0 0 1px rgba(226, 211, 188, .25);
    transform: translateY(140%); transition: transform .25s ease; display: flex;
  }
  .barra-cta[hidden] { display: flex; visibility: hidden; }
  .barra-cta.visibile { transform: translateY(0); visibility: visible; }
  .piede { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .barra-cta { transition: none; } }
