/* =========================================================================
   [NOME FARMACIA] — foglio di stile unico, mobile-first.
   Palette e misure sono variabili qui sotto: per cambiare il verde
   d'accento basta modificare --accent / --accent-strong / --accent-soft.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --surface: #f7f5f2;          /* grigio caldo chiaro */
  --surface-2: #efebe5;
  --line: #e3ddd5;
  --text: #2b2825;             /* contrasto 14:1 su bianco */
  --muted: #645d55;            /* contrasto 6:1 su bianco */
  --accent: #2f6b4f;           /* verde farmacia, bianco sopra = 6.4:1 */
  --accent-strong: #234f3b;
  --accent-soft: #e7f0ea;
  --warn-bg: #fff4c7;
  --danger: #a3332b;
  --focus: #1f6feb;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: 20px;
  --maxw: 1160px;
  --header-h: 64px;
  --section-y: 72px;
  --shadow: 0 1px 2px rgba(43, 40, 37, .04), 0 8px 24px rgba(43, 40, 37, .06);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 112px; --header-h: 76px; }
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 450; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section-head--row > div { max-width: 40rem; }
.visually-hidden { 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: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Segnaposto evidenziati (solo se showPlaceholders = true) */
.show-ph .ph { background: var(--warn-bg); outline: 1px dashed #c9a227; outline-offset: 1px; border-radius: 3px; padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* --- Pulsanti ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--light { background: #fff; color: var(--text); border-color: var(--line); }
.btn--light:hover { border-color: var(--accent); color: var(--accent); }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; gap: .75rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__name small { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .5rem .8rem; color: var(--text); text-decoration: none; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.call-btn { min-height: 42px; padding: .5rem 1rem; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav { border-top: 1px solid var(--line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.mobile-nav a { display: block; padding: .85rem 0; font-size: 1.15rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--surface-2); }
.mobile-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

@media (min-width: 960px) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: 32px var(--section-y); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero__title { font-family: var(--font-serif); font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.3; color: var(--accent-strong); margin-bottom: .7em; font-style: italic; }
.hero__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero .btn-row { margin-top: 1.75rem; }
.hero__status { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0 0; font-size: .95rem; color: var(--muted); }
.hero__status-icon { width: 16px; height: 16px; color: var(--accent); flex: none; margin-left: -3px; }
@media (min-width: 900px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .hero__media { aspect-ratio: 5 / 4; }
}

.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #b9b2a8; flex: none; }
.status-dot.is-open { background: #2f9e62; box-shadow: 0 0 0 4px rgba(47, 158, 98, .15); }

/* --- Card servizi -------------------------------------------------------- */

.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.card {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.card h3 { margin: .4rem 0 .2rem; }
.card p { color: var(--muted); margin: 0; }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.card__icon svg { width: 24px; height: 24px; }
.card__foot { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.card--link:hover { border-color: #cfc7bc; box-shadow: var(--shadow); }
.card--link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* tutta la card cliccabile */
.card--link a { text-decoration: none; color: inherit; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.tag svg { width: 16px; height: 16px; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 500; }

/* --- Storia (teaser) ----------------------------------------------------- */

.split { display: grid; gap: 2rem; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* --- Turni --------------------------------------------------------------- */

.turni {
  display: grid; gap: 1.75rem; padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #cfe0d5;
}
.turni__label { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--accent-strong); }
.turni__label svg { width: 22px; height: 22px; }
.turni__next { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; margin: .5rem 0 .35rem; }
.turni__next::first-letter, .footer-turno strong::first-letter, .cal__title::first-letter { text-transform: uppercase; }
.turni__when { color: var(--accent-strong); font-weight: 500; }
.turni__dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.turni__dates li { padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid #cfe0d5; font-size: .93rem; }
.turni__dates li.is-next { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.turni__dates-title { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }
@media (min-width: 900px) { .turni { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 3rem; } }

/* --- Vieni a trovarci ---------------------------------------------------- */

.visit { display: grid; gap: 2rem; }
.visit__map { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); min-height: 320px; border: 1px solid var(--line); }
.visit__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: .9rem; align-items: start; }
.info-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: .2rem; }
.info-list strong { display: block; font-weight: 600; }
.info-list a { color: var(--text); }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 500; width: 7.5em; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent-strong); font-weight: 600; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; } .visit__map { min-height: 480px; } }

/* --- Intestazione pagine interne ---------------------------------------- */

.page-head { padding-block: 48px 24px; }
.page-head .lead { margin-top: .5rem; }
@media (min-width: 768px) { .page-head { padding-block: 80px 32px; } }

/* --- Timeline (Chi siamo) ----------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-left: 48px; padding-bottom: 3.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.timeline__year { font-weight: 600; color: var(--accent); letter-spacing: .06em; font-size: .9rem; }
.timeline__photo { margin: 1.25rem 0 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 2; }
.timeline__photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline__photo--vintage img { filter: sepia(.35) saturate(.85); }
.timeline__photo figcaption { font-size: .85rem; color: var(--muted); padding: .5rem .2rem 0; background: #fff; }
@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline__item { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding-left: 0; align-items: center; }
  .timeline__item::before { left: 50%; transform: translateX(-50%); top: 50%; }
  .timeline__item:nth-child(even) .timeline__text { order: 2; }
  .timeline__photo { margin: 0; }
}

.team { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.team__member { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.team__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); margin-bottom: 1rem; }
.team__avatar svg { width: 28px; height: 28px; }
.team__member strong { display: block; font-weight: 600; }

/* --- Servizi ------------------------------------------------------------- */

.cat-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.cat-nav a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.cat-nav a:hover { border-color: var(--accent); color: var(--accent); }
.category { padding-block: 3rem; border-top: 1px solid var(--line); }
.category:first-of-type { border-top: 0; }
.category__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.75rem; }
.category__head h2 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.category__head p { margin: .2rem 0 0; color: var(--muted); }

.brands { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(4, 1fr); } }
.brand-tile {
  aspect-ratio: 3 / 2; display: grid; place-items: center; text-align: center; padding: 1rem;
  border: 1px dashed #cfc7bc; border-radius: var(--radius-sm); background: var(--surface);
}
.brand-tile strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.15rem; }
.brand-tile span { font-size: .85rem; color: var(--muted); }

/* --- Prenota ------------------------------------------------------------- */

.booking-layout { display: grid; gap: 2rem; align-items: start; }
@media (max-width: 999px) { .booking-layout.is-confirmed .booking-aside { display: none; } }
@media (min-width: 1000px) { .booking-layout { grid-template-columns: 1fr 340px; gap: 3rem; } .booking-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

.demo-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--warn-bg); color: #6b5300; border: 1px solid #ecd67f; font-size: .85rem; font-weight: 600;
}
.demo-badge[hidden] { display: none; }
.demo-badge svg { width: 16px; height: 16px; }

.form-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0 0 1rem; background: #fff; min-width: 0; }
@media (min-width: 640px) { .form-step { padding: 2rem; } }
.form-step legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; font-family: var(--font-serif); font-size: 1.35rem; }
.form-step legend + * { clear: both; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 .95rem var(--font-sans); flex: none; }
.form-step.is-disabled { opacity: .55; }

.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label, .field .label { font-weight: 500; font-size: .98rem; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid #d6cfc5; border-radius: var(--radius-sm); transition: border-color .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23645d55' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.75rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b4aca1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(47, 107, 79, .2); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .92rem; font-weight: 500; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: .9rem; }
.row-2 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.check { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--accent); }

/* Honeypot anti-spam: invisibile alle persone, non ai bot */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.service-info { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: .95rem; margin-top: -.25rem; }
.service-info[hidden] { display: none; }

/* Calendario */
.cal { max-width: 420px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal__title { display: inline-block; font-weight: 600; }
.cal__nav { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__nav svg { width: 18px; height: 18px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); padding-bottom: .25rem; }
.cal__day {
  aspect-ratio: 1; min-height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--accent-soft); color: var(--accent-strong); font: 600 .98rem var(--font-sans); cursor: pointer;
}
.cal__day:hover:not(:disabled) { border-color: var(--accent); }
.cal__day:disabled { background: transparent; color: #b9b2a8; font-weight: 400; cursor: default; }
.cal__day[aria-pressed="true"] { background: var(--accent); color: #fff; }
.cal__day.is-today:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1.5px var(--muted); }
.cal__legend { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

.slots { margin-top: 1.5rem; }
.slots__title { font-weight: 500; margin-bottom: .75rem; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span {
  display: grid; place-items: center; min-height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums;
}
.slot input:hover + span { border-color: var(--accent); }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.slots__empty { padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); }
.loading { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: #fbeceb; color: #7d231d; border: 1px solid #f0c9c5; margin-bottom: 1rem; }
.form-alert[hidden] { display: none; }
.submit-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .5rem; }

.aside-card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); }
.aside-card + .aside-card { margin-top: 1rem; }
.aside-card h2 { font-size: 1.3rem; }
.summary { margin: 0; display: grid; gap: .75rem; }
.summary div { display: grid; gap: .1rem; }
.summary dt { font-size: .85rem; color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }
.phone-cta { font-size: 1.05rem; }
.phone-cta a { font-weight: 600; white-space: nowrap; }

.confirm { text-align: left; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); border: 1px solid #cfe0d5; background: var(--accent-soft); }
.confirm[hidden] { display: none; }
.confirm__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 1.25rem; }
.confirm__icon svg { width: 28px; height: 28px; }
.confirm .summary { background: #fff; padding: 1.25rem; border-radius: var(--radius-sm); margin: 1.5rem 0; }
.confirm__demo { font-size: .95rem; color: var(--muted); }

/* --- Testo semplice (privacy) ------------------------------------------- */

.prose { max-width: 44rem; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .98rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 600 .82rem/1.4 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--text); }
.site-footer address { font-style: normal; }
.footer-hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.footer-hours dt { color: var(--muted); }
.footer-hours dd { margin: 0; }
.footer-turno { padding: 1rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.footer-turno strong { display: block; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* --- Pianta 3D ------------------------------------------------------------ */

.plan3d__note { font-size: .9rem; color: var(--muted); margin: 0; }
.plan3d__layout { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .plan3d__layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

.plan3d__viewer { position: relative; }
.plan3d__stage {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: clamp(380px, 40vw, 520px);
  background: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, var(--surface) 55%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 599px) {
  .plan3d__viewer { margin-inline: calc(var(--gutter) * -1); }
  .plan3d__stage { height: min(100vw, 440px); border-radius: 0; border-inline: 0; }
}
.plan3d__stage.is-dragging { cursor: grabbing; }
.plan3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plan3d__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: .95rem; }
.plan3d__stage.is-ready .plan3d__loading { display: none; }
.plan3d__stage--fallback { display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--muted); cursor: auto; }
.plan3d__stage--fallback svg { width: 20px; height: 20px; display: inline; vertical-align: -4px; }

.plan3d__pins { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.plan3d__pin {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: inline-flex; align-items: center; gap: .4rem; padding: 3px; padding-right: 3px;
  margin: 0; border: 0; border-radius: 999px; background: #fff; color: var(--text);
  font: 600 .8rem/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(43, 40, 37, .12), 0 4px 14px rgba(43, 40, 37, .14);
  translate: -50% -100%; will-change: transform;
  transition: background-color .2s, color .2s, scale .2s;
}
.plan3d__pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; translate: -50% 0; rotate: 45deg; border-radius: 2px; z-index: -1; }
.plan3d__pin-name { display: none; padding-right: .55rem; }
.plan3d__pin.is-active { background: var(--accent); color: #fff; scale: 1.08; z-index: 2; }
.plan3d__pin.is-active .plan3d__pin-name { display: inline; }
@media (hover: hover) { .plan3d__pin:hover { z-index: 3; } .plan3d__pin:hover .plan3d__pin-name { display: inline; } }
.plan3d__pin.is-active .plan3d__num { background: #fff; color: var(--accent); }
.plan3d__pin:hover:not(.is-active) { background: var(--accent-soft); }

.plan3d__num {
  display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: #fff; font: 600 .78rem/1 var(--font-sans);
}

.plan3d__controls {
  position: absolute; z-index: 2; left: 50%; bottom: 12px; translate: -50% 0;
  display: flex; gap: 2px; padding: 4px; max-width: calc(100% - 16px);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 16px rgba(43, 40, 37, .1);
}
.plan3d__ctl {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .3rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
  font: 500 .92rem var(--font-sans); white-space: nowrap;
}
.plan3d__ctl--text { padding: 0 .8rem; }
.plan3d__ctl:hover { background: var(--accent-soft); }
.plan3d__ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.plan3d__aside-title { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.plan3d__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 1000px) { .plan3d__list { flex-direction: column; flex-wrap: nowrap; gap: .35rem; } }
.plan3d__chip {
  display: inline-flex; align-items: center; gap: .55rem; width: 100%; min-height: 44px; padding: .35rem .9rem .35rem .4rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); text-align: left;
  font: 500 .95rem/1.25 var(--font-sans); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.plan3d__chip:hover { border-color: var(--accent); }
.plan3d__chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }

.plan3d__info { padding: 1.25rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.plan3d__info:empty { display: none; }
.plan3d__info h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; }
.plan3d__info p { color: var(--muted); }
.plan3d__hint { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .95rem; }
.plan3d__hint svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.plan3d__svc { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.plan3d__svc li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .5rem .5rem .75rem; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.plan3d__svc span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.plan3d__svc span svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* --- Movimento ridotto --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .plan3d, .visit__map { display: none; }
}
