/* ==========================================================================
   Studio Podologico Dr. Simone Colonna — foglio di stile
   ========================================================================== */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #0a2654;
  --brand-dark: #061a3b;
  --brand-ink: #071d42;
  --brand-soft: #e5eeec;
  --brand-softer: #f3f7f6;
  --accent: #7b9e93;
  --ink: #0f1a2e;
  --text: #334055;
  --muted: #5d6878;
  --line: #dde4ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --danger: #b3261e;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 38, 84, .06), 0 2px 8px rgba(10, 38, 84, .05);
  --shadow: 0 10px 30px -12px rgba(10, 38, 84, .25);
  --container: 1180px;
  --header-h: 76px;
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.serif { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -.01em; color: var(--brand); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 38, 84, .8); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-ink); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--wa { background: #25d366; color: #073b1f; }
.btn--wa:hover { background: #1ebe5b; color: #052e18; transform: translateY(-1px); }
.icon-bubble--wa { background: #dcf8e6; color: #128c4b; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--brand-ink); color: #c9d4e4; font-size: .875rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--accent); }

.header { position: sticky; top: 0; z-index: 50; isolation: isolate; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
/* il blur sta su uno pseudo-elemento: sull'header renderebbe il menu mobile (position: fixed) relativo all'header */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.nav-open .header::before { background: #fff; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(10, 38, 84,.4); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; line-height: 0; }
.logo__svg { display: block; height: 56px; width: auto; aspect-ratio: 352 / 100; overflow: visible; }
@media (max-width: 1020px) { .logo__svg { height: 44px; } }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-softer); }
.nav__link svg { width: 16px; height: 16px; transition: transform .2s; }
.nav__item--has-sub { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; width: 560px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__item--has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item--has-sub:hover > .nav__link svg, .nav__item--has-sub.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav__sub a span { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--brand-softer); color: var(--brand); }
.nav__sub li:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav__cta { margin-left: 10px; min-height: 44px; padding: 10px 20px; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .topbar { display: none; }
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-toggle .i-close { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-open .nav-toggle .i-menu { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0; background: #fff; overflow-y: auto; padding: 16px 20px 40px; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 12px; border-radius: 12px; font-size: 1.08rem; }
  .nav__sub { position: static; translate: none; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; grid-template-columns: 1fr; display: none; }
  .nav__item--has-sub:hover .nav__sub { display: none; }
  .nav__item--has-sub.is-open .nav__sub { display: grid; }
  .nav__sub li:last-child { border: 0; margin: 0; padding: 0; }
  .nav__cta { margin: 16px 0 0; width: 100%; min-height: 52px; }
}

/* ---------- Hero home (foto a tutta larghezza) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: min(78vh, 640px); background: var(--brand-softer); }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.35) 65%, rgba(255,255,255,0) 85%); }
.hero .container { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero__content { max-width: 560px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; color: var(--text); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--ink); font-weight: 600; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero::after { background: rgba(255,255,255,.88); }
  .hero__bg { object-position: 70% 50%; }
}


.icon-bubble { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icon-bubble svg { width: 24px; height: 24px; }

/* ---------- Strip punti di forza ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature h3 { margin: 16px 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; font-size: .96rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__img { width: 100%; border-radius: 24px; aspect-ratio: 5 / 4; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--brand); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: -1; } }

/* ---------- Card griglia ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card h3 { margin: 18px 0 8px; }
.card p { margin: 0; font-size: .97rem; color: var(--muted); line-height: 1.6; }
.card__more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); font-size: .95rem; }
.card__more svg { width: 18px; height: 18px; transition: transform .2s; }
a.card:hover .card__more svg { transform: translateX(4px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Chip list servizi ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink); }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 64px); background: var(--brand-ink); color: #d3dcea; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../img/piedi-crema.jpg") center / cover; opacity: .14; mix-blend-mode: luminosity; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Page hero (interne) ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-softer), #fff); padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero .lead { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b8c2cc; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Articolo + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand); }
.prose > p:first-child { font-size: 1.15rem; color: var(--ink); }
.prose .note, .np-note { background: var(--brand-softer); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 12px 12px 0; font-size: .97rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--bg-alt); }
.table-wrap { overflow-x: auto; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.side-card p { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.side-card--brand { background: var(--brand-ink); border-color: var(--brand-ink); color: #c9d4e4; }
.side-card--brand h3 { color: #fff; }
.side-card--brand p { color: #c9d4e4; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; }
.side-links li:last-child a { border: 0; }
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--brand); }
.side-links svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin: 1.4em 0; }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 20px; height: 20px; flex: none; color: var(--brand); transition: transform .2s; }
.accordion[open] summary svg { transform: rotate(180deg); }
.accordion__body { padding: 0 24px 12px; font-size: .97rem; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid > div:last-child { order: -1; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-item h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.info-item p { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.5; }
.info-item a { color: var(--ink); text-decoration: none; }
.info-item a:hover { color: var(--brand); }
.info-item .icon-bubble { flex: none; }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }
.field legend { padding: 0; }
.field label, .field legend { font-weight: 650; font-size: .93rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-alt);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(10, 38, 84,.14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field__error { color: var(--danger); font-size: .86rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-alt); font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.radio input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; line-height: 1.5; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form__footer small { color: var(--muted); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { grid-column: 1 / -1; padding: 16px 18px; border-radius: 12px; font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert--ok { background: var(--brand-soft); color: var(--brand-dark); }
.alert--err { background: #fdecea; color: var(--danger); }
.alert[hidden] { display: none; }

.map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--brand-softer); aspect-ratio: 4 / 3; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px;
  background: repeating-linear-gradient(45deg, var(--brand-softer) 0 14px, #fff 14px 28px); }
.map__placeholder p { font-size: .86rem; color: var(--muted); margin: 0; max-width: 34ch; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer { background: #06173a; color: #a3b2c8; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .96rem; }
.footer a { color: #dde5f0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .logo { margin-bottom: 18px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Barra mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); padding-bottom: calc(8px + env(safe-area-inset-bottom) * .3); }
  .mobile-bar .btn { min-height: 46px; padding: 8px 10px; font-size: .9rem; gap: 6px; }
  .mobile-bar .btn svg { width: 18px; height: 18px; }
  .wa-float { display: none !important; }
  body { padding-bottom: 84px; }
  .nav-open .mobile-bar { display: none; }
}


/* ---------- WhatsApp flottante (desktop/tablet) ---------- */
.wa-float { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 17px; border-radius: 999px; background: #25d366; color: #073b1f; text-decoration: none; font-weight: 700; box-shadow: 0 12px 28px -10px rgba(7, 59, 31, .55); transition: transform .2s, background .2s; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease; }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5b; color: #052e18; transform: translateY(-2px); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 220px; }

/* ---------- Box prenotazione online ---------- */
.book-card { display: grid; gap: 18px; padding: clamp(24px, 4vw, 34px); margin-bottom: 20px; border-radius: 24px; background: var(--brand-ink); color: #c9d4e4; }
.book-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.book-card p { margin: 0; }

/* ---------- Animazioni ingresso ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound .big { font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 16vw, 9rem); color: var(--brand); line-height: 1; margin-bottom: 12px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Avviso trasferimento (home) ---------- */
.notice { padding: clamp(20px, 3vw, 32px) 0 0; background: var(--brand-softer); }
.notice__card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(14px, 2vw, 18px); background: #fff; border: 2px solid var(--accent); border-radius: 26px; box-shadow: var(--shadow); }
.notice__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.notice__body { padding: 8px clamp(4px, 2vw, 24px) 8px 0; }
.notice__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 14px; border-radius: 999px; background: var(--accent); color: var(--brand-ink); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.notice__tag svg { width: 16px; height: 16px; }
.notice h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.notice p { font-size: 1.08rem; color: var(--ink); }
.notice__small { color: var(--muted) !important; font-size: .98rem !important; }
.notice .btn-row { margin-top: 8px; }
@media (max-width: 820px) {
  .notice__card { grid-template-columns: 1fr; }
  .notice__body { padding: 0 6px 8px; }
}
.notice__small a { white-space: nowrap; }
.map--wide { margin-top: 20px; aspect-ratio: 21 / 7; border-radius: 22px; }
@media (max-width: 820px) { .map--wide { aspect-ratio: 4 / 3; } }

/* ---------- Banner cookie ---------- */
.cookie-banner { position: fixed; z-index: 60; right: 22px; bottom: 22px; width: min(440px, calc(100% - 44px)); padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(10, 38, 84, .45); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin: 0 32px 8px 0; }
.cookie-banner p { font-size: .92rem; line-height: 1.55; margin: 0 0 16px; color: var(--text); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__actions .btn { min-height: 46px; }
.cookie-banner__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.cookie-banner__close:hover { background: var(--bg-alt); color: var(--ink); }
.cookie-banner__close svg { width: 20px; height: 20px; }
.has-cookie-banner .wa-float { display: none; }
@media (max-width: 760px) {
  .cookie-banner { left: 12px; right: 12px; width: auto; bottom: 84px; padding: 18px; }
}
.linklike { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer .linklike { color: #dde5f0; text-decoration: none; }
.footer .linklike:hover { color: #fff; text-decoration: underline; }
.prose .linklike { color: var(--brand); }

/* banner cookie: preferenze per categoria */
.cookie-banner.is-expanded { width: min(480px, calc(100% - 44px)); }
.cookie-prefs { display: grid; gap: 8px; margin: 0 0 16px; max-height: 46vh; overflow-y: auto; }
.cookie-prefs[hidden] { display: none; }
.cookie-pref { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); font-size: .88rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.cookie-pref strong { display: block; color: var(--ink); font-size: .93rem; }
.cookie-pref input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.cookie-banner__actions { grid-template-columns: 1fr 1fr; }
.cookie-banner__actions .btn--primary { grid-column: 1 / -1; }
@media (max-width: 760px) { .cookie-banner.is-expanded { width: auto; } }
.cookie-banner__actions .btn[hidden] { display: none; }

/* ---------- Patologia "nuovo formato" (5 passaggi) ---------- */
.np__wrap { position: relative; max-width: 880px; display: grid; gap: 20px; }
.np__wrap::before { content: ""; position: absolute; left: 63px; top: 40px; bottom: 120px; width: 2px; background: var(--accent); opacity: .55; }
.np-step { position: relative; padding: 28px 30px 28px 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.np-step h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 4px 0 14px; }
.np-step p { margin: 0; }
.np-step__n { position: absolute; left: 24px; top: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px #fff; }
.np-step--domanda { background: var(--brand-softer); border-color: transparent; }
.np-step--domanda h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin: 0; }
.np-step--domanda .np-step__n { box-shadow: 0 0 0 6px var(--brand-softer); }
.np-tag { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .88rem; }
.np-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.np-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.np-checks svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.np-checks small { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }
.np-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.np-card { padding: 22px 16px; border-radius: 14px; background: var(--bg-alt); text-align: center; }
.np-card .icon-bubble { margin: 0 auto 12px; width: 56px; height: 56px; }
.np-card .icon-bubble svg { width: 28px; height: 28px; }
.np-card h3 { font-size: 1rem; margin: 0; line-height: 1.35; }
.np-card p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.np-step--cta { background: var(--brand-ink); border-color: var(--brand-ink); color: #c9d4e4; }
.np-step--cta h2 { color: #fff; margin-bottom: 20px; }
.np-step--cta .np-step__n { background: var(--accent); color: var(--brand-ink); box-shadow: 0 0 0 6px var(--brand-ink); }
.np-note { margin-top: 8px; }
@media (max-width: 600px) {
  .np__wrap::before { left: 59px; }
  .np-step { padding: 72px 20px 22px; }
  .np-step__n { left: 20px; top: 20px; }
  .np-cards { grid-template-columns: 1fr; }
  .np-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; }
  .np-card .icon-bubble { margin: 0; flex: none; }
}

/* focus visibile anche sugli sfondi scuri */
.topbar :focus-visible, .footer :focus-visible, .cta-band :focus-visible, .book-card :focus-visible,
.side-card--brand :focus-visible, .np-step--cta :focus-visible { outline-color: #fff; }
