/* Stile comune delle anteprime di Destinazione Urbanistica Facile: caratteri e colori del sito (tema Astrid). */
:root {
  --fondo: #f5f9f8; --bianco: #fff; --testo: #656d6d; --titoli: #272727;
  --accento: #c8641a; --accento-chiaro: #fbeee3; --linea: #dfe6e4; --verde: #3d7a4a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--testo); font: 16px/1.6 "Open Sans", sans-serif; }
h1, h2, h3 { font-family: "Josefin Sans", sans-serif; color: var(--titoli); font-weight: 400; margin: 0; }
a { color: var(--accento); }
.contenitore { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Testata come quella del sito */
header.sito { background: #3a3f3f; color: #fff; text-align: center; padding: 14px 16px 12px; }
header.sito .marchio { font-family: "Josefin Sans", sans-serif; font-size: 24px; }
header.sito .motto { font-size: 13px; opacity: .8; }

/* Apertura */
.apertura { background: var(--bianco); border-bottom: 1px solid var(--linea); padding: 56px 0 48px; text-align: center; }
.etichetta { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accento); margin-bottom: 14px; }
.apertura h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 600; }
.apertura .sotto { font-family: "Josefin Sans", sans-serif; font-size: clamp(19px, 2.6vw, 24px); color: var(--testo); margin: 12px auto 30px; max-width: 640px; }
form.cerca { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
form.cerca input { flex: 1; min-width: 0; font: inherit; padding: 14px 16px; border: 1px solid #b9c4c1; border-radius: 6px; background: #fff; }
.bottone { font: 600 16px "Open Sans", sans-serif; background: var(--accento); color: #fff; border: 0; border-radius: 6px; padding: 14px 24px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.bottone:disabled { opacity: .45; cursor: not-allowed; }
.bottone:disabled:hover { background: var(--accento); }
.bottone:hover { background: #a9530f; }
.nota-roma { font-size: 14px; margin-top: 12px; }

section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 3.6vw, 32px); text-align: center; margin-bottom: 8px; }
section .intro { text-align: center; max-width: 640px; margin: 0 auto 32px; }

/* A chi serve */
.tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.riquadro { background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 24px; }
.riquadro h3 { font-size: 22px; margin-bottom: 6px; font-weight: 600; }
.riquadro p { margin: 0; }

/* Scegli il livello: confronto tra prima lettura e dossier */
.confronto { background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 8px 24px 20px; max-width: 860px; margin: 0 auto; }
.confronto table { width: 100%; border-collapse: collapse; }
.confronto th, .confronto td { padding: 12px 8px; border-top: 1px solid var(--linea); text-align: center; vertical-align: middle; }
.confronto thead th { border-top: 0; font: 600 20px/1.2 "Josefin Sans", sans-serif; color: var(--titoli); width: 24%; padding-top: 20px; }
.confronto thead th:first-child { width: auto; }
.confronto thead th span { display: block; font: 600 14px "Open Sans", sans-serif; margin-top: 4px; }
.confronto thead .gratis span { color: var(--verde); }
.confronto thead .pagamento span { color: var(--accento); }
.confronto .pagamento, .confronto td:last-child { background: var(--accento-chiaro); }
.confronto tbody th, .confronto tfoot th { text-align: left; font-weight: 400; color: var(--titoli); }
.confronto .si { font-weight: 600; font-size: 18px; color: var(--verde); }
.confronto td:last-child .si { color: var(--accento); }
.confronto .no { font-size: 18px; color: #b8463a; }
.confronto tfoot th { font-weight: 600; }
.confronto tfoot .gratis strong { color: var(--verde); }
.confronto .prezzo s { margin-right: 4px; }
.confronto .prezzo strong { font-size: 22px; color: var(--accento); }
.confronto .prezzo small { display: block; font-size: 12px; }
.confronto tfoot tr:last-child td { border-top: 0; padding-bottom: 16px; }
.confronto tfoot tr:last-child td:first-child { background: none; }
.confronto .bottone { padding: 10px 16px; font-size: 15px; white-space: normal; }
.nota-confronto { text-align: center; font-size: 14px; margin: 14px auto 0; max-width: 640px; }
.fuori-schermo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Tre passi */
.passi { background: var(--accento-chiaro); border-radius: 14px; padding: 40px 24px; }
.passo { text-align: center; }
.numero { width: 56px; height: 56px; border-radius: 50%; background: var(--accento); color: #fff; font: 600 24px "Josefin Sans", sans-serif;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; padding-top: 4px; }
.passo h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.passo p { margin: 0; }

/* Domande */
.domande { max-width: 760px; margin: 0 auto; }
details { background: var(--bianco); border: 1px solid var(--linea); border-radius: 8px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--titoli); }
details p { margin: 0; padding: 0 20px 18px; }

/* Studio */
.studio { background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 28px; display: flex; gap: 24px; align-items: flex-start; }
.studio img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.studio h3 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.studio p { margin: 0 0 8px; }
.studio ul { margin: 12px 0 0; padding: 0; list-style: none; }
.studio li { padding: 8px 0 8px 26px; border-top: 1px solid var(--linea); position: relative; }
.studio li::before { content: "✓"; position: absolute; left: 4px; font-weight: 600; color: var(--accento); }
.studio li strong { color: var(--titoli); }

.chiusura { text-align: center; }
.chiusura h2 { margin-bottom: 18px; }
.avvertenza { font-size: 13px; border-top: 1px solid var(--linea); padding: 24px 16px 40px; }

@media (max-width: 760px) {
  .tre { grid-template-columns: 1fr; }
  .studio { flex-direction: column; align-items: center; padding: 22px 18px; }
  .studio img { width: 96px; height: 96px; }
  .confronto { padding: 4px 8px 12px; }
  .confronto th, .confronto td { padding: 10px 4px; font-size: 14px; }
  .confronto thead th { font-size: 16px; width: 27%; }
  .confronto .bottone { padding: 8px 6px; font-size: 13px; }
  form.cerca { flex-direction: column; }
  .apertura { padding: 40px 0 36px; }
  section { padding: 40px 0; }
}

/* Pagine 2 e 3: passi, mappa, esiti */
.passi-barra { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 18px 16px 0; flex-wrap: wrap; }
.passi-barra li { font-size: 14px; padding: 6px 14px; border-radius: 20px; background: var(--bianco); border: 1px solid var(--linea); }
.passi-barra li.fatto { color: var(--verde); }
.passi-barra li.attivo { background: var(--accento); border-color: var(--accento); color: #fff; font-weight: 600; }
.pagina { padding: 32px 0 48px; }
.pagina h1 { font-size: clamp(28px, 4.4vw, 38px); font-weight: 600; text-align: center; }
.pagina .sotto { text-align: center; max-width: 640px; margin: 10px auto 24px; }
.mappa { height: 440px; border-radius: 10px; border: 1px solid var(--linea); background: #e6ecea; }
.mappa.piccola { height: 320px; }
.scheda-indirizzo { background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.scheda-indirizzo strong { color: var(--titoli); }
.nota-punto { background: var(--accento-chiaro); border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.azioni { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.bottone.secondario { background: transparent; color: var(--titoli); border: 1px solid #b9c4c1; }
.bottone.secondario:hover { background: var(--bianco); }
.esempio { background: #fff7d6; border: 1px solid #e7d48a; color: #6b5a12; border-radius: 8px; padding: 8px 14px; font-size: 14px; text-align: center; margin-bottom: 20px; }
.esiti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.esito { background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 20px; }
.esito .tema { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.esito .valore { font-family: "Josefin Sans", sans-serif; font-size: 24px; font-weight: 600; color: var(--titoli); margin: 6px 0 8px; line-height: 1.2; }
.esito p { margin: 0; font-size: 15px; }
.esito .fonte { display: block; font-size: 12px; margin-top: 10px; }
.segno { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; color: #fff; vertical-align: middle; }
.segno.si { background: var(--accento); }
.segno.no { background: var(--verde); }
.schede-mappa { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.schede-mappa button { font: 600 14px "Open Sans", sans-serif; padding: 8px 14px; border-radius: 6px; border: 1px solid #b9c4c1; background: var(--bianco); color: var(--titoli); cursor: pointer; }
.schede-mappa button[aria-selected="true"] { background: var(--titoli); color: #fff; border-color: var(--titoli); }
.invito { background: var(--bianco); border: 2px solid var(--accento); border-radius: 12px; padding: 28px; margin-top: 28px; }
.invito h2 { text-align: left; font-size: 28px; margin-bottom: 8px; }
.invito ul { padding-left: 20px; margin: 10px 0 20px; }
.invito.in-attesa .bottone { opacity: .45; pointer-events: none; }
.invito .attesa-mappe { margin-left: 14px; font-size: 14px; }
.invito .contatta { font-size: 15px; margin: 16px 0 0; }
@media (max-width: 760px) {
  .esiti { grid-template-columns: 1fr; }
  .mappa { height: 360px; }
  .azioni .bottone { width: 100%; text-align: center; }
}
.mappa-statica { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--linea); user-select: none; -webkit-user-drag: none; }

/* Pagina 3: una scheda per ogni mappa tematica (variante B), con la sola destinazione nel punto */
.scheda-mappa { display: grid; grid-template-columns: 3fr 2fr; background: var(--bianco); border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.scheda-mappa .mappa-statica { border: 0; border-radius: 0; height: 100%; object-fit: cover; object-position: center; }
.scheda-mappa-testo { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.scheda-mappa-testo h3 { font-size: 22px; font-weight: 600; }
.nel-punto { display: flex; align-items: center; gap: 10px; background: var(--fondo); border: 1px solid var(--linea); border-radius: 8px; padding: 10px 14px; }
.nel-punto .campione { flex: none; width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2); }
.nel-punto .campione.vuoto { background: repeating-linear-gradient(45deg, #fff 0 4px, #dfe6e4 4px 8px); }
.nel-punto small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--accento); }
.nel-punto strong { color: var(--titoli); font-size: 17px; }
.descrizione { font-size: 15px; margin: 0; }
.fonte-mappa { font-size: 12px; }
@media (max-width: 760px) { .scheda-mappa { grid-template-columns: 1fr; } }

/* Pagina 3: sintesi in forma di testo */
.sintesi { background: var(--bianco); border: 1px solid var(--linea); border-radius: 10px; padding: 24px 28px; margin-bottom: 28px; }
.sintesi h2 { text-align: left; font-size: 26px; margin-bottom: 10px; }
.sintesi p { margin: 0 0 10px; font-size: 17px; }
.sintesi strong { color: var(--titoli); }
.sintesi .fonti { font-size: 13px; margin: 14px 0 0; }
.nota-scheda { font-size: 13px; margin: 0; font-style: italic; }
.mappa-attesa { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; background: #e6ecea; font-size: 15px; padding: 16px; }
.mappa-attesa p { margin: 0 0 10px; }
.mappa-pronta { line-height: 0; }
.coordinate-punto { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--linea); margin-top: 14px; padding-top: 14px; font-size: 15px; }
.coordinate-punto strong { color: var(--titoli); font-variant-numeric: tabular-nums; }
.coordinate-punto .bottone { padding: 8px 16px; font-size: 14px; }
.scheda-mappa.senza-mappa { grid-template-columns: 1fr; }
.ricerche-oggi { font-size: 13px; margin: 0 0 12px; text-align: right; }

/* Pagina 3: avanzamento della lettura, servizio per servizio */
.stato-servizi { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; }
.stato-servizi li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid #ecdca0; }
.stato-servizi li::before { position: absolute; left: 4px; font-weight: 600; }
.stato-servizi li.in-corso::before { content: "…"; }
.stato-servizi li.fatto::before { content: "✓"; color: var(--verde); }
.stato-servizi li.attesa::before { content: "⏳"; }
.stato-servizi li.errore::before { content: "!"; color: #b4441f; }
.stato-servizi .stato { font-weight: 400; }
#attesa .bottone { margin-top: 10px; }

/* Pagina 2: controllo del punto al catasto */
.avviso-punto { border-radius: 8px; padding: 12px 16px; margin: 16px 0 0; font-size: 15px; background: #fff7d6; border: 1px solid #e7d48a; color: #6b5a12; }
.avviso-punto.errore { background: #fbe9e4; border-color: #e3a898; color: #8a2f17; font-weight: 600; }
.link-scheda { align-self: flex-start; padding: 8px 16px; font-size: 14px; }
.link-schede { display: flex; flex-wrap: wrap; gap: 6px; }
.link-schede .link-scheda { padding: 5px 12px; font-size: 13px; }
