﻿/* ============================================================
   VILLA DEL SOLE — Stylesheet centrale
   Casa di Cura · Cosenza
   ============================================================ */

@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 ── */
.font-display { font-family: 'Clash Display', sans-serif; }

h1, h2, h3, .hero-name, .hero-title, .sec-title,
.block-h3, .choose-title, .other-docs-title,
.foot-brand, .nav-logo-n, .cal-title-t,
.drive-title, .panel-t, .panel-title,
.type-name, .eq-name, .spec-name,
.strip h3, .band-item {
  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; width: 100%; z-index: 100;
  backdrop-filter: blur(12px);
  overflow: visible;
}
.nav-dd {
  display: none;
  position: absolute;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(10,14,26,0.12);
  padding: 6px;
  z-index: 9999;
  line-height: normal;
  font-size: 0;
}
.nav-dd.open { display: block; }
.nav-dd a {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
}
.nav-dd a:hover { background: #eef3ff; color: #3b7dff; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-n { font-size: 12px; font-weight: 700; color: var(--dark); letter-spacing: .03em; text-transform: uppercase; display: block; }
.nav-logo-s { font-size: 9px; color: var(--blue); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 1px; }
.nav-links { display: flex; gap: 20px; align-items: center; justify-content: 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-cta {
  background: #1a3a6b; color: #fff; padding: 10px 26px; border-radius: 6px;
  font-size: 12px; font-weight: 500; font-family: 'Satoshi', sans-serif;
  border: none; cursor: pointer; letter-spacing: .04em;
  text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); text-decoration: none;
  letter-spacing: .04em; transition: color .2s;
}
.nav-back:hover { color: var(--blue); }
.nav-back::before { content: '←'; margin-right: 2px; }
.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; }

/* ── 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; letter-spacing: .03em;
}
.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;
}
.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;
  letter-spacing: .03em; 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 (homepage) ── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; align-items: stretch; }
.hero-left {
  background: var(--dark); padding: 56px 56px 40px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  position: relative; overflow: hidden;
}
.hero-right { position: relative; overflow: visible; min-height: 480px; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.hero-right-ov { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,14,26,0.35) 0%, transparent 55%); }
.hero-badge {
  position: absolute; top: 36px; right: 24px;
  background: rgba(10,14,26,0.88); backdrop-filter: blur(14px);
  border: 1px solid rgba(59,125,255,0.28); border-radius: 12px;
  padding: 18px 22px; text-align: right;
}
.hero-badge-n { font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.hero-badge-l { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.hero-badge-accent { width: 36px; height: 2px; background: var(--blue); margin-left: auto; margin-top: 10px; }

/* ── HERO (inner pages) ── */
.hero-page {
  background: var(--dark); padding: 72px 56px;
  position: relative; overflow: hidden;
  margin-top: 0;
}
.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; margin-bottom: 20px; }
.hero-av {
  width: 100px; height: 100px;
  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; flex-shrink: 0;
}

/* ── HERO GEOMETRIE ── */
.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-geo3 { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(59,125,255,0.18); top: -100px; left: -100px; pointer-events: none; }
.hero-geo4 { position: absolute; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(59,125,255,0.1); top: -40px; left: -40px; pointer-events: none; }
.hero-line { position: absolute; width: 200px; height: 2px; background: linear-gradient(to right, var(--blue), transparent); bottom: 100px; left: 0; }

/* ── HERO CONTENT ── */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 4px;
  padding: 6px 14px; width: fit-content; margin-bottom: 28px;
}
.hero-tag-dot { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.hero-tag span { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: .16em; text-transform: uppercase; }
h1.hero-h1 { font-size: 58px; font-weight: 800; color: #fff; line-height: .96; letter-spacing: -.03em; }
h1.hero-h1 .accent { color: var(--blue); display: block; }
h1.hero-h1 .outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.22); display: block; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.42); line-height: 1.7; max-width: 380px; margin-top: 24px; font-weight: 300; position: relative; z-index: 1; }
.hero-btns { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; margin-top: 36px;
  display: flex; gap: 48px; position: relative; z-index: 1;
}
.hero-stat-n { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stat-l { font-size: 10px; color: rgba(255,255,255,0.28); letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }

/* ── BUTTONS ── */
.btn-w { background: #fff; color: var(--dark); padding: 13px 30px; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: opacity .2s; }
.btn-w:hover { opacity: .88; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.55); padding: 12px 24px; border-radius: 6px; font-size: 12px; text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn-primary { background: var(--blue); color: #fff; padding: 13px 28px; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .05em; text-transform: uppercase; transition: opacity .2s; }
.btn-primary:hover { opacity: .88; }

/* ── MARQUEE ── */
.band { background: #e8eef6; border-top: 1px solid #c5d3e8; border-bottom: 1px solid #c5d3e8; padding: 15px 0; overflow: hidden; white-space: nowrap; }
.band-inner { display: inline-flex; gap: 48px; animation: marquee 24s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.band-item { font-size: 11px; font-weight: 700; color: #1a3a6b; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
.band-item::after { content: '✦'; font-size: 8px; opacity: .5; }

/* ── STATS BAR ── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 20px 32px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n { font-size: 30px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.stat-l { font-size: 10px; color: var(--faint); margin-top: 3px; letter-spacing: .1em; text-transform: uppercase; }

/* ── SECTIONS ── */
section, .sec { padding: 32px 56px; }
section.alt, .sec.alt { background: var(--white); }
.sec-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow { font-size: 10px; color: var(--blue); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--blue); }
h2.sec-title { font-size: 42px; font-weight: 800; color: var(--dark); letter-spacing: -.03em; line-height: 1.0; margin-bottom: 28px; }
h2.sec-title em { font-style: normal; color: var(--blue); }

/* ── CLINICA BLOCKS ── */
.block { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-bottom: 20px; background: #fff; }
.block:last-child { margin-bottom: 0; }
.block-img-wrap { position: relative; overflow: hidden; min-height: 380px; }
.block-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.block-img-wrap:hover img { transform: scale(1.04); }
.block-label { position: absolute; bottom: 24px; left: 24px; background: rgba(10,14,26,0.88); backdrop-filter: blur(8px); border-radius: 8px; padding: 9px 16px; }
.block-label span { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .12em; text-transform: uppercase; }
.block-content { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.block-num { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
h3.block-h3 { font-size: 26px; font-weight: 800; color: var(--dark); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 16px; }
.block-p { font-size: 14px; color: var(--muted); line-height: 1.78; margin-bottom: 24px; font-weight: 300; }
.block-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 11px; color: var(--blue); background: var(--blue-l); padding: 5px 12px; border-radius: 6px; font-weight: 500; letter-spacing: .03em; }

/* ── SPEC GRID ── */
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; background: #e5e7eb; border-radius: 18px; overflow: hidden; }
.spec-cell { background: #fff; padding: 30px 24px; transition: background .15s; }
.spec-cell:hover { background: #f0f5ff; }
.spec-n { font-size: 36px; font-weight: 800; color: #eef0f6; line-height: 1; margin-bottom: 18px; }
.spec-name { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.spec-desc { font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ── STRIP ── */
.strip-wrap { padding: 0 56px 48px; }
.strip { background: var(--blue); border-radius: 24px; padding: 64px 64px; display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; overflow: hidden; }
.strip::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); top: -200px; right: -100px; pointer-events: none; }
.strip::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.07); top: -80px; right: 80px; pointer-events: none; }
.strip h3 { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 10px; }
.strip p { font-size: 14px; color: rgba(255,255,255,0.55); }
.strip-btn { background: #fff; color: var(--dark); padding: 16px 36px; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; position: relative; z-index: 1; transition: opacity .2s; }
.strip-btn:hover { opacity: .9; }

/* ── ÉQUIPE ── */
.eq-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.eq-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; position: relative; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.eq-card:hover { box-shadow: 0 8px 32px rgba(59,125,255,0.1); border-color: var(--blue-b); }
.eq-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .28s; }
.eq-card:hover::after { transform: scaleX(1); }
.eq-av { width: 48px; height: 48px; background: var(--dark); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.eq-name { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.eq-spec { font-size: 10px; color: var(--blue); background: var(--blue-l); padding: 3px 9px; border-radius: 5px; display: inline-block; letter-spacing: .05em; }
.eq-link { display: block; margin-top: 14px; font-size: 11px; color: var(--faint); text-decoration: none; letter-spacing: .04em; transition: color .2s; }
.eq-link:hover { color: var(--blue); }

/* ── BOOKING PANEL ── */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.panel-top { background: var(--dark); padding: 20px 26px; display: flex; align-items: center; gap: 10px; }
.panel-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.panel-t { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .16em; text-transform: uppercase; }
.panel-badge { margin-left: auto; font-size: 10px; color: rgba(255,255,255,0.28); }
.panel-body { padding: 24px 26px; }
.panel-sub { font-size: 10px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 500; }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-btn { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: border-color .15s, background .15s; }
.doc-btn:hover { background: var(--blue-l); border-color: var(--blue-b); }
.doc-name { font-size: 13px; color: var(--dark); font-weight: 500; display: block; }
.doc-spec { font-size: 10px; color: var(--faint); display: block; margin-top: 1px; }
.doc-arr { font-size: 18px; color: var(--blue); }
.panel-status { display: flex; align-items: center; gap: 7px; margin-top: 18px; justify-content: center; }
.sdot { width: 5px; height: 5px; background: var(--green); border-radius: 50%; }
.stext { font-size: 10px; color: var(--faint); letter-spacing: .08em; }

/* ── PRENOTA SECTION ── */
.prenota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.prenota-img { position: relative; border-radius: 20px; overflow: hidden; min-height: 500px; }
.prenota-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prenota-img-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,26,0.88) 0%, rgba(10,14,26,0.1) 55%); }
.prenota-caption { position: absolute; bottom: 36px; left: 36px; right: 36px; }
.prenota-caption h3 { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.1; }
.prenota-caption p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px 24px; }
.info-num { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.info-lbl { font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.info-val { font-size: 13px; color: var(--muted); line-height: 1.85; font-weight: 300; }
.info-val a { color: var(--blue); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

/* ── CAL IFRAME (doctor pages) ── */
.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); }
.cal-iframe { width: 100%; min-height: 700px; border: none; display: block; }

/* ── DOCTOR PAGE LAYOUT ── */
.doctor-main { max-width: 1200px; margin: 0 auto; padding: 0 56px 80px; display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.info-panel-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.info-panel-label { font-size: 10px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.info-panel-val { font-size: 14px; color: var(--dark); line-height: 1.7; }
.info-panel-val a { color: var(--blue); text-decoration: none; }
.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: 30px; font-weight: 700; color: var(--dark); letter-spacing: -.02em; margin-bottom: 28px; line-height: 1.1; }
.info-h2 em { font-style: normal; color: var(--blue); }
.other-docs { margin-top: 32px; }
.other-docs-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }

/* ── FOOTER ── */
footer {
  background: #1a3a6b; padding: 40px 56px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center;
}
.foot-brand { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 5px; letter-spacing: .02em; }
.foot-sub { font-size: 11px; color: rgba(255,255,255,0.2); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 10px; color: rgba(255,255,255,0.25); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.foot-links a:hover { color: rgba(255,255,255,0.6); }
.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; }

/* ── DOCUMENTI PAGE ── */

/* Hero specifico per documenti.html */
.hero-doc {
  background: var(--dark);
  padding: 80px 56px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 54px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.0;
  margin-bottom: 16px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
}
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 300;
}
.hero-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: .04em;
  white-space: nowrap;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Layout principale documenti */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 56px 80px;
}

/* Info bar */
.info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 28px;
}
.info-bar-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.info-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 10px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity .2s;
}
.info-bar-link:hover { opacity: .85; }
.info-bar-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* Drive embed wrapper */
.drive-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.drive-header {
  background: var(--dark);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.drive-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.drive-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.drive-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: .06em;
}
.drive-badge svg {
  width: 13px;
  height: 13px;
  stroke: rgba(255,255,255,0.3);
  fill: none;
  stroke-width: 1.6;
}
.drive-iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

/* Nota informativa */
.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--blue-l);
  border: 1px solid var(--blue-b);
  border-radius: 14px;
  padding: 18px 22px;
}
.note-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.note-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}


/* ── Card orari (homepage) ── */
.info-grid-orari-wrap {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
.orari-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.orari-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 4px;
}
.orari-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.orari-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.orari-slot { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.orari-slot-label {
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.orari-slot-time { font-size: 13px; color: var(--dark); line-height: 1.7; }
.orari-slot-time strong { font-weight: 600; }
.pasti-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pasto-item { background: var(--bg); border-radius: 10px; padding: 10px 6px; text-align: center; }
.pasto-ora { font-size: 16px; font-weight: 700; color: var(--dark); margin-top: 4px; }
.urp-rows { display: flex; flex-direction: column; gap: 8px; }
.urp-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg); border-radius: 10px; padding: 10px 14px;
}
.urp-label { font-size: 12px; color: var(--muted); }
.urp-val { font-size: 13px; font-weight: 600; color: var(--dark); }
.orari-note { padding-top: 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--faint); line-height: 1.6; }
/* ── RESPONSIVE ── */

/* ── Tablet (≤1100px) ── */
@media (max-width: 1100px) {

  /* Nav */
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; margin-right: 10px; padding: 8px 18px; font-size: 11px; }
  .hamburger { display: flex; }

  /* Hero homepage: testo sopra, immagine sotto */
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-left { padding: 36px 20px 0; justify-content: flex-start; gap: 0; }
  .hero-right { height: 300px; overflow: hidden; }
  .hero-badge { display: none !important; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge-wrap { flex-direction: row; flex-wrap: wrap; }

  /* Hero content spacing */
  h1.hero-h1 { font-size: 38px; }
  .hero-tag { margin-bottom: 16px; }
  .hero-sub { margin-top: 14px; }
  .hero-btns { margin-top: 20px; }
  .hero-bottom { margin-top: 24px; padding-bottom: 24px; }

  /* Hero pagine interne */
  .hero-page { padding: 48px 20px; }
  .hero-page-inner { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; gap: 24px; } /* ORDINE-MOBILE (10/10/2026): e' un flex, la regola a griglia non faceva nulla e testo e riquadro restavano affiancati */
  .hero-av { display: none; }
  .hero-name { font-size: 32px; }

  /* Sezioni */
  h2.sec-title { font-size: 28px; }
  section, .sec { padding: 40px 20px; }

  /* Clinica blocks */
  .block { grid-template-columns: 1fr; }
  .block-img-wrap { min-height: 220px; }
  .block-img-wrap { order: -1; } /* ORDINE-MOBILE (10/10/2026): in colonna unica la foto sta SEMPRE sopra il testo (prima alternava testo/foto e si trovavano due foto di fila) */
  .block-content { padding: 24px 20px; }

  /* Grids */
  .eq-grid { grid-template-columns: repeat(2,1fr); }
  .spec-grid { grid-template-columns: repeat(2,1fr); }
  .info-grid { grid-template-columns: repeat(2,1fr); }
  .info-grid-orari-wrap { grid-template-columns: repeat(2,1fr); }

  /* Booking */
  .prenota-grid { grid-template-columns: 1fr; }
  .prenota-img { min-height: 260px; }

  /* Strip CTA */
  .strip-wrap { padding: 0 20px 28px; }
  .strip { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; }
  .strip h3 { font-size: 22px; }
  .strip-btn { width: 100%; text-align: center; }

  /* Doctor page */
  .doctor-main { grid-template-columns: 1fr; padding: 0 20px 56px; }
  .main { display: flex; flex-direction: column; }
  .cal-wrap { position: static; order: -1; }

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

  /* Documenti */
  .hero-doc { padding: 48px 20px; }
  .hero-title { font-size: 36px; }
  .main { padding: 32px 20px 56px; }
  .info-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .drive-iframe { height: 380px; }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {

  /* Nav: logo img invariato, solo padding stretto */
  .nav { padding: 0 16px; height: 60px; }
  .nav-logo img { height: 38px; }
  .nav-cta { padding: 7px 13px; font-size: 10px; letter-spacing: .03em; margin-right: 8px; }
  body { padding-top: 60px; }
  html { scroll-padding-top: 60px; }

  /* Mobile menu leggermente più compatto */
  .mobile-menu { top: 60px; padding: 24px 16px; }

  /* Hero: testo sopra compatto, immagine sotto visibile con badge */
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-left { padding: 20px 16px 0; gap: 0; }
  h1.hero-h1 { font-size: 28px; }
  .hero-tag { margin-bottom: 12px; }
  .hero-sub { font-size: 13px; margin-top: 10px; }
  .hero-btns { margin-top: 14px; gap: 8px; }
  .btn-w, .btn-ghost { padding: 10px 16px; font-size: 11px; }
  .hero-bottom { margin-top: 12px; padding-top: 12px; padding-bottom: 14px; gap: 0; }
  .hero-bottom > div { flex: 1; text-align: center; }
  .hero-bottom > div:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.12); }
  .hero-stat-n { font-size: 22px; }
  .hero-stat-l { color: rgba(255,255,255,0.45); }

  /* Immagine hero: visibile, altezza ridotta, badge tenuto */
  .hero-right {
    height: auto;
    min-height: 0; /* FOTO-HERO (12/10/2026): il min-height:480px base la ingrandiva e tagliava l'ingresso, sembrava storta */
    aspect-ratio: 1.9 / 1; /* taglia l'ultimo scalino in basso */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: 12px 16px 0;
  }
  .hero-right img { object-position: 50% 0%; }
  .hero-badge { display: flex !important; padding: 10px 14px; background: rgba(10,14,26,0.93); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(59,125,255,0.4); }
  .hero-badge-n { font-size: 22px; }
  .hero-badge-l { font-size: 8px; color: rgba(255,255,255,0.65); }
  .hero-badge-accent { width: 20px; margin-top: 6px; }

  /* Sezioni */
  section, .sec { padding: 28px 16px; }
  h2.sec-title { font-size: 24px; margin-bottom: 20px; }

  /* Clinica blocks */
  .block { border-radius: 14px; }
  .block-img-wrap { min-height: 180px; }
  .block-content { padding: 18px 16px; }
  h3.block-h3 { font-size: 18px; }
  .block-p { font-size: 13px; }

  /* Grids: sempre 2 colonne su mobile tranne info-grid che scala bene */
  .spec-grid { grid-template-columns: repeat(2,1fr); border-radius: 12px; }
  .spec-cell { padding: 14px 12px; }
  .spec-n { font-size: 28px; margin-bottom: 10px; }
  .spec-name { font-size: 12px; }
  .spec-desc { font-size: 10px; }

  .eq-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .eq-card { padding: 16px 14px; border-radius: 12px; }
  .eq-av { width: 38px; height: 38px; font-size: 11px; margin-bottom: 10px; }
  .eq-name { font-size: 12px; }

  .info-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .info-card { padding: 16px 14px; border-radius: 12px; }
  .info-num { margin-bottom: 10px; }
  .info-lbl { font-size: 11px; margin-bottom: 6px; }
  .info-val { font-size: 11px; }

  /* Orari: 1 col su mobile (le card sono troppo strette a 2 col) */
  .info-grid-orari-wrap { grid-template-columns: 1fr; gap: 12px; }
  .orari-card { padding: 16px 14px; border-radius: 12px; }
  .orari-title { font-size: 14px; margin-bottom: 12px; }
  .orari-slots { grid-template-columns: 1fr; gap: 8px; }
  .orari-slot-time { font-size: 12px; }
  .pasti-grid { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .pasto-ora { font-size: 14px; }

  /* Strip CTA */
  .strip-wrap { padding: 0 16px 24px; }
  .strip { padding: 24px 20px; border-radius: 16px; gap: 16px; }
  .strip h3 { font-size: 20px; }
  .strip p { font-size: 12px; }
  .strip-btn { padding: 14px 20px; width: 100%; text-align: center; }

  /* Booking: esami radiologici come card pill separata evidenziata */
  .prenota-img { min-height: 200px; border-radius: 14px; }
  .prenota-caption { bottom: 20px; left: 20px; right: 20px; }
  .prenota-caption h3 { font-size: 18px; }
  .panel { border-radius: 14px; }
  .panel-body { padding: 16px 18px; }
  .doc-btn { padding: 11px 12px; border-radius: 8px; }
  .doc-name { font-size: 12px; }
  .doc-spec { font-size: 10px; }

  /* Footer */
  footer { padding: 24px 16px; gap: 16px; }
  .foot-links { gap: 14px; }
  .foot-links a { font-size: 9px; }
}

/* ── Extra small (≤360px) ── */
@media (max-width: 360px) {
  h1.hero-h1 { font-size: 24px; }
  h2.sec-title { font-size: 22px; }
  .eq-name { font-size: 11px; }
}

/* ── Prima sezione pagine interne: distanza dal nav ── */
.hero-page { margin-top: 0; }
body > .sec:first-of-type,
body > section:first-of-type,
body > .mobile-menu + .sec,
body > .mobile-menu + section,
.mobile-menu ~ .sec,
.mobile-menu ~ section { padding-top: 96px; }

/* Homepage: sezioni dopo hero+band — specificità 0,1,2 per battere body>section:first-of-type */
body .band ~ section, body .band ~ .sec                              { padding-top: 32px; }
@media (max-width: 1100px) { body .band ~ section, body .band ~ .sec { padding-top: 40px; } }
@media (max-width:  480px) { body .band ~ section, body .band ~ .sec { padding-top: 28px; } }

/* Titolo H1 visibile solo a motori di ricerca e lettori di schermo */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* FIX-OVERFLOW-MOBILE (09/10/2026): le colonne 1fr non scendevano sotto la larghezza del testo
   (email, orari, parole lunghe) e allargavano la pagina oltre lo schermo del telefono. */
.info-grid > *, .info-grid-orari-wrap > *, .orari-slots > *, .pasti-grid > *, .eq-grid > * { min-width: 0; }
.info-card, .orari-card, .pasto-item, .urp-row { overflow-wrap: break-word; }

/* SPAZIO-PRIMA-SEZIONE (09/10/2026): nelle pagine SENZA barra/banner del titolo (casadicura, struttura,
   equipe, urp, ilpaziente, infopratiche) la prima sezione seguiva il menu con 96px di padding + 68px del
   body: troppo distante. Il selettore si aggancia all'H1 nascosto che segue DIRETTAMENTE il menu, quindi
   non tocca le pagine con barra (chisiamo, recensioni, mission, documenti, cookie, privacy). */
.mobile-menu + h1.sr-only + section { padding-top: 40px; }
@media (max-width: 1100px) { .mobile-menu + h1.sr-only + section { padding-top: 36px; } }
@media (max-width:  480px) { .mobile-menu + h1.sr-only + section { padding-top: 28px; } }

/* GRIGLIE-MOBILE (10/10/2026): molte pagine scrivono 'grid-template-columns: repeat(3,1fr)' nell'HTML (inline), che vinceva sulle
   regole per telefono (2 colonne): le schede restavano larghe ~108px con testo di ~78px. Qui le colonne inline vengono
   riportate a 2 fino a 1100px e a 1 sui telefoni quando le schede hanno testo descrittivo. */
@media (max-width: 1100px) {
  .eq-grid[style*="grid-template-columns"], .spec-grid[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 480px) {
  .eq-grid:has(.eq-card p), .spec-grid[style*="grid-template-columns"] { grid-template-columns: minmax(0,1fr) !important; }
}
@media (max-width: 1100px) {
  .info-grid[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 480px) {
  .info-grid[style*="grid-template-columns"] { grid-template-columns: minmax(0,1fr) !important; }
}
/* SPAZIO-PAROLE (10/10/2026): Clash Display ha lo spazio stretto e il letter-spacing negativo dei titoli lo schiaccia ("Inostri servizi") */
.font-display, h1, h2, h3, .hero-name, .stat-n, .info-h2, [style*="Clash Display"] { word-spacing: .14em; }
/* BADGE-FOTO (10/10/2026): etichetta sovrapposta alle foto dei blocchi, ridondante col titolo accanto: nascosta (HTML invariato, per riattivarla basta togliere questa regola) */
.block-label { display: none !important; }
/* LEGGIBILITA (10/10/2026): numeri delle schede (1995, S.r.l., SSN) in grigio quasi bianco = invisibili; sottotitolo del riquadro blu troppo tenue */
.spec-n { color: var(--blue); }
.strip p { color: rgba(255,255,255,0.88); }

/* FOTO-HERO-UNIFORME (12/10/2026): stesso aspetto della foto hero anche tra 481 e 1100px (telefono con "sito desktop"/zoom) */
@media (max-width: 1100px) {
  .hero-right { height: auto; min-height: 0; aspect-ratio: 1.9 / 1; overflow: hidden; border-radius: 12px 12px 0 0; margin: 12px 16px 0; }
  .hero-right img { object-position: 50% 0%; }
  .hero-badge { display: flex !important; padding: 10px 14px; background: rgba(10,14,26,0.93); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(59,125,255,0.4); }
  .hero-badge-n { font-size: 22px; }
  .hero-badge-l { font-size: 8px; color: rgba(255,255,255,0.65); }
  .hero-badge-accent { width: 20px; margin-top: 6px; }
}
