/* Ippocrate Prenota — stessi colori e font dell'Area Pazienti (azzurro del logo, Plus Jakarta Sans). */
:root {
  --cyan: #29ABE2;
  --mid: #1080C0;
  --deep: #0061B0;
  --navy: #1B2080;
  --grad: linear-gradient(120deg, #29ABE2 0%, #0061B0 100%);
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --line-soft: #EEF2F7;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --tint: #E4F4FC;
  --tint-2: #F1F9FE;
  --ok: #166534; --ok-bg: #E7F6EC;
  --warn: #9A4B00; --warn-bg: #FFF3E0;
  --err: #B42318; --err-bg: #FDECEC;
  --star: #F5B301;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--ink); }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 640px; }
main { flex: 1; padding: 24px 0 48px; }

/* Barra in alto */
.topbar { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand strong { color: var(--cyan); font-weight: 800; }
.topbar-nota { font-size: 12px; font-weight: 700; color: var(--mid); background: var(--tint); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 480px) { .topbar-nota { display: none; } }

/* Card */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.centro { text-align: center; padding: 40px 24px; }
.centro p { margin-top: 10px; }
.icona-grande { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--tint); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* Testata studio / professionista */
.hero { position: relative; overflow: hidden; border-radius: var(--r); background: var(--grad); color: #fff; padding: 26px; display: flex; gap: 20px; align-items: center; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hero h1 { color: #fff; }
.hero .sotto { color: rgba(255, 255, 255, .9); font-weight: 600; margin-top: 4px; }
.hero .stelline { margin-top: 10px; }
.avatar { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 24px; background: #fff; color: var(--deep); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 40, 90, .18); position: relative; z-index: 1; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar.foto img { object-fit: cover; }
.hero-testo { position: relative; z-index: 1; min-width: 0; }
.chip-bianca { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; margin-top: 10px; }
@media (max-width: 560px) { .hero { flex-direction: column; align-items: flex-start; padding: 22px; } .avatar { width: 68px; height: 68px; font-size: 22px; } h1 { font-size: 22px; } }

/* Griglia pagina */
.griglia { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; margin-top: 20px; align-items: start; }
.griglia > .colonna-prenota { position: sticky; top: 76px; }
@media (max-width: 960px) { .griglia { grid-template-columns: minmax(0, 1fr); } .griglia > .colonna-prenota { position: static; order: -1; } }
.stack > * + * { margin-top: 20px; }

/* Box prenotazione */
.prenota-box { overflow: hidden; }
.prenota-testa { background: var(--grad); color: #fff; padding: 16px 22px; display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; }
.prenota-corpo { padding: 20px 22px 22px; }
.passo + .passo { margin-top: 18px; }
.passo-titolo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.passo-num { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--deep); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.campo, select.campo, textarea.campo { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 11px 13px; font: inherit; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.campo:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(41, 171, 226, .15); }
select.campo { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
textarea.campo { min-height: 80px; resize: vertical; }
label.etichetta { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.aiuto { font-size: 12px; color: var(--muted); margin-top: 5px; }
.due { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .due { grid-template-columns: 1fr; } }
.riga-campi + .riga-campi { margin-top: 12px; }

/* Chip prestazioni */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; text-align: left; }
.chip:hover { border-color: var(--cyan); color: var(--deep); }
.chip.attiva { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.chip small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }

/* Calendario orari */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav button { border: 1px solid var(--line); background: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-nav span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cal-giorno { min-width: 0; }
.cal-intesta { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; margin-bottom: 6px; }
.cal-intesta strong { display: block; color: var(--ink); font-size: 13px; }
.slot { display: block; width: 100%; border: 0; background: var(--tint); color: var(--deep); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 0; border-radius: 10px; cursor: pointer; margin-bottom: 6px; transition: all .12s; }
.slot:hover { background: #cdeafa; }
.slot.attiva { background: var(--deep); color: #fff; }
.slot-vuoto { display: block; text-align: center; color: #CBD5E1; padding: 8px 0; font-weight: 700; }
.altri { display: block; width: 100%; margin-top: 4px; border: 0; background: none; color: var(--mid); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.avviso-vuoto { background: var(--tint-2); border: 1px dashed #BEE3F8; border-radius: var(--r-sm); padding: 18px; text-align: center; color: var(--ink-2); font-size: 14px; }
.scheletro { height: 34px; border-radius: 10px; background: linear-gradient(90deg, #EEF2F7 0%, #F8FAFC 50%, #EEF2F7 100%); background-size: 200% 100%; animation: luce 1.2s infinite; margin-bottom: 6px; }
@keyframes luce { to { background-position: -200% 0; } }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 20px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s; }
.btn-primario { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(0, 97, 176, .25); width: 100%; }
.btn-primario:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primario:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-secondario { background: #fff; color: var(--deep); border: 1px solid var(--line); }
.btn-link { background: none; border: 0; color: var(--mid); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* Riepilogo e messaggi */
.riepilogo { background: var(--tint-2); border: 1px solid #D6EEFB; border-radius: var(--r-sm); padding: 14px 16px; }
.riepilogo li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.riepilogo li + li { margin-top: 6px; }
.riepilogo ul { margin: 0; padding: 0; }
.riepilogo i { color: var(--cyan); width: 16px; margin-top: 3px; text-align: center; }
.msg { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; }
.msg-err { background: var(--err-bg); color: var(--err); }
.msg-ok { background: var(--ok-bg); color: var(--ok); }
.msg-info { background: var(--tint); color: var(--deep); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--cyan); flex: 0 0 auto; }
.radio-riga { display: flex; gap: 16px; }
.radio-riga label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.radio-riga input { accent-color: var(--cyan); width: 16px; height: 16px; }
.otp { letter-spacing: 10px; font-size: 24px; font-weight: 800; text-align: center; }
.successo { text-align: center; }
.successo .icona-grande { background: var(--ok-bg); color: var(--ok); }
.nascosto { display: none !important; }

/* Sezioni informative */
.sezione-titolo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sezione-titolo i { width: 34px; height: 34px; border-radius: 11px; background: var(--tint); color: var(--cyan); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.info-righe > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.info-righe > div:first-child { border-top: 0; padding-top: 0; }
.info-righe dt { width: 110px; flex: 0 0 auto; color: var(--muted); font-weight: 600; }
.info-righe dd { margin: 0; color: var(--ink-2); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.presentazione { color: var(--ink-2); white-space: pre-line; }

/* Professionisti */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.persona { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-soft); border-radius: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.persona:hover { border-color: #BEE3F8; box-shadow: var(--shadow); text-decoration: none; }
.persona .mini { width: 48px; height: 48px; border-radius: 15px; background: var(--tint); color: var(--deep); font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.persona .mini img { width: 100%; height: 100%; object-fit: cover; }
.persona strong { display: block; font-size: 14px; }
.persona span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* Opinioni */
.stelline { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stelline .vuota { color: #CBD5E1; }
.hero .stelline .vuota { color: rgba(255, 255, 255, .45); }
.media-opinioni { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.media-opinioni .voto-grande { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1; }
.opinione { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.opinione:first-of-type { border-top: 0; }
.opinione-testa { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.opinione-testa strong { color: var(--ink); }
.verificata { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-size: 12px; font-weight: 700; }
.opinione p { margin-top: 8px; color: var(--ink-2); white-space: pre-line; }
.opinione .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--ink-2); }
.badge.si { background: var(--ok-bg); color: var(--ok); }
.risposta { margin-top: 10px; background: var(--tint-2); border-left: 3px solid var(--cyan); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: 13px; color: var(--ink-2); }
.voto-scelta { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: center; }
.voto-scelta input { position: absolute; opacity: 0; pointer-events: none; }
.voto-scelta label { font-size: 34px; color: #CBD5E1; cursor: pointer; transition: transform .1s; }
.voto-scelta label:hover, .voto-scelta label:hover ~ label, .voto-scelta input:checked ~ label { color: var(--star); }
.voto-scelta label:active { transform: scale(.9); }

/* Home */
.vetrina { text-align: center; padding: 40px 0 10px; }
.vetrina h1 { font-size: 32px; }
.vetrina p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.studi { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 28px; }

/* Piè di pagina */
.piede { border-top: 1px solid var(--line-soft); background: #fff; font-size: 13px; color: var(--muted); }
.piede-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 16px; }

/* Testo legale */
.legale h2 { margin-top: 22px; margin-bottom: 8px; }
.legale p, .legale li { color: var(--ink-2); }
.legale ul { padding-left: 20px; }

/* ── Home ── */
.home { padding-top: 0; }
.home-hero { background: radial-gradient(1200px 500px at 85% -10%, #D9F0FC 0%, rgba(217, 240, 252, 0) 60%), linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%); border-bottom: 1px solid var(--line-soft); }
.home-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.home-hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; margin-top: 16px; }
.evidenza { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-sotto { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--deep); font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.pill-bianca { background: rgba(255, 255, 255, .18); color: #fff; }
.cerca { margin-top: 26px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow); max-width: 560px; }
.cerca:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(41, 171, 226, .15); }
.cerca > i { color: var(--muted); }
.cerca input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--ink); background: transparent; padding: 8px 0; }
.cerca .btn-primario { width: auto; padding: 12px 22px; }
.punti { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.punti i { color: var(--cyan); margin-right: 4px; }
.home-anteprima { position: relative; }
.anteprima-card { background: #fff; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 61, 120, .14), 0 2px 6px rgba(15, 23, 42, .06); overflow: hidden; transform: rotate(1.5deg); }
.anteprima-testa { background: var(--grad); color: #fff; font-weight: 800; padding: 14px 20px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.anteprima-corpo { padding: 18px 20px 20px; }
.anteprima-corpo .chip { cursor: default; }
.anteprima-corpo .slot { cursor: default; text-align: center; }
.anteprima-ok { margin-top: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 13px; padding: 10px 12px; border-radius: 12px; }
.anteprima-stelle { position: absolute; left: -24px; bottom: -22px; background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); border: 1px solid var(--line-soft); }
.home-blocco { margin-top: 56px; }
.home-titolo { font-size: 24px; margin-bottom: 18px; }
.passi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.passo-card { padding: 24px; position: relative; }
.passo-card > i { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.passo-card h3 { font-size: 16px; margin-bottom: 6px; }
.passo-n { position: absolute; top: 18px; right: 20px; font-size: 32px; font-weight: 800; color: var(--line); }
.vantaggi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.vantaggi i { color: var(--cyan); font-size: 22px; margin-bottom: 10px; }
.vantaggi h3 { margin-bottom: 6px; }
.dentisti { background: var(--grad); color: #fff; border-radius: 28px; padding: 40px; position: relative; overflow: hidden; }
.dentisti::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.dentisti > div { position: relative; z-index: 1; max-width: 640px; }
.dentisti h2 { color: #fff; font-size: 26px; margin-top: 14px; }
.dentisti p { color: rgba(255, 255, 255, .9); margin-top: 10px; }
.dentisti-azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-bianco { background: #fff; color: var(--deep); }
.btn-bianco:hover, .btn-trasparente:hover { text-decoration: none; transform: translateY(-1px); }
.btn-trasparente { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
@media (max-width: 900px) {
  .home-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 40px; }
  .home-anteprima { display: none; }
  .home-hero h1 { font-size: 32px; }
  .passi, .vantaggi { grid-template-columns: minmax(0, 1fr); }
  .dentisti { padding: 28px 22px; }
  .home-blocco { margin-top: 40px; }
}
@media (max-width: 480px) { .cerca .btn-primario { padding: 12px 16px; } }
