/* ==========================================================================
   Studio Robello — Digital Dental Academy
   Foglio di stile unico, nessuna dipendenza esterna (né font né librerie):
   il sito non effettua richieste verso terze parti.
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

/* --- Design tokens ------------------------------------------------------- */
:root {
  color-scheme: light;

  --brand:      #EC6823;
  --brand-600:  #D4551A;
  --brand-700:  #A8400E;
  --brand-50:   #FFF4ED;
  --brand-100:  #FFE3D2;

  --teal:       #0C6B72;
  --teal-50:    #EEF7F7;

  --ink:        #14232C;
  --ink-700:    #2A3C47;
  --ink-500:    #536873;
  --ink-400:    #798C97;

  --bg:         #FFFFFF;
  --bg-alt:     #F6F9FA;
  --line:       #E4EAED;
  --line-soft:  #EFF3F5;

  --wrap: 1180px;
  --narrow: 780px;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --sh-sm: 0 1px 2px rgba(20,35,44,.06), 0 2px 8px rgba(20,35,44,.05);
  --sh:    0 2px 6px rgba(20,35,44,.05), 0 12px 32px rgba(20,35,44,.07);
  --sh-lg: 0 8px 24px rgba(20,35,44,.08), 0 28px 60px rgba(20,35,44,.10);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad-y: clamp(3.5rem, 7vw, 6.5rem);
}

/* --- Base ---------------------------------------------------------------- */
body {
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.021em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.35vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.32rem); }

p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 650; }

a { text-decoration: none; }
/* Sottolineatura solo per i link dentro al testo dei contenuti,
   non per menu, bottoni, card o footer. */
main :where(p, .prose li, .qa-body) a:not(.btn):not(.link-go) {
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
main :where(p, .prose li, .qa-body) a:not(.btn):not(.link-go):hover { color: var(--brand-600); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap.narrow { max-width: var(--narrow); }
.icon { flex: 0 0 auto; }
.icon.rot { transform: rotate(-90deg); }
.icon.rot-l { transform: rotate(90deg); }
.center { text-align: center; }
.mt { margin-top: 1.75rem; }
.small { font-size: .92rem; color: var(--ink-500); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* --- Topbar -------------------------------------------------------------- */
.topbar {
  background: var(--ink);
  color: #D8E2E8;
  font-size: .85rem;
}
.topbar-in {
  display: flex; align-items: center; gap: 1.4rem;
  justify-content: flex-end; min-height: 40px; flex-wrap: wrap;
}
.topbar-link, .topbar-note { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-link { color: #E7EDF1; transition: color .15s; }
.topbar-link:hover { color: #fff; }
.topbar-link .icon, .topbar-note .icon { color: var(--brand); }
.topbar-sep { flex: 1 1 auto; }
.topbar-note { color: #9FB1BC; }
@media (max-width: 900px) {
  .topbar-in { justify-content: center; gap: 1rem; min-height: 0; padding-block: .5rem; }
  .topbar-note, .topbar-sep { display: none; }
}

/* --- Header -------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20,35,44,.06); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand img { width: 190px; height: auto; }

.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list > li { position: relative; }
.nav-list > li:not(.nav-cta) > a {
  display: block; padding: .6rem .8rem; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink-700); text-transform: uppercase;
  transition: color .15s, background .15s;
}
.nav-list > li:not(.nav-cta) > a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-list > li > a.is-active { color: var(--brand-700); }
.nav-list > li > a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: .3rem; border-radius: 2px; background: var(--brand);
}

.has-sub > a { padding-right: 2.1rem; }
.nav-toggle {
  position: absolute; right: .45rem; top: 50%; translate: 0 -50%;
  background: none; border: 0; padding: .2rem; cursor: pointer; color: var(--ink-400);
  display: grid; place-items: center; border-radius: 6px;
}
.nav-toggle:hover { color: var(--brand); }
.nav-sub {
  position: absolute; left: 0; top: calc(100% + .35rem); min-width: 262px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh); padding: .5rem; z-index: 20;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity .16s, translate .16s, visibility .16s;
}
.nav-sub a {
  display: block; padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: .93rem; color: var(--ink-700);
}
.nav-sub a:hover { background: var(--brand-50); color: var(--brand-700); }
@media (hover: hover) and (min-width: 1041px) {
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; translate: 0 0; }
}
.has-sub.open .nav-sub { opacity: 1; visibility: visible; translate: 0 0; }

.nav-cta { margin-left: .5rem; }
.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: translate .2s, rotate .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

@media (max-width: 1040px) {
  .burger { display: flex; }
  /* backdrop-filter renderebbe l'header il blocco contenitore del pannello
     fisso, ritagliandolo: su mobile va disattivato. */
  .site-head { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw);
    background: #fff; padding: 5.5rem 1.25rem 2rem; overflow-y: auto;
    box-shadow: var(--sh-lg); translate: 100% 0; transition: translate .28s ease;
    z-index: 90;
  }
  .nav.open { translate: 0 0; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-list > li:not(.nav-cta) > a { padding: .85rem .6rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-list > li > a.is-active::after { display: none; }
  .nav-toggle { top: 1.1rem; translate: 0; right: .4rem; }
  .nav-sub {
    position: static; opacity: 1; visibility: visible; translate: 0; display: none;
    border: 0; box-shadow: none; padding: .25rem 0 .5rem .8rem; min-width: 0;
    border-left: 2px solid var(--brand-100); margin-left: .6rem;
  }
  .has-sub.open .nav-sub { display: block; }
  .nav-cta { margin: 1.25rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(20,35,44,.45); z-index: 80;
  }
}

/* --- Bottoni ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .95rem; font-weight: 650; letter-spacing: .005em; cursor: pointer;
  text-decoration: none !important; transition: background .16s, color .16s, border-color .16s, transform .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(236,104,35,.28); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 26px rgba(236,104,35,.34); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

.link-go {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 650; color: var(--brand-700); text-decoration: none !important;
}
.link-go:hover { gap: .55rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(12,25,33,.94) 0%, rgba(12,25,33,.82) 42%, rgba(12,25,33,.35) 72%, rgba(12,25,33,.15) 100%),
    linear-gradient(0deg, rgba(12,25,33,.5), rgba(12,25,33,0) 55%);
}
.hero-in { padding-block: clamp(3.5rem, 8vw, 7rem); max-width: 940px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero h1 span { color: #FFB98A; }
.hero-lead { margin-top: 1.4rem; max-width: 60ch; font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem); color: #DDE6EB; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow.center { display: flex; justify-content: center; }
.hero .eyebrow { color: #FFB98A; }

.hero-trust {
  margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.hero-trust li { display: flex; flex-direction: column; gap: .1rem; }
.hero-trust strong { color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.hero-trust span { font-size: .82rem; color: #B9C7D0; line-height: 1.4; }
@media (max-width: 720px) {
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* --- Sezioni ------------------------------------------------------------- */
.section { padding-block: var(--pad-y); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.h-section { margin-top: .6rem; }
.sub { margin-top: .9rem; max-width: 68ch; color: var(--ink-500); }
.sub.center { margin-inline: auto; }

.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.two-col > div > .btn, .two-col > div > p + p { margin-top: 1.1rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* --- Testata pagine interne ---------------------------------------------- */
.phead {
  padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--brand-50), #fff 92%);
  border-bottom: 1px solid var(--line-soft);
}
.phead h1 { margin-top: .7rem; }
.lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-500); max-width: 62ch; }
.phead-person .person-head { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.phead-person img {
  width: 132px; height: 164px; object-fit: cover; border-radius: var(--r);
  box-shadow: var(--sh); flex: 0 0 auto; background: #fff;
}
@media (max-width: 620px) {
  .phead-person .person-head { flex-direction: column; align-items: flex-start; }
}

.crumbs { background: #fff; border-bottom: 1px solid var(--line-soft); font-size: .85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; padding-block: .85rem; color: var(--ink-400); }
.crumbs li + li::before { content: "›"; margin-right: .45rem; color: var(--ink-400); }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* --- Prose (pagine di contenuto) ----------------------------------------- */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; padding-top: .3rem; }
/* L'header è sticky: gli ancoraggi devono fermarsi sotto di esso */
.prose [id], section[id] { scroll-margin-top: 100px; }
.prose h2 + p { margin-top: .85rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul, .prose ol { display: grid; gap: .6rem; padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.9rem; }
.prose ul li::before {
  content: ""; position: absolute; left: .35rem; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: .1em;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  font-size: .78rem; font-weight: 700; display: grid; place-items: center;
}

.note {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--teal-50); border-left: 3px solid var(--teal);
  border-radius: 0 var(--r) var(--r) 0; padding: 1.1rem 1.25rem;
  margin-block: 1.75rem !important;
}
.note .icon { color: var(--teal); margin-top: .2rem; }
.note p { color: var(--ink-700); font-size: .96rem; }

.draft {
  background: #FFF8E6; border: 1px dashed #E0B84A; border-radius: var(--r);
  padding: 1rem 1.2rem; font-size: .93rem; color: #6B4E0C;
}

.toc {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.15rem 1.35rem; margin-block: 1.75rem !important;
}
.toc h2 {
  font-size: .78rem !important; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-400); margin: 0 0 .7rem !important; padding: 0;
}
.toc ul { display: grid; gap: .4rem; }
.prose .toc li { padding-left: 1.1rem; }
.prose .toc li::before {
  content: "›"; background: none; color: var(--brand); font-weight: 700;
  width: auto; height: auto; border-radius: 0; top: 0; left: 0; font-size: 1rem;
}
.toc a, main .prose .toc li a { color: var(--ink-700); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--brand-700); text-decoration: underline; }

/* --- Card servizi -------------------------------------------------------- */
.scards {
  margin-top: 2.75rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.15rem;
}
.scard {
  display: flex; flex-direction: column; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.scard:hover { border-color: var(--brand-100); box-shadow: var(--sh); transform: translateY(-3px); }
.scard-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: .35rem;
}
.scard:hover .scard-ico { background: var(--brand); color: #fff; }
.scard h2, .scard h3 { font-size: 1.14rem; }
.scard p { font-size: .93rem; color: var(--ink-500); line-height: 1.6; }
.scard-go {
  margin-top: auto; padding-top: .9rem;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .88rem; font-weight: 650; color: var(--brand-700);
}
.scard:hover .scard-go { gap: .5rem; }

/* --- Card in evidenza (home) --------------------------------------------- */
.hcards {
  margin-top: 2.75rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 1.25rem;
}
.hcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.hcard:hover { border-color: var(--brand-100); box-shadow: var(--sh); transform: translateY(-3px); }
.hcard > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  background: var(--bg-alt); border-bottom: 1px solid var(--line-soft);
}
.hcard-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.3rem 1.25rem; flex: 1; text-align: center; }
.hcard-body strong { font-size: 1.16rem; color: var(--brand-700); letter-spacing: -.015em; }
.hcard:hover .hcard-body strong { color: var(--brand-600); }
.hcard-body em { font-style: normal; font-size: .92rem; color: var(--ink-500); line-height: 1.58; }
.hcard .scard-go { margin-top: auto; padding-top: .85rem; }
.hcard:hover .scard-go { gap: .5rem; }

/* --- Credenziali --------------------------------------------------------- */
.creds { display: grid; gap: .85rem; }
.creds li {
  display: grid; gap: .15rem;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 0 var(--r) var(--r) 0; padding: .95rem 1.2rem;
}
.creds strong { font-size: .98rem; }
.creds span { font-size: .9rem; color: var(--ink-500); }
.creds-wide { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* --- Team ---------------------------------------------------------------- */
.pcards {
  margin-top: 2.75rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.15rem;
}
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pcard:hover { border-color: var(--brand-100); box-shadow: var(--sh); transform: translateY(-3px); }
.pcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; background: var(--bg-alt); }
.pcard-txt { display: grid; gap: .2rem; padding: 1rem 1.1rem 1.2rem; }
.pcard-txt strong { font-size: 1rem; }
.pcard-txt em { font-style: normal; font-size: .85rem; color: var(--ink-500); line-height: 1.45; }

.bios { display: grid; gap: 1.15rem; }
.bio {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem;
}
.bio img { width: 104px; height: 130px; object-fit: cover; border-radius: var(--r-sm); flex: 0 0 auto; background: var(--bg-alt); }
.bio h2 { font-size: 1.2rem; }
.bio-role { font-size: .88rem; color: var(--brand-700); font-weight: 600; margin-top: .2rem; }
.bio p:not(.bio-role) { font-size: .94rem; color: var(--ink-500); margin-top: .7rem; }
.bio .link-go { margin-top: .8rem; font-size: .9rem; }
@media (max-width: 600px) {
  .bio { flex-direction: column; gap: 1.1rem; }
  .bio img { width: 96px; height: 120px; }
}

/* --- Gallery ------------------------------------------------------------- */
.gallery {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem;
}
.gallery img, .gallery figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r); box-shadow: var(--sh-sm); background: #fff;
}

/* --- FAQ ----------------------------------------------------------------- */
.section-faq { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.qa-list { margin-top: 1.9rem; display: grid; gap: .7rem; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; cursor: pointer; list-style: none;
  font-weight: 650; color: var(--ink); font-size: 1.01rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand-700); }
.qa summary .icon { color: var(--brand); transition: rotate .2s; }
.qa[open] summary .icon { rotate: 180deg; }
.qa-body { padding: 0 1.3rem 1.25rem; }
.qa-body p { color: var(--ink-500); font-size: .96rem; }

/* --- Servizi correlati / pager ------------------------------------------- */
.rels { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.rel {
  display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: .85rem 1rem; font-size: .93rem; font-weight: 600; color: var(--ink-700);
}
.rel .icon { color: var(--brand); }
.rel:hover { border-color: var(--brand-100); color: var(--brand-700); box-shadow: var(--sh-sm); }

.pager { margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; }
.pager a { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-700); }
.pager a:hover { color: var(--brand-700); }
.pager span { display: grid; }
.pager small { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-400); }
.pager .icon { color: var(--brand); }
.pager-next { text-align: right; margin-left: auto; }

/* --- Info / contatti ----------------------------------------------------- */
.info-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .icon { color: var(--brand); margin-top: .2rem; }
.info-list small { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-400); }
.info-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--brand-700); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.contact-card h2 { font-size: 1.2rem; }
.contact-card .btn { margin-top: 1.6rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: .96rem; }
.hours th, .hours td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { color: var(--ink-500); text-align: right; }

/* --- Mappa (caricata solo su consenso) ----------------------------------- */
.map {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line); min-height: 340px;
  display: grid; place-items: center;
}
.map-wide { margin-top: 2rem; min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-load {
  display: grid; justify-items: center; gap: .4rem; text-align: center;
  background: none; border: 0; cursor: pointer; padding: 2rem; color: var(--ink-700);
}
.map-load .icon { color: var(--brand); }
.map-load span { font-weight: 650; color: var(--ink); }
.map-load small { font-size: .85rem; color: var(--ink-400); max-width: 34ch; }
.map-load:hover span { color: var(--brand-700); }

/* --- Banda CTA ----------------------------------------------------------- */
.band { background: linear-gradient(120deg, #16404A, #0E2A33 60%, var(--brand-700)); color: #fff; }
.band-in {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.band h2 { color: #fff; }
.band p { margin-top: .6rem; color: #C8D6DD; max-width: 46ch; }
.band-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }
.band .btn-primary:hover { background: #FFF4ED; color: var(--brand-700); }

/* --- Footer -------------------------------------------------------------- */
.site-foot { background: var(--ink); color: #A9BAC4; font-size: .93rem; padding-top: clamp(2.5rem, 5vw, 4rem); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.foot-col h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 1rem; }
.foot-col h2.mt { margin-top: 1.9rem; }
.foot-brand img { width: 175px; }
.foot-desc { margin-top: 1.1rem; max-width: 38ch; }
.foot-reg { margin-top: 1rem; font-size: .82rem; color: #7A8D99; }
.foot-links, .foot-contact, .foot-hours { display: grid; gap: .55rem; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; text-decoration: underline; }
.foot-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.foot-contact .icon { color: var(--brand); margin-top: .15rem; }
.foot-hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: .45rem; }
.foot-hours strong { color: #fff; font-weight: 600; }
.foot-links.cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; }

/* La stessa lista "foot-hours" viene riusata anche fuori dal footer scuro
   (pagina Contatti): qui il testo dei giorni/orari deve leggersi su sfondo
   chiaro, quindi si sovrascrivono i colori pensati per lo sfondo scuro. */
.contact-hours { margin-top: 1.5rem; }
.contact-hours li { border-bottom-color: var(--line); padding-top: .1rem; }
.contact-hours span { color: var(--ink-500); }
.contact-hours strong { color: var(--ink); }

.foot-bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: #7A8D99;
}
.foot-bottom ul { display: flex; gap: 1.25rem; }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* --- Torna su ------------------------------------------------------------ */
.totop {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity .2s, translate .2s, visibility .2s, background .2s;
  box-shadow: var(--sh);
}
.totop .icon { rotate: 180deg; }
.totop.show { opacity: 1; visibility: visible; translate: 0 0; }
.totop:hover { background: var(--brand); }

/* --- Stampa -------------------------------------------------------------- */
@media print {
  .topbar, .site-head, .band, .site-foot, .totop, .crumbs, .toc, .rels, .pager, .map { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding-block: 0; }
  .phead { background: none; }
  a { color: #000; text-decoration: none; }
  .qa[open] .qa-body, .qa .qa-body { display: block !important; }
}
