/* EdilX by White Rabbix — landing. Nessuna libreria, nessun CDN. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../font/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../font/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../font/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../font/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --notte: #1c2530;
  --inchiostro: #12181f;
  --ambra: #f59e0b;
  --ambra-chiara: #fbbf24;
  --ambra-scura: #b45309;
  --carta: #f7f5f1;
  --carta-scura: #efebe3;
  --bianco: #ffffff;
  --linea: #dcd6ca;
  --bordo-campo: #6b7280;
  --grigio: #4a5260;
  --rosso: #b42318;
  --su-notte: #eef0f2;
  --su-notte-tenue: #b8c1cc;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --larghezza: 1200px;
  --margine: clamp(20px, 5vw, 40px);
  --sezione: clamp(64px, 11vw, 120px);
  --raggio: 6px;
  --ombra-foglio: 0 1px 0 rgba(28, 37, 48, .06), 0 22px 40px -26px rgba(28, 37, 48, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--inchiostro);
  background: var(--carta);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: .75em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--ambra-scura); text-underline-offset: 3px; }
a:hover { color: var(--inchiostro); }
button { font: inherit; color: inherit; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--ambra-scura); outline-offset: 3px; border-radius: 3px; }
.prezzi :focus-visible { outline-color: var(--ambra); }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--notte); color: var(--bianco); padding: 10px 14px; border-radius: var(--raggio); font-weight: 700; }
.salta:focus { top: 12px; color: var(--bianco); }

.contenitore { width: 100%; max-width: calc(var(--larghezza) + 2 * var(--margine)); margin: 0 auto; padding-inline: var(--margine); }
.contenitore--stretto { max-width: calc(820px + 2 * var(--margine)); }

.sezione { padding-block: var(--sezione); }
.sezione h2 { font-size: clamp(2rem, 7vw, 3.4rem); max-width: 22ch; }
.intro { margin-top: 18px; font-size: 1.08em; color: var(--grigio); max-width: 56ch; }
.centro { text-align: center; margin-top: 40px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 2px solid var(--inchiostro); border-radius: var(--raggio);
  font-family: var(--font); font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn--ambra { background: var(--ambra); color: var(--inchiostro); box-shadow: 0 3px 0 var(--inchiostro); }
.btn--ambra:hover { background: var(--ambra-chiara); color: var(--inchiostro); }
.btn--ambra:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--inchiostro); }
.btn--grande { min-height: 58px; padding: 14px 28px; font-size: 1.1rem; }
.btn--piccolo { min-height: 42px; padding: 8px 14px; font-size: .95rem; box-shadow: 0 2px 0 var(--inchiostro); }
.btn--pieno { width: 100%; }
.btn--scuro { background: var(--notte); color: var(--bianco); }
.btn--scuro:hover { background: var(--inchiostro); color: var(--bianco); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 245, 241, .96);
  border-bottom: 1px solid var(--linea);
}
@supports (backdrop-filter: blur(8px)) { .testata { background: rgba(247, 245, 241, .86); backdrop-filter: blur(8px); } }
.testata__in {
  max-width: calc(var(--larghezza) + 2 * var(--margine)); margin: 0 auto; padding: 10px var(--margine);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.testata__logo { flex: 0 1 auto; min-width: 0; }
.testata__logo img { height: 38px; width: auto; }
.testata__azioni { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); flex: none; }
.link-accedi { color: var(--inchiostro); font-weight: 700; text-decoration: none; padding: 10px 4px; }
.link-accedi:hover { text-decoration: underline; color: var(--inchiostro); }
@media (max-width: 370px) { .testata__logo img { height: 32px; } .testata__azioni { gap: 10px; } .btn--piccolo { padding-inline: 11px; } }

/* ---------- Apertura ---------- */
.apertura {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px);
  background-color: var(--carta);
  background-image:
    linear-gradient(to right, rgba(28, 37, 48, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 37, 48, .055) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--linea);
}
.apertura__in {
  max-width: calc(var(--larghezza) + 2 * var(--margine)); margin: 0 auto; padding-inline: var(--margine);
  display: grid; gap: 24px;
}
.apertura h1 { font-size: clamp(2.2rem, 9.4vw, 3.9rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 15ch; }
@media (min-width: 900px) and (max-width: 1199px) { .apertura h1 { font-size: 3.1rem; } }
.apertura__sotto { margin-top: 18px; font-size: 1.06em; color: var(--grigio); max-width: 44ch; }
.apertura__azione { display: grid; gap: 14px; justify-items: start; }
.nota { font-size: .92rem; color: var(--grigio); max-width: 40ch; }

@media (min-width: 900px) {
  .apertura__in {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    grid-template-areas: "testo video" "azione video";
    column-gap: clamp(32px, 4vw, 64px); row-gap: 32px;
    align-items: center;
  }
  .apertura__testo { grid-area: testo; align-self: end; }
  .apertura__azione { grid-area: azione; align-self: start; }
  .video { grid-area: video; }
}

/* Video */
.video { width: 100%; }
.video__cornice {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 16;
  width: min(100%, calc(48svh * 9 / 16));
  margin-inline: auto;
  background: var(--notte);
  border-radius: 14px;
  box-shadow: var(--ombra-foglio);
}
@media (min-width: 700px) {
  .video__cornice { aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; }
}
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__cornice video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.video__play {
  position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 0 16px 14%;
  color: var(--bianco);
}
@media (min-width: 700px) { .video__play { justify-content: center; padding: 18% 16px 0; } }
.video__tondo {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--ambra); color: var(--inchiostro);
  border: 3px solid var(--inchiostro);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .28);
  transition: transform .15s ease;
}
.video__tondo svg { margin-left: 4px; }
.video__play:hover .video__tondo { transform: scale(1.06); }
.video__play:focus-visible { outline: none; }
.video__play:focus-visible .video__tondo { outline: 3px solid var(--bianco); outline-offset: 4px; }
.video__dicitura { font-weight: 700; font-size: .95rem; color: var(--su-notte); }

/* Quota (linea di misura da tavola) */
.quota {
  position: relative; height: 30px; margin: 0 auto 10px;
  width: min(100%, calc(48svh * 9 / 16));
  display: flex; align-items: center; justify-content: center;
  color: var(--notte);
}
@media (min-width: 700px) { .quota { width: 100%; } }
.quota::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; }
.quota::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; bottom: 7px; border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.quota span {
  position: relative; z-index: 1; background: var(--carta); padding: 0 10px;
  font-size: .9rem; font-weight: 700; letter-spacing: .005em; white-space: nowrap;
}
@media (max-width: 400px) { .quota span { font-size: .8rem; padding: 0 6px; } }
.quota--sotto { margin: 12px auto 0; }
/* senza il video di questo schermo: la schermata «Oggi» nella sua cornice al posto del lettore */
@media (min-width: 900px) { .finestra--video { grid-area: video; } }

/* ---------- Problemi ---------- */
.problemi__lista { margin-top: clamp(36px, 6vw, 64px); display: grid; gap: 0 clamp(28px, 4vw, 56px); }
@media (min-width: 760px) { .problemi__lista { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .problemi__lista { grid-template-columns: 1fr 1fr 1fr; } }
.problemi__lista li { position: relative; padding: 22px 0 30px; border-top: 2px solid var(--notte); }
.problemi__lista li::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 6px; background: var(--ambra); }
.problemi__lista h3 { font-size: 1.32rem; max-width: 22ch; }
.problemi__lista p { margin-top: 10px; color: var(--grigio); }

/* ---------- Soluzione ---------- */
.soluzione { background: var(--bianco); border-block: 1px solid var(--linea); }
.finestra {
  background: var(--bianco); border: 1px solid #cfc8ba; border-radius: 10px; overflow: hidden;
  box-shadow: var(--ombra-foglio);
}
.finestra__barra {
  height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--carta-scura); border-bottom: 1px solid var(--linea);
  font-size: .72rem; font-weight: 500; color: var(--grigio);
}
.finestra__barra span { background: var(--bianco); border-radius: 4px; padding: 1px 14px; }
.finestra img { width: 100%; }
.finestra--apertura { margin-top: clamp(28px, 5vw, 48px); }

.gruppo {
  margin-top: clamp(56px, 9vw, 104px); padding-top: 14px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 0; color: var(--ambra-scura);
  border-top: 1px solid var(--linea);
}
.righe { margin-top: 28px; display: grid; gap: clamp(40px, 7vw, 80px); }
.riga { display: grid; gap: 18px; align-items: center; }
.riga h4, .tel h4, .altro h4 { font-size: clamp(1.32rem, 3.6vw, 1.7rem); letter-spacing: -0.03em; }
.riga p, .tel p, .altro p { margin-top: 10px; color: var(--grigio); }
@media (min-width: 900px) {
  .riga { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
  .riga:nth-child(even) .riga__testo { order: 2; }
}

.telefoni { margin-top: 28px; display: grid; gap: 36px; }
.tel { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 20px; align-items: center; }
.tel h4 { font-size: 1.22rem; }
.tel__cornice {
  background: var(--notte); padding: 7px; border-radius: 30px;
  box-shadow: var(--ombra-foglio);
}
.tel__cornice img { border-radius: 23px; width: 100%; }
@media (min-width: 700px) {
  .telefoni { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
  .tel { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .tel__cornice { width: min(100%, 230px); }
}
@media (min-width: 1180px) { .telefoni { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; } }

.altro { margin-top: 28px; display: grid; gap: 28px; }
@media (min-width: 760px) { .altro { grid-template-columns: 1fr 1fr; gap: 48px; } }
.altro li { border-left: 4px solid var(--ambra); padding-left: 18px; }

.assistente {
  margin-top: clamp(56px, 9vw, 104px);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px);
  background: var(--carta); border: 1px solid var(--linea); border-radius: 10px;
}
.assistente__intro { font-size: clamp(1.4rem, 4.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.assistente__domanda { margin-top: 18px; }
.assistente__domanda span {
  display: inline-block; max-width: 100%;
  background: var(--bianco); border: 2px solid var(--notte); border-radius: 22px 22px 22px 4px;
  padding: 14px 20px; font-size: clamp(1.1rem, 3.6vw, 1.6rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em;
}

/* ---------- Cartello di cantiere (la prova) ---------- */
.cartello {
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--bianco); border: 4px solid var(--notte); border-radius: 4px;
  box-shadow: 8px 8px 0 rgba(28, 37, 48, .12);
}
.cartello__dati { margin: 0; display: grid; border-bottom: 4px solid var(--notte); }
.cartello__dati div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--linea); }
.cartello__dati div:last-child { border-bottom: 0; }
.cartello__dati dt { color: var(--grigio); font-weight: 500; }
.cartello__dati dd { margin: 0; font-weight: 800; }
@media (min-width: 900px) {
  .cartello__dati { grid-template-columns: repeat(4, 1fr); }
  .cartello__dati div { grid-template-columns: 1fr; gap: 2px; border-bottom: 0; border-right: 1px solid var(--linea); padding-block: 16px; }
  .cartello__dati div:last-child { border-right: 0; }
}
@media (max-width: 380px) { .cartello__dati div { grid-template-columns: 1fr; gap: 0; } }
.cartello__passi { counter-reset: passo; display: grid; }
.cartello__passi li { counter-increment: passo; position: relative; padding: 22px clamp(16px, 3vw, 28px) 22px calc(clamp(16px, 3vw, 28px) + 58px); border-bottom: 1px solid var(--linea); }
.cartello__passi li::before {
  content: counter(passo); position: absolute; left: clamp(16px, 3vw, 28px); top: 20px;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--ambra); color: var(--inchiostro); border: 2px solid var(--inchiostro); border-radius: 4px;
  font-weight: 800; font-size: 1.25rem;
}
.cartello__passi h3 { font-size: 1.3rem; }
.cartello__passi p { margin-top: 6px; color: var(--grigio); }
@media (min-width: 900px) {
  .cartello__passi { grid-template-columns: repeat(3, 1fr); }
  .cartello__passi li { border-bottom: 0; border-right: 1px solid var(--linea); padding: 28px; padding-top: 88px; }
  .cartello__passi li:last-child { border-right: 0; }
  .cartello__passi li::before { left: 28px; top: 28px; }
}
.cartello__fine { padding: 18px clamp(16px, 3vw, 28px); background: var(--notte); color: var(--bianco); font-weight: 800; font-size: 1.1rem; }

/* ---------- Confronto ---------- */
.confronto { background: var(--bianco); border-block: 1px solid var(--linea); }
.confronto__tabella { margin-top: clamp(32px, 5vw, 56px); width: 100%; border-collapse: collapse; table-layout: fixed; }
.confronto__tabella th, .confronto__tabella td { text-align: left; vertical-align: top; padding: 16px 14px; }
.confronto__tabella thead th { font-size: 1.05rem; font-weight: 800; line-height: 1.25; padding-bottom: 14px; border-bottom: 2px solid var(--notte); }
.confronto__tabella thead th:not(.col-edilx) { color: var(--grigio); }
.confronto__tabella tbody th { font-weight: 700; color: var(--grigio); font-size: .95rem; }
.confronto__tabella tbody td { border-bottom: 1px solid var(--linea); }
.confronto__tabella tbody td:not(.col-edilx) { color: var(--grigio); }
.confronto__tabella .col-edilx { background: #fff7e6; font-weight: 700; color: var(--inchiostro); border-left: 3px solid var(--ambra); }
.confronto__tabella thead .col-edilx { font-size: 1.3rem; }
@media (max-width: 699px) {
  .confronto__tabella thead td { display: none; }
  .confronto__tabella thead tr, .confronto__tabella tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .confronto__tabella tbody th { grid-column: 1 / -1; padding: 18px 0 4px; border: 0; }
  .confronto__tabella tbody td { padding: 10px 12px 16px; }
}
@media (min-width: 700px) { .confronto__tabella thead td, .confronto__tabella tbody th { width: 22%; } }

/* ---------- Prezzi (unica fascia scura) ---------- */
.prezzi { position: relative; background: var(--notte); color: var(--su-notte); padding-top: calc(var(--sezione) + 14px); }
.prezzi h2 { color: var(--bianco); max-width: none; }
.prezzi .intro { color: var(--su-notte-tenue); }
.nastro {
  position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--ambra) 0 16px, var(--inchiostro) 16px 32px);
}
.selettore {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
}
.selettore button {
  min-height: 48px; border: 0; border-radius: 7px; background: transparent; color: var(--su-notte);
  font-weight: 800; font-size: 1rem; cursor: pointer;
}
.selettore button[aria-selected="true"] { background: var(--ambra); color: var(--inchiostro); }
.schede { margin-top: 20px; display: grid; gap: 20px; }
.scheda {
  background: var(--bianco); color: var(--inchiostro); border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  border-top: 6px solid var(--ambra);
}
.scheda h3 { font-size: 1.15rem; letter-spacing: -0.01em; color: var(--grigio); font-weight: 700; }
.scheda__principale { font-size: clamp(1.3rem, 4.5vw, 1.65rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.scheda__principale strong { font-weight: 800; }
.scheda__voci { display: grid; gap: 10px; flex: 1; align-content: start; }
.scheda__voci li { position: relative; padding: 10px 0 0 22px; border-top: 1px solid var(--linea); }
.scheda__voci li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 9px; height: 9px; background: var(--ambra); border: 1.5px solid var(--inchiostro); }
.scheda .btn { align-self: flex-start; }
@media (max-width: 899px) {
  .schede[data-attiva="individuale"] #scheda-societa,
  .schede[data-attiva="societa"] #scheda-individuale { display: none; }
}
@media (min-width: 900px) {
  .selettore { display: none; }
  .schede { margin-top: 40px; grid-template-columns: 1fr 1fr; gap: 28px; }
}
/* (0.4.1) noleggio operativo: a tutta larghezza sotto le due schede, visibile con tutte e due le linguette */
.noleggio {
  margin-top: 20px; background: var(--bianco); color: var(--inchiostro); border-radius: 8px;
  padding: clamp(22px, 4vw, 36px); border-top: 6px solid var(--ambra);
  display: grid; gap: 18px;
}
.noleggio h3 { font-size: clamp(1.3rem, 4.5vw, 1.65rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }
.noleggio p { overflow-wrap: anywhere; }
.noleggio__testo, .noleggio__requisiti { display: grid; gap: 10px; align-content: start; }
.noleggio__principale { font-size: 1.1rem; font-weight: 600; }
.noleggio__etichetta { font-weight: 700; color: var(--grigio); }
.noleggio__azioni { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .noleggio { margin-top: 28px; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .noleggio__azioni { grid-column: 1 / -1; }
}
.inclusi { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; }
.inclusi p { font-weight: 700; color: var(--bianco); }
.inclusi ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.inclusi li { position: relative; padding-left: 26px; }
.inclusi p.inclusi__tempi { flex-basis: 100%; font-weight: 500; color: var(--su-notte-tenue); }
.inclusi li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 8px; height: 14px;
  border: solid var(--ambra); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* ---------- Su misura ---------- */
.misura__in { display: grid; gap: 36px; align-items: center; }
.misura__in > div:first-child p { margin-top: 18px; max-width: 48ch; }
.misura__in > div:first-child p + p { margin-top: 12px; font-weight: 800; }
@media (min-width: 900px) { .misura__in { grid-template-columns: 1fr 1fr; gap: 72px; } }
.misura__esempio {
  background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 24px;
  box-shadow: var(--ombra-foglio); display: grid; gap: 16px; max-width: 460px;
}
.misura__pulsante {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--notte); border-radius: var(--raggio); padding: 9px 14px; font-weight: 800; font-size: .95rem;
}
.misura__pulsante::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--ambra); font-weight: 800; line-height: 1; }
.misura__nota { border: 1px solid #c9c2b4; border-radius: var(--raggio); padding: 14px 16px; min-height: 110px; color: var(--grigio); background: var(--carta); }

/* ---------- Chi siamo ---------- */
.chi { background: var(--bianco); border-block: 1px solid var(--linea); }
.chi__in { display: grid; gap: 28px; align-items: center; }
.chi__in img { width: 112px; }
.chi__in p { margin-top: 16px; max-width: 54ch; }
.chi__in p + p { margin-top: 10px; }
@media (min-width: 760px) { .chi__in { grid-template-columns: 150px 1fr; gap: 48px; } .chi__in img { width: 150px; } }

/* ---------- Domande ---------- */
.domande h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.domande details { border-top: 1px solid var(--linea); }
.domande details:last-of-type { border-bottom: 1px solid var(--linea); }
.domande summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0; font-weight: 800; font-size: 1.1rem; line-height: 1.35;
}
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border: solid var(--notte); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.domande details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.domande details p { padding: 0 0 22px; color: var(--grigio); max-width: 62ch; }

/* ---------- Chiusura ---------- */
.chiusura { background: var(--bianco); border-top: 1px solid var(--linea); text-align: left; }
.chiusura .btn { margin-top: 28px; }
.contatti { margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid var(--linea); }
.contatti p { font-weight: 700; }
.contatti ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; }
.contatto {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 16px;
  border: 2px solid var(--notte); border-radius: var(--raggio); color: var(--inchiostro); font-weight: 700; text-decoration: none;
}
.contatto:hover { background: var(--carta); color: var(--inchiostro); }
.contatto--wa svg { color: #128c4a; }

/* ---------- Piede ---------- */
.piede { background: var(--carta-scura); padding: 28px 0 32px; font-size: .95rem; }
.piede__in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.piede ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.piede a, .link-bottone { color: var(--inchiostro); text-decoration: underline; text-underline-offset: 3px; }
.link-bottone { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.piede a, .piede .link-bottone { display: inline-block; padding-block: 8px; }
.piede__nota { flex-basis: 100%; font-size: .85rem; color: var(--grigio); }

/* ---------- Pulsante fisso su telefono ---------- */
.fisso {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px var(--margine) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 245, 241, .97); border-top: 1px solid var(--linea);
}
.fisso.e-visibile { display: block; animation: sale .2s ease; }
@keyframes sale { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 900px) { .fisso.e-visibile { display: none; } }
@media (max-width: 899px) { body.con-fisso { padding-bottom: 76px; } }

/* ---------- Modulo ---------- */
.modulo {
  padding: 0; border: 0; color: var(--inchiostro); background: var(--bianco);
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; height: 100dvh; max-height: 100dvh;
  margin: 0; overflow: auto; overscroll-behavior: contain;
}
.modulo::backdrop { background: rgba(18, 24, 31, .6); }
@media (min-width: 900px) {
  .modulo { width: 540px; margin: 0 0 0 auto; border-left: 4px solid var(--notte); }
}
.modulo[open] { animation: entra-basso .26s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 900px) { .modulo[open] { animation-name: entra-destra; } }
@keyframes entra-basso { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes entra-destra { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.modulo__testa {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--margine); background: var(--bianco); border-bottom: 1px solid var(--linea);
}
.modulo__logo { height: 32px; width: auto; }
.modulo__chiudi {
  min-height: 44px; padding: 8px 14px; border: 2px solid var(--notte); border-radius: var(--raggio);
  background: var(--bianco); font-weight: 800; cursor: pointer;
}
.modulo__corpo { padding: 24px var(--margine) 40px; }
@media (min-width: 900px) { .modulo__corpo { padding: 32px 40px 48px; } }
.modulo h2 { font-size: clamp(1.7rem, 6vw, 2.1rem); letter-spacing: -0.035em; }
.modulo__sotto { margin-top: 8px; color: var(--grigio); }
#modulo-prova { margin-top: 24px; display: grid; gap: 18px; }

.campo { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label, .campo legend { font-weight: 700; font-size: .98rem; padding: 0; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo input[type="password"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: var(--inchiostro);
  background: var(--bianco); border: 2px solid var(--bordo-campo); border-radius: var(--raggio);
}
.campo input::placeholder { color: #6b7280; }
.campo input:focus-visible { outline: 3px solid var(--ambra); outline-offset: 0; border-color: var(--inchiostro); }
.campo input[aria-invalid="true"] { border-color: var(--rosso); }
.campo__aiuto { font-size: .9rem; color: var(--grigio); }
.campo__errore { font-size: .92rem; font-weight: 700; color: var(--rosso); }
.campo__errore:empty { display: none; }

.forma legend { margin-bottom: 8px; }
.forma__scelte { display: grid; gap: 10px; }
@media (min-width: 420px) { .forma__scelte { grid-template-columns: 1fr 1fr; } }
.forma__scelta { position: relative; display: block; cursor: pointer; }
.forma__scelta input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.forma__scelta span {
  display: flex; align-items: center; min-height: 64px; height: 100%; padding: 12px 14px;
  border: 2px solid var(--bordo-campo); border-radius: var(--raggio); font-weight: 700; line-height: 1.3;
}
.forma__scelta input:checked + span { background: var(--ambra); border-color: var(--inchiostro); box-shadow: 0 3px 0 var(--inchiostro); }
.forma__scelta input:focus-visible + span { outline: 3px solid var(--ambra-scura); outline-offset: 2px; }
.forma[data-invalido] .forma__scelta span { border-color: var(--rosso); }

.piva summary { cursor: pointer; font-weight: 700; color: var(--ambra-scura); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; width: fit-content; }
.piva summary span { color: var(--grigio); font-weight: 500; text-decoration: none; }
.piva[open] summary { margin-bottom: 6px; }

.password { position: relative; }
.password input { padding-right: 96px !important; }
.password__mostra {
  position: absolute; right: 6px; top: 6px; bottom: 6px; min-width: 76px;
  border: 0; border-radius: 4px; background: var(--carta-scura); font-weight: 800; font-size: .92rem; cursor: pointer;
}

.spunta { grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; }
.spunta input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--notte); cursor: pointer; }
.spunta label { font-weight: 500; font-size: .98rem; line-height: 1.45; cursor: pointer; }
.spunta .campo__errore { grid-column: 2; }
.facoltativo { color: var(--grigio); }

.trappola { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.modulo__esito:empty { display: none; }
.modulo__esito {
  padding: 14px 16px; border-radius: var(--raggio); border: 2px solid var(--rosso); background: #fef3f2;
  color: var(--inchiostro); font-weight: 600; display: grid; gap: 12px;
}
.modulo__esito .btn { justify-self: start; min-height: 46px; }
.modulo__nota { font-size: .92rem; color: var(--grigio); text-align: center; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--bianco); border-top: 4px solid var(--notte);
  box-shadow: 0 -12px 32px -12px rgba(18, 24, 31, .3);
  max-height: 88dvh; overflow: auto;
}
@media (min-width: 900px) {
  .cookie { left: auto; right: 24px; bottom: 24px; width: 560px; border: 4px solid var(--notte); border-radius: 8px; }
}
.cookie__in { padding: 18px var(--margine) calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 900px) { .cookie__in { padding: 22px 24px; } }
.cookie h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.cookie p { font-size: .93rem; line-height: 1.5; color: var(--grigio); }
.cookie__pulsanti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn--cookie { min-height: 48px; padding: 8px 6px; background: var(--bianco); color: var(--inchiostro); font-size: .98rem; }
.btn--cookie:hover { background: var(--carta-scura); }
.cookie__scelte { display: grid; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--linea); }
.cookie__voce { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .93rem; line-height: 1.45; }
.cookie__voce input { width: 22px; height: 22px; margin: 0; accent-color: var(--notte); }
.cookie__scelte .btn { justify-self: start; min-height: 46px; }

/* ---------- Pagine legali ---------- */
.legale { padding-block: clamp(32px, 6vw, 72px) var(--sezione); }
.legale h1 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -0.035em; }
.legale h2 { font-size: 1.35rem; margin-top: 40px; }
.legale h3 { font-size: 1.08rem; margin-top: 22px; letter-spacing: -0.01em; }
.legale p, .legale ul { margin-top: 12px; max-width: 70ch; }
.legale ul { list-style: disc; padding-left: 1.3em; }
.legale li + li { margin-top: 6px; }
.bozza {
  margin: 24px 0 8px; padding: 16px 18px; border: 3px solid var(--inchiostro); border-radius: var(--raggio);
  background: var(--ambra); color: var(--inchiostro); font-weight: 800; max-width: 70ch;
}
.da-completare { background: #fff3d6; padding: 0 4px; border-radius: 3px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Pagina «Fatto: ti porto dentro…» (dopo il codice) ---------- */
.attivata { min-height: 100svh; display: grid; place-items: center; padding: var(--margine); }
.attivata__in {
  width: min(100%, 30rem); text-align: center; background: var(--bianco); border: 1px solid var(--linea);
  border-radius: 10px; box-shadow: var(--ombra-foglio); padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px);
}
.attivata__logo { width: 190px; height: auto; margin: 0 auto 26px; }
.attivata h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.attivata__in > p { margin-top: 12px; color: var(--grigio); }
.attivata__barra { margin: 26px auto 0; height: 6px; width: 100%; border-radius: 3px; background: var(--carta-scura); overflow: hidden; }
.attivata__barra span { display: block; height: 100%; width: 40%; background: var(--ambra); border-radius: 3px; animation: attivata-barra 1s ease-in-out infinite alternate; }
@keyframes attivata-barra { from { transform: translateX(-10%); } to { transform: translateX(160%); } }
@media (prefers-reduced-motion: reduce) { .attivata__barra span { animation: none; width: 100%; } }
.attivata__in > p.attivata__link { margin-top: 22px; font-size: .95rem; }
.attivata__link a { color: var(--ambra-scura); font-weight: 700; }

/* modulo aperto: la pagina sotto non scorre (classe, niente stili in linea) */
html.modulo-aperto { overflow: hidden; }
