/* RE.MAT.LAZIO — foglio di stile unico */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* colori presi dal logo */
  --ink: #1f2324;
  --ink-soft: #3c4243;
  --muted: #62696a;
  --grey: #4e5152;
  --paper: #f4f5f2;
  --surface: #ffffff;
  --line: #dfe2dc;
  --green: #15572d;
  --green-mid: #4f8a36;
  --green-deep: #26292b;
  --green-night: #1b1e1f;
  --lime: #96c541;
  --grad: linear-gradient(115deg, #96c541 0%, #3f7a34 38%, #15572d 58%, #8fae45 100%);
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Montserrat", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 244, 239, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 34px; width: auto; }
@media (max-width: 420px) { .brand img { height: 28px; } }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 9px 12px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(21, 87, 45, .08); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green); background: rgba(21, 87, 45, .1); }
.nav .nav-cta a { background: var(--ink); color: #fff; margin-left: 8px; }
.nav .nav-cta a:hover { background: var(--green); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 12px; }
  .nav .nav-cta a { margin: 10px 0 0; text-align: center; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center; font-family: inherit;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #a9d65a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--green); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn[aria-disabled="true"] { background: transparent; border-color: var(--line); color: var(--muted); cursor: default; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(110% 90% at 90% 0%, #2d3a2c 0%, var(--green-deep) 48%, var(--green-night) 100%);
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 110px);
}
/* "E" del logo come segno grafico di sfondo */
.hero-mark {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%; width: min(360px, 26vw); height: auto;
  transform: translateY(-58%); opacity: .55; pointer-events: none;
}
.hero-mark .bar { transform-box: fill-box; transform-origin: left center; animation: bar-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-mark .bar:nth-child(2) { animation-delay: .12s; }
.hero-mark .bar:nth-child(3) { animation-delay: .24s; }
.hero-mark .bar:nth-child(4) { animation-delay: .36s; }
@keyframes bar-in { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .hero-mark .bar { animation: none; } }
@media (max-width: 900px) { .hero-mark { right: -30%; width: 90vw; opacity: .12; transform: translateY(-50%); } }
.page-head .hero-mark { opacity: .35; transform: translateY(-50%); }

.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(42px, 7.4vw, 92px); max-width: 12ch; margin-bottom: 26px; font-weight: 780; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(17px, 1.8vw, 21px); max-width: 560px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  position: relative; margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-facts div { padding: 22px 24px 0 0; }
.hero-facts strong { display: block; font-size: 17px; margin-bottom: 4px; }
.hero-facts span { font-size: 15px; color: rgba(255,255,255,.66); }
@media (max-width: 720px) {
  .hero-facts { grid-template-columns: minmax(0, 1fr); }
  .hero-facts div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Page head (pagine interne) ---------- */
.page-head { background: radial-gradient(90% 120% at 100% 0%, #2d3a2c 0%, var(--green-deep) 60%); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 14px; }
.page-head p { color: rgba(255,255,255,.75); max-width: 620px; font-size: 18px; margin: 0; }
.page-head .hero-mark { width: min(240px, 40vw); }
.crumbs { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 16ch; margin: 0; }
.section-head p { max-width: 440px; color: var(--muted); margin: 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: block; }

/* Card servizi */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.section-alt .card { background: var(--paper); }
.card:hover { transform: translateY(-4px); border-color: rgba(21,87,45,.35); box-shadow: 0 18px 40px -24px rgba(12,26,21,.35); }
.card-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(21,87,45,.1); color: var(--green); display: grid; place-items: center; margin-bottom: 8px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin: 0; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split h2 { font-size: clamp(30px, 4vw, 46px); }
.prose p { color: var(--ink-soft); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: .4em; }
.prose a:not(.btn) { color: var(--green); }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { border-left: 3px solid var(--lime); padding: 6px 0 6px 18px; }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* Lista rifiuti / tag */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }

/* Banda CTA */
.cta-band { background: var(--lime); border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 44px); max-width: 18ch; margin: 0 0 8px; }
.cta-band p { margin: 0; color: var(--ink-soft); max-width: 520px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Bilanci ---------- */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.doc-year { font-size: 34px; font-weight: 780; letter-spacing: -.03em; color: var(--green); }
.doc h3 { font-size: 19px; margin: 0 0 4px; }
.doc p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .doc .btn { justify-self: start; margin-top: 8px; }
}
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; color: var(--ink-soft); font-size: 15.5px; }
.note strong { color: var(--ink); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
a.contact-card:hover { border-color: var(--green); transform: translateY(-3px); }
.contact-card .label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card .value-big { font-size: clamp(20px, 2.2vw, 24px); font-weight: 750; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-card .hint { font-size: 15px; color: var(--muted); }

.map {
  margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  height: clamp(320px, 38vw, 480px); position: relative;
  background:
    linear-gradient(rgba(21,87,45,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(21,87,45,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface);
  display: grid; place-items: center; text-align: center;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { padding: 24px; max-width: 460px; }
.map-placeholder p { color: var(--muted); font-size: 15px; }

/* ---------- Pagine legali ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin-top: 2em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1em 0 1.5em; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { width: 38%; color: var(--muted); font-weight: 600; }
.updated { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-night); color: rgba(255,255,255,.75); padding: 72px 0 32px; font-size: 15px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.site-footer .brand img { height: 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand { color: #fff; margin-bottom: 18px; }

.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal-data { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-data p { margin: 0; max-width: 820px; }

/* ---------- Animazione d'ingresso ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Segnaposto da completare prima della pubblicazione */
.da-confermare { background: rgba(150, 197, 65, .25); border-radius: 4px; padding: 0 4px; }

/* Link utili */
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .links { grid-template-columns: minmax(0, 1fr); } }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15.5px; transition: border-color .2s ease, color .2s ease; }
.links a:hover { border-color: var(--green); color: var(--green); }
.links svg { width: 16px; height: 16px; flex: none; opacity: .6; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 10px; border-left: 3px solid var(--green-mid); border-bottom: 3px solid var(--green-mid); transform: rotate(-45deg); transform-origin: center; }


/* Elenco documenti con icona (autorizzazioni, trasparenza) */
.doc-ic { grid-template-columns: 56px minmax(0, 1fr) auto; }
.doc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(150, 197, 65, .16); color: var(--green); }
.doc-icon svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .doc-ic { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Amministrazione Trasparente ---------- */
.at-section { padding: clamp(48px, 6vw, 84px) 0; }
.at-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.at-grid li { display: grid; }
.at-card { display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; gap: 20px; align-items: center; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.at-card:hover { border-color: var(--green); }
.at-card > svg { width: 20px; height: 20px; color: var(--green); }
.at-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(150, 197, 65, .2); color: var(--green); font-family: var(--font-head); font-weight: 800; }
.at-card strong { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.25; }
.at-desc { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.at-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.at-side { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; }
.at-side-title { margin: 0 12px 10px; font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.at-side-title a { text-decoration: none; }
.at-side ol { list-style: none; margin: 0; padding: 0; }
.at-side li a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 1.35; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.at-side li a:hover { background: var(--paper); color: var(--ink); }
.at-side li a[aria-current="page"] { background: rgba(21, 87, 45, .1); color: var(--green); }
.at-body > h2 { font-size: clamp(26px, 3vw, 36px); scroll-margin-top: 100px; }
.at-body > h2:not(:first-of-type) { margin-top: 64px; }
.at-body > h3 { font-size: 20px; margin-top: 36px; }
.at-body > p { max-width: 680px; color: var(--ink-soft); }
.at-body p a:not(.btn), .recapiti a, .form a { color: var(--green); }
.at-body > .at-ref { font-size: 14px; color: var(--muted); max-width: none; margin-bottom: 28px; }
.at-body > .empty { border: 1px dashed #bfc5bb; border-radius: 14px; padding: 24px; max-width: none; }
.statement { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 44px; }
.statement p { margin: 0; font-size: 19px; font-weight: 600; max-width: 640px; }
.docs:not(:has(li)) { display: none; }
.at-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.at-jump a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; }
.at-jump a:hover { border-color: var(--green); color: var(--green); }
.recapiti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.recapiti div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.recapiti dt { font-size: 14px; color: var(--muted); }
.recapiti dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.plain { padding-left: 1.2em; color: var(--ink-soft); max-width: 680px; }
.plain li { margin-bottom: .5em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.at-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; }
.at-table th, .at-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.at-table tbody tr:last-child td { border-bottom: 0; }
.at-table th { color: var(--muted); font-weight: 600; }
.at-table .none { color: var(--muted); }
/* Modulo */
.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); margin: 28px 0 24px; display: grid; gap: 20px; justify-items: start; overflow: hidden; }
.form > * { width: 100%; margin: 0; }
.form > .btn { width: auto; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #8b938b; border-radius: 10px; padding: 12px 14px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--lime); outline-offset: 1px; border-color: var(--green); }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.form-hint { font-size: 14px; color: var(--muted); }
.form > .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .at-grid, .at-layout { grid-template-columns: minmax(0, 1fr); }
  .at-side { position: static; order: 2; }
}
@media (max-width: 560px) {
  .form-row, .recapiti { grid-template-columns: minmax(0, 1fr); }
  .at-card { padding: 20px; gap: 14px; }
}

/* titoli sopra la E del logo */
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { text-wrap: balance; }
@media (min-width: 901px) { .page-head h1 { max-width: min(100%, 800px); } }
@media (min-width: 901px) { .at-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.at-intro { max-width: 70ch; margin: 0 0 32px; }

/* Azienda e servizi */
section[id] { scroll-margin-top: 74px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
h3 + .tags, h3 + .checklist { margin-top: 14px; }
.tags-white li { background: var(--surface); }
.values-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .values-3 { grid-template-columns: minmax(0, 1fr); } }

/* pagine legali allineate al titolo */
.wrap.legal { max-width: var(--wrap); }
.wrap.legal > * { max-width: 780px; }
.wrap.legal > h2:first-child { margin-top: 0; }

/* E del logo discreta dietro i titoli su telefono */
@media (max-width: 900px) { .page-head .hero-mark { opacity: .12; right: -12%; } }

.norme { margin: 0; border-top: 1px solid var(--line); }
.norme div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.norme dt { font-weight: 700; }
.norme dd { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
/* area di tocco su telefono */
@media (max-width: 900px) {
  .site-footer li a, .crumbs a { display: inline-block; padding: 6px 0; }
  .site-footer ul { gap: 2px; }
  .nav { max-height: calc(100vh - 74px); overflow-y: auto; }
}

/* Avviso sospensione */
.avviso { background: #fff4d6; color: #3d2f00; border-bottom: 1px solid #ecd58f; font-size: 14.5px; line-height: 1.5; }
.avviso .wrap { padding-top: 10px; padding-bottom: 10px; }
.avviso p { margin: 0; }
.avviso a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; display: inline-block; padding: 2px 0; }
.avviso-inline { background: #fff4d6; border: 1px solid #ecd58f; border-radius: 12px; padding: 12px 16px; color: #3d2f00; font-size: 15px; margin: 0 0 18px; }
.stato { border: 1px solid #ecd58f; background: #fff8e6; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 44px; scroll-margin-top: 90px; }
.stato p { margin: 0; color: var(--ink-soft); }
.stato .stato-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a5c00; }
.stato .stato-value { font-size: 22px; font-weight: 750; color: var(--ink); margin: 4px 0 10px; }
.tags-note { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 600px) { .avviso { font-size: 13.5px; } }

/* Bilanci con più documenti */
.doc-multi { grid-template-columns: 110px minmax(0, 1fr); align-items: start; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-sm { padding: 10px 16px; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-sm:hover { border-color: var(--green); }
.btn-sm svg { width: 16px; height: 16px; }
.btn-sm .sz { color: var(--muted); font-weight: 500; font-size: 13px; }
.contact-card .value-big { overflow-wrap: anywhere; }
@media (max-width: 600px) { .doc-multi { grid-template-columns: minmax(0, 1fr); gap: 6px; } .doc-links .btn-sm { width: 100%; justify-content: flex-start; } }
.wrap.legal table th, .wrap.legal table td { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .avviso + .site-header .nav { max-height: calc(100vh - 160px); } }
.btn-sm .sz { white-space: nowrap; }

/* Avviso fisso dentro l'header (resta visibile scorrendo) */
:root { --hdr: 74px; }
html { scroll-padding-top: calc(var(--hdr) + 12px); }
section[id], .stato, .at-body > h2 { scroll-margin-top: 0; }
.site-header:has(.avviso)::before { display: none; }
.site-header .avviso { position: relative; border-bottom: 0; padding-bottom: 3px; }
.site-header .avviso::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.av-short { display: none; }
.at-side { top: calc(var(--hdr) + 24px); }
@media (max-width: 600px) {
  .av-long { display: none; }
  .av-short { display: inline; }
  .site-header .avviso .wrap { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 1000px) {
  .site-header > .wrap { transform: translateZ(0); }
  .nav, .avviso + .site-header .nav { max-height: calc(100vh - var(--hdr)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .av-long { display: none; }
  .av-short { display: inline; }
  .site-header .avviso .wrap { padding-top: 6px; padding-bottom: 6px; }
  .site-header .wrap { height: 60px; }
  .site-header .nav { top: 60px; }
}

/* Tabelle importi */
.at-table .num { text-align: right; white-space: nowrap; }
.at-table tfoot th, .at-table tfoot td { border-top: 2px solid var(--line); }

/* Tabelle nelle pagine legali */
.legal .table-scroll { margin: 1.2em 0 1.4em; }
.legal .table-scroll table { margin: 0; }
.legal .at-table { min-width: 640px; font-size: 14.5px; }
.legal .at-table th, .legal .at-table td { width: auto; padding: 13px 16px; vertical-align: top; }
.legal .at-table td:first-child { color: var(--ink); font-weight: 600; }
.legal .at-jump { margin: 1.6em 0 0; }
.legal .at-jump a { font-size: 14px; padding: 7px 12px; }
.legal .note { margin: 1.2em 0; }
.legal .statement { margin: 1.6em 0 0; }
.legal h2[id], .legal h3 { scroll-margin-top: calc(var(--hdr, 80px) + 16px); }

/* Tabelle a scomparsa */
.toggle-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 14px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toggle-head h3 { margin: 0; }
.toggle-meta { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.toggle-btn { display: none; min-width: 132px; justify-content: center; }
.js .toggle-btn { display: inline-flex; }
.toggle-btn::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.toggle-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.toggle-body[hidden] { display: none !important; }
