/* MUN BUN · app · versione 18
   Colori delicati alla Zagnoli (la testata cambia tavolozza a ogni apertura).
   Niente nero: lo scuro e' il prugna. */

:root {
  color-scheme: light;
  --crema: #F5ECDD;
  --carta: #FFFDF8;
  --sabbia: #EADBC4;
  --rosa: #E7698B;
  --rosa-chiaro: #FADCE4;
  --arancio: #F0803F;
  --senape: #F2B532;
  --senape-chiaro: #FCEBC0;
  --terracotta: #C9613D;
  --terracotta-testo: #A34A2A;
  --ocra: #D9A65C;
  --oliva: #5E7F46;
  --oliva-chiaro: #DFE8D4;
  --confetto: #F59AB8;
  --albicocca: #F9A65A;
  --burro: #F6C94E;
  --acqua: #4FA383;
  --acqua-chiaro: #DCEEE5;
  --prugna: #8E2A4A;
  --prugna-premuto: #75213C;
  --inchiostro: #5A1D33;
  --tenue: #7B4A5C;
  --velo: rgba(90, 29, 51, 0.38);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --r-card: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--crema); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--crema);
  color: var(--inchiostro);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--prugna); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--carta); color: var(--prugna); padding: 10px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 0 auto;
}

/* ---------- ingresso ---------- */
.hero {
  background: var(--carta);
  border-radius: 32px;
  padding: 16px 14px 10px;
  display: flex;
  justify-content: center;
}
.hero-logo { display: block; width: min(100%, 262px); height: auto; }

/* testata alla Zagnoli: il logo completo, con i colori di oggi */
.testata-h1 { margin: 0; width: min(100%, 262px); line-height: 0; font-size: 0; }
.testata-art { display: block; width: 100%; height: auto; aspect-ratio: 308 / 270; }

.hero-manifesto {
  margin: calc(-14px - env(safe-area-inset-top, 0px)) calc(-1 * var(--gutter)) 0;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  background: var(--crema);
}
.hero-art { display: block; width: 100%; height: auto; }
@media (min-width: 560px) { .hero-manifesto { margin: 0; border-radius: 36px; } }
.actions { display: grid; gap: 12px; }
.action {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 14px;
  padding: 16px 14px 14px 16px;
  border-radius: var(--r-card);
  text-decoration: none;
  color: var(--inchiostro);
  transition: transform 120ms ease;
}
.action:active { transform: scale(0.985); }
.action-questionario { background: var(--rosa-chiaro); }
.action-visita { background: var(--acqua-chiaro); }
.action-tile svg { display: block; width: 60px; height: 60px; }
.action-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.action-title { font-size: 21px; line-height: 1.18; font-weight: 700; color: var(--prugna); }
.action-sub { font-size: 15.5px; line-height: 1.38; }
.action-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.action-note { font-size: 13.5px; color: var(--tenue); }
.action-go {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--prugna); color: var(--crema);
  display: grid; place-items: center;
}
.action-go svg { width: 20px; height: 20px; }

.eyebrow {
  margin: 8px 4px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--prugna);
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
  background: var(--carta);
  border-radius: var(--r-card);
}
.contact-list li + li { border-top: 1px solid var(--sabbia); }
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--inchiostro);
}
.chip { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--inchiostro); }
.chip svg { width: 22px; height: 22px; }
.chip-rosa { background: var(--confetto); }
.chip-arancio { background: var(--albicocca); }
.chip-senape { background: var(--burro); }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 13.5px; color: var(--tenue); line-height: 1.2; }
.contact-value { font-size: 17.5px; font-weight: 700; color: var(--prugna); line-height: 1.3; overflow-wrap: anywhere; }

.install { display: flex; justify-content: center; padding-top: 4px; }

/* ---------- pulsanti ---------- */
.btn-primary, .btn-ghost, .btn-small {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.btn-primary {
  width: 100%; min-height: 58px; padding: 0 22px;
  border: 0; background: var(--prugna); color: var(--crema); font-size: 19px;
}
.btn-primary:active { background: var(--prugna-premuto); transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.75; cursor: progress; }
.btn-ghost {
  min-height: 52px; padding: 0 20px;
  border: 2px solid var(--prugna); background: transparent; color: var(--prugna); font-size: 16.5px;
}
.btn-ghost svg { width: 20px; height: 20px; }
.btn-small {
  min-height: 42px; padding: 0 16px; flex: none;
  border: 0; background: var(--prugna); color: var(--crema); font-size: 15px;
}

.pending {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 20px;
  background: var(--senape-chiaro); color: var(--inchiostro);
}
.pending-text { margin: 0; font-size: 15px; line-height: 1.35; }

/* ---------- piede con le colline ---------- */
.foot { flex: none; text-align: center; color: var(--tenue); font-size: 14px; }
.foot-text { padding: 6px var(--gutter) 10px; }
.foot-text p { margin: 2px 0; }
.foot-text a { color: var(--prugna); font-weight: 700; }
.foot-hills { display: block; width: 100%; height: calc(104px + env(safe-area-inset-bottom, 0px)); }
.foot-slim .foot-text { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* ---------- pagine interne ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px;
  background: var(--carta); color: var(--prugna); font-weight: 700; text-decoration: none; font-size: 16px;
}
.back svg { width: 22px; height: 22px; }
.topbar-logo { display: block; width: 92px; height: auto; }
.page-head h1 { margin: 6px 0 6px; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; color: var(--prugna); }
.lead { margin: 0; font-size: 17px; }

.card { background: var(--carta); border-radius: var(--r-card); padding: 20px 18px; }
.card:focus { outline: none; }

form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15.5px; font-weight: 700; color: var(--prugna); }
.opt { font-weight: 400; color: var(--tenue); }
.field input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 2px solid var(--sabbia); border-radius: 14px;
  background: #FFFFFF; color: var(--inchiostro); font-size: 17px;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #A8858F; opacity: 1; }
.field input:focus { outline: none; border-color: var(--prugna); box-shadow: 0 0 0 3px rgba(231, 105, 139, 0.45); }
.field input[type="date"] { display: flex; align-items: center; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { opacity: 0.8; }

.decl {
  padding: 16px 16px 16px 18px; border-radius: 18px;
  background: var(--rosa-chiaro);
}
.decl-eyebrow { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--prugna); }
.decl-text { margin: 0; font-size: 17px; line-height: 1.5; }
.decl-text b { color: var(--prugna); }
.decl-text b.is-empty { color: var(--tenue); font-weight: 400; }

.privacy-box { border: 2px solid var(--sabbia); border-radius: 16px; }
.privacy-box summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 50px; padding: 10px 14px; font-weight: 700; color: var(--prugna); font-size: 16px;
}
.privacy-box summary::-webkit-details-marker { display: none; }
.privacy-box summary svg { width: 20px; height: 20px; flex: none; transition: transform 150ms ease; }
.privacy-box[open] summary svg { transform: rotate(180deg); }
.privacy-box .doc { padding: 0 14px 12px; font-size: 15px; }

.check { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.check input { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.check-box {
  width: 30px; height: 30px; border-radius: 9px;
  border: 2px solid var(--prugna); background: #FFFFFF;
  display: grid; place-items: center;
}
.check-box::after {
  content: ""; width: 8px; height: 15px; margin-top: -3px;
  border: solid var(--crema); border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); opacity: 0;
}
.check input:checked + .check-box { background: var(--prugna); }
.check input:checked + .check-box::after { opacity: 1; }
.check input:focus-visible + .check-box { outline: 3px solid var(--rosa); outline-offset: 2px; }
.check-label { padding-top: 3px; font-size: 16px; line-height: 1.4; }

.fine { margin: -4px 0 0; font-size: 14px; color: var(--tenue); text-align: center; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: 14px;
  background: var(--rosa-chiaro); color: var(--inchiostro); font-size: 15.5px;
}
.hp { position: absolute; left: -9999px; }

.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.done-illu { display: block; width: 160px; height: 96px; }
.done h2 { margin: 6px 0 0; font-size: 28px; line-height: 1.1; color: var(--prugna); }
.done p { margin: 0; max-width: 34ch; }
.done-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }

/* ---------- testi lunghi (privacy) ---------- */
.doc { color: var(--inchiostro); }
.doc h3 { margin: 18px 0 4px; font-size: 16.5px; line-height: 1.3; color: var(--prugna); }
.doc p { margin: 0 0 8px; }
.doc-meta { font-size: 14px; color: var(--tenue); }
.page-doc .card { padding: 22px 18px; }
.page-doc .doc { max-width: 65ch; }

/* ---------- foglio "mettila sul telefono" ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--velo); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card {
  width: 100%; max-width: 560px;
  background: var(--carta); border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 12px;
}
.sheet-card h2 { margin: 0; font-size: 23px; color: var(--prugna); order: -1; }
.sheet-card [data-close] { order: 9; margin-top: 4px; }
.sheet-card ol { margin: 0; padding-left: 22px; }
.sheet-card li { margin: 4px 0; }
.sheet-card h3 { margin: 6px 0 0; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--prugna); }
.ico-inline { width: 18px; height: 18px; vertical-align: -3px; }

@media (min-width: 700px) {
  .wrap { padding-top: 32px; }
  .page-head h1 { font-size: 40px; }
}
@media (max-height: 640px) and (max-width: 480px) {
  .wrap { gap: 10px; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .hero { padding: 10px 12px 6px; border-radius: 26px; }
  .hero-logo { width: 196px; }
  .testata-h1 { width: 196px; }
  .action { padding-top: 14px; padding-bottom: 12px; }
}
@media (max-width: 359px) {
  .testata-h1 { width: 220px; }
  .action { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 12px 12px 14px; }
  .action-tile svg { width: 48px; height: 48px; }
  .action-title { font-size: 19px; }
  .action-sub { font-size: 14.5px; }
  .action-note { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ---------- versione 03: l'interfaccia con i colori del marchio ---------- */
:root {
  --rosa-chiaro: #FFE2EE;      /* il rosa della collina, leggerissimo */
  --acqua-chiaro: #D6F4F7;     /* il turchese del mare, leggerissimo */
  --senape-chiaro: #FFF1B8;    /* il giallo della luna, leggerissimo */
}
/* il paesaggio in fondo alla pagina: sui telefoni si vede intero; sugli schermi larghi sta sotto la colonna */
.foot-hills { height: calc(min(30vw, 150px) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 600px) {
  .foot-hills { max-width: 528px; height: 158px; margin: 0 auto; }
}
/* i tre tondi dei contatti: il rosa della collina, l'arancio del cielo, il lilla dell'onda */
.chip-rosa { background: #FF6DAB; }
.chip-arancio { background: #FE904D; }
.chip-senape { background: #DC94F2; }

/* ---------- versione 05: le porte della vetrina, la valutazione, i servizi, le schede delle case ---------- */
.porte { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.porta {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 12px;
  border-radius: var(--r-card); background: var(--carta); text-decoration: none; color: var(--inchiostro);
  transition: transform 120ms ease;
}
.porta:active { transform: scale(0.985); }
.porta-art svg { display: block; width: 100%; height: auto; aspect-ratio: 254 / 142; }
.porta-testo { display: flex; flex-direction: column; padding: 0 4px; }
.porta-titolo { font-size: 19px; line-height: 1.15; font-weight: 700; color: var(--prugna); }
.porta-sotto { font-size: 13.5px; color: var(--tenue); }
.action-valutazione { background: #F6E6FB; }
/* italiano / English: in basso a destra nella testata, dove il logo lascia spazio */
.hero { position: relative; }
.lingua {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--crema); color: var(--prugna); font-size: 14px; font-weight: 700; text-decoration: none;
}

.servizi { list-style: none; margin: 0; padding: 6px 16px; background: var(--carta); border-radius: var(--r-card); }
.servizio { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; padding: 10px 0; }
.servizio + .servizio { border-top: 1px solid var(--sabbia); }
.servizio b { display: block; color: var(--prugna); font-size: 16.5px; line-height: 1.3; }
.servizio-testo { display: block; font-size: 15px; line-height: 1.4; }
.servizio-segno { width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; }
.servizio-segno.s0 { background: #FE904D; }
.servizio-segno.s1 { background: #DC94F2; border-radius: 3px; }
.servizio-segno.s2 { background: #FF6DAB; clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); border-radius: 0; }
.servizio-segno.s3 { background: #44D4E2; border-radius: 3px; transform: rotate(-8deg); }
.servizio-segno.s4 { background: #FFDD43; }

.vetrina-head { display: flex; flex-direction: column; gap: 4px; }
.vetrina-art svg { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 254 / 142; }
.case-lista { display: flex; flex-direction: column; gap: 16px; }
.casa { background: var(--carta); border-radius: var(--r-card); overflow: hidden; }
.casa-foto { position: relative; }
.casa-foto:focus-visible { outline-offset: -3px; }
.casa-strip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; background: var(--sabbia);
}
.casa-strip::-webkit-scrollbar { display: none; }
.casa-strip img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; display: block; }
.casa-n {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 253, 248, 0.92); color: var(--prugna); font-size: 13px; font-weight: 700;
}
.casa-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.casa-dove { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--tenue); }
.casa-pill { padding: 2px 10px; border-radius: 999px; background: #44D4E2; color: var(--inchiostro); font-weight: 700; font-size: 13px; }
.casa-titolo { margin: 0; font-size: 23px; line-height: 1.15; color: var(--prugna); }
.casa-prezzo { margin: 0; font-size: 20px; font-weight: 700; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.casa-dati { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.casa-dati li { padding: 3px 10px; border-radius: 999px; background: var(--crema); font-size: 14px; }
.casa-testo { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; }
.casa-ape { margin: 0; font-size: 13.5px; color: var(--tenue); }
.casa-ape b { color: var(--inchiostro); }
.casa-azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.casa-azioni .btn-primary { min-height: 52px; font-size: 17px; padding: 0 12px; }
.casa-azioni .btn-ghost { padding: 0 12px; }
.card h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; color: var(--prugna); }
.card p { margin: 0 0 10px; }
.vuota .done-actions, .altro .btn-ghost { margin-top: 6px; }

.gruppo { margin: 0; padding: 14px 14px 4px; border: 2px solid var(--sabbia); border-radius: 18px; display: flex; flex-direction: column; gap: 14px; }
.gruppo legend { padding: 0 6px; font-weight: 700; color: var(--prugna); font-size: 15.5px; }
.field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--sabbia); border-radius: 14px;
  background: #FFFFFF; color: var(--inchiostro); font-size: 17px;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--prugna); box-shadow: 0 0 0 3px rgba(231, 105, 139, 0.45); }
.field-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px;
  background: var(--crema); cursor: pointer; min-width: 0;
}
.file-nome { font-weight: 700; color: var(--prugna); font-size: 15px; }
.file input { font-size: 13px; max-width: 100%; color: var(--tenue); }
.nota-file { margin: 0 0 10px; font-size: 13.5px; color: var(--tenue); }
@media (max-width: 359px) {
  .porte, .file-lista, .field-riga { grid-template-columns: 1fr; }
  .casa-azioni { grid-template-columns: 1fr; }
}

/* ---------- versione 08: anni '70, elegante e scomposto ----------
   Pezzi di carta bianca con i bordi tagliati storti, come le forme del logo: niente cornici, niente colori
   intorno. Il colore sta nel logo (che cambia da una pagina all'altra) e nelle tessere. Pulsanti come
   ritagli chiari con le lettere spaziate; campi da compilare come righe su un foglio.
   Carattere MunBun Sans (TeX Gyre Adventor, l'Avant Garde degli anni '70). Niente nero. */
@font-face { font-family: "MunBun Sans"; src: url("/assets/munbun-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "MunBun Sans"; src: url("/assets/munbun-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --font: "MunBun Sans", "Century Gothic", "URW Gothic", "Avant Garde", "Poppins", system-ui, sans-serif;
  --r-card: 0;
  --vivo: #FFDD43;
  --vivo2: #FE904D;
  --tinta: #FFE3CF;
  --riga: #8E2A4A;
  --riga-chiara: rgba(142, 42, 74, 0.28);
}
html[data-pagina="home"] { --vivo: #FFDD43; --vivo2: #FE904D; --tinta: #FFE3CF; }
html[data-pagina="case"] { --vivo: #FFEC39; --vivo2: #B688FE; --tinta: #EFE6FF; }
html[data-pagina="mare"] { --vivo: #FFDD43; --vivo2: #59BBFB; --tinta: #DDF0FF; }
html[data-pagina="valutazione"] { --vivo: #FF6DAB; --vivo2: #8D90FF; --tinta: #E9E8FF; }
html[data-pagina="visita"] { --vivo: #55E4B6; --vivo2: #59BBFB; --tinta: #D8F6EC; }
html[data-pagina="privacy"] { --vivo: #FFDD43; --vivo2: #DC94F2; --tinta: #F7E8FC; }
html[data-pagina="404"] { --vivo: #FFEC39; --vivo2: #FF7264; --tinta: #FFE4DF; }
html[data-pagina="avvisi"] { --vivo: #FFEC39; --vivo2: #FF7264; --tinta: #FFE4DF; }
html[data-pagina="appuntamento"] { --vivo: #FFDD43; --vivo2: #DC94F2; --tinta: #F7E8FC; }
html[data-pagina="agenzia"] { --vivo: #FFDD43; --vivo2: #FE904D; --tinta: #FFE3CF; }
body { font-size: 16.5px; line-height: 1.55; letter-spacing: 0.004em; }
h1, h2, h3 { letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; margin-top: 14px; }

/* ---------- il logo in alto: su un trapezio di carta con gli angoli, niente riquadro tondo ---------- */
.hero { position: relative; isolation: isolate; background: none; border-radius: 0; padding: 18px 12px 14px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta);
  clip-path: polygon(2.5% 6%, 97.5% 0, 100% 93%, 0 100%); }
.hero::after { content: none; }
.lingua { left: 22px; top: 18px; right: auto; bottom: auto; padding: 2px 0 1px; border-radius: 0; background: none; color: var(--prugna);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1.5px solid var(--prugna); }

/* ---------- i riquadri della home: pezzi di carta, ognuno tagliato a modo suo ---------- */
.action { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.action::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-fondo); clip-path: polygon(0 10px, 100% 0, 100% calc(100% - 5px), 0 100%); }
.action::after { content: none; }
.action-questionario { --c-fondo: var(--carta); background: none; }
.action-valutazione { --c-fondo: var(--carta); background: none; }
.action-visita { --c-fondo: var(--carta); background: none; }
.action-valutazione::before { clip-path: polygon(0 0, 100% 9px, 100% 100%, 0 calc(100% - 6px)); }
.action-visita::before { clip-path: polygon(0.8% 0, 100% 6px, 99.2% 100%, 0 calc(100% - 7px)); }
.action { padding: 22px 16px 14px; grid-template-columns: 54px 1fr; gap: 16px; }
.action-tile svg { width: 54px; height: 54px; }
.action-title { font-size: 19.5px; line-height: 1.22; }
.action-sub { font-size: 15.5px; line-height: 1.45; }
.action-note { font-size: 13px; }
.action-go { width: 48px; height: 24px; border-radius: 0; background: none; color: var(--prugna); }
.action-go svg { width: 48px; height: 24px; }
.action:active { transform: translateY(1px); }

/* ---------- le due porte ---------- */
.porta { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.porta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 6px, 99.2% 0, 100% 100%, 0.8% calc(100% - 4px)); }
.porta::after { content: none; }
.porta:last-child::before { clip-path: polygon(0.8% 0, 100% 6px, 99.2% 100%, 0 calc(100% - 7px)); }
.porta { padding: 12px 10px 12px; }
.porta:active { transform: translateY(1px); }
.porta-titolo { font-size: 18px; line-height: 1.18; }
.porta-sotto { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }

/* ---------- servizi e contatti ---------- */
.servizi { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.servizi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0.8% 0, 100% 6px, 99.2% 100%, 0 calc(100% - 7px)); }
.servizi::after { content: none; }
.contact-list { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.contact-list::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 6px, 99.2% 0, 100% 100%, 0.8% calc(100% - 4px)); }
.contact-list::after { content: none; }
.servizi { padding: 10px 18px 8px; }
.servizio { grid-template-columns: 14px 1fr; gap: 14px; padding: 11px 0; }
.servizio + .servizio { border-top: 1px solid var(--riga-chiara); }
.servizio b { font-size: 16px; }
.servizio-testo { font-size: 15px; }
.servizio-segno { width: 12px; height: 12px; margin-top: 6px; border-radius: 0; transform: none; clip-path: none; }
.servizio-segno.s0 { background: #FE904D; border-radius: 50%; }
.servizio-segno.s1 { background: #DC94F2; }
.servizio-segno.s2 { background: #FF6DAB; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.servizio-segno.s3 { background: #44D4E2; height: 6px; margin-top: 12px; border-radius: 6px 6px 0 0; }
.servizio-segno.s4 { background: #FFDD43; border-radius: 0 12px 0 0; }
.contact-list { padding: 4px 18px; }
.contact-list li + li { border-top: 1px solid var(--riga-chiara); }
.chip { width: 28px; height: 28px; border-radius: 0; background: none; color: var(--prugna); }
.chip svg { width: 24px; height: 24px; }
.chip-rosa, .chip-arancio, .chip-senape { background: none; }

/* ---------- pulsanti: ritagli chiari, lettere spaziate; i secondari sono solo parole con la freccia ---------- */
.btn-primary { position: relative; isolation: isolate; border-radius: 0; background: none; color: var(--prugna);
  font-size: 14.5px; letter-spacing: 0.14em; text-transform: uppercase; min-height: 56px; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tinta); clip-path: polygon(0 4px, 100% 0, 100% calc(100% - 3px), 0 100%); }
.btn-primary::after { content: none; }
.btn-primary:active { background: none; transform: translateY(1px); }
.btn-ghost { border: 0; border-radius: 0; background: none; color: var(--prugna); min-height: 48px; padding: 0 4px;
  font-size: 14.5px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.btn-ghost::after { content: none; }
.btn-small { border-radius: 0; background: var(--carta); color: var(--prugna); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.done-actions { gap: 8px; align-items: center; }
.casa-azioni { gap: 12px; align-items: center; }

/* ---------- pagine interne: la freccia per tornare e il logo con i colori della pagina ---------- */
.topbar { align-items: flex-start; }
.back { border-radius: 0; background: none; padding: 0 8px 0 0; gap: 10px; min-height: 44px;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.back svg { width: 28px; height: 20px; }
.topbar-marchio { position: relative; isolation: isolate; display: block; width: 128px; padding: 9px 7px 6px; flex: none; }
.topbar-marchio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta);
  clip-path: polygon(4% 7%, 100% 0, 96% 100%, 0 95%); }
.topbar-marchio svg { display: block; width: 100%; height: auto; aspect-ratio: 308 / 270; }
.page-head h1 { font-size: 32px; line-height: 1.1; font-weight: 400; }
.vetrina-art { position: relative; isolation: isolate; width: min(100%, 236px); padding: 14px 12px 8px; margin: 2px 0 8px; }
.vetrina-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta);
  clip-path: polygon(0 6%, 97% 0, 100% 94%, 3% 100%); }
.vetrina-art::after { content: none; }
.vetrina-art svg { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 308 / 270; }

/* ---------- i fogli: moduli, conferme, testi ---------- */
.card { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 10px, 100% 0, 100% calc(100% - 5px), 0 100%); }
.card::after { content: none; }
.card { padding: 24px 20px 22px; }
.card h2 { font-size: 21px; }
.done h2 { font-size: 30px; font-weight: 400; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.field label .opt { text-transform: none; letter-spacing: 0.01em; font-size: 13.5px; }
.field input, .field select, .field textarea { border: 0; border-bottom: 1.5px solid var(--riga); border-radius: 0;
  background-color: transparent; padding: 10px 2px 8px; min-height: 46px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom: 2.5px solid var(--riga); box-shadow: none;
  background-color: var(--tinta); }
.field select { -webkit-appearance: none; 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='%238E2A4A' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 20px 20px; padding-right: 28px; }
.field textarea { min-height: 96px; line-height: 30px; padding: 4px 2px 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 29px, var(--riga-chiara) 29px 30px);
  background-attachment: local; }
.gruppo { border: 0; border-radius: 0; padding: 6px 0 0; margin: 4px 0 0; }
.gruppo legend { padding: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.gruppo legend .opt { text-transform: none; letter-spacing: 0.01em; font-size: 13.5px; }
.file-lista { gap: 14px 12px; }
.file { border-radius: 0; background: none; padding: 0 0 8px; border-bottom: 1.5px solid var(--riga); }
.file-nome { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.file input::file-selector-button { border: 0; border-radius: 0; background: var(--tinta); color: var(--prugna);
  font: inherit; font-weight: 700; padding: 6px 10px; margin-right: 8px; cursor: pointer; }
.privacy-box { border: 0; border-radius: 0; border-bottom: 1px solid var(--riga-chiara); }
.privacy-box summary { padding: 10px 2px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.privacy-box .doc { padding: 0 2px 14px; }
.check-box { width: 26px; height: 26px; border-radius: 0; border-width: 1.5px; background: transparent; }
.check { grid-template-columns: 26px 1fr; }
.check input { width: 26px; height: 26px; }
.check-box::after { border-color: var(--prugna); width: 7px; height: 13px; border-width: 0 2.5px 2.5px 0; }
.check input:checked + .check-box { background: var(--tinta); }
.check-label { padding-top: 1px; }
.decl { position: relative; border-radius: 0; background: none; padding: 4px 0 4px 18px; }
.decl::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1.5px; background: var(--riga); }
.decl-eyebrow { font-size: 11.5px; letter-spacing: 0.2em; }
.fine { font-size: 13px; }
.form-error { border-radius: 0; }
.pending { position: relative; isolation: isolate; border-radius: 0; background: none; }
.pending::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tinta); clip-path: polygon(0 0, 100% 9px, 100% 100%, 0 calc(100% - 6px)); }
.sheet-card { border-radius: 0; clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%); padding-top: 28px; }
.sheet-card h2 { font-weight: 400; }

/* ---------- la vetrina ---------- */
.casa { border-radius: 0; clip-path: polygon(0 0, 100% 9px, 100% 100%, 0 calc(100% - 6px)); }
.casa-n { border-radius: 0; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.casa-body { padding: 16px 18px 22px; gap: 7px; }
.casa-pill { border-radius: 0; background: none; padding: 0; color: var(--prugna); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; }
.casa-dove { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.casa-titolo { font-size: 23px; font-weight: 400; }
.casa-prezzo { font-size: 19px; }
.casa-dati { gap: 4px 16px; }
.casa-dati li { border-radius: 0; background: none; padding: 0; font-size: 14.5px; }
.casa-dati li + li::before { content: "·"; margin: 0 12px 0 -10px; color: var(--tenue); }
.casa-azioni { grid-template-columns: 1fr; justify-items: center; gap: 6px; }
.casa-azioni .btn-primary { width: 100%; }
.casa-azioni .btn-primary { font-size: 14px; min-height: 54px; padding: 0 12px; }
/* ---------- versione 09: avvisi e appuntamenti ---------- */
.action-appuntamento::before { clip-path: polygon(0 6px, 99.2% 0, 100% 100%, 0.8% calc(100% - 4px)); }
.action-appuntamento { --c-fondo: var(--carta); background: none; }
.avvisami { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 2px;
  color: var(--prugna); text-decoration: none; font-size: 15px; line-height: 1.35; }
.avvisami-testo { min-width: 0; }
.avvisami b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.avvisami svg { flex: none; width: 40px; height: 20px; }
.field-titolo { margin: 2px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--prugna); }
.scelte { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.scelte-colonna { flex-direction: column; gap: 10px; }
.scelta-voce { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 16px; }
.scelta-voce input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 0; cursor: pointer; }
.scelta-voce span::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -4px;
  border: 1.5px solid var(--prugna); border-radius: 50%; background: transparent; box-sizing: border-box; }
.scelta-voce input:checked + span::before { background: radial-gradient(circle, var(--prugna) 0 4px, var(--tinta) 5px); }
.scelta-voce input:focus-visible + span::before { outline: 3px solid var(--rosa); outline-offset: 2px; }
.casa-link { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
/* ---------- versione 13: ENGLISH / ITALIANO si prendono facilmente col dito ---------- */
.lingua { z-index: 2; }
.lingua::after { content: ""; position: absolute; left: -16px; right: -16px; top: -14px; bottom: -14px; }
.foot a[hreflang] { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
/* ---------- versione 14: l'Area agenzia ---------- */
.card-titolo { margin: 0 0 4px; font-size: 22px; font-weight: 400; }
.agenda-azioni { display: grid; gap: 6px; justify-items: center; margin-top: 18px; }
.agenda-azioni .btn-primary { width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
.agenda-azioni .btn-ghost { text-align: center; }
.foot a[href="/agenzia/"] { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
/* ---------- versione 15: l'Area agenzia collegata a Outlook ---------- */
.riservato { display: flex; flex-direction: column; gap: 14px; }
.riservato[hidden] { display: none; }
.ms-testo { margin: 6px 0 16px; }
.ms-chi { margin: 2px 0 10px; font-size: 14px; color: var(--tenue); }
.link-btn { border: 0; background: none; padding: 8px 2px; margin: -8px 0; font: inherit; color: var(--prugna); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; }
.agenda-quando { margin: 10px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--prugna); }
.agenda-lista { list-style: none; margin: 0; padding: 0; }
.agenda-giorno { margin: 14px 0 4px; font-size: 15px; font-weight: 700; color: var(--prugna); }
.agenda-giorno::first-letter { text-transform: uppercase; }
.agenda-voce a { display: grid; grid-template-columns: 96px 1fr; gap: 2px 12px; padding: 9px 0; color: var(--inchiostro);
  text-decoration: none; border-top: 1px solid var(--riga-sottile); }
.agenda-ora { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accento); }
.agenda-cosa { min-width: 0; overflow-wrap: anywhere; }
.agenda-dove { grid-column: 2; font-size: 13.5px; color: var(--tenue); }
.agenda-ok { margin: 12px 0 0; padding: 10px 12px; background: #E3F6EC; color: var(--inchiostro); font-size: 15px; }
@media (max-width: 359px) {
  .action { grid-template-columns: 46px 1fr; }
  .action-tile svg { width: 46px; height: 46px; }
  .topbar-marchio { width: 110px; }
}

/* lo sfondo scelto (tavola 32): G */
:root { --crema: #F1EEE9; }

/* ---------- proposta 10: il catalogo anni '70 ---------- */
:root { --crema: #F1EEE9; --riga-sottile: rgba(142, 42, 74, 0.2); --accento: #FE904D; }
html, body { background: var(--crema); }
.wrap { gap: 0; padding-left: 20px; padding-right: 20px; }
.eyebrow { margin: 40px 0 6px; }

/* il logo sulla carta, senza riquadro */
.hero { padding: 6px 0 22px; }
.hero::before, .hero::after { content: none; }
.lingua { left: 0; right: auto; top: 4px; }

/* le porte: solo i disegni, grandi, e il titolo */
.actions { display: flex; flex-direction: column; gap: 0; }
.porte { order: 0; gap: 18px; margin: 0 0 30px; }
.porta { padding: 0; }
.porta::before, .porta::after { content: none; }
.porta-testo { padding: 10px 0 0; }
.porta-titolo { font-size: 19px; }

/* le azioni: righe, non riquadri. Titolo, una riga di testo, la freccia arancione */
.action-questionario { order: 1; } .action-valutazione { order: 2; } .action-appuntamento { order: 3; } .avvisami { order: 4; } .action-visita { order: 5; }
.action, .avvisami { position: relative; display: block; padding: 17px 60px 17px 0; border-top: 1px solid var(--riga-sottile); }
.action::before, .action::after { content: none; }
.action:active, .avvisami:active { transform: none; background: rgba(254, 144, 77, 0.08); }
.action-tile { display: none; }
.action-title { font-size: 19px; line-height: 1.25; }
.action-sub { display: block; margin-top: 3px; font-size: 15px; line-height: 1.45; color: var(--tenue); }
.action-foot { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.action-note { display: none; }
.action-go, .avvisami svg { color: var(--accento); }
.avvisami { font-size: 15px; color: var(--tenue); }
.avvisami b { display: block; margin-bottom: 3px; font-size: 19px; line-height: 1.25; color: var(--prugna); text-decoration: none; }
.avvisami svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 48px; height: 24px; }
.action-visita { border-bottom: 1px solid var(--riga-sottile); }

/* servizi e contatti: elenchi con le righe sottili; i segni Bauhaus tutti nell'accento */
.servizi, .contact-list { padding: 0; }
.servizi::before, .servizi::after, .contact-list::before, .contact-list::after { content: none; }
.servizio + .servizio, .contact-list li + li { border-top: 1px solid var(--riga-sottile); }
.servizio-segno.s0, .servizio-segno.s1, .servizio-segno.s2, .servizio-segno.s3, .servizio-segno.s4 { background: var(--accento); }
.chip { color: var(--accento); }
.install { padding-top: 28px; }

/* pulsanti: uno solo, arancione del cielo di X, lettere spaziate */
.btn-primary::before { background: var(--accento); clip-path: none; }
.btn-primary { color: var(--inchiostro); }
.btn-small { background: var(--accento); }

/* pagine interne: il logo della pagina in alto, niente fogli */
.topbar-marchio { padding: 0; width: 118px; }
.topbar-marchio::before { content: none; }
.vetrina-art { padding: 0; width: min(100%, 220px); }
.vetrina-art::before, .vetrina-art::after { content: none; }
.page-head { padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--riga-sottile); }
.card { padding: 10px 0 14px; }
.card::before, .card::after { content: none; }
.gruppo { border-top: 1px solid var(--riga-sottile); padding-top: 16px; margin-top: 8px; }
.hp + .gruppo { border-top: 0; padding-top: 2px; margin-top: 0; }
.pending::before { background: rgba(254, 144, 77, 0.12); clip-path: none; }
.sheet-card { clip-path: none; border-top: 3px solid var(--accento); }

/* la vetrina */
.case-lista { gap: 0; }
.casa { clip-path: none; background: none; padding: 22px 0 26px; border-top: 1px solid var(--riga-sottile); }
.casa:first-child { border-top: 0; padding-top: 6px; }
.casa-body { padding: 16px 0 0; }
.casa-pill { color: var(--accento); }

/* ---------- versione 12: le schede bianche sul bianco sporco ---------- */
.wrap { gap: 14px; }
.eyebrow { margin: 22px 0 10px; }

/* il logo sul suo trapezio di carta */
.hero { padding: 18px 12px 14px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(2.5% 6%, 97.5% 0, 100% 93%, 0 100%); }
.lingua { left: 22px; top: 18px; }

/* le due porte: il disegno e il titolo su un pezzo di carta ciascuna */
.porta { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.porta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 6px, 99.2% 0, 100% 100%, 0.8% calc(100% - 4px)); }
.porta::after { content: none; }
.porta:last-child::before { clip-path: polygon(0.8% 0, 100% 6px, 99.2% 100%, 0 calc(100% - 7px)); }
.porte { gap: 12px; margin: 0 0 12px; }
.porta { padding: 12px 10px 14px; }
.porta-testo { padding: 10px 2px 0; }

/* ogni riquadro e' una scheda: titolo, una riga, la freccia arancione */
.action { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.action::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 10px, 100% 0, 100% calc(100% - 5px), 0 100%); }
.action::after { content: none; }
.avvisami { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.avvisami::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 4px, 100% 0, 100% calc(100% - 3px), 0 100%); }
.avvisami::after { content: none; }
.action-valutazione::before { clip-path: polygon(0 0, 100% 9px, 100% 100%, 0 calc(100% - 6px)); }
.action-appuntamento::before { clip-path: polygon(0 6px, 99.2% 0, 100% 100%, 0.8% calc(100% - 4px)); }
.action-visita::before { clip-path: polygon(0.8% 0, 100% 6px, 99.2% 100%, 0 calc(100% - 7px)); }
.actions { gap: 12px; }
.action, .avvisami { padding: 19px 66px 19px 18px; border-top: 0; }
.action-visita { border-bottom: 0; }
.action-foot { right: 16px; }
.avvisami svg { right: 16px; }
.action:active, .avvisami:active { background: none; transform: translateY(1px); }

/* servizi e contatti: le righe sottili dentro una scheda */
.servizi { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.servizi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0.8% 0, 100% 6px, 99.2% 100%, 0 calc(100% - 7px)); }
.servizi::after { content: none; }
.contact-list { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.contact-list::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 6px, 99.2% 0, 100% 100%, 0.8% calc(100% - 4px)); }
.contact-list::after { content: none; }
.servizi { padding: 8px 18px 6px; }
.contact-list { padding: 4px 18px; }

/* pagine interne: il logo della pagina sul suo pezzo di carta, i fogli bianchi */
.topbar-marchio { padding: 9px 7px 6px; width: 124px; }
.topbar-marchio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(4% 7%, 100% 0, 96% 100%, 0 95%); }
.vetrina-art { padding: 14px 12px 8px; width: min(100%, 236px); }
.vetrina-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 6%, 97% 0, 100% 94%, 3% 100%); }
.page-head { border-bottom: 0; padding-bottom: 4px; margin-bottom: 0; }
.card { position: relative; isolation: isolate; background: none; border: 0; border-radius: 0; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--carta); clip-path: polygon(0 10px, 100% 0, 100% calc(100% - 5px), 0 100%); }
.card::after { content: none; }
.card { padding: 24px 20px 22px; }

/* la vetrina: ogni casa e' una scheda, con le foto in alto */
.case-lista { gap: 18px; }
.casa { clip-path: polygon(0 0, 100% 9px, 100% 100%, 0 calc(100% - 6px)); background: var(--carta); padding: 0; border-top: 0; }
.casa:first-child { padding-top: 0; }
.casa-body { padding: 16px 18px 22px; }

/* ---------- versione 15 (prova): piu' decisa, con un pezzo di paesaggio in ogni riquadro ---------- */
body { position: relative; isolation: isolate; }
/* due mezzi dischi piatti ai bordi, come in Tracce: stanno dentro lo schermo, niente scorrimento laterale */
body::before, body::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
body::before { width: 150px; height: 300px; top: -80px; right: 0; border-radius: 150px 0 0 150px; background: #FFDD43; }
body::after { width: 110px; height: 220px; top: 1180px; left: 0; border-radius: 0 110px 110px 0; background: #DC94F2; }
.wrap { position: relative; }
.action, .avvisami { overflow: hidden; min-height: 116px; padding: 18px 124px 18px 18px; }
.action-vignetta { position: absolute; right: 0; bottom: 0; width: 120px; height: 110px; }
.action-vignetta svg { display: block; width: 100%; height: 100%; }
.action-body, .avvisami-testo { position: relative; z-index: 1; display: block; }
.action-title, .avvisami b { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.005em; }
.action-sub { font-size: 15px; }
.action-foot { position: static; transform: none; display: block; margin: 8px 0 0; }
.action-go { width: 40px; height: 20px; }
.action-go svg { width: 40px; height: 20px; }
.action .action-vignetta svg, .avvisami .action-vignetta svg { position: static; transform: none; display: block; width: 100%; height: 100%; }
.avvisami > svg { position: static; transform: none; display: block; margin-top: 8px; width: 40px; height: 20px; }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.2em; margin: 30px 0 12px; }
.eyebrow::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 8px; background: #FE904D; }
.porta-titolo { font-weight: 700; }
.page-head h1, .done h2, .card-titolo { font-weight: 700; letter-spacing: -0.015em; }
html:not([data-pagina="home"]) body::before { width: 110px; height: 220px; top: -96px; border-radius: 110px 0 0 110px; }
html:not([data-pagina="home"]) body::after { content: none; }

/* ---------- versione 16: il pulsante come due ritagli sovrapposti, nei colori della pagina ---------- */
.btn-primary { color: #5A1D33; margin-bottom: 9px; }
.btn-primary::before { background: var(--vivo); clip-path: polygon(0 9%, 100% 0, 99.3% 100%, 0.5% 92%); }
.btn-primary::after { content: ""; position: absolute; left: 10px; right: -8px; top: 10px; bottom: -8px; z-index: -2;
  background: var(--vivo2); clip-path: polygon(1% 0, 100% 13%, 100% 100%, 0 87%); transition: transform 90ms ease; }
.btn-primary:active { transform: translate(3px, 3px); }
.btn-primary:active::after { transform: translate(-3px, -3px); }
.casa-azioni { gap: 10px; }

/* ---------- versione 17: un loghino tra una casa e l'altra (unito o scomposto, ogni volta diverso) ---------- */
.tra-case { display: flex; justify-content: center; padding: 2px 18px; margin: -4px 0; }
.tra-start { justify-content: flex-start; }
.tra-end { justify-content: flex-end; }
.tra-case svg { display: block; width: 112px; height: auto; transform: rotate(-2deg); }
.tra-start svg { transform: rotate(-4deg); }
.tra-end svg { transform: rotate(3deg); }

/* ---------- versione 18: condividere il sito e le case ---------- */
.home-su { display: flex; justify-content: flex-end; margin: -6px 0 -10px; position: relative; z-index: 2; }
.condividi { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px 0 10px; border: 0;
  background: none; color: var(--prugna); cursor: pointer; font: 700 12.5px/1 var(--font); letter-spacing: 0.16em;
  text-transform: uppercase; }
.condividi svg { width: 20px; height: 20px; flex: none; }
.condividi:focus-visible, .condividi-casa:focus-visible { outline: 2px solid var(--prugna); outline-offset: 3px; }
.condividi-casa { cursor: pointer; font-family: var(--font); }
.casa-tutte { margin: 4px 0 0; text-align: center; }
.avviso-copiato { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 50; margin: 0; padding: 12px 18px; background: var(--carta); color: var(--prugna); font: 700 15px/1.2 var(--font);
  box-shadow: 5px 5px 0 var(--vivo2); white-space: nowrap; }
.avviso-copiato[hidden] { display: none; }
