/* 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;
  --wa: #1fae55;
  --wa-dark: #178a43;

  /* 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 svg use, .wa-float svg use { fill: currentColor; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(18, 140, 74, 0.25); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa svg, .btn-wa-outline svg { width: 20px; height: 20px; }
.btn-wa-outline svg { color: var(--wa); }

/* ---------- 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; }

/* ---------- 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-tag { position: absolute; left: -28px; bottom: 48px; 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); }
.hero-slides { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--frost); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1); }
.hero-slides img.is-active { opacity: 1; }
.slide-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px 6px; border-radius: 999px; background: rgba(9, 16, 59, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.slide-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slide-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background-color .3s, transform .3s; }
.slide-dots button.is-active::before { background: #fff; transform: scale(1.25); }

/* ---------- 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-stage { position: relative; aspect-ratio: 4 / 5; }
.split-stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1); }
.split-stage img.is-active { opacity: 1; }
.split-stage img.contain { object-fit: contain; mix-blend-mode: multiply; }
.split-stage img.cover { object-fit: cover; border-radius: 16px; }
.split-stage .slide-dots { left: 16px; bottom: 16px; transform: none; }
[data-note] { display: none; }
[data-note].is-active { display: flex; animation: note-in .6s cubic-bezier(.22, 1, .36, 1); }
.media-note[data-note].is-active { display: block; }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.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; }

.media-note { position: absolute; right: var(--s5); bottom: var(--s5); max-width: min(300px, calc(100% - 2 * var(--s5))); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-1); text-align: left; }
.media-note strong { display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--sapphire); }
.media-note ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-sm); line-height: 1.4; color: var(--body); }
.media-note li { padding-left: 14px; position: relative; }
.media-note li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.treat-wide { grid-column: 1 / -1; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 2px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.hours-table th { text-align: left; font-weight: 500; color: var(--body); padding: 3px 16px 3px 0; }
.hours-table td { text-align: right; color: var(--ink); font-weight: 600; padding: 3px 0; white-space: nowrap; }

/* Team (anteprima home) */
.team-grid { --cols: 5; --gap: var(--s4); max-width: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.team-grid .member { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 10px 10px var(--s5); box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.member:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: rgba(36, 56, 216, .25); }
.member-photo, .profile-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, var(--ice) 0%, #f3f6ff 100%); }
.member-photo img, .profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.member-name { margin-top: var(--s4); padding: 0 var(--s2); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.member-role { margin-top: var(--s1); padding: 0 var(--s1); font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); text-wrap: balance; }
.member-name { text-wrap: balance; }

/* Hover professionisti: il pannello sale dal basso e copre la foto (effetto "wipe") */
.member-photo { isolation: isolate; transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .55s var(--wipe-ease); }
.member { --wipe-ease: cubic-bezier(.22, 1, .36, 1); }
.member-photo img { transition: transform .72s var(--wipe-ease), filter .72s var(--wipe-ease); }
.member-hover {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 20px 18px; text-align: left; color: #fff;
  background: radial-gradient(120% 70% at 85% 0%, rgba(36, 56, 216, .55), transparent 60%), linear-gradient(165deg, var(--sapphire) 0%, var(--sapphire-deep) 100%);
  clip-path: inset(100% 0 0 0); filter: blur(1.5px); transform: scale(1.025); transform-origin: 50% 100%;
  transition: clip-path .72s var(--wipe-ease), filter .72s var(--wipe-ease), transform .72s var(--wipe-ease);
}
.mh-role { font-size: 0.6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #aebbff; }
.mh-name { font-size: 1.125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.mh-bio { font-size: 0.875rem; line-height: 1.5; color: rgba(225, 232, 255, .88); }
.mh-cred { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 0.75rem; font-weight: 600; color: #fff; }
.mh-more { margin-top: 6px; font-size: 0.8125rem; font-weight: 700; color: #fff; }
.member-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .3s var(--wipe-ease);
  background: radial-gradient(circle 180px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 48%, transparent 78%); }
.member.is-hover .member-hover, .member:focus-visible .member-hover { clip-path: inset(0); filter: blur(0); transform: scale(1); }
.member.is-hover .member-photo img, .member:focus-visible .member-photo img { transform: scale(1.025); filter: brightness(.86) saturate(.88); }
.member.is-hover .member-glare { opacity: .16; }
.member.is-hover .member-photo { transition-duration: .22s; }
/* Pannello adattato alla larghezza della scheda (5 colonne su desktop) */
.member-photo { container-type: inline-size; }
@container (max-width: 250px) {
  .member-hover { padding: 14px 14px 16px; gap: 4px; }
  .mh-role { font-size: 0.625rem; letter-spacing: .08em; }
  .mh-name { font-size: 1rem; }
  .mh-bio { font-size: 0.8125rem; line-height: 1.45; }
  .mh-cred { font-size: 0.6875rem; padding-top: 8px; }
  .mh-more { font-size: 0.75rem; margin-top: 2px; }
}
@container (max-width: 205px) {
  .mh-cred { display: none; }
}
@media (hover: none) { .member-hover, .member-glare { display: none; } }
@media (prefers-reduced-motion: reduce) { .member-photo { transform: none; } .member-glare { display: none; } }
.section-cta { display: flex; justify-content: center; margin-top: var(--s7); }

/* Pagina Il Team */
.section.profiles-section { padding-top: var(--s6); }
.profiles { display: grid; gap: var(--s6); max-width: 1000px; }
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s7); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: var(--s4); box-shadow: var(--shadow-1); scroll-margin-top: calc(var(--header-h) + 24px); }
.profile:nth-child(even) { grid-template-columns: minmax(0, 1fr) 300px; }
.profile:nth-child(even) .profile-photo { order: 2; }
.profile-photo { border-radius: 20px; }
.profile-body { padding: var(--s5) var(--s5) var(--s5) 0; }
.profile:nth-child(even) .profile-body { padding: var(--s5) 0 var(--s5) var(--s5); }
.profile-role { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.profile h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-top: var(--s3); }
.creds { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.creds li { background: var(--ice); color: var(--sapphire); font-size: var(--fs-sm); font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.profile p { margin-top: var(--s5); font-size: var(--fs-lead); color: var(--body); max-width: 36em; }

.cta-band { padding: var(--s9) 0; text-align: center; color: #fff; background: radial-gradient(800px 420px at 85% 0%, rgba(36, 56, 216, .55), rgba(36, 56, 216, 0) 70%), linear-gradient(160deg, var(--sapphire), var(--sapphire-deep)); }
.cta-band .eyebrow { color: #aebbff; }
.cta-band h2 { color: #fff; margin: var(--s4) auto 0; max-width: 18em; }
.cta-band h2 em.accent { color: #b9c5ff; }
.cta-band p { color: rgba(225, 232, 255, .85); margin: var(--s4) auto 0; max-width: 34em; font-size: var(--fs-lead); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }

/* 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 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); }

/* Convenzioni */
.conv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: var(--s4); max-width: 1000px; margin: 0 auto; }
.conv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6) var(--s5) var(--s5); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow-1); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.conv:hover { border-color: rgba(36, 56, 216, .3); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.conv-logo { height: 64px; width: 100%; display: flex; align-items: center; justify-content: center; }
.conv-logo img { max-height: 56px; max-width: min(200px, 90%); width: auto; height: auto; object-fit: contain; }
.conv-word { font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
.conv-logo-text { gap: var(--s3); }
.conv-logo-text .conv-word { text-align: left; }
.conv-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--ice); color: var(--sapphire); display: grid; place-items: center; }
.conv-ic svg { width: 26px; height: 26px; }
.conv-main .conv-ic { width: 56px; height: 56px; margin-bottom: var(--s4); background: rgba(255, 255, 255, .12); color: #fff; }
.conv-main .conv-ic svg { width: 28px; height: 28px; }
.conv p { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); width: 100%; font-size: var(--fs-sm); color: var(--muted); }
.conv-main { grid-row: span 2; background: linear-gradient(160deg, var(--sapphire), var(--sapphire-deep)); border: 0; color: #fff; }
.conv-main h3 { color: #fff; font-size: 1.375rem; }
.conv-list { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s2); width: 100%; max-width: 240px; }
.conv-list li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 9px 16px; font-size: var(--fs-sm); font-weight: 600; color: #fff; }

/* 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;  display: block; }
.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); }
.contact-card a.wa-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: var(--s1); color: var(--wa-dark); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.contact-card a.wa-link svg { width: 18px; height: 18px; fill: currentColor; }
#contatti .map-wrap { max-width: 980px; margin: var(--s7) auto 0; }

/* ---------- 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; }

/* WhatsApp flottante */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 16px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  box-shadow: 0 10px 28px rgba(18, 140, 74, .35), 0 2px 6px rgba(0, 0, 0, .08);
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18, 140, 74, .4); }

/* ---------- 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); }

/* ---------- Testata pagine interne ---------- */
.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; }

/* Mappa (click-to-load) */
.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); }

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

/* Tablet orizzontale */
@media (max-width: 1080px) {
  .team-grid { --cols: 3; max-width: 760px; margin: 0 auto; }
  .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; }
}

/* Tablet verticale e mobile: una colonna, contenuti centrati */
@media (max-width: 900px) {
  .profile, .profile:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: center; max-width: 520px; margin: 0 auto; width: 100%; }
  .profile:nth-child(even) .profile-photo { order: 0; }
  .profile-photo { max-width: 360px; width: 100%; margin: 0 auto; }
  .profile-body, .profile:nth-child(even) .profile-body { padding: var(--s5) var(--s3) var(--s4); }
  .creds { justify-content: center; }
  .profile p { margin-left: auto; margin-right: auto; }
  .wa-float { padding: 0; width: 60px; height: 60px; justify-content: center; }
  .wa-float span { display: none; }
  .wa-float svg { width: 30px; height: 30px; }
  :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-slides { aspect-ratio: 1 / 1; }
  .hero-tag { left: 50%; bottom: -22px; translate: -50% 0; white-space: nowrap; text-align: left; }
  .hero-slides .slide-dots { bottom: auto; top: 14px; }

  .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; }

  .split-media { order: 2; padding: var(--s5); max-width: 520px; width: 100%; margin: 0 auto; }
  .split-stage { aspect-ratio: 4 / 3; }

  .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; }
  .map-wrap { aspect-ratio: auto; height: 440px; }
}

/* Mobile */
@media (max-width: 640px) {
  .media-note { position: static; max-width: none; margin-top: var(--s4); box-shadow: none; }
  .split-media { display: grid; }
  .split-stage { grid-area: 1 / 1; }
  .media-note[data-note] { display: block; visibility: hidden; grid-area: 2 / 1; }
  .media-note[data-note].is-active { visibility: visible; }
  .conv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .conv-main { grid-column: 1 / -1; grid-row: auto; padding: var(--s6) var(--s5); }
  .conv { padding: var(--s5) var(--s3) var(--s4); }
  .conv-logo { height: 52px; }
  .conv-logo img { max-height: 44px; }
  .conv-word { font-size: 1rem; }
  .conv-ic { width: 40px; height: 40px; border-radius: 12px; }
  .conv-ic svg { width: 22px; height: 22px; }
  .conv-logo-text { gap: var(--s2); }
  .conv-main .conv-ic { margin-bottom: var(--s3); }
  .conv p { font-size: var(--fs-xs); }
  .conv-main h3 { font-size: 1.25rem; }
  .team-grid { --cols: 2; --gap: var(--s3); }
  .member { padding: 6px 6px var(--s4); border-radius: var(--radius-lg); }
  .member-photo { border-radius: 12px; }
  .member-name { font-size: var(--fs-sm); margin-top: var(--s3); padding: 0 var(--s1); }
  .member-role { font-size: 0.625rem; letter-spacing: .06em; padding: 0 var(--s1); }
  .section-cta .btn { width: 100%; }
  .profiles { gap: var(--s5); }
  .profile { border-radius: var(--radius-xl); padding: var(--s3); }
  .profile p { font-size: var(--fs-base); }
  .cta-band { padding: var(--s8) 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .wa-float { display: none; }
  #contatti .map-wrap { margin-top: var(--s6); }
  :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); }

  .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; }

  .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%; }

  .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 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 */
  .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; }

}

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