/* ==========================================================
   BT Dental — stile
   Palette 60/30/10: chiari (bianco + ghiaccio) / navy / blu logo
   ========================================================== */

@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ice: #eef3fb;          /* 60%: sfondi chiari */
  --ice-2: #dfe8f6;
  --navy: #13224a;         /* 30%: testi, sezioni scure */
  --navy-deep: #0c1734;
  --blue: #195ace;         /* 10%: colore del logo, azioni */
  --blue-dark: #1249ad;
  --ink: #1b2540;
  --muted: #4a5675;
  --line: #d3dcea;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 22px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.5rem, 8.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.04em;
}
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.55rem); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .7em 1em; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Scorrimento morbido (Lenis, solo computer) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 0 1.6em;
  border-radius: 999px;
  font: 700 1.05rem/1 var(--sans);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-call { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(25, 90, 206, .7); }
.btn-call:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ice); }

/* Su telefono "Chiamaci", su computer il numero */
.only-desk { display: none; }
@media (min-width: 900px) {
  .only-mob { display: none; }
  .only-desk { display: inline; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(19, 34, 74, .5);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 40px; height: 38px; }
.brand span { font: 700 1.3rem/1 var(--sans); color: var(--blue); letter-spacing: -0.02em; }

.nav-toggle {
  width: 48px; height: 48px; border: 0; background: transparent; padding: 12px;
  display: grid; align-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: #fff; border-top: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 20px 30px -20px rgba(19, 34, 74, .35);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: .85rem .25rem; text-decoration: none;
  color: var(--navy); font-weight: 600; font-size: 1.15rem;
  border-bottom: 1px solid var(--ice-2);
}
.main-nav .btn { margin-top: 1.2rem; width: 100%; }

.nav-ig { display: none; }
@media (min-width: 900px) {
  .nav-ig {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--blue); color: #fff;
    box-shadow: 0 10px 24px -10px rgba(25, 90, 206, .7);
    transition: background .2s, transform .2s;
  }
  .nav-ig svg { width: 22px; height: 22px; display: block; }
  .nav-ig:hover { background: var(--blue-dark); transform: translateY(-2px); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none; padding: 0;
    display: flex; align-items: center; gap: .7rem; flex: 1;
  }
  .main-nav ul { display: flex; gap: 2.6rem; margin: 0 auto; padding-left: 2rem; }
  .main-nav ul a { border: 0; padding: .4rem 0; font-size: .92rem; position: relative; }
  .main-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .main-nav ul a:hover::after { transform: scaleX(1); }
  .main-nav .btn { margin: 0; width: auto; min-height: 46px; padding: 0 1.2em; font-size: .95rem; }
}
/* schermi larghi: voci esattamente al centro della pagina */
@media (min-width: 1180px) {
  .site-header .wrap { position: relative; }
  .main-nav ul { position: absolute; left: 50%; transform: translateX(-50%); padding: 0; }
  .main-nav .nav-ig { margin-left: auto; }
}

/* ---------- Hero home ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ice);
  padding: calc(var(--header-h) + 4.5rem) 0 3.5rem;
}
.hero-mark {
  position: absolute; right: -12%; top: 6%;
  width: min(80vw, 640px); opacity: .07; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 12em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-note { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .95rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.hero-note li { display: flex; align-items: center; gap: .45em; }
.hero-note svg { width: 1.1em; height: 1.1em; color: var(--blue); flex: none; }

.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 64% 30%;
  border-radius: 40px 40px 40px 140px;
  box-shadow: 0 30px 60px -30px rgba(19, 34, 74, .55);
}
.hero-badge {
  position: absolute; left: -.25rem; bottom: -1.2rem;
  background: #fff; border-radius: 18px; padding: .85rem 1.1rem;
  box-shadow: 0 14px 30px -14px rgba(19, 34, 74, .45);
  display: flex; align-items: center; gap: .75rem; max-width: 250px;
}
.hero-badge strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--navy); display: block; line-height: 1.2; white-space: nowrap; }
.hero-badge small { color: var(--muted); font-size: .85rem; display: block; line-height: 1.3; margin-top: .2rem; }
.hero-badge svg { width: 38px; height: 38px; color: var(--blue); flex: none; }

@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 4rem) 0 6rem; min-height: min(92vh, 860px); display: flex; align-items: center; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-photo img { aspect-ratio: 5 / 4.3; object-position: 64% 40%; }
  .hero-badge { left: -2.5rem; bottom: 2.5rem; }
}

/* ---------- Sezioni ---------- */
.section { padding: 5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.8rem; }
.bg-ice { background: var(--ice); }

/* Perché noi */
.why-grid { display: grid; gap: 1.2rem; }
.why-item {
  padding: 1.8rem 1.6rem; border-radius: var(--radius);
  background: var(--ice); position: relative;
}
.why-item svg { width: 44px; height: 44px; color: var(--blue); margin-bottom: 1rem; }
.why-item p { color: var(--muted); margin: 0; }
@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .why-item:nth-child(2) { transform: translateY(2rem); }
}

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
  margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line);
  text-align: center;
}
.stat-num { font-family: var(--sans); font-weight: 800; font-size: clamp(2.8rem, 10vw, 4.2rem); color: var(--blue); line-height: 1; display: block; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
/* Cifre che scorrono veloci e si fermano sul numero finale */
.roll { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: top; }
.roll-strip { display: block; transform: translateY(0); }
.roll-strip span { display: block; height: 1.1em; line-height: 1.1em; }
.is-rolling .roll-strip { transition: transform var(--dur, 1.6s) cubic-bezier(.15, .75, .15, 1); }
.stat-label { font-size: .95rem; color: var(--muted); display: block; margin-top: .5rem; }

/* Trattamenti: elenco numerato, non a schede */
.treat-layout { display: grid; gap: 2.5rem; }
.treat-intro img { border-radius: var(--radius); margin-top: 2rem; aspect-ratio: 4 / 3; object-fit: cover; }
.treat-list { list-style: none; margin: 0; padding: 0; counter-reset: t; border-top: 1px solid var(--line); }
.treat-list li { counter-increment: t; border-bottom: 1px solid var(--line); }
.treat-list a {
  display: grid; grid-template-columns: 2.6rem 1fr auto; gap: .2rem 1rem; align-items: start;
  padding: 1.5rem 1rem; margin: 0 -1rem; text-decoration: none; color: inherit;
  border-radius: 14px; transition: background .2s;
}
.treat-list a::before {
  content: counter(t, decimal-leading-zero);
  font: 600 .9rem/2.2 var(--sans); color: var(--blue);
}
.treat-list h3 { margin: 0; font-size: 1.35rem; }
.treat-list p { grid-column: 2; margin: .3rem 0 0; color: var(--muted); font-size: .98rem; }
.treat-list .arrow {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--navy); transition: all .25s;
}
.treat-list .arrow svg { width: 18px; height: 18px; }
.treat-list a:hover { background: #fff; }
.treat-list a:hover .arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (min-width: 960px) {
  .treat-layout { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; align-items: start; }
  .treat-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Igiene: sezione navy */
.hygiene { background: var(--navy); color: #dfe6f5; position: relative; overflow: hidden; }
.hygiene h2, .hygiene h3 { color: #fff; }
.hygiene .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hygiene-photo img { border-radius: 140px 40px 40px 40px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hygiene .lead { color: #c6d2ea; }
.hyg-text { color: #c6d2ea; margin-bottom: 2rem; max-width: 34em; }
.hygiene-mark { position: absolute; left: -8%; bottom: -10%; width: 420px; opacity: .06; filter: brightness(0) invert(1); pointer-events: none; }
@media (min-width: 900px) {
  .hygiene .wrap { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
}

/* Studio / laboratorio */
.studio-grid { display: grid; gap: 2.5rem; align-items: center; }
.studio-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.studio-photos img { border-radius: var(--radius); object-fit: cover; width: 100%; aspect-ratio: 4 / 5; }
.quote-line {
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; color: var(--navy);
  border-left: 3px solid var(--blue); padding-left: 1.1rem; margin: 1.8rem 0;
}
@media (min-width: 900px) { .studio-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* Team: scorrimento su telefono, griglia su computer */
.team-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 1.25rem .4rem; margin: 0 -1.25rem;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.team-track::-webkit-scrollbar { display: none; }
.team-bar { height: 4px; border-radius: 4px; background: var(--ice-2); margin-top: 1rem; overflow: hidden; }
.team-bar span { display: block; height: 100%; width: 30%; border-radius: 4px; background: var(--blue); transform: translateX(0); }
.member { scroll-snap-align: start; margin: 0; }
.member img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--ice); }
.member figcaption { padding: .9rem .2rem 0; }
.member strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--navy); display: block; }
.member span { color: var(--muted); font-size: .95rem; }
.swipe-hint { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
@media (min-width: 900px) {
  .team-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 2.5rem 2rem; }
  .member:nth-child(3n+2) { transform: translateY(2.5rem); }
  .swipe-hint, .team-bar { display: none; }
}

/* Contatti */
.contact { display: grid; gap: 2.5rem; }
.contact-card {
  background: var(--ice); border-radius: 40px; padding: 2.2rem 1.6rem;
}
.contact-list { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 1.3rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.contact-list .ico {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--blue);
  display: grid; place-items: center;
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { font-weight: 600; }
.contact-big { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: lining-nums; white-space: nowrap; font-size: clamp(1.8rem, 7.6vw, 3.4rem); color: var(--navy); text-decoration: none; display: inline-block; margin: .4rem 0 1.4rem; }
.contact-big:hover { color: var(--blue); }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .contact-card { padding: 3rem; } }

/* ---------- Pagine trattamento ---------- */
.page-hero { background: var(--ice); padding: calc(var(--header-h) + 2.5rem) 0 3rem; position: relative; overflow: hidden; }
.page-hero .hero-mark { top: -10%; width: min(70vw, 480px); }
.back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 1.1rem 0 .9rem; margin-bottom: 1.2rem;
  border-radius: 999px; background: #fff; color: var(--navy);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 6px 16px -10px rgba(19, 34, 74, .5); transition: background .2s, color .2s;
}
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { background: var(--navy); color: #fff; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); max-width: 16em; }
.page-body { display: grid; gap: 3rem; padding: 4rem 0 5rem; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); }
.page-photo { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 2.2rem; }
.aside-box {
  background: var(--navy); color: #dfe6f5; border-radius: 32px; padding: 2rem 1.6rem;
}
.aside-box h2 { color: #fff; font-size: 1.6rem; }
.aside-box .btn { width: 100%; margin-top: .6rem; }
.aside-box small { display: block; margin-top: 1rem; color: #b8c5e0; }
.other-treat { list-style: none; padding: 0; margin: 2rem 0 0; }
.other-treat a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; }
.other-treat a:hover { color: var(--blue); }
.other-treat a[aria-current] { color: var(--blue); }
@media (min-width: 960px) {
  .page-body { grid-template-columns: 1.6fr 1fr; gap: 5rem; align-items: start; }
  .page-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b8c5e0; padding: 4rem 0 6.5rem; font-size: .98rem; position: relative; overflow: hidden; }
.site-footer .wrap { position: relative; }
.footer-mark {
  position: absolute; left: -70px; top: 50%; transform: translateY(-50%);
  width: min(70vw, 440px); height: auto; color: #fff; opacity: .07; pointer-events: none;
}
.site-footer h2 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9fbcff; }
.footer-cols { display: grid; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.footer-brand { gap: .9rem; }
.footer-logo { width: 80px; height: 76px; color: #fff; flex: none; }
.footer-ig {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.6rem;
  padding: .75rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  font-weight: 700; color: #fff;
}
.footer-ig svg { width: 22px; height: 22px; }
.footer-ig span { font-weight: 500; color: #b8c5e0; }
.footer-ig { white-space: nowrap; }
@media (max-width: 420px) { .footer-ig span { display: none; } }
.footer-ig:hover { background: rgba(255, 255, 255, .08); }
.footer-brand span { font: 700 2.6rem/1 var(--sans); color: #fff; letter-spacing: -0.02em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.legal {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .88rem;
}
@media (min-width: 800px) {
  .footer-cols { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer { padding-bottom: 3rem; }
}

/* ---------- Barra "Chiamaci" fissa su telefono ---------- */
.call-bar {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 40; display: flex; align-items: center; gap: .6rem;
  transform: translate(-50%, 160%); transition: transform .35s ease;
}
.call-bar.is-visible { transform: translate(-50%, 0); }
.call-bar .btn { min-width: 190px; }
.call-ig {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(19, 34, 74, .7);
}
.call-ig svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .call-bar { display: none; } }

/* ---------- Pagine semplici (privacy, 404) ---------- */
.simple { padding: calc(var(--header-h) + 3rem) 0 5rem; }
.simple .wrap { max-width: 760px; }
.simple h2 { font-size: 1.5rem; margin-top: 2rem; }
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; background: var(--ice); padding: calc(var(--header-h) + 2rem) 1.25rem 3rem; }
.notfound img { width: 120px; margin: 0 auto 1.5rem; }

/* ---------- Fascia Instagram ---------- */
.ig-band {
  background: linear-gradient(120deg, var(--blue) 0%, #2f6fe0 55%, var(--navy) 130%);
  color: #fff; padding: 3.2rem 0;
}
.ig-inner { display: grid; gap: 1.4rem; justify-items: start; }
.ig-icon {
  width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .15);
  display: grid; place-items: center;
}
.ig-icon svg { width: 34px; height: 34px; }
.ig-band h2 { color: #fff; margin-bottom: .25em; }
.ig-band p { margin: 0; color: #dfe8fb; }
.ig-btn { min-height: 60px; font-size: 1.1rem; }
@media (min-width: 900px) {
  .ig-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
}

/* ---------- Animazione d'entrata (solo la prima pagina vista nella sessione) ---------- */
.loader { display: none; }
.intro .loader, .intro-done .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--blue);
}
.intro-done .loader { animation: loaderOut .45s ease forwards; }
.loader-box { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ringSpin 2.1s cubic-bezier(.45, .05, .35, 1) forwards; }
.loader-ring circle { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 90 206; }
.loader-logo { position: absolute; width: 84px; height: auto; color: #fff; }
.loader-logo-base { opacity: .25; }
.loader-logo-fill { clip-path: inset(100% 0 0 0); animation: logoFill 2.1s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes ringSpin { from { transform: rotate(0deg); } to { transform: rotate(1080deg); } }
@keyframes logoFill { to { clip-path: inset(0 0 0 0); } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .intro .loader, .intro-done .loader { display: none; }
}

/* ---------- Animazioni di comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Banner cookie (stile BT Dental) ---------- */
.cb {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px;
  max-width: 480px; margin-left: auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 24px 60px -24px rgba(19, 34, 74, .45);
  padding: 24px 22px 20px; font: 400 .95rem/1.55 var(--sans);
  transform: translateY(16px); opacity: 0;
  transition: opacity .35s, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.cb.su { transform: none; opacity: 1; }
.cb h2 { font: 400 1.35rem/1.2 var(--serif); color: var(--navy); margin: 0 40px 8px 0; }
.cb p { margin: 0 0 16px; color: var(--muted); }
.cb a { color: var(--blue); font-weight: 600; }
.cb-x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: 0; background: none; border-radius: 50%; cursor: pointer;
  color: var(--navy); display: grid; place-items: center;
}
.cb-x:hover { background: var(--ice); }
.cb-x svg { width: 16px; height: 16px; }
.cb-azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cb-btn {
  min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--blue); background: var(--blue); color: #fff;
  font: 700 .95rem/1 var(--sans); cursor: pointer; transition: background .2s;
}
.cb-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.cb-btn.cb-terzo { grid-column: 1 / -1; background: #fff; color: var(--navy); border-color: var(--navy); }
.cb-btn.cb-terzo:hover { background: var(--navy); color: #fff; }
.cb-btn:focus-visible, .cb-x:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cb-lista { margin: 0 0 14px; max-height: 46vh; overflow: auto; }
.cb-cat { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: start; }
.cb-cat b { font-weight: 700; color: var(--navy); }
.cb-cat small { grid-column: 1; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.cb-cat input {
  grid-row: 1 / span 2; grid-column: 2; width: 46px; height: 28px; margin-top: 2px;
  appearance: none; -webkit-appearance: none; border-radius: 14px;
  background: #b9c4d8; position: relative; cursor: pointer; transition: background .2s;
}
.cb-cat input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.cb-cat input:checked { background: var(--blue); }
.cb-cat input:checked::after { transform: translateX(18px); }
.cb-cat input:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 520px) { .cb { left: 10px; right: 10px; bottom: 10px; padding: 22px 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .cb { transition: none; } }

/* link "Preferenze cookie" nel footer e tabella cookie nella privacy */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.link-btn:hover { color: #9fbcff; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.cookie-table th, .cookie-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { color: var(--navy); }
