/* Capannonisolari.it — foglio di stile unico, nessuna dipendenza esterna */

@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/bigshoulders-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0F2E4A;        /* blu capannone */
  --navy-deep: #0A2136;
  --ink: #16242F;
  --steel: #54646F;       /* testo secondario */
  --lamiera: #EDF0F2;     /* grigio lamiera zincata */
  --line: #CFD6DB;
  --orange: #F0591E;      /* arancio pannello, dal logo */
  --orange-ink: #B83F0C;  /* arancio leggibile su bianco */
  --sun: #FFB81C;
  --sun-pale: #FFF3D2;
  --green: #0E7A45;
  --white: #fff;
  --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --tooth-w: 56px;
  --tooth-h: 22px;
  --tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 56 0v22z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
p, ul, ol { margin: 0 0 1.1em; }
strong, b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; color: var(--navy); margin: 0 0 .45em; letter-spacing: .002em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .98; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.1; font-weight: 700; }
h2.h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); line-height: 1.1; font-weight: 700; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink); max-width: 62ch; }
.muted { color: var(--steel); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--orange-ink); font-weight: 700; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .7rem 1.25rem; border: 2px solid transparent; border-radius: 4px; font: 600 1.0625rem/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn .ico { flex: none; }
.btn--call { background: var(--sun); color: var(--navy); }
.btn--call:hover { background: #FFC94D; color: var(--navy); }
.btn--wa { background: var(--green); color: var(--white); }
.btn--wa:hover { background: #0B6539; color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.logo { flex: none; display: block; }
.logo img { width: 233px; height: 40px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .5rem .55rem; white-space: nowrap; font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); font-weight: 600; }
.header-call { flex: none; display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; background: var(--sun); color: var(--navy); border-radius: 4px; text-decoration: none; line-height: 1.1; }
.header-call:hover { background: #FFC94D; color: var(--navy); }
.header-call small { display: block; font-size: .75rem; font-weight: 500; }
.header-call b { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; }
.nav-toggle { display: none; flex: none; margin-left: auto; width: 48px; height: 48px; border: 2px solid var(--navy); border-radius: 4px; background: var(--white); cursor: pointer; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2.5px; background: var(--navy); margin-inline: auto; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }

@media (max-width: 1220px) {
  .nav-toggle { display: block; order: 3; margin-left: 0; }
  .header-call { margin-left: auto; padding: .45rem .7rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--navy); margin: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 20px 1rem; gap: 0; }
  .nav a { padding: .85rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
}
@media (max-width: 560px) {
  .logo img { width: 152px; height: 26px; }
  .site-header__in { gap: .5rem; min-height: 62px; }
  .header-call { padding: .5rem .55rem; }
  .header-call small { display: none; }
  .header-call b { font-size: 1.15rem; }
  .header-call .ico { display: none; }
  .nav-toggle { width: 44px; height: 44px; }
}

/* ---------- Briciole ---------- */
.crumbs { padding-block: .8rem 0; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--steel); }

/* ---------- Profilo a shed (il dente di sega dei tetti industriali) ---------- */
.saw { height: var(--tooth-h); margin-top: calc(var(--tooth-h) * -1); position: relative; z-index: 2; background: var(--to, var(--white));
  -webkit-mask: var(--tooth) repeat-x left bottom / var(--tooth-w) var(--tooth-h); mask: var(--tooth) repeat-x left bottom / var(--tooth-w) var(--tooth-h); }
.saw--steel { --to: var(--lamiera); }
.saw--navy { --to: var(--navy); }
.saw--deep { --to: var(--navy-deep); }

/* ---------- Sezioni ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--steel { background: var(--lamiera); }
.section--navy { background: var(--navy); color: #E6EDF2; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--sun); }
.section__head { max-width: 60ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.grid-2--top { align-items: start; }
.grid-2--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) {
  .grid-2, .grid-2--wide-left { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 > .media--first { order: -1; }
}
.media img { width: 100%; border-radius: 4px; }
.media figcaption, .caption { font-size: .9rem; color: var(--steel); margin-top: .5rem; }
.sticky { position: sticky; top: 96px; }
@media (max-width: 900px) { .sticky { position: static; } }

/* ---------- Hero della home ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10, 33, 54, .95) 0%, rgba(10, 33, 54, .86) 42%, rgba(10, 33, 54, .42) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) calc(clamp(2.5rem, 6vw, 5rem) + var(--tooth-h)); }
.hero h1 { color: var(--white); }
.hero .lead { color: #E6EDF2; }
.hero__points { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: grid; gap: .55rem; font-weight: 500; }
.hero__points li { display: flex; gap: .6rem; align-items: flex-start; }
.hero__points .ico { color: var(--sun); flex: none; margin-top: .15rem; }
.hero .btn--ghost { color: var(--white); border-color: var(--white); }
.hero .btn--ghost:hover { background: var(--white); color: var(--navy); }
@media (max-width: 980px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero::before { background: rgba(10, 33, 54, .88); }
}

/* ---------- Testata delle pagine interne ---------- */
.page-head { background: var(--navy); color: #E6EDF2; padding-block: clamp(2rem, 5vw, 3.75rem) calc(clamp(2rem, 5vw, 3.75rem) + var(--tooth-h)); }
.page-head h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: 22ch; }
.page-head .lead { color: #E6EDF2; }
.page-head .btn--ghost { color: var(--white); border-color: var(--white); }
.page-head .btn--ghost:hover { background: var(--white); color: var(--navy); }
.page-head__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-head__in--solo { grid-template-columns: minmax(0, 1fr); }
.page-head .media img { aspect-ratio: 4 / 3; object-fit: cover; }
.page-head .btn-row { margin-top: 1.5rem; }
.crumbs + main .page-head, .crumbs--dark { }
@media (max-width: 900px) { .page-head__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Requisiti in tre punti ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.facts > div { padding: 1.4rem 1.5rem 0 0; }
.facts > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--navy); margin-bottom: .5rem; }
.facts p { margin: 0; color: var(--steel); }
@media (max-width: 760px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 1.1rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Passi del percorso ---------- */
.steps { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 0; }
.steps > li { counter-increment: passo; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1.1rem; padding-bottom: 1.9rem; position: relative; }
.steps > li::before { content: counter(passo); font-family: var(--display); font-weight: 800; font-size: 2.9rem; line-height: .85; color: var(--orange); text-align: left; }
.steps > li::after { content: ""; position: absolute; left: .8rem; top: 3rem; bottom: .35rem; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: .3em; }
.steps h2 { font-size: clamp(1.5rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.1; margin-bottom: .35em; }
.steps ul { padding-left: 1.2em; max-width: 62ch; }
.steps li li { margin-bottom: .35em; }
.steps p { margin-bottom: .5em; max-width: 62ch; }
.section--navy .steps > li::after { background: rgba(255, 255, 255, .25); }
.section--navy .steps > li::before { color: var(--sun); }

/* ---------- Elenchi con spunta ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .65rem; }
.ticks li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; }
.ticks li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: .22rem; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m4.500 12.500 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m4.500 12.500 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat; }
.section--navy .ticks li::before { background: var(--sun); }

/* ---------- Riquadri ---------- */
.note { background: var(--sun-pale); border-left: 5px solid var(--sun); padding: 1.1rem 1.3rem; border-radius: 0 4px 4px 0; margin: 1.5rem 0; max-width: 70ch; }
.note > :last-child { margin-bottom: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); }
.section--steel .panel { border-color: transparent; }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }

.cta-inline { display: grid; gap: 1rem; margin: 2.25rem 0; padding: 1.4rem 1.5rem; background: var(--lamiera); border-radius: 6px; border-top: 4px solid var(--orange); }
.section--steel .cta-inline { background: var(--white); }
.cta-inline__title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--navy); margin: 0 0 .2em; }
.cta-inline p { margin: 0; }

/* ---------- Schede di rimando ---------- */
.lcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lcard { display: block; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s; }
.lcard strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--navy); margin-bottom: .4rem; }
.lcard span { color: var(--steel); }
.lcard:hover { border-color: var(--navy); color: var(--ink); }
.lcard:hover strong { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .15em; }
@media (max-width: 820px) { .lcards, .lcards--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tipologie di tetto (foto + testo) ---------- */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.kinds article img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-bottom: 1rem; width: 100%; }
.kinds h3 { margin-bottom: .3em; }
.kinds p { margin-bottom: .5em; }
@media (max-width: 900px) { .kinds { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--navy); border-bottom: 3px solid var(--navy); }
tbody th { font-weight: 600; width: 28%; }

/* ---------- Domande frequenti ---------- */
.faq { border-top: 2px solid var(--navy); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; font-weight: 600; font-size: 1.125rem; position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .25rem; top: 1.45rem; width: 16px; height: 16px; background: linear-gradient(var(--orange), var(--orange)) center / 16px 3px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 3px 16px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.5rem 1.2rem 0; }
.faq__a p { margin: 0; }
.section--steel .faq details { border-bottom-color: #C3CBD1; }

/* ---------- Modulo ---------- */
.form { background: var(--white); color: var(--ink); border-radius: 6px; padding: clamp(1.25rem, 3vw, 1.9rem); border: 1px solid var(--line); border-top: 6px solid var(--sun); }
.hero .form, .page-head .form { border-color: transparent; border-top-color: var(--sun); }
.form__title { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; color: var(--navy); margin: 0 0 .2em; }
.form__sub { color: var(--steel); margin: 0 0 1.1rem; font-size: 1rem; }
.form__error { background: #FDE8E1; border-left: 5px solid #C62F0A; padding: .8rem 1rem; color: #7A1C05; font-weight: 500; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font-weight: 600; color: var(--orange-ink); padding: 0; margin-bottom: .6rem; font-size: .95rem; }
.form__step + .form__step { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.f { display: block; margin-bottom: .9rem; }
.f > span { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .3rem; color: var(--ink); }
.f em { font-style: normal; font-weight: 400; color: var(--steel); font-size: .88rem; }
.f small { display: block; color: var(--steel); font-size: .88rem; margin-top: .25rem; }
.f input, .f select, .f textarea { width: 100%; font: 400 1.0625rem/1.3 var(--text); color: var(--ink); background: var(--white); border: 1.5px solid #9AA7B1; border-radius: 4px; padding: .7rem .8rem; min-height: 50px; }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid var(--sun); outline-offset: 0; border-color: var(--navy); }
.f [aria-invalid="true"] { border-color: #C62F0A; background: #FFF6F3; }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .9rem; }
@media (max-width: 520px) { .f-row { grid-template-columns: minmax(0, 1fr); } }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chips span { display: inline-flex; align-items: center; justify-content: center; min-width: 5.2rem; min-height: 48px; padding: .4rem 1rem; border: 1.5px solid #9AA7B1; border-radius: 4px; font-weight: 500; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--sun); }
.f-check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .95rem; margin: .3rem 0 1.1rem; }
.f-check input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--navy); }
.form__note { font-size: .9rem; color: var(--steel); margin: 1rem 0 0; }
.form__back { display: block; margin: .8rem auto 0; background: none; border: 0; color: var(--navy); text-decoration: underline; font: 500 .95rem var(--text); cursor: pointer; padding: .4rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
/* Modulo in due passaggi quando JavaScript è attivo */
.form.is-stepped .form__step { display: none; margin-top: 0; padding-top: 0; border-top: 0; }
.form.is-stepped[data-current="1"] [data-step="1"],
.form.is-stepped[data-current="2"] [data-step="2"] { display: block; }
.form.is-stepped [data-next], .form.is-stepped [data-back] { display: flex; }
.form.is-stepped [data-back] { display: block; }
.form.is-stepped legend::after { color: var(--steel); font-weight: 400; }
.form.is-stepped [data-step="1"] legend::after { content: "  (passo 1 di 2)"; }
.form.is-stepped [data-step="2"] legend::after { content: "  (passo 2 di 2)"; }

/* ---------- Contatti ---------- */
.channels { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.channels a { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .2rem 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--white); }
.channels a:hover { border-color: var(--navy); }
.channels .ico { width: 34px; height: 34px; grid-row: span 2; color: var(--navy); }
.channels strong { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--navy); }
.channels span { color: var(--steel); font-size: .98rem; }

/* ---------- Province ---------- */
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem var(--gap); }
.regions h3 { border-bottom: 3px solid var(--navy); padding-bottom: .3rem; margin-bottom: .6rem; }
.regions ul { list-style: none; margin: 0; padding: 0; }
.regions li a { display: block; padding: .32rem 0; }
@media (max-width: 900px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .regions { grid-template-columns: minmax(0, 1fr); } }
.taglist { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: .5rem; }
.taglist li { background: var(--lamiera); border-radius: 4px; padding: .35rem .75rem; font-weight: 500; }
.section--steel .taglist li { background: var(--white); }
.inline-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }

/* ---------- Chiusura e piè di pagina ---------- */
.closing { background: var(--navy); color: #E6EDF2; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.closing__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; }
.closing h2 { color: var(--white); margin-bottom: .3em; }
.closing p { margin: 0; max-width: 52ch; }
.closing .btn--ghost { color: var(--white); border-color: var(--white); }
.closing .btn--ghost:hover { background: var(--white); color: var(--navy); }
.closing .btn-row { flex-direction: column; }
@media (max-width: 900px) { .closing__in { grid-template-columns: minmax(0, 1fr); } .closing .btn-row { flex-direction: row; } }

.site-footer { background: var(--navy-deep); color: #C9D5DE; padding-top: clamp(2.5rem, 5vw, 4rem); font-size: 1rem; }
.site-footer a { color: #E6EDF2; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem var(--gap); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand img { margin-bottom: 1rem; }
.footer-brand p { max-width: 38ch; }
.footer-contacts a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; }
.footer-contacts .ico { color: var(--sun); width: 20px; height: 20px; }
.footer-h { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--white); margin-bottom: .7rem; }
.footer-prov { columns: 2; column-gap: 1rem; }
.footer-legal { margin-top: 2.5rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: #A9B8C3; }
.footer-legal p { margin: 0 0 .5rem; }
.footer-legal a, .footer-legal span { margin-right: 1.1rem; }
.footer-legal a { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Barra fissa su telefono ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 62px; }
  .mobile-bar { display: grid; grid-template-columns: 1.35fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-deep); box-shadow: 0 -2px 10px rgba(10, 33, 54, .25); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 62px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--white); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar__call { background: var(--sun); color: var(--navy) !important; }
  .mobile-bar__wa { background: var(--green); }
  .closing .btn-row { flex-direction: column; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Pagine legali e 404 ---------- */
.legal h2 { font-size: 1.7rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.3rem; }
.notfound { text-align: left; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .mobile-bar, .closing, .site-footer nav, .form { display: none !important; } }
.prose ul.taglist, .prose ul.inline-links, .prose ul.ticks { padding-left: 0; }
.prose ul.inline-links li, .prose ul.taglist li { margin-bottom: 0; }
