/* Centro Odontoiatrico Poli
   Palette dal logo: blu notte (accento unico), azzurro come tinta di superficie.
   Raggi: pulsanti a pillola, immagini e riquadri 20px, campi 12px. */

:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --tint: #e4f1f8;
  --tint-2: #d3e8f3;
  --ink: #0f1f38;
  --ink-2: #44536b;
  --line: #d6e0ea;
  --accent: #1f4690;
  --accent-ink: #f7faff;
  --accent-soft: #e6ecf8;
  --star: #d9a21b;
  --err: #b42318;
  --shadow: 0 24px 60px -28px rgb(20 52 100 / .35);
  --logo-green: #8bbf55;
  --logo-blue: #59b3d6;
  --logo-navy: #2c4a87;

  --r: 20px;
  --r-sm: 12px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1422;
    --surface: #111d30;
    --tint: #13243b;
    --tint-2: #183050;
    --ink: #e8eff8;
    --ink-2: #a9b7ca;
    --line: #22344f;
    --accent: #8ccbeb;
    --accent-ink: #0b1a2e;
    --accent-soft: #16304d;
    --star: #f0c04a;
    --err: #ff8a80;
    --shadow: 0 24px 60px -28px rgb(0 0 0 / .7);
    --logo-green: #9ccb66;
    --logo-blue: #6cc2e6;
    --logo-navy: #eef3fa;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.lead { color: var(--ink-2); font-size: 18px; max-width: 56ch; margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease), border-color .25s;
}
.btn i { font-size: 19px; }
.btn:active { transform: scale(.98) translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgb(31 70 144 / .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgb(31 70 144 / .7); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link i { transition: transform .3s var(--ease); }
.link:hover i { transform: translateX(4px); }
.round {
  width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 20px;
  transition: border-color .25s, transform .3s var(--ease);
}
.round:hover { border-color: var(--ink); }
.round:active { transform: scale(.95); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 80px; display: flex; align-items: center; gap: 32px; }
.nav__brand { position: relative; align-self: stretch; width: 216px; flex: none; }
.nav__brand .logo {
  position: absolute; left: 0; top: 10px; height: 112px; width: auto; overflow: visible;
  transform-origin: 0 0;
  -webkit-mask-image: linear-gradient(#000 0 50%, transparent 55%); mask-image: linear-gradient(#000 0 50%, transparent 55%);
  -webkit-mask-size: 100% 200%; mask-size: 100% 200%;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: transform .6s var(--ease), -webkit-mask-position .6s var(--ease), mask-position .6s var(--ease);
}
.nav.is-scrolled .nav__brand .logo { transform: scale(.88) translateY(-2px); -webkit-mask-position: 0 36%; mask-position: 0 36%; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__tel { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; cursor: pointer; }
.menu { display: grid; gap: 4px; padding: 8px 16px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.menu a:not(.btn) { padding: 14px 4px; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; }
.menu[hidden] { display: none; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .nav__tel, .nav__actions > .btn { display: none; }
  .nav__inner { height: 68px; }
  .nav__brand { width: 150px; }
  .nav__brand .logo { top: 8px; height: 84px; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: calc(100dvh - 80px); max-height: 900px; padding-block: 40px 56px;
}
.hero__title { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero__title em { font-style: italic; font-weight: 700; color: var(--accent); padding-bottom: 4px; }
.hero__sub { margin-top: 24px; font-size: 19px; color: var(--ink-2); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__media { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.2; max-height: 72dvh; width: 100%; background: var(--tint); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__pause {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .4);
  background: rgb(10 22 40 / .45); color: #f4f8fc; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; font-size: 18px; cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__in { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 80ms); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-block: 52px 40px; gap: 28px; }
  .hero__media { aspect-ratio: 16 / 11; }
}

/* Facts */
.facts {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line); padding-block: 36px 8px;
}
.fact { display: flex; align-items: center; gap: 16px; padding-right: 28px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact__big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 6px; }
.fact__big i { color: var(--star); font-size: 26px; }
.fact__icon { font-size: 30px; color: var(--accent); flex: none; }
.fact__txt { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .fact, .fact + .fact { padding: 0 16px 0 0; border: 0; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Manifesto */
.manifesto { padding-block: clamp(96px, 14vw, 180px); }
.manifesto__text {
  font-size: clamp(28px, 4.1vw, 54px); line-height: 1.18; font-weight: 700; letter-spacing: -.03em;
  max-width: 22ch; text-align: left; margin-inline: auto; width: min(100% - 32px, 1000px); max-width: 1000px;
}
.manifesto__text .w { color: var(--ink); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .manifesto__text .w {
      color: color-mix(in srgb, var(--ink) 18%, var(--bg));
      animation: ink linear both;
      animation-timeline: view();
      animation-range: cover 10% cover 38%;
    }
    @keyframes ink { to { color: var(--ink); } }
  }
}

/* Journey */
.journey { padding-bottom: clamp(80px, 10vw, 140px); }
.journey__head { max-width: 640px; margin-bottom: 56px; }
.journey__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.journey__stage { position: sticky; top: 108px; align-self: start; }
.journey__frame { position: relative; aspect-ratio: 4 / 4.2; border-radius: var(--r); overflow: hidden; background: var(--tint); box-shadow: var(--shadow); }
.journey__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.journey__frame img.is-active { opacity: 1; transform: none; }
.journey__progress { height: 3px; margin-top: 18px; background: transparent; border-radius: 3px; overflow: hidden; }
.journey__progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 3px; transition: width .6s var(--ease); }
.journey__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: .35; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; }
.step p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 44ch; }
.step__img { display: none; }
.step:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 8vh; }
.step:last-child { min-height: 70vh; }

@media (max-width: 900px) {
  .journey__grid { grid-template-columns: 1fr; }
  .journey__stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; opacity: 1; padding: 0 0 48px; }
  .step__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: 22px; }
}

/* Care / Bento */
.care { background: var(--tint); padding-block: clamp(80px, 10vw, 140px); }
.care__title { max-width: 18ch; margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r); padding: 28px;
  background: var(--surface); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.tile > i { font-size: 34px; color: var(--accent); margin-bottom: auto; }
.tile h3 { font-size: 22px; line-height: 1.2; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile--tint { background: var(--accent-soft); }
.tile--feature { grid-column: span 2; grid-row: span 2; padding: 0; min-height: 520px; }
.tile--wide { grid-column: span 2; }
.tile--feature img, .tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--feature img { object-position: 50% 40%; }
.tile--feature:hover img, .tile--photo:hover img { transform: scale(1.04); }
.tile--feature .tile__body, .tile--photo .tile__body {
  position: relative; padding: 32px; color: #f6f9fd;
  background: linear-gradient(to top, rgb(8 20 38 / .82), rgb(8 20 38 / .0));
  padding-top: 120px;
}
.tile--photo { padding: 0; }
.tile--feature h3 { font-size: clamp(26px, 2.6vw, 34px); }
.tile--feature p, .tile--photo p { color: rgb(240 246 252 / .88); max-width: 40ch; }
.tile--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; background: var(--surface); }
.tile--split p { max-width: 42ch; margin-top: 10px; }
.tile--split .link { white-space: nowrap; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature { grid-column: span 2; grid-row: auto; min-height: 460px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--feature, .tile--wide { grid-column: auto; }
  .tile { min-height: 190px; }
  .tile--photo { min-height: 260px; }
  .tile--split { flex-direction: column; align-items: flex-start; }
}

/* Studio gallery */
.studio { padding-block: clamp(80px, 10vw, 140px) 0; }
.studio__head { margin-bottom: 44px; }
.studio__head .h2 { max-width: 20ch; }
.gallery {
  display: flex; gap: 16px; align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(16px, calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(16px, calc((100vw - var(--wrap)) / 2));
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item { margin: 0; flex: none; width: min(78vw, 400px); scroll-snap-align: start; }
.gallery__item--lg { width: min(88vw, 640px); }
.gallery__item--tall { width: min(64vw, 340px); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery__item--lg img { aspect-ratio: 16 / 10; }
.gallery__item--tall img { aspect-ratio: 3 / 4; }
.gallery__item figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.gallery__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* Team */
.team {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: end;
  padding-block: clamp(96px, 12vw, 160px);
}
.team__intro { align-self: start; padding-right: 24px; }
.team__intro .link { margin-top: 28px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }
.person--a { margin-bottom: 64px; }
.person figcaption { display: grid; gap: 2px; margin-top: 16px; }
.person strong { font-size: 18px; }
.person span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr 1fr; }
  .team__intro { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; }
  .person--a { margin-bottom: 0; }
}
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { padding-block: clamp(72px, 9vw, 120px); background: var(--surface); border-block: 1px solid var(--line); }
.reviews__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.reviews__score { display: grid; justify-items: start; gap: 6px; }
.reviews__num { font-size: clamp(96px, 14vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--accent); }
.reviews__stars { color: var(--star); font-size: 28px; display: flex; gap: 4px; margin-top: 14px; }
.reviews__ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .reviews__inner { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(96px, 12vw, 160px); }
.faq__title { max-width: 14ch; position: sticky; top: 112px; align-self: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 22px; color: var(--accent); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 62ch; }
.faq details a { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__title { position: static; }
  .faq details p { padding-right: 0; }
}

/* Contact */
.contact { background: var(--tint); padding-block: clamp(80px, 10vw, 140px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.info { margin: 40px 0 0; display: grid; gap: 26px; }
.info div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.info dt { display: flex; align-items: center; gap: 10px; font-weight: 600; align-self: start; }
.info dt i { color: var(--accent); font-size: 20px; }
.info dd { margin: 0; color: var(--ink-2); }
.info dd .link { margin-top: 8px; }
.info__tel { font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.map { position: relative; margin-top: 40px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); display: grid; place-items: center; }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.4) blur(2px); opacity: .55; }
.map .btn { position: relative; }
.map__note { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--ink); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 22px; }
.form__title { font-size: 28px; }
.form__intro { color: var(--ink-2); margin-top: -12px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input[type=text], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid=true] { border-color: var(--err) !important; }
.field__help { font-size: 14px; color: var(--ink-2); }
.field__err { font-size: 14px; color: var(--err); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: 15px; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.field--check a { color: var(--accent); }
.form__status:empty { display: none; }
.form__status { padding: 16px 18px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: 15px; }
.form__status.is-error { background: color-mix(in srgb, var(--err) 12%, var(--surface)); color: var(--err); }
.form__status a { color: var(--accent); font-weight: 600; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading .btn__label::after { content: "..."; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .info div { grid-template-columns: 1fr; gap: 6px; } }

/* Footer */
.foot { padding-block: 72px 120px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand .logo { height: 110px; width: auto; }
.foot__h { font-weight: 700; margin-bottom: 10px; }
.foot p { color: var(--ink-2); font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.foot__legal p { font-size: 13px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* Mobile dock */
.dock { display: none; }
@media (max-width: 640px) {
  .dock {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px -12px rgb(10 30 60 / .35); border: 1px solid var(--line);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .dock .btn { min-height: 48px; padding: 0 20px; }
}

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Sprite del logo */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero: titolo che sale parola per parola, video che si apre a sipario */
.hero__title .rw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .rw > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .rw > span { transform: translateY(105%); animation: wordUp .9s var(--ease) forwards; animation-delay: calc(var(--w) * 55ms + 120ms); }
  .js .hero__media { clip-path: inset(12% 12% 12% 12% round 28px); animation: curtain 1.4s var(--ease) .25s forwards; }
  .js .hero__media .hero__video { transform: scale(1.18); animation: settle 1.8s var(--ease) .25s forwards; }
  html.intro .hero__in, html.intro .hero__title .rw > span, html.intro .hero__media, html.intro .hero__media .hero__video { animation-play-state: paused; }
  @keyframes wordUp { to { transform: none; } }
  @keyframes curtain { to { clip-path: inset(0 0 0 0 round 20px); } }
  @keyframes settle { to { transform: none; } }
}

/* Manifesto: il profilo del dente si disegna mentre scorri */
.manifesto { position: relative; overflow: hidden; }
.manifesto__tooth {
  position: absolute; z-index: 0; width: min(110vw, 1240px); left: 50%; top: 52%; transform: translate(-40%, -44%);
  pointer-events: none; opacity: .5; fill: none;
}
.manifesto__tooth path { fill: none; stroke: var(--logo-blue); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .55; }
.manifesto__text { position: relative; z-index: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .manifesto__tooth path { stroke-dashoffset: 1; animation: draw linear both; animation-timeline: view(); animation-range: cover 5% cover 60%; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
  }
}

/* Intro: logo reveal (solo alla prima visita della sessione, mai con movimento ridotto) */
.intro-screen { display: none; }
html.intro { overflow: hidden; }
html.intro .nav__brand .logo { visibility: hidden; }
html.intro .intro-screen {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; cursor: pointer;
}
.intro-screen::before { content: ""; position: absolute; inset: 0; background: var(--bg); transition: opacity .7s var(--ease) .1s; }
.intro-screen.is-leaving::before { opacity: 0; }
.intro-logo { position: relative; width: min(84vw, 620px); height: auto; overflow: visible; transform-origin: 0 0; will-change: transform; }
.intro-screen.is-leaving .intro-logo { transition: transform .9s var(--ease); }

.intro-logo path { transform-box: fill-box; }
.intro-logo .lg-tooth path {
  stroke: var(--logo-green); stroke-width: 9; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: strokeIn 1.3s cubic-bezier(.65,0,.35,1) .1s forwards, fillIn .6s ease 1.05s forwards;
}
.intro-logo .lg-centro path, .intro-logo .lg-odonto path {
  opacity: 0; transform: translateY(38%);
  animation: letterIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + var(--base));
}
.intro-logo .lg-centro { --base: .45s; }
.intro-logo .lg-odonto { --base: .75s; }
.intro-logo .lg-lens path {
  opacity: 0; transform-origin: 50% 12%; transform: rotate(-35deg) scale(.4);
  animation: lensIn 1s cubic-bezier(.34,1.56,.64,1) .65s forwards;
}
.intro-logo .lg-poli path {
  opacity: 0; transform: translateX(50%);
  animation: poliIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 1.15s);
}
@keyframes strokeIn { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; stroke-width: 0; } }
@keyframes letterIn { to { opacity: 1; transform: none; } }
@keyframes lensIn { to { opacity: 1; transform: none; } }
@keyframes poliIn { to { opacity: 1; transform: none; } }
.intro-screen.is-skip path { animation: none !important; opacity: 1 !important; transform: none !important; fill-opacity: 1 !important; stroke-width: 0 !important; }
