/* Pagina prezzi (prezzi.html, generata da bin/genera-pagina-prezzi.py). Stessi colori e caratteri di style.css. */

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Apertura a tutta larghezza, centrata */
.prezzi-testa { padding: 76px 0 40px; text-align: center; background: radial-gradient(1100px 420px at 50% -10%, rgba(255, 180, 0, .16), transparent 70%); }
.prezzi-testa .pill { margin: 0 auto; }
.prezzi-testa h1 { font-size: clamp(42px, 6vw, 84px); margin: 20px auto 22px; max-width: 14em; }
.prezzi-testa .hero-sub { font-size: 19px; color: var(--testo-soft); max-width: 40em; margin: 0 auto; }

/* Le tre schede */
.prezzi-piani { padding: 24px 0 40px; }
.piani-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.piano { position: relative; display: flex; flex-direction: column; background: var(--bianco); border: 1.5px solid var(--linea); border-radius: var(--raggio); padding: 34px 30px 28px; box-shadow: var(--ombra-lieve); }
.piano-consigliato { border-color: var(--sole); box-shadow: var(--ombra); }
.piano-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sole); color: var(--nero); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.piano h3 { font-size: 30px; }
.piano-per { color: var(--testo-soft); margin-top: 8px; min-height: 3.2em; }
.piano-prezzo { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.piano-cifra { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 56px; line-height: 1; color: var(--nero); letter-spacing: -0.03em; }
.piano-periodo { color: var(--testo-soft); }
.piano-anno { font-size: 15px; color: var(--testo-soft); margin-top: 6px; }
.piano-anno strong { color: var(--nero); }
.piano .check-list { margin: 22px 0 26px; gap: 10px; flex: 1; align-content: start; }
.piano .check-list li { font-size: 16px; }
.piano .bottone { justify-content: center; }
.piano-attiva { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--testo-soft); }
.piano-attiva:hover { color: var(--nero); }

/* Tabella di confronto */
.prezzi-confronto { background: var(--carta); }
.tabella-scorre { overflow-x: auto; margin-top: 34px; border-radius: var(--raggio); background: var(--bianco); box-shadow: var(--ombra-lieve); }
.confronto-piani { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 16px; }
.confronto-piani th, .confronto-piani td { padding: 14px 18px; border-bottom: 1px solid var(--linea); text-align: center; }
.confronto-piani tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--testo); font-family: 'Inter', system-ui, sans-serif; }
.confronto-piani thead th { position: sticky; top: 0; background: var(--bianco); font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-size: 22px; color: var(--nero); padding-top: 22px; }
.confronto-piani thead th span { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500; color: var(--testo-soft); margin-top: 2px; }
.confronto-piani thead th.col-consigliato { box-shadow: inset 0 4px 0 var(--sole); }
.confronto-piani tr.gruppo th { text-align: left; background: var(--carta); font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--nero); padding-top: 18px; }
.confronto-piani td { color: var(--nero); font-weight: 500; }
.voce-dettaglio { display: block; font-size: 14px; font-weight: 400; color: var(--testo-soft); line-height: 1.45; margin-top: 3px; max-width: 34em; }
.confronto-piani tbody tr:last-child td, .confronto-piani tbody tr:last-child th { border-bottom: 0; }
.spunta { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); position: relative; vertical-align: middle; }
.spunta::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid var(--bianco); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.trattino { color: #A7A7A0; font-size: 20px; }

/* A consumo e servizi */
.listini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.listino { background: var(--bianco); border: 1.5px solid var(--linea); border-radius: var(--raggio); padding: 28px; display: flex; flex-direction: column; }
.listino h3 { font-size: 24px; }
.section .listino p { font-size: 15px; margin-top: 8px; }
.listino ul { list-style: none; margin: 18px 0 12px; display: grid; gap: 4px; flex: 1; align-content: start; }
.listino li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--linea); }
.listino li:last-child { border-bottom: 0; }
.listino-qta { color: var(--testo); }
.listino-prezzo { font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 22px; color: var(--nero); white-space: nowrap; }
.listino-prezzo small { font-size: 14px; font-weight: 500; color: var(--testo-soft); }
.section .listino .listino-nota { font-size: 14px; color: var(--testo-soft); margin-top: auto; }
.listino-servizio { background: var(--nero); border-color: var(--nero); }
.listino-servizio h3, .listino-servizio .listino-prezzo, .listino-servizio .listino-qta { color: var(--bianco); }
.section .listino-servizio p, .section .listino-servizio .listino-nota, .listino-servizio .listino-prezzo small { color: #C9C9C2; }
.listino-servizio li { border-color: #3A3A3A; }

/* Domande */
.prezzi-domande { background: var(--carta); }
.domande { display: grid; gap: 14px; margin-top: 30px; max-width: 860px; }
.domanda { background: var(--bianco); border-radius: 16px; border: 1.5px solid var(--linea); padding: 18px 22px; }
.domanda summary { cursor: pointer; font-family: 'Outfit', 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 19px; color: var(--nero); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--testo-soft); transition: transform .2s; }
.domanda[open] summary::after { transform: rotate(45deg); }
.section .domanda p { margin-top: 10px; font-size: 16px; max-width: none; }

@media (max-width: 980px) {
  .piani-grid, .listini { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .piano-per { min-height: 0; }
}
@media (max-width: 600px) {
  .prezzi-testa { padding: 44px 0 24px; }
  .prezzi-testa .hero-sub { font-size: 17px; }
  .piano { padding: 30px 22px 24px; }
  .piano-cifra { font-size: 48px; }
  .confronto-piani { font-size: 13px; min-width: 0; }
  .confronto-piani th, .confronto-piani td { padding: 10px 5px; }
  .confronto-piani tbody th[scope="row"] { width: 40%; padding-left: 12px; }
  .voce-dettaglio { font-size: 12px; }
  .confronto-piani thead th { font-size: 15px; padding-top: 16px; }
  .confronto-piani thead th span { font-size: 11px; }
  .confronto-piani tr.gruppo th { font-size: 12px; padding-left: 12px; }
  .spunta { width: 20px; height: 20px; }
  .spunta::after { left: 6.5px; top: 3.5px; }
}
