/* Studio Odontoiatrico Bonica — Clinical Sapphire
   Scala tipografica 12/14/16/18/20 + titoli fluidi · spaziature su base 8px */
:root {
  /* Colori */
  --sapphire: #0b1b82;
  --sapphire-deep: #060f4f;
  --cobalt: #2438d8;
  --ice: #e8eeff;
  --frost: #f6f8fc;
  --white: #ffffff;
  --ink: #09103b;
  --body: #3c4a73;
  --muted: #5b6890;
  --line: rgba(11, 27, 130, 0.10);
  --line-strong: rgba(11, 27, 130, 0.20);
  --danger: #b42318;

  /* Tipografia */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-lead: 1.0625rem; /* 17 */
  --fs-h3: 1.1875rem;   /* 19 */
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.375rem);

  /* Spaziature (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: 112px;
  --gutter: 24px;

  /* Forme e ombre */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-1: 0 1px 2px rgba(11, 27, 130, 0.04), 0 4px 12px rgba(11, 27, 130, 0.04);
  --shadow-2: 0 2px 6px rgba(11, 27, 130, 0.05), 0 18px 44px rgba(11, 27, 130, 0.10);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --wrap: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
em.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; color: var(--cobalt); }
h1 em.accent, h2 em.accent { font-size: 1.1em; line-height: 1; }
::selection { background: var(--sapphire); color: #fff; }
:focus-visible { outline: 3px solid rgba(36, 56, 216, 0.4); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: var(--s2); background: var(--sapphire); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--radius); z-index: 100; }
.skip:focus { left: var(--s2); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 28px; border-radius: var(--radius);
  font: 700 var(--fs-sm)/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sapphire); color: #fff; box-shadow: 0 8px 20px rgba(11, 27, 130, 0.20); }
.btn-primary:hover { background: var(--cobalt); box-shadow: 0 10px 26px rgba(36, 56, 216, 0.28); }
.btn-outline { border-color: var(--line-strong); color: var(--sapphire); background: #fff; }
.btn-outline:hover { border-color: var(--sapphire); background: var(--ice); }
.btn-light { background: #fff; color: var(--sapphire); }
.btn-light:hover { background: var(--ice); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-xs); }

/* ---------- Etichette ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s3);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt);
}
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.eyebrow.center::after { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--sapphire);
  border-radius: 999px; padding: 8px 16px 8px 12px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill svg { width: 16px; height: 16px; color: var(--cobalt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; padding: var(--s1) 0; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a {
  position: relative; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--body);
  padding: var(--s2) 0; transition: color .2s var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--sapphire); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sapphire); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: var(--s5); }
.header-phone { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: 0.9375rem; color: var(--sapphire); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--cobalt); }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: var(--fs-xs); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--sapphire); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 88% -12%, #dde6ff 0%, rgba(221, 230, 255, 0) 62%), linear-gradient(180deg, #fff 0%, var(--frost) 100%);
  padding: var(--s8) 0 var(--s9);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.hero h1 { margin: var(--s5) 0; }
.hero-lead { font-size: 1.125rem; line-height: 1.7; color: var(--body); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.trust { list-style: none; margin: var(--s7) 0 0; padding: var(--s5) 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.trust li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: start; }
.trust-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--ice); color: var(--sapphire); display: grid; place-items: center; }
.trust-ic svg { width: 20px; height: 20px; }
.trust strong { font-size: var(--fs-sm); color: var(--ink); line-height: 1.35; margin-top: 1px; }
.trust span:not(.trust-ic) { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }

.hero-media { position: relative; }
.hero-frame { background: #fff; border-radius: 28px; padding: 10px; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.hero-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.hero-tag {
  position: absolute; left: -32px; bottom: 48px;
  display: flex; align-items: center; gap: var(--s3);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-2);
}
.hero-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); flex: none; }
.hero-tag strong { display: block; font-size: var(--fs-sm); color: var(--ink); line-height: 1.3; }
.hero-tag span { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Sezioni ---------- */
.section { padding: var(--section) 0; }
.section.tint { background: var(--frost); }
.section-head { max-width: 640px; margin: 0 auto var(--s8); text-align: center; }
.section-head h2 { margin-top: var(--s4); }
.section-head p { color: var(--body); margin: var(--s4) auto 0; font-size: var(--fs-lead); max-width: 34em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); align-items: center; }
.split-media { background: linear-gradient(145deg, var(--ice), #fff 70%); border-radius: 28px; padding: var(--s6); border: 1px solid var(--line); position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; mix-blend-mode: multiply; }
.media-note { position: absolute; right: var(--s5); bottom: var(--s5); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-1); }
.media-note strong { display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--sapphire); }
.media-note span { font-size: var(--fs-xs); color: var(--muted); }
.split-copy h2 { margin-top: var(--s4); }
.split-copy p { color: var(--body); margin-top: var(--s5); font-size: var(--fs-lead); }
.split-copy p + p { margin-top: var(--s4); }
.split-copy p strong { color: var(--sapphire); font-weight: 700; }
.checks { list-style: none; padding: 0; margin: var(--s6) 0 var(--s6); display: grid; gap: var(--s3); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 600; color: var(--ink); line-height: 1.5; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--cobalt); }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); max-width: 940px; margin: 0 auto; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease), transform .3s var(--ease); text-align: center; display: flex; flex-direction: column; }
.person:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.person-photo { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(180deg, var(--ice) 0%, #f4f7ff 100%); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo.cutout img { object-fit: contain; object-position: center bottom; padding-top: var(--s5); }
.person-badge { position: absolute; top: var(--s4); left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--sapphire); font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-1); }
.person-body { padding: var(--s6) var(--s6) var(--s6); display: flex; flex-direction: column; flex: 1; }
.person h3 { font-size: 1.375rem; }
.person .role { margin-top: var(--s2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.person p { margin: var(--s4) auto 0; color: var(--body); font-size: 0.9375rem; max-width: 32em; }
.person p { margin-bottom: var(--s5); }
.person .meta { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--sapphire); }
.person .meta svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }

/* Trattamenti */
.treat-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--s5); align-items: stretch; }
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff;
  background: linear-gradient(160deg, var(--sapphire) 0%, var(--sapphire-deep) 100%);
  padding: var(--s6); display: flex; flex-direction: column;
}
.feature::after { content: ""; position: absolute; width: 280px; height: 280px; right: -100px; top: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 56, 216, .55), rgba(36, 56, 216, 0) 70%); pointer-events: none; }
.feature .chip { align-self: flex-start; font-size: 0.6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c7d2ff; background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 999px; }
.feature h3 { color: #fff; font-size: 1.5rem; line-height: 1.25; margin-top: var(--s4); position: relative; z-index: 1; }
.feature p { color: rgba(225, 232, 255, .85); font-size: 0.9375rem; margin-top: var(--s3); position: relative; z-index: 1; }
.feature img { margin-top: var(--s5); border-radius: var(--radius-lg); width: 100%; flex: 1 1 0; height: 0; min-height: 240px; object-fit: cover; object-position: 50% 40%; }
.treat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.treat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5) var(--s5) 28px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.treat:hover { border-color: rgba(36, 56, 216, .35); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.treat .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ice); font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1; color: var(--sapphire); }
.treat h3 { margin-top: var(--s4); font-size: 1.0625rem; }
.treat p { color: var(--body); font-size: 0.9375rem; margin-top: var(--s2); }

/* Citazione */
.quote-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--sapphire-deep); }
.quote-band .media { position: relative; background: #d9d9db; min-height: 280px; }
.quote-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.quote-band .copy { padding: var(--s9) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: radial-gradient(700px 400px at 100% 0%, rgba(36, 56, 216, .55), rgba(36, 56, 216, 0) 70%); }
.quote-band .eyebrow { color: #aebbff; }
.quote-band blockquote { margin: var(--s5) 0 0; font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1.2; font-weight: 400; text-wrap: balance; }
.quote-band cite { display: block; margin-top: var(--s5); font-style: normal; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #aebbff; }

/* Contatti (home) */
.contact-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); max-width: 980px; margin: 0 auto; }
.contact-card > div { padding: var(--s6); display: flex; gap: var(--s4); align-items: flex-start; }
.contact-card > div + div { border-left: 1px solid var(--line); }
.ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ice); color: var(--sapphire); display: grid; place-items: center; flex: none; }
.ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--sapphire); margin-bottom: var(--s1); }
.contact-card p, .contact-card a { color: var(--body); font-size: 0.9375rem; }
.contact-card a.strong { color: var(--sapphire); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.contact-card a.link { display: inline-flex; align-items: center; min-height: 32px; margin-top: var(--s1); color: var(--cobalt); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s7); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--s3); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq details[open] { border-color: rgba(36, 56, 216, .3); box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: var(--s4) var(--s5); font-weight: 700; font-size: var(--fs-lead); line-height: 1.4; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1b82' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: #dbe4ff; }
.faq summary:hover { color: var(--sapphire); }
.faq .answer { padding: 0 var(--s5) var(--s5); color: var(--body); }
.faq .answer a { color: var(--sapphire); font-weight: 700; }
.faq-more { text-align: center; margin-top: var(--s7); color: var(--body); }
.faq-more a { color: var(--sapphire); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sapphire-deep); color: rgba(225, 232, 255, .75); padding: var(--s8) 0 var(--s6); font-size: var(--fs-sm); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); padding-bottom: var(--s6); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-top img { height: 52px; width: auto; }
.footer-top p { margin-top: var(--s4); max-width: 30em; line-height: 1.6; }
.site-footer h4 { margin: 0 0 var(--s3); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a { color: rgba(235, 240, 255, .92); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-top: var(--s5); font-size: var(--fs-xs); color: rgba(225, 232, 255, .6); }

/* Barra chiamata mobile */
.callbar { display: none; }

/* ---------- Pagina legale ---------- */
.legal { padding: var(--s8) 0 var(--section); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: var(--s4) 0 var(--s3); }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); }
.legal h2 { font-size: 1.25rem; margin: var(--s7) 0 var(--s3); color: var(--sapphire); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--body); margin-top: var(--s3); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--sapphire); font-weight: 600; }
.legal .todo { background: #fff7e0; border: 1px dashed #d9a400; border-radius: 6px; padding: 1px 6px; }
.legal .back { display: inline-flex; margin-top: var(--s7); }

/* ---------- Pagina Contatti ---------- */
.page-hero { padding: var(--s8) 0 var(--s7); background: radial-gradient(1000px 420px at 90% -20%, #dde6ff 0%, rgba(221, 230, 255, 0) 60%), linear-gradient(180deg, #fff 0%, var(--frost) 100%); }
.page-hero h1 { margin-top: var(--s4); }
.page-hero p { margin-top: var(--s4); color: var(--body); font-size: 1.125rem; max-width: 36em; }
.breadcrumb { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s5); }
.breadcrumb a { color: var(--sapphire); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.section.contact-main { padding-top: var(--s7); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-1); padding: var(--s7) 44px; }
.panel h2 { font-size: 1.625rem; line-height: 1.25; }
.panel > p.intro { color: var(--muted); margin-top: var(--s2); font-size: var(--fs-sm); }
.panel.compact { padding: var(--s6); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin-top: var(--s6); }
.field { display: grid; gap: var(--s2); align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); padding: 0; }
.field .req { color: var(--cobalt); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1b82' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 27, 130, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(36, 56, 216, 0.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .error { display: none; font-size: var(--fs-sm); color: var(--danger); }
.field.invalid .error { display: block; }
.field .hint { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s1); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--body); transition: all .2s var(--ease); }
.choice input:hover + span { border-color: var(--sapphire); }
.choice input:checked + span { background: var(--sapphire); border-color: var(--sapphire); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(36, 56, 216, 0.22); }
.consent { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--body); line-height: 1.55; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sapphire); cursor: pointer; }
.consent a { color: var(--sapphire); font-weight: 700; }
.hp { position: absolute !important; left: -9999px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.form-actions .note { font-size: var(--fs-sm); color: var(--muted); }
.form-status { grid-column: 1 / -1; display: none; border-radius: var(--radius-lg); padding: var(--s4) var(--s5); font-size: 0.9375rem; }
.form-status.ok { display: block; background: #ecfdf3; border: 1px solid #a7e3c1; color: #0f5132; }
.form-status.err { display: block; background: #fdecec; border: 1px solid #f1b0b0; color: #8a1c1c; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

.side { display: grid; gap: var(--s5); }
.info-list { display: grid; gap: var(--s5); }
.info-list > div { display: flex; gap: var(--s4); align-items: flex-start; }
.info-list h3 { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--sapphire); margin-bottom: var(--s1); }
.info-list p, .info-list a { color: var(--body); font-size: 0.9375rem; }
.info-list a.strong { color: var(--sapphire); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours td { padding: 6px 0; color: var(--body); border-bottom: 1px dashed var(--line-strong); }
.hours td:last-child { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }
.urgent { background: linear-gradient(160deg, var(--sapphire), var(--sapphire-deep)); color: #fff; border: 0; }
.urgent h2 { color: #fff; font-size: 1.25rem; }
.urgent p { color: rgba(225, 232, 255, .85); margin-top: var(--s2); font-size: 0.9375rem; }
.urgent .btn { margin-top: var(--s5); }

.map-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); aspect-ratio: 21 / 9; min-height: 360px; background-color: #eef2fb;
  background-image: linear-gradient(rgba(11, 27, 130, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 27, 130, .05) 1px, transparent 1px), radial-gradient(600px 300px at 30% 40%, #dde6ff, transparent 70%);
  background-size: 40px 40px, 40px 40px, auto; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s5); text-align: center; }
.map-consent .box { max-width: 440px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--s6); box-shadow: var(--shadow-2); }
.map-consent .pin { width: 52px; height: 52px; margin: 0 auto var(--s4); border-radius: 50%; background: var(--sapphire); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(11, 27, 130, .1); }
.map-consent .pin svg { width: 24px; height: 24px; }
.map-consent strong { display: block; color: var(--ink); font-size: var(--fs-lead); line-height: 1.4; }
.map-consent p { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s2); line-height: 1.55; }
.map-consent .row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s5); }
.map-consent .btn { min-height: 48px; padding: 0 20px; font-size: var(--fs-xs); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6) var(--s5); text-align: center; }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ice); font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1; color: var(--sapphire); }
.step h3 { font-size: 1.0625rem; margin-top: var(--s4); }
.step p, .step li { color: var(--body); font-size: 0.9375rem; }
.step p { margin-top: var(--s2); }
.step ul { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s1); }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet orizzontale */
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .nav { gap: var(--s5); }
  .treat-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s6); }
  .feature img { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; height: 100%; min-height: 280px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet verticale e mobile: una colonna, contenuti centrati */
@media (max-width: 900px) {
  :root { --header-h: 68px; --section: 88px; }
  .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(11, 27, 130, .10);
    padding: var(--s2) var(--gutter) var(--s5); display: none; text-align: center;
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--s4) 0; min-height: 52px; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }

  /* Hero */
  .hero { padding: var(--s7) 0 var(--s8); text-align: center; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
  .hero h1 { margin: var(--s5) auto; max-width: 14em; text-wrap: balance; }
  .hero-lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-media { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-frame img { aspect-ratio: 1 / 1; }
  .hero-tag { left: 50%; transform: translateX(-50%); bottom: -22px; white-space: nowrap; text-align: left; }
  .trust { max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
  .trust li { grid-template-columns: 1fr; justify-items: center; row-gap: var(--s2); }
  .trust-ic { grid-row: auto; }

  /* Studio */
  .split-copy { text-align: center; }
  .split-copy p { margin-left: auto; margin-right: auto; max-width: 36em; }
  .checks { justify-content: center; text-align: left; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  .split-media { order: 2; padding: var(--s5); max-width: 520px; width: 100%; margin: 0 auto; }
  .split-media img { aspect-ratio: 4 / 3; }

  .team { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .person-photo { aspect-ratio: 5 / 4; }

  .quote-band { grid-template-columns: minmax(0, 1fr); }
  .quote-band .media { min-height: 300px; }
  .quote-band .copy { padding: var(--s8) var(--gutter); text-align: center; align-items: center; }

  .contact-card { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .contact-card > div { flex-direction: column; align-items: center; text-align: center; gap: var(--s3); }
  .contact-card > div + div { border-left: 0; border-top: 1px solid var(--line); }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--s6); text-align: center; }
  .footer-top img { margin: 0 auto; }
  .footer-top p { margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* Contatti */
  .page-hero { text-align: center; padding: var(--s7) 0 var(--s6); }
  .page-hero p { margin-left: auto; margin-right: auto; }
  .panel > h2, .panel > p.intro { text-align: center; }
  .info-list > div { flex-direction: column; align-items: center; text-align: center; gap: var(--s3); }
  .info-list > div > div { width: 100%; }
  .urgent { text-align: center; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .map-wrap { aspect-ratio: auto; height: 440px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: var(--fs-base); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero { padding: var(--s6) 0 var(--s8); }
  .pill { font-size: 0.6875rem; letter-spacing: .06em; padding: 7px 14px 7px 10px; }
  .hero-lead { font-size: var(--fs-lead); }
  .hero-actions { flex-direction: column; align-items: stretch; gap: var(--s3); margin-top: var(--s5); }
  .hero-actions .btn { width: 100%; }
  .trust { gap: var(--s3); margin-top: var(--s6); padding-top: var(--s5); }
  .trust strong { font-size: var(--fs-xs); letter-spacing: .02em; }
  .trust span:not(.trust-ic) { display: none; }
  .trust-ic { width: 44px; height: 44px; }
  .hero-tag { padding: 12px 16px; }

  .section-head { margin-bottom: var(--s7); }
  .section-head p { font-size: var(--fs-base); }
  .split-copy p { font-size: var(--fs-base); }
  .split-copy .btn { width: 100%; }
  .checks li { font-size: 0.9375rem; }

  .person-body { padding: var(--s5); }
  .person h3 { font-size: 1.25rem; }

  .treat-list { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .treat { text-align: center; padding: var(--s5); }
  .feature { display: flex; padding: var(--s5); text-align: center; align-items: center; }
  .feature .chip { align-self: center; }
  .feature img { flex: none; width: 100%; height: 220px; min-height: 0; margin-top: var(--s5); grid-column: auto; grid-row: auto; }

  .quote-band .media { min-height: 260px; }
  .quote-band .copy { padding: var(--s7) var(--gutter) var(--s8); }
  .quote-band .eyebrow { font-size: 0.6875rem; letter-spacing: .12em; }

  .contact-card > div { padding: var(--s5); }
  .contact-actions { flex-direction: column; align-items: stretch; max-width: 520px; margin-left: auto; margin-right: auto; }
  .contact-actions .btn { width: 100%; }

  .faq summary { min-height: 60px; padding: var(--s4) var(--s4) var(--s4) 20px; font-size: var(--fs-base); }
  .faq .answer { padding: 0 20px 20px; font-size: 0.9375rem; }

  .site-footer { padding: var(--s7) 0 var(--s5); }

  /* Contatti */
  .panel { padding: var(--s6) 20px; }
  .panel.compact { padding: var(--s5) 20px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .form-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .form-actions .btn { width: 100%; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .urgent .btn { width: 100%; }
  .map-wrap { height: 420px; border-radius: var(--radius-lg); }
  .map-consent { padding: var(--s4); }
  .map-consent .box { padding: var(--s5) 20px; }
  .map-consent .row { flex-direction: column; }
  .map-consent .btn { width: 100%; }

  .legal { padding-top: var(--s6); }

  .callbar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--s3) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 27, 130, .06);
  }
  .callbar .btn { min-height: 50px; padding: 0 12px; }
}

/* Telefoni piccoli */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand img { height: 38px; }
  .pill { font-size: 0.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
