/* Caratteri ospitati sul sito (nessun collegamento a Google Fonts). Licenza SIL OFL, vedi assets/fonts. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* Layout: header chiaro fisso, pagine a colonna larga max 1180px, fasce a tutta larghezza
   con contenuto interno; azzurro carta da zucchero come colore di superficie, blu profondo per azioni. */
:root {
  --bg: #f3f6f8;
  --surface: #ffffff;
  --ink: #1d2a35;
  --muted: #586774;
  --line: #d9e1e8;
  --zucchero: #9db5ca;
  --zucchero-soft: #e2eaf1;
  --accent: #3b6285;
  --accent-ink: #ffffff;
  --ssn: #2f6f5e;
  --ssn-soft: #dfeee8;
  --shadow: 0 1px 2px rgba(29, 42, 53, .06), 0 8px 24px rgba(29, 42, 53, .06);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --radius: 14px;
  --max: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a21; --surface: #18232c; --ink: #e5ebf0; --muted: #9eadba; --line: #2a3742;
    --zucchero: #5f7e99; --zucchero-soft: #1d2b37; --accent: #a8c4dc; --accent-ink: #10202d;
    --ssn: #8fcfb9; --ssn-soft: #1b2f2a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a21; --surface: #18232c; --ink: #e5ebf0; --muted: #9eadba; --line: #2a3742;
  --zucchero: #5f7e99; --zucchero-soft: #1d2b37; --accent: #a8c4dc; --accent-ink: #10202d;
  --ssn: #8fcfb9; --ssn-soft: #1b2f2a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.eyebrow { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; display: block; }
.brand-sub { font-size: .78rem; color: var(--muted); display: block; line-height: 1.25; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; }
.nav a:hover { background: var(--zucchero-soft); }
.nav a[aria-current="page"] { background: var(--zucchero-soft); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav[hidden] { display: none !important; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav a { padding: 14px 12px; border-radius: 10px; }
}
@media (min-width: 901px) { .nav[hidden] { display: block !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* Hero home */
.hero { padding-block: clamp(28px, 5vw, 56px) 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.hero h1 { font-size: var(--step-3); font-weight: 700; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--muted); font-size: var(--step-1); margin-top: 16px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero .facts li { margin: 0; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--zucchero); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero .facts .fact-label { font-size: .8rem; line-height: 1.25; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.hero .facts strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero .facts strong small { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--muted); }
@media (max-width: 420px) { .hero .facts { gap: 8px; } .hero .facts li { padding: 12px 10px 14px; } .hero .facts .fact-label { font-size: .72rem; } .hero .facts strong { font-size: 1.3rem; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Slider */
.slider { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--zucchero-soft); box-shadow: var(--shadow); }
.slides { position: relative; aspect-ratio: 1400 / 620; max-width: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; }
.slide figcaption > * { background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); max-width: 100%; }
.slide figcaption a::after { content: " →"; color: var(--accent); }
.slider-ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots button { width: 34px; height: 6px; border-radius: 6px; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--accent); }
.arrows { display: flex; gap: 6px; }
.arrows button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.arrows button:hover { background: var(--zucchero-soft); }

/* Info cards home */
.section { padding-block: clamp(36px, 6vw, 64px); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.info .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--zucchero-soft); color: var(--accent); display: grid; place-items: center; }
.info .ico svg { width: 24px; height: 24px; }
.info h2 { font-size: var(--step-1); }
.info p { color: var(--muted); }
.info .more { margin-top: auto; font-weight: 700; }
.big-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }

/* Band */
.band { background: var(--zucchero-soft); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding-block: 32px; }
.band h2 { font-size: var(--step-2); }
.band p { color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Page header (interne) */
.page-head { padding-block: clamp(28px, 5vw, 52px) 8px; }
.page-head h1 { font-size: var(--step-3); margin-top: 8px; }
.page-head .lead { color: var(--muted); font-size: var(--step-1); margin-top: 12px; max-width: 60ch; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Prose */
.prose { max-width: 68ch; }
.prose p + p, .prose p + h2, .prose h2 + p, .prose h3 + p, .prose p + h3 { margin-top: 14px; }
.prose h2 { font-size: var(--step-2); margin-top: 8px; }
.prose h3 { font-size: var(--step-1); margin-top: 26px; }

/* Chi siamo */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo + .photo { margin-top: 18px; }
.sticky-col { position: sticky; top: 100px; }
@media (max-width: 900px) { .sticky-col { position: static; } }
.chapter { padding-block: 28px; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.people { display: grid; gap: 14px; margin-top: 18px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.person .role { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; }
.person h3 { font-size: var(--step-1); margin: 4px 0 8px; }
.person p { color: var(--muted); }
.person p + p { margin-top: 10px; }

/* Prestazioni */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tariff { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 18px; }
.tariff p { color: var(--muted); }
.svc-group { margin-top: 36px; }
.svc-group > h2 { font-size: var(--step-2); }
.svc-group > p { color: var(--muted); margin-top: 6px; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 820px) { .svc-list { grid-template-columns: minmax(0, 1fr); } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 96px; }
.svc[hidden] { display: none !important; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--muted); }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--zucchero-soft); color: var(--accent); }
.tag.ssn { background: var(--ssn-soft); color: var(--ssn); }
.svc .fact { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc details summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style: none; }
.svc details summary::-webkit-details-marker { display: none; }
.svc details summary::after { content: " +"; }
.svc details[open] summary::after { content: " −"; }
.svc details p { margin-top: 10px; }
.svc .machine { margin: 2px 0 4px; background: var(--zucchero-soft); border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.svc .machine img { display: block; width: 100%; height: 280px; object-fit: contain; padding: 12px 12px 0; box-sizing: border-box; }
.svc .machine figcaption { font-size: var(--step--1); color: var(--muted); padding: 8px 14px 10px; }
.svc .cost { margin-top: auto; padding-top: 6px; font-size: var(--step--1); font-weight: 700; }
.svc-photo { border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.svc-photo img { width: 100%; aspect-ratio: 1400 / 420; object-fit: cover; }

/* Trasparenza */
.access { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.access h2 { font-size: var(--step-1); }
.access p { color: var(--muted); }
.doc-list { list-style: none; margin: 24px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-list > li + li { border-top: 1px solid var(--line); }
.doc-list a, .doc-list summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; text-decoration: none; color: var(--ink); cursor: pointer; }
.doc-list a:hover, .doc-list summary:hover { background: var(--zucchero-soft); }
.doc-list summary { list-style: none; }
.doc-list summary::-webkit-details-marker { display: none; }
.doc-list .t { font-weight: 700; }
.doc-list .m { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--zucchero-soft); color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.doc-ico svg { width: 20px; height: 20px; }
.doc-list details .body { padding: 0 20px 18px 74px; color: var(--muted); max-width: 80ch; }
.doc-list details[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .2s ease; display: inline-block; }
@media (max-width: 560px) { .doc-list a, .doc-list summary { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 16px; } .doc-list .m { grid-column: 2; } .doc-list details .body { padding: 0 16px 16px 66px; } }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-cards { display: grid; gap: 14px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.ccard .lbl { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.ccard .val { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-word; }
.ccard .val a { color: var(--ink); text-decoration: none; }
.ccard .val a:hover { color: var(--accent); }
.ccard p { color: var(--muted); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.form h2 { font-size: var(--step-2); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
.privacy-box { font-size: var(--step--1); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 150px; overflow: auto; }
.privacy-box p + p { margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form-msg { padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.form-msg.ok { background: var(--ssn-soft); color: var(--ssn); }
.form-msg.err { background: var(--zucchero-soft); color: var(--ink); }
.map-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--surface); border-top: 1px solid var(--line); font-size: .95rem; }
.site-footer .wrap { padding-block: 40px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 28px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-family: var(--font-body); margin-bottom: 10px; }
.site-footer p { color: var(--muted); }
.site-footer address { font-style: normal; color: var(--ink); line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ins { color: var(--muted); font-size: .9rem; }
.ins li { line-height: 1.45; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ritocchi */
.brand-name { white-space: nowrap; }
@media (max-width: 480px) { .brand-sub { display: none; } .brand svg { width: 40px; height: 40px; } }
.svc-list.single { grid-template-columns: minmax(0, 1fr); }
.svc-list.single .svc { max-width: 760px; }

/* Pagine Privacy policy e Cookie policy */
.legal > * { max-width: 860px; }
.legal { padding-block: 8px clamp(40px, 6vw, 72px); }
.legal h2 { font-size: var(--step-2); margin: 36px 0 12px; }
.legal h3 { font-size: var(--step-1); margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 10px 0 14px; padding-left: 1.4em; display: grid; gap: 6px; }
.legal li > p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th, .table-wrap tr:first-child th { background: var(--zucchero-soft); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Banner cookie */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 720px; margin-inline: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(29,42,53,.18); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cookie-banner p { flex: 1 1 320px; font-size: .95rem; color: var(--muted); }
.cookie-banner p strong { color: var(--ink); }
.cookie-banner .btn { padding: 10px 22px; }
/* Frase di presentazione: occupa tutta la larghezza della colonna, senza limite di caratteri */
.hero .lead { max-width: none; }
.hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
