/* ════════════════════════════════════════════════════════════
   style-prenota.css  —  Pagine prenotazione Villa del Sole
   Cartella: /prenota/
   ════════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@300,400,500&display=swap');

/* ── Reset & root ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #3b7dff;
  --blue-l: #eef3ff;
  --blue-b: #bfd0ff;
  --dark:   #1a3a6b;
  --text:   #111827;
  --muted:  #6b7280;
  --faint:  #9ca3af;
  --bg:     #f6f7fb;
  --white:  #ffffff;
  --border: #eef0f6;
  --green:  #22c55e;
}

html  { scroll-behavior: smooth; scroll-padding-top: 68px; }
body  { font-family: 'Satoshi', sans-serif; background: var(--bg); color: var(--dark); padding-top: 68px; }

/* ── Typography ── */
h1, h2, h3,
.hero-name, .cal-title-t, .other-docs-title,
.info-h2, .foot-brand {
  font-family: 'Clash Display', sans-serif;
}

/* ════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════ */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(12px);
  overflow: visible;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 12px; color: var(--muted); text-decoration: none; letter-spacing: .03em; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-trig { cursor: default; }
.nav-cta {
  background: var(--dark); color: #fff; padding: 10px 26px; border-radius: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: var(--dark); border-radius: 1px; display: block; }

/* Dropdown */
.nav-dd {
  display: none; position: fixed; min-width: 200px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(10,14,26,0.12); padding: 6px; z-index: 9999;
}
.nav-dd.open { display: block; }
.nav-dd a {
  display: block; padding: 9px 14px; font-size: 12px; color: var(--muted);
  text-decoration: none; border-radius: 8px; white-space: nowrap;
  letter-spacing: .02em; transition: background .15s, color .15s;
}
.nav-dd a:hover { background: var(--blue-l); color: var(--blue); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 68px; z-index: 99;
  background: #fff; padding: 32px 24px; flex-direction: column;
  border-top: 1px solid var(--border); overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; color: var(--dark); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--border); display: block;
}
.mobile-menu .m-cta {
  background: var(--blue); color: #fff; padding: 16px; text-align: center;
  border-radius: 8px; margin-top: 20px; font-weight: 700; letter-spacing: .04em;
  border-bottom: none;
}
.m-group-btn {
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; font-size: 16px; color: var(--dark); cursor: pointer;
  font-family: 'Satoshi', sans-serif;
}
.m-group-btn .m-arr { font-size: 12px; color: var(--faint); transition: transform .2s; }
.m-group-btn.open .m-arr { transform: rotate(180deg); }
.m-group-links { display: none; padding: 4px 0 4px 16px; }
.m-group-links.open { display: block; }
.m-group-links a { font-size: 14px; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ════════════════════════════════════════════════════════════
   HERO (pagine interne)
   ════════════════════════════════════════════════════════════ */
.hero-page {
  background: var(--dark); padding: 72px 56px;
  position: relative; overflow: hidden;
}
.hero-page-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; z-index: 1;
}
.hero-page-inner > div:first-child { flex: 1; min-width: 0; }
.hero-eyebrow { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.hero-name    { font-size: 48px; font-weight: 700; color: #fff; letter-spacing: -.02em; line-height: 1.0; margin-bottom: 8px; }
.hero-spec    { font-size: 16px; color: var(--blue); font-weight: 500; }
.hero-av {
  width: 100px; height: 100px; flex-shrink: 0;
  background: rgba(59,125,255,0.15); border: 2px solid rgba(59,125,255,0.3);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  font-family: 'Clash Display', sans-serif;
}
/* Geometrie decorative */
.hero-geo1 { position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(59,125,255,0.15); top: -130px; right: -90px; pointer-events: none; }
.hero-geo2 { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(59,125,255,0.08); top: -60px;  right: -20px; pointer-events: none; }
.hero-line  { position: absolute; width: 200px; height: 2px; background: linear-gradient(to right, var(--blue), transparent); bottom: 100px; left: 0; pointer-events: none; }

/* ════════════════════════════════════════════════════════════
   LAYOUT PRINCIPALE (cal sinistra, info destra)
   ════════════════════════════════════════════════════════════ */
.doctor-main {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 56px 80px;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 32px; align-items: start;
}

/* ── Calendario ── */
.cal-wrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  position: sticky; top: 88px;
}
.cal-header {
  background: var(--dark); padding: 18px 24px;
  display: flex; align-items: center; gap: 10px;
}
.cal-dot   { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.cal-title-t { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .16em; text-transform: uppercase; }
.cal-badge { margin-left: auto; font-size: 10px; color: rgba(255,255,255,0.28); }

/* Placeholder (prima della selezione) */
.cal-placeholder {
  height: 700px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--muted); font-size: 14px;
  padding: 32px; text-align: center;
}
.cal-placeholder svg { width: 48px; height: 48px; stroke: var(--faint); fill: none; stroke-width: 1.4; }

/* ── Info panel (colonna destra) ── */
.info-eyebrow {
  font-size: 10px; color: var(--blue); letter-spacing: .2em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.info-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--blue); }
.info-h2 { font-size: 26px; font-weight: 700; color: var(--dark); letter-spacing: -.02em; margin-bottom: 20px; line-height: 1.1; }
.info-h2 em { font-style: normal; color: var(--blue); }

.info-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 10px;
}
.info-card-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.info-card-val   { font-size: 13px; color: var(--dark); line-height: 1.6; }
.info-card-val a { color: var(--blue); text-decoration: none; }
.info-card-val a:hover { text-decoration: underline; }

/* ── Altri specialisti ── */
.other-docs { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-top: 10px; }
.other-docs-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.doc-list  { display: flex; flex-direction: column; gap: 6px; }
.doc-btn   { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; text-decoration: none; transition: background .15s, border-color .15s; }
.doc-btn:hover { background: var(--blue-l); border-color: var(--blue-b); }
.doc-name  { display: block; font-size: 12px; font-weight: 600; color: var(--dark); }
.doc-spec  { display: block; font-size: 10px; color: var(--faint); margin-top: 1px; }
.doc-arr   { font-size: 14px; color: var(--blue); }

/* ════════════════════════════════════════════════════════════
   SELETTORE TIPO VISITA (Radiologia / Berti)
   ════════════════════════════════════════════════════════════ */
.choose-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 56px 0;
}
.choose-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.choose-title   { font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 6px; font-family: 'Clash Display', sans-serif; }
.choose-sub     { font-size: 14px; color: var(--muted); margin-bottom: 32px; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0; }
.type-card {
  background: #fff; border: 2px solid var(--border); border-radius: 18px;
  padding: 28px 28px 24px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative; overflow: hidden; text-align: left;
}
.type-card:hover  { border-color: var(--blue); box-shadow: 0 8px 32px rgba(59,125,255,0.10); transform: translateY(-2px); }
.type-card.active { border-color: var(--blue); box-shadow: 0 8px 32px rgba(59,125,255,0.14); }
.type-card.active::after {
  content: '✓'; position: absolute; top: 16px; right: 18px;
  width: 26px; height: 26px; background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; line-height: 26px; text-align: center;
}
.type-icon { width: 48px; height: 48px; background: var(--blue-l); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.type-icon svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.type-name  { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 6px; font-family: 'Clash Display', sans-serif; }
.type-desc  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-l); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 20px;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  background: var(--dark); padding: 40px 56px;
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 32px; align-items: center;
}
.foot-brand { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.foot-sub   { font-size: 11px; color: rgba(255,255,255,0.35); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 10px; color: rgba(255,255,255,0.35); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.foot-links a:hover { color: rgba(255,255,255,0.7); }
.foot-badge { border: 1px solid rgba(34,197,94,0.3); border-radius: 6px; padding: 6px 14px; font-size: 10px; color: rgba(34,197,94,0.5); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1100px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  /* Nav */
  .nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-page { padding: 48px 20px; }
  .hero-page-inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-av { display: none; }
  .hero-name { font-size: 32px; }

  /* Layout principale */
  .doctor-main { grid-template-columns: 1fr; padding: 32px 20px 56px; }
  .cal-wrap { position: static; }

  /* Selettore tipo visita */
  .choose-wrap { padding: 40px 20px 0; }
  .type-grid { grid-template-columns: 1fr; }

  /* Footer */
  footer { grid-template-columns: 1fr; padding: 28px 20px; gap: 18px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 38px; }
  body { padding-top: 60px; }
  html { scroll-padding-top: 60px; }
  .mobile-menu { top: 60px; padding: 24px 16px; }

  .hero-page { padding: 36px 16px; }
  .hero-name { font-size: 28px; }

  .doctor-main { padding: 24px 16px 40px; gap: 20px; }
  .info-h2 { font-size: 22px; }

  footer { padding: 24px 16px; gap: 14px; }
  .foot-links { gap: 12px; flex-wrap: wrap; }
}

/* FIX-OVERFLOW-MOBILE (09/10/2026): .cal-container ha 'grid-template-columns:1fr 340px' inline
   (berti-piero.html) e il contenitore ha 56px di padding inline: su telefono sforavano lo schermo. */
@media (max-width: 900px) {
  .cal-container { grid-template-columns: minmax(0,1fr) !important; gap: 20px !important; }
  div[style*="padding:0 56px 80px"] { padding: 0 20px 60px !important; }
  .cal-container > * { min-width: 0; }
}

/* COLONNA-UNICA-MOBILE (09/10/2026, NON ANCORA CARICATO): .doctor-main ha 'grid-template-columns:1fr 340px'
   inline nelle pagine dei medici, che vince sulla regola mobile (senza !important): su telefono il
   calendario restava in una colonna stretta. */
@media (max-width: 900px) {
  .doctor-main { grid-template-columns: minmax(0,1fr) !important; }
  .doctor-main > * { min-width: 0; }
}
/* ORDINE-MOBILE (10/10/2026): su telefono/tablet (colonna unica) il titolo "Prenota con Dr. ..." viene PRIMA del
   calendario, poi le informazioni (specialita', struttura, orari, contatti, altri specialisti).
   .info-panel diventa 'display: contents' cosi' i suoi blocchi si riordinano con 'order'. */
@media (max-width: 900px) {
  .doctor-main > .info-panel { display: contents; }
  .doctor-main > .info-panel > .info-eyebrow { order: 1; }
  .doctor-main > .info-panel > .info-h2 { order: 2; }
  .doctor-main > .cal-wrap { order: 3; }
  .doctor-main > .info-panel > :not(.info-eyebrow):not(.info-h2) { order: 4; }
}

