/* Sito pubblico di Turni Lucto (templates/sito/). Indipendente da ui.css. */

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --bg-3: #eef0f7;
  --text: #111827;
  --text-strong: #0b1020;
  --muted: #5b6475;
  --dim: #8a93a5;
  --border: #e4e7ef;
  --brand: #6366f1;
  --brand-hover: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eef2ff;
  --ok: #12805c;
  --ok-soft: #e7f6ef;
  --warn: #b25e09;
  --warn-soft: #fdf3e3;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .05), 0 24px 48px rgba(16, 24, 40, .10);
  --r: 14px;
  --r-lg: 22px;
  --w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 780; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(99, 102, 241, .45); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.sez { padding: 88px 0; }
.sez.alt { background: var(--bg-2); }
.sez-testa { max-width: 720px; margin-bottom: 44px; }
.sez-testa.centro { margin-left: auto; margin-right: auto; text-align: center; }
.occhiello {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-hover); margin-bottom: 12px;
}
.lead { font-size: 19px; color: var(--muted); }

/* ── Barra in alto ───────────────────────────────────────────── */
.testata {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.testata.ombra { border-bottom-color: var(--border); }
.testata .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.marchio { display: flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.marchio:hover { text-decoration: none; }
.marchio-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a { color: var(--muted); font-weight: 600; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { color: var(--text-strong); background: var(--bg-2); text-decoration: none; }
.menu a.attivo { color: var(--text-strong); }
.menu .btn { margin-left: 8px; }

/* ── Bottoni ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-pri { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(99, 102, 241, .32); }
.btn-pri:hover { background: var(--brand-hover); color: #fff; }
.btn-sec { background: #fff; color: var(--text-strong); border-color: var(--border); }
.btn-sec:hover { border-color: #cfd4e2; background: var(--bg-2); color: var(--text-strong); }
.btn-grande { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn-blocco { width: 100%; }
.menu a.btn-pri { color: #fff; padding: 0 18px; }
.menu a.btn-pri:hover { background: var(--brand-hover); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(129, 140, 248, .22), transparent 70%) 18% 30% / 640px 640px no-repeat,
    radial-gradient(closest-side, rgba(56, 189, 248, .14), transparent 70%) 82% 18% / 560px 560px no-repeat;
}
.hero-griglia { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #6366f1, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 20px; max-width: 560px; }
.hero-azioni { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.spunte { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.spunte li { display: flex; align-items: center; gap: 7px; }
.spunte svg { color: var(--ok); flex: none; }

/* finte schermate (HTML, dati inventati) */
.schermo {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.schermo-barra { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: #fbfbfd; }
.schermo-barra i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5ee; }
.schermo-barra span { margin-left: 10px; font-size: 12.5px; color: var(--dim); font-weight: 600; }
.hero-visivo { position: relative; padding-right: 130px; }
.hero-visivo .telefono { position: absolute; right: 0; bottom: -46px; width: 205px; }

.cal { padding: 16px; font-size: 13px; }
.cal-testa { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-testa b { font-size: 15px; color: var(--text-strong); }
.cal-testa .pill { background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; }
.cal-tab { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal-tab th { font-size: 11px; font-weight: 700; color: var(--dim); text-align: center; padding-bottom: 2px; }
.cal-tab th:first-child { text-align: left; width: 31%; }
.cal-tab td { height: 27px; border-radius: 7px; text-align: center; font-weight: 750; font-size: 11.5px; }
.cal-tab td.nome { text-align: left; font-weight: 600; color: var(--text); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-M { background: #dbeafe; color: #1d4ed8; }
.s-P { background: #fef3c7; color: #a16207; }
.s-N { background: #ede9fe; color: #6d28d9; }
.s-S { background: #f1f5f9; color: #64748b; }
.s-R { background: #f8fafc; color: #94a3b8; }
.s-F { background: #dcfce7; color: #15803d; }

.telefono {
  background: #0f172a; border-radius: 30px; padding: 8px; box-shadow: var(--shadow-lg);
}
.telefono-schermo { background: #f6f7fb; border-radius: 23px; overflow: hidden; padding: 14px 11px 12px; }
.tel-titolo { font-size: 13px; font-weight: 800; color: var(--text-strong); margin: 2px 4px 9px; }
.tel-giorno { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 8px; }
.tel-giorno-testa { background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 9px; }
.tel-turno { border-left: 4px solid #ef4444; margin: 7px; padding: 4px 8px; font-size: 11px; line-height: 1.4; }
.tel-turno.pet { border-color: #0ea5e9; }
.tel-turno b { display: block; font-size: 12.5px; color: var(--text-strong); }
.tel-turno span { color: var(--muted); }
.tel-turno .tel-btn { display: block; color: #fff; text-align: center; background: var(--ok); color: #fff; font-weight: 750; font-size: 11.5px; border-radius: 8px; padding: 6px; margin-top: 5px; }

/* ── Striscia "per chi" ─────────────────────────────────────── */
.per-chi { padding: 70px 0 30px; }
.per-chi-riga { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.per-chi-riga span {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 99px;
  padding: 8px 16px; font-weight: 600; color: var(--muted); font-size: 15px;
}
.per-chi p { text-align: center; color: var(--dim); font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }

/* ── Moduli ─────────────────────────────────────────────────── */
.griglia-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.griglia-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.carta {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
a.carta { color: inherit; display: block; }
a.carta:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.carta p { color: var(--muted); font-size: 16px; margin: 0; }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; background: var(--brand-soft); color: var(--brand-hover);
}
.ico.c-blu { background: #e0f2fe; color: #0369a1; }
.ico.c-rosso { background: #fee2e2; color: #b91c1c; }
.ico.c-verde { background: #dcfce7; color: #15803d; }
.ico.c-ambra { background: #fef3c7; color: #a16207; }
.ico.c-grigio { background: #f1f5f9; color: #475569; }
.ico.c-viola { background: #ede9fe; color: #6d28d9; }
.carta .vai { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 650; font-size: 15px; color: var(--brand-hover); }

/* ── Punti forti (riga immagine + testo) ─────────────────────── */
.punto { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.punto + .punto { margin-top: 96px; }
.punto.inverti .punto-testo { order: 2; }
.lista-ok { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.lista-ok li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); }
.lista-ok li svg { color: var(--ok); flex: none; margin-top: 4px; }

/* scheda generatore */
.gen { padding: 18px; }
.gen-riga { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 11px; background: var(--bg-2); margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.gen-riga .ok { color: var(--ok); font-weight: 750; display: flex; align-items: center; gap: 6px; }
.gen-barra { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; margin-top: 4px; }
.gen-barra i { display: block; height: 100%; background: linear-gradient(90deg, #818cf8, #4f46e5); border-radius: 99px; }

/* scheda portale */
.portale-demo { padding: 20px; background: #f6f7fb; }
.pd-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: 16px 18px; margin-bottom: 12px; }
.pd-card small { display: block; font-size: 13px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.pd-card b { display: block; font-size: 22px; color: var(--text-strong); margin: 2px 0; }
.pd-card .riga { color: var(--muted); font-size: 15.5px; }
.pd-azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-azioni span { text-align: center; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 15px; }
.pd-azioni .a1 { background: var(--brand); color: #fff; }
.pd-azioni .a2 { background: #fff; border: 2px solid #fca5a5; color: #b91c1c; }

/* ── Flessibile ─────────────────────────────────────────────── */
.flessibile {
  background: linear-gradient(135deg, #312e81, #4338ca 55%, #4f46e5);
  color: #e0e7ff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden;
}
.flessibile::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent);
}
.flessibile h2 { color: #fff; }
.flessibile .lead { color: #c7d2fe; }
.flessibile .griglia-3 { margin-top: 34px; position: relative; z-index: 1; }
.flex-voce { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 20px; }
.flex-voce h3 { color: #fff; font-size: 17.5px; margin-bottom: 6px; }
.flex-voce p { color: #c7d2fe; font-size: 15.5px; margin: 0; }

/* ── Fiducia ─────────────────────────────────────────────────── */
.fiducia .carta { padding: 22px; }
.fiducia h3 { font-size: 17.5px; margin-bottom: 6px; }
.fiducia .carta p { font-size: 15.5px; }

/* ── Prezzi ─────────────────────────────────────────────────── */
.pacchetti { display: grid; grid-template-columns: repeat(3, minmax(0, 400px)); justify-content: center; gap: 22px; align-items: stretch; }
.pacchetto .config { margin: 14px 0 4px; padding: 12px 14px; background: var(--bg-soft, #f5f6fb); border-radius: 12px; font-size: 14.5px; }
.pacchetto .config b { color: var(--text-strong, #111); }
.pacchetto .config ul { margin: 6px 0 0; padding-left: 18px; }
.pacchetto .extra { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.pacchetto {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px 26px; box-shadow: var(--shadow);
}
.pacchetto.consigliato { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(79, 70, 229, .18); }
.pacchetto .nastro {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 750; letter-spacing: .04em;
  padding: 4px 13px; border-radius: 99px; white-space: nowrap;
}
.pacchetto h3 { font-size: 22px; margin-bottom: 4px; }
.pacchetto .per { color: var(--muted); font-size: 15px; min-height: 48px; margin-bottom: 18px; }
.prezzo { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.prezzo b { font-size: 50px; font-weight: 800; letter-spacing: -.04em; color: var(--text-strong); line-height: 1; }
.prezzo span { color: var(--muted); font-weight: 600; }
.prezzo-nota { font-size: 13.5px; color: var(--dim); margin-bottom: 20px; }
.annuale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 14.5px; color: var(--muted); background: var(--ok-soft); border-radius: 10px; padding: 8px 12px; margin: -8px 0 18px; }
.annuale b { color: var(--text-strong); }
.annuale s { color: var(--dim); }
.annuale em { font-style: normal; color: var(--ok); font-weight: 750; }
.prova {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px;
  margin-top: 26px; padding: 12px 20px; border-radius: 16px;
  background: var(--ok-soft); border: 1px solid #bfe6d3; color: #0d5c42; font-size: 16px;
}
.prova b { font-size: 17.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chips span { font-size: 12.5px; font-weight: 700; background: var(--brand-soft); color: var(--brand-strong); padding: 3px 10px; border-radius: 99px; }
.pacchetto .lista-ok { margin: 0 0 26px; gap: 10px; font-size: 15.5px; }
.pacchetto .btn { margin-top: auto; }

.tab-confronto { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); font-size: 15.5px; }
.tab-confronto th, .tab-confronto td { padding: 13px 18px; border-bottom: 1px solid var(--border); text-align: center; }
.tab-confronto th:first-child, .tab-confronto td:first-child { text-align: left; }
.tab-confronto thead th { background: var(--bg-2); font-size: 14.5px; color: var(--text-strong); }
.tab-confronto tbody tr:last-child td { border-bottom: 0; }
.tab-confronto .si { color: var(--ok); display: inline-grid; }
.tab-confronto .no { color: #c4c9d6; }
.tab-confronto .testo-cella { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.scorri { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--text-strong); display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ── Presentazione ───────────────────────────────────────────── */
.indice { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.indice a { background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px; color: var(--text); font-weight: 650; font-size: 15px; }
.indice a:hover { border-color: var(--brand); color: var(--brand-hover); text-decoration: none; }
.modulo { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.modulo:first-of-type { border-top: 0; }
.modulo-testa .ico { margin-bottom: 14px; }
.modulo-testa p { color: var(--muted); font-size: 16px; }
.modulo-testa .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand-strong); background: var(--brand-soft); border-radius: 99px; padding: 3px 10px; margin-top: 4px; }
.funzioni { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.funzione { background: var(--bg-2); border-radius: 16px; padding: 18px 20px; }
.funzione h4 { font-size: 16.5px; margin-bottom: 4px; }
.funzione p { font-size: 15px; color: var(--muted); margin: 0; }

/* ── Chiamata finale ─────────────────────────────────────────── */
.cta { text-align: center; }
.modulo-contatto { max-width: 680px; margin: 34px auto 0; text-align: left; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; }
.modulo-contatto [hidden] { display: none !important; }
.modulo-contatto h3 { font-size: 22px; margin-bottom: 4px; }
.modulo-contatto .mc-sotto { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.mc-motivo { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-motivo legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.mc-motivo label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cfd4e2; border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.mc-motivo label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
.mc-motivo input { margin-top: 4px; accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.mc-motivo small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.mc-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mc-griglia label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.mc-griglia .mc-largo { grid-column: 1 / -1; }
.mc-griglia input, .mc-griglia textarea { font: inherit; font-weight: 400; border: 1px solid #cfd4e2; border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; box-sizing: border-box; }
.mc-griglia textarea { resize: vertical; }
.mc-griglia input:focus, .mc-griglia textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); }
.mc-griglia label.mc-sbagliato input, .mc-griglia label.mc-sbagliato textarea { border-color: #dc2626; }
.mc-privacy.mc-sbagliato { color: #b91c1c; }
.mc-fac { font-weight: 400; color: var(--muted); font-size: 13px; }
.mc-nascosto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mc-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14.5px; }
.mc-privacy + .mc-privacy { margin-top: -2px; margin-bottom: 16px; }
.mc-privacy input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.mc-errore { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 15px; }
.mc-fatto { display: flex; gap: 14px; align-items: center; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 14px; padding: 16px 18px; }
.mc-fatto b { display: block; font-size: 17px; }
.mc-fatto span { font-size: 15px; }
@media (max-width: 640px) {
  .modulo-contatto { padding: 20px 16px; }
  .mc-motivo, .mc-griglia { grid-template-columns: 1fr; }
}
.cta .hero-azioni { justify-content: center; }
.contatti { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.contatti a { display: inline-flex; align-items: center; gap: 8px; }
.da-completare { display: inline-block; background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 14px; font-size: 14.5px; font-weight: 650; }

/* ── Accesso ─────────────────────────────────────────────────── */
.accesso-sfondo { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .45); display: none; align-items: center; justify-content: center; padding: 16px; }
.accesso-sfondo.aperto { display: flex; }
.accesso { background: #fff; border-radius: 22px; width: 100%; max-width: 420px; padding: 28px; box-shadow: var(--shadow-lg); }
.accesso h3 { font-size: 22px; }
.accesso p { color: var(--muted); font-size: 15.5px; }
.accesso label { display: block; font-weight: 650; font-size: 15px; margin: 14px 0 6px; }
.accesso input { width: 100%; font: inherit; min-height: 48px; border: 1px solid #cfd4e2; border-radius: 12px; padding: 0 14px; }
.accesso input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(99, 102, 241, .18); }
.accesso .azioni { display: flex; gap: 10px; margin-top: 18px; }
.accesso .azioni .btn { flex: 1; }
.accesso .ricordata { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; margin: 6px 0 4px; font-weight: 650; }
.accesso .errore { color: #b91c1c; font-size: 14.5px; margin-top: 8px; display: none; }

/* ── Pagine legali ─ */
.legale { max-width: 820px; }
.legale h2 { font-size: 21px; margin: 30px 0 10px; }
.legale p, .legale li { color: var(--text); font-size: 16.5px; }
.legale ul { padding-left: 22px; }
.legale table th { background: var(--bg-2); }

/* ── Piede ───────────────────────────────────────────────────── */
.piede { border-top: 1px solid var(--border); padding: 40px 0; color: var(--dim); font-size: 14.5px; }
.piede .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.piede nav { display: flex; gap: 18px; flex-wrap: wrap; }
.piede nav a { color: var(--muted); font-weight: 600; }

/* ── Telefono ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-griglia, .punto { grid-template-columns: 1fr; gap: 40px; }
  .punto.inverti .punto-testo { order: 0; }
  .hero-visivo { padding-right: 150px; margin-bottom: 30px; }
  .griglia-3, .pacchetti { grid-template-columns: 1fr; }
  .pacchetti { max-width: 480px; margin: 0 auto; gap: 30px; }
  .modulo { grid-template-columns: 1fr; gap: 22px; }
  .flessibile { padding: 40px 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .sez { padding: 64px 0; }
  .hero { padding: 48px 0 30px; }
  .menu a:not(.btn) { display: none; }
  .menu .mostra-sempre { display: inline-flex !important; }
  .griglia-2, .funzioni { grid-template-columns: 1fr; }
  .hero-visivo { padding-right: 0; margin-bottom: 0; }
  .hero-visivo .telefono { display: none; }
  .flessibile { padding: 34px 20px; border-radius: 22px; }
  .tab-confronto th, .tab-confronto td { padding: 11px 12px; }
  .punto + .punto { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
