/* ==========================================================================
   Dott. Giuseppe Micci · Senologia e Radiologia — foglio di stile condiviso
   Palette: testo #15233a · secondario #4a5a72 · primario #1a5fa8
            teal #12867e · viola #5b53a8 · rosa #a3467a · azzurro #eef3fa
   ========================================================================== */

:root {
  --ink: #15233a;
  --muted: #4a5a72;
  --primary: #1a5fa8;
  --primary-hover: #124378;
  --sky: #eef3fa;
  --surface-alt: #fafbfd;
  --line: #e3eaf4;
  --line-strong: #dbe4f1;
  --teal: #12867e;
  --violet: #5b53a8;
  --rose: #a3467a;
  --radius: 20px;
  --radius-lg: 24px;
  --container: 1120px;
  --mobile-bar-h: 0px;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid #8fb4e3; outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

.page { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { white-space: nowrap; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.brand__tag { white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--primary); }

.main-nav { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.navlink { padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink); }
.navlink:hover { background: var(--sky); color: var(--primary); text-decoration: none; }
.header-ctas { display: flex; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--primary); border-color: #c9d8ec; }
.btn--ghost:hover { background: var(--sky); color: var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--sky); color: var(--primary-hover); }
.btn--outline-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero__main { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.hero__photo {
  width: 176px; height: 176px; border-radius: 50%; object-fit: cover; background: var(--sky);
  border: 5px solid #fff; box-shadow: 0 14px 36px rgba(21, 35, 58, .16);
}
.badge {
  align-self: flex-start; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px;
}
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 4.3vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.hero h1 .h1-name { display: block; white-space: nowrap; }
.hero h1 .h1-sub { display: block; margin-top: 8px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -.01em; color: var(--primary); }
.hero__role { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.hero__role span { display: block; font-weight: 600; color: var(--muted); }
.hero__intro { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.hero__intro h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.hero__intro p { margin: 0; font-size: 17px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.hero__intro strong { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.cta-note { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.trust { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; flex-shrink: 0; }

.hero__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-card {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 8px; color: var(--ink);
}
a.mini-card:hover { border-color: var(--primary); text-decoration: none; color: var(--ink); }
.mini-card strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mini-card span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mini-card--solid { background: var(--primary); border-color: var(--primary); color: #fff; justify-content: flex-end; }
.mini-card--solid span { color: rgba(255,255,255,.9); }
.mini-card .eyebrow { font-size: 12px; }
.mini-card--solid .eyebrow { color: rgba(255,255,255,.85); }
.mini-card--solid a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.accent-bar { width: 12px; height: 36px; border-radius: 8px; background: var(--primary); }

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.section--alt { background: var(--surface-alt); }
.section--sky { background: var(--sky); border-top: 0; }
.section__inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.section__head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--primary); }
.section h2 { margin: 0; font-weight: 800; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.lead { margin: 0; font-size: 17px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.lead strong { color: var(--ink); }

/* Curriculum */
.cv-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.cv-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; line-height: 1.5; }
.cv-list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 8px; }

/* Cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card-link {
  background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px;
  color: var(--ink); border: 1px solid var(--line-strong);
}
.card-link:hover { border-color: var(--primary); text-decoration: none; color: var(--ink); }
.card-link__bar { width: 8px; height: 26px; border-radius: 999px; background: var(--primary); }
.card-link strong { font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.card-link__text { font-size: 15px; color: var(--muted); font-weight: 500; line-height: 1.55; }
.card-link__more { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--primary); }

/* Tariffe */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.price-card { --c: var(--primary); --bg: var(--sky); --ln: #c9d8ec; background: var(--bg); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.price-card--teal { --c: var(--teal); --bg: #e9f4f3; --ln: #bfdcd9; }
.price-card--violet { --c: var(--violet); --bg: #f0eff9; --ln: #cfccea; }
.price-card--rose { --c: var(--rose); --bg: #f8eef4; --ln: #e7cede; }
.price-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.price-card__head .accent-bar { background: var(--c); flex-shrink: 0; }
.price-card h3 { margin: 0; font-weight: 800; font-size: 22px; letter-spacing: -.015em; line-height: 1.1; }
.price-card__sub { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ln); }
.price-list li:last-child { border-bottom: 0; }
.price-list .service { font-size: 15px; font-weight: 600; line-height: 1.35; }
.price-list .note { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.price { background: #fff; color: var(--c); border: 1px solid var(--ln); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.help-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 22px 26px;
}
.help-box p { margin: 0; font-size: 16px; font-weight: 600; max-width: 620px; }
.help-box p span { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* Prenotazioni */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 18px 20px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); border: 1px solid var(--line-strong); min-width: 0;
}
.contact-card:hover { border-color: var(--primary); text-decoration: none; color: var(--ink); }
.contact-card--solid { background: var(--primary); color: #fff; border-color: var(--primary); }
.contact-card--solid:hover { background: var(--primary-hover); color: #fff; }
.contact-card__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.contact-card--solid .contact-card__icon { background: rgba(255,255,255,.18); }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--primary); }
.contact-card--solid .contact-card__label { color: rgba(255,255,255,.85); }
.contact-card__value { font-weight: 800; font-size: 20px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card__value--sm { font-size: 17px; }
.contact-card__meta { font-size: 14px; color: var(--muted); }
.contact-card--solid .contact-card__meta { color: rgba(255,255,255,.95); }
.contact-card__go { margin-top: auto; font-size: 14px; font-weight: 800; }

/* Dove */
.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: stretch; padding-top: 64px; padding-bottom: 64px; }
.where__text { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.where__address { margin: 0; font-size: 18px; font-weight: 600; font-style: normal; }
.map {
  position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #e4ecf7 0%, #f3f6fb 100%);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { display: flex; flex-direction: column; gap: 12px; align-items: center; max-width: 340px; }
.map__placeholder p { margin: 0; font-size: 14px; color: var(--muted); }

/* CTA band (pagine secondarie) */
.cta-band { color: #fff; background: var(--primary); }
.cta-band__inner { padding-top: 52px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 16px; }
.cta-band h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.cta-band p { margin: 0; font-size: 16px; opacity: .94; font-weight: 500; line-height: 1.6; max-width: 720px; }
.cta-band p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Pagine di approfondimento: righe tariffe e note */
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.row .price { --c: var(--primary); --ln: #c9d8ec; }
.note { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.back-link { font-size: 14px; font-weight: 700; align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; margin-top: auto; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.site-footer h2 { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.7); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer address { font-style: normal; line-height: 1.6; opacity: .9; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 10px; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.site-footer__bottom span { opacity: .75; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- Barra CTA mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Banner consenso ---------- */
.cc {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + var(--mobile-bar-h));
  max-width: 560px; margin-left: auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 18px 48px rgba(21,35,58,.18);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.5;
}
.cc[hidden] { display: none; }
.cc p { margin: 0; color: var(--muted); }
.cc strong { color: var(--ink); }
.cc__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc__actions .btn { flex: 1 1 140px; padding: 12px 18px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { display: none; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  :root { --mobile-bar-h: 72px; }
  .header-ctas { display: none; }
  .hero__inner { padding-top: 40px; padding-bottom: 44px; }
  .hero__photo { width: 132px; height: 132px; }
  .hero h1 .h1-name { white-space: normal; }
  .section__inner, .where { padding-top: 48px; padding-bottom: 48px; }
  .price-card { padding: 22px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(21,35,58,.08);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: 15px; }
}
@media (max-width: 420px) {
  .hero__cards { grid-template-columns: 1fr; }
  .price-list li { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
