/* home */
.apertura { background: #fff; padding: 4rem 0; }
.apertura-grid { display: grid; gap: 2.5rem; align-items: center; }
.apertura-testo, .colonna-prova { min-width: 0; }
.eyebrow { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: #866636; margin-bottom: .875rem; }
.apertura h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 3.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -1.2px; text-wrap: balance; }
.lead { font-size: 1.125rem; line-height: 2rem; color: var(--muted); max-width: 36rem; margin: 1.375rem 0 0; text-wrap: pretty; }
.apertura-azioni { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.kicker { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #866636; margin: 0 0 .5rem; }

.colonna-prova { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.prova-testa { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.prova-testa span { padding: 10px 14px; }
.prova-riga { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e5e7eb; position: relative; padding-bottom: 30px; background: #fff; }
.prova-riga p { margin: 0; padding: 10px 14px 0; line-height: 1.45; }
.prova-riga p + p { color: var(--muted); font-style: italic; }
.pill { display: inline-block; border-radius: 999px; }
.esito { position: absolute; left: 14px; bottom: 8px; line-height: 18px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 1px 8px; }
.esito.ok { background: #e7f0e9; color: #24543a; }
.esito.guarda { background: #f6ecd9; color: #7a5a1f; }
.esito.vuoto { background: #eceff3; color: #3c4656; }
.prova-nota { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid #e5e7eb; }

.indice-band { background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.band-title { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--navy); }
.tile-grid { display: grid; gap: 12px; margin-top: 24px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font-weight: 500; text-decoration: none; transition: border-color var(--fast), box-shadow var(--fast); }
.tile span { color: var(--gold-2); font-size: 20px; transition: transform var(--fast); }
.tile:hover { border-color: var(--navy); box-shadow: 0 4px 6px -1px rgba(10,23,41,.1); }
.tile:hover span { transform: translateX(4px); }

.lettura { padding-top: 3rem; padding-bottom: 3rem; }
.lettura .intro { font-size: 1.125rem; line-height: 2rem; }
.lettura h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 2.2em 0 .6em; text-wrap: balance; }
.lettura ul { padding-left: 1.75rem; }
.lettura li { margin-bottom: .45em; }
.lettura li::marker { color: #d1d5db; }
.table-wrap { overflow-x: auto; margin: 28px 0 8px; }
.fact-table { border-collapse: collapse; width: 100%; font-size: 15.2px; line-height: 1.5; background: #fff; }
.fact-table th, .fact-table td { border: 1px solid var(--line); padding: .55em .8em; text-align: left; vertical-align: top; }
.fact-table td:first-child { width: 32%; }
.fact-table td p { margin: 0; }
.fact-table td p + p { margin-top: .5em; }

.quaderno { display: grid; gap: 24px; align-items: start; }
.figura-alta { margin: 0; max-width: 360px; }
.figura-alta img { border-radius: var(--r-sm); width: 100%; }

.esiti-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.sala-grid img, .figura-alta img { aspect-ratio: 3 / 2; object-fit: cover; }
.figura-alta img { aspect-ratio: 3 / 4; }
.esiti-band h2 { font-size: 24px; line-height: 32px; }
.sotto { color: var(--muted); margin-top: 8px; }
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 16px; }
.filtro { font: 500 14px/20px Inter, Arial, sans-serif; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: var(--r-sm); background: #fff; color: var(--text); cursor: pointer; }
.filtro.attivo { background: var(--navy); border-color: var(--navy); color: #fff; }
.righe-prova { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.righe-prova li { display: grid; gap: 2px; padding: 12px 14px; border-top: 1px solid #e5e7eb; }
.righe-prova li:first-child { border-top: 0; }
.righe-prova li[hidden] { display: none; }
.righe-prova em { font-style: normal; font-size: 14px; color: var(--muted); }
.righe-prova li[data-esito="guarda"] em { color: #7a5a1f; }
.righe-prova li[data-esito="vuoto"] em { color: #3c4656; font-weight: 500; }
.conta { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.programma { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.programma-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.giorno { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; min-width: 0; }
.giorno h3 { font-size: 18px; margin-bottom: 12px; }
.giorno ol { list-style: none; margin: 0; padding: 0; }
.giorno li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed #e5e7eb; font-size: 15px; }
.giorno li:first-child { border-top: 0; }
.giorno b { color: #866636; font-weight: 600; }
.giorno, .persona { box-shadow: 0 1px 2px rgba(10,23,41,.06), 0 4px 12px -6px rgba(10,23,41,.12); }
.programma-link { margin-top: 20px; font-weight: 500; }
.programma-link a { text-decoration: none; }

.sala-band { background: var(--navy); color: #e2e8f0; padding: 3rem 0; }
.sala-band h2 { color: #fff; }
.sala-grid { display: grid; gap: 1.75rem; align-items: center; }
.sala-grid img { border-radius: var(--r-md); min-width: 0; }
.sala-grid h2 { font-size: 24px; line-height: 32px; margin-bottom: 12px; }

.lista-no { list-style: none; padding: 0 !important; }
.lista-no li { padding-left: 26px; position: relative; }
.lista-no li:before { content: "×"; position: absolute; left: 4px; top: -1px; color: var(--gold); font-weight: 600; }

.persone { padding-top: 1rem; padding-bottom: 3.5rem; }
.persone-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.persona { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--r-md); padding: 1.25rem; font-size: .875rem; line-height: 1.625; }
.persona .nome { font-weight: 600; margin: .75rem 0 0; }

.posto-band { background: #fff; border-top: 1px solid var(--line); padding: 3.5rem 0; }
.posto-grid { display: grid; gap: 2rem; }
.posto-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; min-width: 0; }
.posto-form h2 { font-size: 24px; line-height: 32px; }
.campo { position: relative; margin-top: 1.125rem; }
.campo label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.campo label i { color: var(--gold); font-style: normal; }
.campo input[type="text"], .campo input[type="email"], .campo select { width: 100%; font: 16px Inter, Arial, sans-serif; padding: 12px 40px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); }
.campo input:focus, .campo select:focus { outline: 0; border-color: var(--navy); }
.campo.giusto input, .campo.giusto select { border-color: #3f7a57; }
.campo.giusto:after { content: "✓"; position: absolute; right: 14px; top: 38px; color: #3f7a57; font-weight: 600; }
.campo.sbagliato input, .campo.sbagliato select { border-color: #b4372f; }
.aiuto { display: block; min-height: 18px; font-size: 13px; color: #b4372f; margin-top: 4px; }
.campo-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.campo-check input { width: 18px; height: 18px; margin: 3px 0 0; }
.campo-check label { font-weight: 400; margin: 0; }
.campo-check .aiuto { grid-column: 2; }
.campo-check.giusto:after { display: none; }
.posto-form .btn-navy { margin-top: 18px; }
.posto-form .btn-navy[disabled] { opacity: .6; cursor: wait; }
.esito-invio { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: #f8fafc; border: 1px solid var(--line); }
.esito-invio.bene { background: #eef5f0; border-color: #cfe3d6; }
.esito-invio.male { background: #fbefee; border-color: #f0cfcb; }
.posto-lato { font-size: 16px; }
.posto-lato h3 { font-size: 18px; margin-bottom: 12px; }
.posto-lato .piccolo { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }

@media (min-width: 640px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .persone-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .apertura { padding: 96px 0; }
  .apertura-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .apertura h1 { letter-spacing: -1.5px; }
  .band-title, .lettura h2, .esiti-band h2, .sala-grid h2, .posto-form h2 { font-size: 30px; line-height: 40px; }
  .indice-band { padding: 48px 0; }
  .lettura { padding-top: 64px; padding-bottom: 64px; }
  .quaderno { grid-template-columns: 360px 1fr; gap: 32px; }
  .programma-grid { grid-template-columns: 1fr 1fr; }
  .sala-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .posto-grid { grid-template-columns: 7fr 5fr; gap: 48px; }
}
@media (min-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ritocchi dopo la prima stampa di prova */
.fact-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.fact-table thead th { background: #10233d !important; color: #fff !important; }
.lettura h2:first-child { margin-top: 0; }

/* cosa portare */
.porta-band { background: #f3f5f8; border-top: 1px solid var(--line); padding: 3rem 0; }
.porta-intro { color: var(--muted); margin: 8px 0 24px; }
.porta-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.porta-voce { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.porta-voce svg { flex: none; width: 36px; height: 36px; color: var(--navy); }
.porta-voce h3 { font-size: 18px; line-height: 26px; margin-bottom: 4px; }
.porta-voce p { margin: 0; color: var(--muted); font-size: 15px; line-height: 23px; }
@media (min-width: 768px) {
  .porta-band { padding: 4.5rem 0; }
  .porta-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
