:root {
  --ink: #1b2523;
  --muted: #5d6b68;
  --line: #e4dfd5;
  --bg: #fbf8f3;
  --card: #ffffff;
  --band: #f3eee5;
  --primary: #1d3b3a;
  --primary-2: #2a5553;
  --gold: #b8935a;
  --gold-2: #a37f48;
  --hl: #1f6f5c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .05), 0 8px 24px rgba(20, 30, 28, .06);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary-2); text-underline-offset: 3px; }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--primary); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3, .h3 { font-size: 1.25rem; }
h2 a, h3 a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding: 56px 0; }
.band { background: var(--band); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-bottom: .6em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-primary, .nav .btn { background: var(--primary); color: #fff; }
.btn-primary:hover, .nav .btn:hover { background: var(--primary-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: var(--serif); font-size: 1.35rem; }
.brand-light { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a, .nav-group > a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav > a:hover, .nav-group > a:hover, .nav a[aria-current] { color: var(--gold-2); }
.nav-group { position: relative; }
.mega { display: none; position: absolute; top: 100%; left: -220px; width: 760px; padding: 24px; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.mega::before { content: ''; position: absolute; inset: -20px 0 auto; height: 20px; }
.nav-group:hover .mega, .nav-group:focus-within .mega { display: grid; }
.mega a { display: block; padding: 3px 0; color: var(--ink); text-decoration: none; font-size: .92rem; }
.mega a:hover { color: var(--gold-2); }
.mega .mega-title { font-family: var(--serif); font-weight: 600; color: var(--primary); font-size: 1.02rem; margin-bottom: 4px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--primary); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(184, 147, 90, .35), transparent 60%), linear-gradient(160deg, #1d3b3a, #12282a 70%); color: #e9efed; }
.hero-inner { padding: 88px 0 80px; }
.hero-sm .hero-inner { padding: 64px 0; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 em { font-style: italic; color: #e3c999; display: block; font-weight: 500; font-size: .7em; margin-top: .25em; }
.hero .lead { color: #cfdad7; }
.hero .eyebrow { color: #e3c999; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; color: #cfdad7; font-size: .95rem; }
.hero-points strong { color: #fff; font-family: var(--serif); font-size: 1.25rem; margin-right: 4px; }

/* Page head & crumbs */
.page-head { padding: 28px 0 24px; }
.crumbs { padding-top: 22px; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 65ch; }

/* Grid & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d6cdbd; }
.card h3, .card .h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { color: var(--gold-2); font-weight: 600; font-size: .92rem; }
.mini-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.mini-prices div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.mini-prices dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mini-prices dd { margin: 2px 0 0; font-weight: 600; font-size: .92rem; }
.hl { color: var(--hl); font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip { padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--primary); font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--gold); color: var(--gold-2); }
.chips-sm { gap: 6px 16px; }
.chips-sm a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.chips-sm a:hover { color: var(--primary); text-decoration: underline; }
.region-block { padding: 26px 0; border-bottom: 1px solid var(--line); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.facts div { background: #fff; padding: 16px 18px; }
.facts span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts strong { font-size: 1rem; color: var(--primary); }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-bottom: 32px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sidebar { position: sticky; top: 94px; display: grid; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card p { font-size: .94rem; color: var(--muted); }
.side-link { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .94rem; }
.side-link span { color: var(--hl); font-weight: 600; white-space: nowrap; font-size: .86rem; }
.side-link:hover { color: var(--gold-2); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.price-table caption { text-align: left; padding: 16px 18px 6px; font-family: var(--serif); font-weight: 600; color: var(--primary); font-size: 1.1rem; }
.price-table th, .price-table td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--line); }
.price-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.price-table tbody th { font-weight: 600; }
.price-table tbody th a { color: var(--primary); text-decoration: none; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #e6f1ec; color: var(--hl); font-weight: 700; font-size: .85rem; }

/* FAQ */
.faq { padding: 40px 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--gold-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Clinic CTA */
.clinic-cta { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; margin: 32px 0 56px; padding: 40px; border-radius: 20px; color: #dfe8e5; background: radial-gradient(700px 300px at 100% 0, rgba(184, 147, 90, .35), transparent 60%), linear-gradient(140deg, #1d3b3a, #12282a); }
.clinic-cta h2 { color: #fff; }
.clinic-cta .eyebrow { color: #e3c999; }
.clinic-cta p { color: #c6d3cf; margin: 0; }
.clinic-cta-actions { display: grid; gap: 12px; }

/* Form */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #d5cec1; border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Footer */
.site-footer { background: #12282a; color: #b9c8c4; margin-top: 40px; padding-top: 56px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #b9c8c4; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #e3c999; }
.site-footer .brand { margin-bottom: 14px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 22px 0 30px; font-size: .82rem; color: #8ea19c; }
.footer-legal a, .site-footer p a { display: inline; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }

/* Responsive */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-group > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; display: flex; padding: 13px 22px; border-bottom: 0; color: #fff; }
  .mega { display: none !important; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .hero-inner { padding: 56px 0; }
  .grid-2, .grid-3, .two-col, .clinic-cta { grid-template-columns: 1fr; }
  .clinic-cta { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Evita che tabelle larghe allarghino le colonne della griglia */
.grid > *, .two-col > *, .article-grid > *, .clinic-cta > * { min-width: 0; }

/* Immagini */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14, 33, 34, .94) 0%, rgba(18, 40, 42, .82) 45%, rgba(18, 40, 42, .35) 100%); }
.hero-inner { position: relative; }

.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s ease; }
a.media-card:hover img { transform: scale(1.04); }
.media-body { padding: 20px 22px 24px; }

.split-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.split-head > * { min-width: 0; }
.head-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }

.figure { margin: 28px 0; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.panel-media { padding-top: 0; overflow: hidden; }
.panel-img { display: block; width: calc(100% + 60px); max-width: none; margin: 0 -30px 24px; height: 220px; object-fit: cover; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 48px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

@media (max-width: 1020px) {
  .split-head { grid-template-columns: 1fr; gap: 24px; }
  .head-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 33, 34, .9), rgba(18, 40, 42, .8)); }
}

/* Ottobre Rosa: prevenzione tumore al seno */
:root { --pink: #d6457a; --pink-2: #b8325f; --pink-bg: #fdf0f4; }
.btn-pink { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-pink:hover { background: var(--pink-2); border-color: var(--pink-2); }
.ribbon { color: var(--pink); flex: none; }
.pink-box { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin: 40px 0; padding: 32px; border-radius: 20px; background: var(--pink-bg); border: 1px solid #f4cdda; }
.pink-box h2 { color: #7a1f42; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.pink-box .eyebrow { color: var(--pink-2); }
.pink-box p:last-child { margin: 0; }
.pink-box-sm { padding: 24px; }
.hero-pink { background: linear-gradient(140deg, #7a1f42, #3b1426); color: #f6e3ea; }
.hero-pink .ribbon { color: #ff9fc0; margin-bottom: 8px; }
.hero-pink h1 { color: #fff; }
.hero-pink .lead { color: #f6dbe5; }
.hero-pink .eyebrow { color: #ffb3cc; }
.facts-pink strong { color: #7a1f42; }
.checks-pink li::before { background-color: var(--pink); }
.side-pink { background: var(--pink-bg); border-color: #f4cdda; }
.nav a.nav-pink { color: var(--pink-2); font-weight: 600; }
@media (max-width: 720px) {
  .pink-box { grid-template-columns: 1fr; text-align: left; padding: 24px; }
}

/* Barra superiore New City Clinic */
.topbar { background: #12282a; color: #d9e4e1; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar strong { color: #e4c792; }
.topbar a { color: #e4c792; text-decoration: none; white-space: nowrap; font-weight: 600; }
@media (max-width: 720px) { .topbar-inner { font-size: .78rem; } .topbar a { display: none; } }
