/* Studio Bergodi · foglio di stile principale
   Sistema visivo «Registro»: blu navy, mattone, righe sottili, numeri allineati. */

/* ---------- Font (ospitati sul sito) ---------- */
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --ink: #141c2b;
  --text-2: #3a4354;
  --muted: #4b5567;
  --line: #dde2ea;
  --line-2: #cad1dc;
  --line-3: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f2f4f8;
  --navy: #13294b;
  --navy-tint: #e5ebf4;
  --brick: #b4432a;
  --brick-dark: #943520;
  --on-dark: #dbe3ee;
  --on-dark-2: #c9d6e8;
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --container: 1240px;
  --gutter: 24px;
  --shadow: 0 18px 40px rgba(15, 25, 45, 0.12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tipografia ricorrente ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brick); }
.eyebrow--rule::before { content: ""; display: block; width: 36px; height: 2px; background: currentColor; flex: 0 0 auto; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: var(--on-dark-2); }
.h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.h2--sm { font-size: clamp(26px, 2.6vw, 34px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); }
.text-2 { color: var(--text-2); }
.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--navy); }
.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--navy); }
.link-underline { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brick); text-decoration-thickness: 2px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--lg { gap: 28px; }
.stack--sm { gap: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex: 0 0 auto; }
.btn--primary { background: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 46px; padding: 10px 20px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barra superiore ---------- */
.topbar { background: var(--navy); color: var(--on-dark); font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar__address { display: flex; align-items: center; gap: 8px; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Intestazione e menu ---------- */
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark { position: relative; flex: 0 0 46px; width: 46px; height: 46px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 31px; font-weight: 700; line-height: 1; padding-right: 3px; }
/* quadratino nell'angolo in alto a destra (logo approvato dal cliente il 3/11/2026) */
.brand__mark::after { content: ""; position: absolute; top: 0; right: 0; width: 9px; height: 9px; background: var(--brick); }
.brand__mark--light { flex-basis: 38px; width: 38px; height: 38px; font-size: 26px; padding-right: 2px; background: #fff; color: var(--navy); }
.brand__mark--light::after { width: 7px; height: 7px; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.brand__tag { font-size: 13px; color: var(--navy); line-height: 1.3; }

.nav { display: flex; align-items: center; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 0; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--brick); }
.nav__link[aria-current="page"], .nav__item--current > .nav__link { border-bottom-color: var(--brick); }
.subnav { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -20px; min-width: 330px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
.nav__item--sub:hover .subnav, .nav__item--sub:focus-within .subnav { display: block; }
.subnav a { display: flex; gap: 12px; padding: 10px 20px; text-decoration: none; color: var(--ink); font-weight: 400; }
.subnav a:hover { background: var(--bg-alt); color: var(--ink); }
.subnav a[aria-current="page"] { font-weight: 600; }
.subnav__num { color: var(--brick); font-weight: 600; }
.subnav__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.subnav__all a { font-weight: 600; }
.nav-toggle { display: none; }
.no-js .nav-toggle, .no-js [data-map-src] { display: none !important; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 90px); overflow-y: auto; }
  .js .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__link[aria-current="page"], .nav__item--current > .nav__link { border-bottom-color: var(--line); color: var(--brick); }
  .nav__link svg { display: none; }
  .subnav { position: static; display: block; min-width: 0; padding: 4px 0 8px 16px; border: 0; box-shadow: none; }
  .subnav a { padding: 10px 0; font-size: 16px; }
  .subnav a:hover { background: transparent; }
  .subnav__all { display: none; }
  .nav .btn { margin-top: 18px; }
}

/* ---------- Sezioni ---------- */
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--tight { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.section__head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head > * { flex: 1 1 420px; min-width: 0; }
.section__title { max-width: 780px; }

/* ---------- Home: hero ---------- */
.hero { background: var(--bg-alt); }
.hero .container { display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
.hero__lead { max-width: 600px; }
.hero__media { flex: 1 1 400px; min-width: 0; max-width: 560px; }
.hero__photo img { width: 100%; height: 540px; object-fit: cover; object-position: 50% 22%; }
.trust { list-style: none; padding: 22px 0 0; margin-top: 8px; border-top: 1px solid #cdd4df; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--text-2); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--navy); flex: 0 0 auto; }

.register { position: relative; margin: -72px 28px 0 -28px; background: #fff; border-top: 3px solid var(--brick); padding: 24px 26px 18px; box-shadow: var(--shadow); }
.register__name { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; }
.register__role { margin: 2px 0 14px; font-size: 13px; color: var(--muted); }
.register dl { font-size: 14px; }
.register__row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-3); }
.register__row dt { color: var(--text-2); }
.register__row::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #aeb6c5; }
.register__row dd { order: 2; font-weight: 600; white-space: nowrap; }

@media (max-width: 767px) {
  .hero__photo img { height: 380px; }
  .register { margin: -48px 12px 0; }
}

/* ---------- Home: elenco aree ---------- */
.ledger { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.ledger__item { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.ledger__num { flex: 0 0 48px; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--brick); }
.ledger__title { flex: 1 1 260px; min-width: 0; font-size: clamp(23px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.ledger__title a { color: var(--ink); text-decoration: none; }
.ledger__title a:hover { color: var(--brick); }
.ledger__body { flex: 2 1 420px; min-width: 0; }
.ledger__body p { color: var(--text-2); }
.ledger__body p + p { margin-top: 10px; }
.round-link { flex: 0 0 52px; width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background-color 0.15s ease, color 0.15s ease; }
.round-link:hover { background: var(--ink); color: #fff; }
.chips { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #2f3747; }
.chips li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; }

@media (max-width: 767px) {
  .ledger__item { gap: 10px; padding: 28px 0; }
  .ledger__num { flex-basis: 100%; padding: 0; }
  .round-link { display: none; }
}

/* ---------- Schede (per chi lavoriamo, valori) ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 250px; min-width: 0; background: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.card--wide { flex-basis: 300px; }
.card__icon { color: var(--navy); }
.card__num { font-weight: 600; color: var(--brick); }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.card p { font-size: 16px; color: var(--text-2); }

/* ---------- Blocchi testo + immagine ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: center; }
.split__media { flex: 1 1 480px; min-width: 0; }
.split__media img { width: 100%; height: 560px; object-fit: cover; }
.split__body { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 767px) { .split__media img { height: 320px; } }

.ruled-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 15px; }
.ruled-list li { flex: 1 1 50%; min-width: 210px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ruled-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brick); text-underline-offset: 4px; }
.ruled-list a:hover { color: var(--brick); }
.ruled-list--strong { border-top: 2px solid var(--ink); font-size: 17px; }
.ruled-list--strong li { padding: 15px 0; }

/* ---------- Passaggi (sezione scura) ---------- */
.steps { list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; }
.steps li { flex: 1 1 280px; min-width: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.steps__num { font-family: var(--font-serif); font-size: 56px; line-height: 1; }
.steps h3 { font-size: 22px; font-weight: 600; }
.steps p { font-size: 16px; color: var(--on-dark-2); }

/* ---------- Domande frequenti ---------- */
.faq-layout { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.faq-layout__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.faq-layout__list { flex: 2 1 560px; min-width: 0; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 24px; font-size: clamp(18px, 1.6vw, 20px); font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.faq summary:hover { color: var(--brick); }
.faq details p { margin-top: 12px; color: var(--text-2); max-width: 700px; }

/* ---------- Contatti, orari, mappa ---------- */
.contact-band .container { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-band__info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { flex: 0 0 20px; margin-top: 3px; color: var(--navy); }
.hours-card { flex: 1 1 400px; min-width: 0; background: #fff; padding: 30px 30px 24px; }
.hours-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.hours-card h3 svg { color: var(--navy); }
.hours { font-size: 15px; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-3); }
.hours__row dd { text-align: right; white-space: nowrap; }
.hours__row--closed { color: var(--muted); }
.hours--lg { font-size: 16px; }
.hours--lg .hours__row:last-child { border-bottom: 1px solid var(--line-3); }

.map {
  position: relative; flex: 1 1 320px; min-width: 0; min-height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center;
  background-color: #e4e9f1;
  background-image: repeating-linear-gradient(45deg, rgba(19, 41, 75, 0.06) 0, rgba(19, 41, 75, 0.06) 2px, transparent 2px, transparent 14px);
}
.map--wide { min-height: 440px; }
.map__pin { color: var(--brick); }
.map__title { font-weight: 600; }
.map__note { max-width: 340px; font-size: 14px; color: var(--muted); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 14px; }
.site-footer .container { padding-top: 64px; padding-bottom: 28px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.footer__brand { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer__brand-line { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: #fff; }
.footer__nav { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__nav--narrow { flex-basis: 160px; }
.footer__title { margin-bottom: 4px; font-weight: 600; color: #fff; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand a { color: #fff; text-decoration: underline; }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 13px; }

/* ---------- Barra azioni su smartphone ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .topbar { display: none; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(15, 25, 45, 0.1);
  }
  .mobile-bar .btn { flex: 1; min-height: 52px; padding: 8px 10px; font-size: 15px; }
  .mobile-bar .btn--primary { flex: 1.4; }
  body { padding-bottom: 84px; }
}

/* ---------- Pagine interne: intestazione ---------- */
.page-head { background: var(--bg-alt); }
.page-head .container { padding-top: 28px; padding-bottom: clamp(56px, 7vw, 80px); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brick); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-head__grid { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-end; }
.page-head__main { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.page-head__side { flex: 1 1 320px; min-width: 0; }
.page-title { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.page-head--short .page-head__main { max-width: 820px; }

.summary { background: #fff; padding: 26px 28px 18px; border-top: 3px solid var(--navy); }
.summary dl { font-size: 15px; }
.summary__row { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line-3); }
.summary__row dt { flex: 0 0 120px; color: var(--muted); }
.summary__row dd { flex: 1 1 160px; }

.index-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); font-size: 16px; }
.index-list a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #cdd4df; text-decoration: none; color: var(--ink); }
.index-list a:hover { color: var(--brick); }
.index-list span { color: var(--brick); font-weight: 600; }

/* ---------- Pagine servizio ---------- */
.with-aside { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 96px); }
.with-aside__main { flex: 999 1 640px; min-width: 0; }
.with-aside__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.toc { padding: 20px 22px; background: var(--bg-alt); }
.toc ul { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.toc a { display: block; padding: 7px 12px; background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); white-space: nowrap; }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 767px) {
  .toc { margin-right: calc(-1 * var(--gutter)); padding-right: 0; }
  .toc ul { flex-wrap: nowrap; overflow-x: auto; padding-right: var(--gutter); padding-bottom: 4px; }
}

.intro { margin-top: clamp(36px, 5vw, 48px); font-size: clamp(18px, 1.7vw, 20px); line-height: 1.6; color: #2f3747; }
.intro-question { margin-top: clamp(36px, 5vw, 48px); }
.notice { margin-top: 32px; padding: 22px 26px; background: var(--navy-tint); color: var(--navy); font-weight: 500; display: flex; gap: 14px; align-items: flex-start; }
.notice svg { flex: 0 0 22px; margin-top: 2px; }
.sections-heading { margin-top: clamp(48px, 6vw, 64px); }

.svc-sections { margin-top: 40px; border-top: 2px solid var(--ink); }
.svc-section { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.svc-section__num { flex: 0 0 40px; padding-top: 8px; font-weight: 600; color: var(--brick); }
.svc-section__body { flex: 1 1 460px; min-width: 0; }
.svc-section h2, .svc-section h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.svc-section p { margin-top: 14px; color: var(--text-2); }
.svc-section ul { margin-top: 18px; padding-left: 20px; display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: 16px; }
.svc-section li { flex: 1 1 220px; }
@media (max-width: 767px) {
  .svc-section { padding: 30px 0; gap: 6px; }
  .svc-section__num { flex-basis: 100%; padding: 0; }
}

.blockquote { margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-section { margin-top: clamp(56px, 7vw, 72px); }
.page-section > .faq { margin-top: 24px; }
.page-section > .h2 + .prose { margin-top: 20px; }

.prose > * + *, .prose section > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; }
.prose h3 { margin-top: 1.6em; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--ink); text-decoration-color: var(--brick); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }


.aside-nav { border-top: 2px solid var(--ink); }
.aside-nav ul { list-style: none; padding: 0; font-size: 16px; }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.aside-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.aside-nav a[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 600; border-bottom-color: var(--navy); }
.aside-nav .eyebrow { margin: 16px 0 8px; }
.aside-box { background: var(--bg-alt); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.aside-box h2 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.aside-box p { font-size: 15px; color: var(--text-2); }
.aside-box__phone { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.aside-box .hours { font-size: 14px; }
.aside-box .hours__row { border-top-color: #d5dbe5; padding: 8px 0; }
.aside-creds { border: 1px solid var(--line); padding: 22px 24px; font-size: 14px; color: var(--text-2); }
.aside-creds strong { display: block; margin-bottom: 6px; color: var(--ink); }

.related-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.related-card { flex: 1 1 340px; min-width: 0; background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.related-card:hover { border-color: var(--ink); color: var(--ink); }
.related-card__num { font-size: 14px; font-weight: 600; color: var(--brick); }
.related-card__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.related-card__text { font-size: 15px; color: var(--text-2); }

/* ---------- Pagina /servizi ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 64px 56px; }
.area { flex: 1 1 500px; min-width: 0; border-top: 2px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.area__num { font-weight: 600; color: var(--brick); }
.area h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.area h2 a { color: var(--ink); text-decoration: none; }
.area h2 a:hover { color: var(--brick); }
.area > p { color: var(--text-2); }
.area .link-underline { align-self: flex-start; margin-top: 6px; }
.link-list { list-style: none; padding: 0; margin-top: 6px; font-size: 16px; border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.link-list a::after { content: "→"; color: var(--brick); }
.link-list a:hover { color: var(--brick); }

.cta-split { background: var(--bg-alt); }
.cta-split .container { display: flex; flex-wrap: wrap; gap: 0 64px; align-items: stretch; }
.cta-split__body { flex: 1 1 520px; min-width: 0; padding: clamp(56px, 7vw, 80px) 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: center; }
.cta-split__media { flex: 1 1 360px; min-width: 0; }
.cta-split__media picture, .cta-split__media img { height: 100%; }
.cta-split__media img { width: 100%; min-height: 360px; max-height: 480px; object-fit: cover; object-position: 50% 45%; }

/* ---------- Chi siamo ---------- */
.about-head .container { padding-bottom: 0; }
.about-head .page-head__main { padding-bottom: clamp(56px, 7vw, 80px); }
.about-head .page-head__side { flex: 0 1 420px; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.creds { display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); }
.cred { flex: 1 1 300px; min-width: 0; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cred__label { font-size: 13px; color: var(--muted); }
.cred__num { font-family: var(--font-serif); font-size: clamp(48px, 5vw, 60px); line-height: 1; color: var(--navy); }
.network { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.network__intro { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.network .ruled-list { flex: 1 1 520px; min-width: 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery__main { flex: 2 1 520px; min-width: 0; }
.gallery__main img { width: 100%; height: 520px; object-fit: cover; }
.gallery__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery__side img { width: 100%; height: 252px; object-fit: cover; }
@media (max-width: 767px) { .gallery__main img { height: 300px; } .gallery__side img { height: 220px; } }
.area-links { display: flex; flex-wrap: wrap; gap: 16px; }
.area-links a { flex: 1 1 250px; min-width: 0; background: #fff; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; border: 1px solid transparent; }
.area-links a::after { content: "→"; color: var(--brick); }
.area-links a:hover { border-color: var(--ink); color: var(--ink); }
.cta-row { margin-top: 48px; padding-top: 32px; border-top: 1px solid #cdd4df; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.cta-row p { font-size: 22px; font-weight: 600; }

/* ---------- Contatti ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-start; }
.contact-grid__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.contact-details { border-top: 2px solid var(--ink); }
.contact-details div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.contact-details dt { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { font-size: 18px; }
.contact-details__phone { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.contact-details a { color: var(--ink); }
.h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.h3--icon { display: flex; align-items: center; gap: 10px; }
.h3--icon svg { color: var(--navy); }

.form { flex: 1 1 520px; min-width: 0; border: 1px solid var(--line); border-top: 3px solid var(--brick); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.form__head p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field-row .field { flex: 1 1 220px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #858fa1; border-radius: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brick); outline-offset: 0; border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.check a { color: var(--ink); }
.form .btn { align-self: flex-start; }
.form-alert { padding: 14px 16px; background: #fbede9; color: #7a2914; font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pagine legali e di servizio ---------- */
.legal { max-width: 860px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.legal-nav a { padding: 7px 12px; border: 1px solid var(--line-2); font-size: 14px; text-decoration: none; color: var(--ink); }
.legal-nav a:hover { border-color: var(--ink); }
.legal .prose h2 { font-size: 22px; }
.legal .prose h3 { font-size: 17px; text-transform: none; }
.legal .prose { font-size: 16px; }

.message { max-width: 720px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- Stampa ---------- */
@media print {
  .topbar, .site-header nav, .nav-toggle, .mobile-bar, .map, .form { display: none !important; }
  body { padding: 0; }
  .section--dark, .site-footer { background: none; color: #000; }
}

/* ---------- Spaziature ricorrenti ---------- */
.eyebrow--head { margin-bottom: 14px; }
.cards--spaced { margin-top: clamp(36px, 5vw, 52px); }
.section--flush-top { padding-top: 0; }
.h2 + .area-links { margin-top: 28px; }
.message .link-list { align-self: stretch; }
.orari-nota { margin: 6px 0 12px; }
.legal .prose h3 { font-size: 15px; letter-spacing: 0.04em; }
.legal .prose section + section { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal .prose p, .legal .prose li { overflow-wrap: anywhere; }

/* ---------- Schermi stretti ---------- */
@media (max-width: 1023px) {
  .site-header .container { flex-wrap: nowrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .no-js .site-header .container { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand__mark { flex-basis: 40px; width: 40px; height: 40px; font-size: 27px; }
  .brand__mark::after { width: 8px; height: 8px; }
  .brand__name { font-size: 18px; }
  .brand__tag { font-size: 12px; }
  .brand__tag-more { display: none; }
}

/* ---------- Punto focale delle foto verticali ritagliate in riquadri orizzontali ---------- */
.fuoco-alto { object-position: 50% 25%; }

/* ---------- Banner cookie ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; padding: 20px 56px 20px 24px; background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 18px 50px rgba(15, 25, 45, 0.22); font-size: 15px; line-height: 1.5; }
.cookie-banner__title { margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.cookie-banner p { color: var(--text-2); }
.cookie-banner a { color: var(--ink); text-decoration-color: var(--brick); text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* Accetta e Rifiuta hanno lo stesso peso visivo, come chiede il Garante */
.cookie-banner__actions .btn { flex: 1 1 150px; background: var(--navy); color: #fff; }
.cookie-banner__actions .btn:hover { background: var(--ink); color: #fff; }
.cookie-banner__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.cookie-banner__close:hover { color: var(--brick); }
@media (max-width: 767px) {
  .cookie-banner { left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 18px 50px 18px 18px; font-size: 14px; }
}
@media print { .cookie-banner { display: none !important; } }

/* ---------- Tabelle nei testi legali ---------- */
.table-scroll { overflow-x: auto; margin-top: 1em; }
.prose table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--text-2); }
.prose th { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.prose code { font-size: 14px; color: var(--ink); }
