/* ==========================================================================
   D.D.L. Stampaggio S.r.l. - foglio di stile principale
   ========================================================================== */

/* Font self-hosted (SIL Open Font License, vedi assets/fonts/OFL-*.txt) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colori del marchio (dal tema originale) */
  --c-blue: #4285b2;
  --c-accent: #3a7bab;
  --c-blue-ink: #2f6f9c;
  --c-blue-dark: #245a80;
  --c-blue-soft: #eaf2f8;
  --c-navy: #204055;
  --c-ink: #26292c;
  --c-dark: #3e4145;
  --c-text: #3f4347;
  --c-muted: #61666c;
  --c-line: #e1e5e9;
  --c-soft: #f3f5f7;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --edge: clamp(16px, 4vw, 56px); /* margini laterali del footer a tutta larghezza */
  --header-edge: clamp(20px, 5vw, 72px); /* un po' più del footer */
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -16px rgba(32, 64, 85, .35);
  --shadow: 0 18px 40px -18px rgba(32, 64, 85, .45);
  --header-h: 88px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  font: 400 16px/1.7 var(--font-body);
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--c-blue-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

a:hover {
  color: var(--c-blue-dark);
}

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .6em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
}

h1 {
  font-size: clamp(1.9rem, 1.35rem + 2vw, 2.6rem);
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 700;
  color: var(--c-ink);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  color: var(--c-ink);
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  left: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-ink);
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding-inline: var(--header-edge);
}

.brand {
  flex: none;
  line-height: 0;
}

.brand-large {
  width: auto;
  height: 68px;
  border-radius: 3px;
}

.brand-small {
  display: none;
  width: auto;
  height: 42px;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 11px 16px;
  font: 600 .8125rem/1 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #c9ccd0;
  border-radius: 4px;
  transition: background-color .2s ease, color .2s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.main-nav a[aria-current="page"] {
  color: #fff;
  background: var(--c-accent);
}

.lang-switch {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.lang-switch a {
  display: block;
  padding: 8px;
  font: 700 .75rem/1 var(--font-head);
  letter-spacing: .08em;
  text-decoration: none;
  color: #9a9ea4;
  border-radius: 3px;
}

.lang-switch a:hover {
  color: #fff;
}

.lang-switch a[aria-current="true"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--c-blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, background-color .25s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Slideshow home
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  aspect-ratio: 1700 / 550;
  max-height: 600px;
  width: 100%;
  overflow: hidden;
  background: #e7eaed;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(4px, 1.5vw, 14px);
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}

.hero-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(38, 41, 44, .35);
  transition: background-color .25s ease, transform .25s ease;
}

.hero-dots button[aria-current="true"]::before {
  background: var(--c-blue);
  transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   Intestazione pagine interne
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--c-ink) 0%, var(--c-navy) 100%);
  border-bottom: 4px solid var(--c-blue);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 6vw, 72px);
}

.page-hero h1 {
  margin: 0;
  color: #fff;
}

.page-hero .lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: #d3dce3;
  font-size: 1.0625rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font: 600 .75rem/1.4 var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b8c5cf;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .6;
}

.breadcrumb a {
  color: #e2e9ef;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Sezioni e componenti comuni
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section--soft {
  background: var(--c-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin: 0;
  color: var(--c-muted);
  font-size: 1.0625rem;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font: 700 .75rem/1.2 var(--font-head);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-blue-ink);
}

.title-bar::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  background: var(--c-blue);
  border-radius: 2px;
}

.section-head--center .title-bar::after {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font: 600 .8125rem/1 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--c-accent);
  border: 2px solid var(--c-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover {
  color: #fff;
  background: var(--c-blue-dark);
  border-color: var(--c-blue-dark);
}

.btn:disabled {
  opacity: .6;
  cursor: progress;
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.btn--ghost {
  color: var(--c-blue-ink);
  background: transparent;
  border-color: currentColor;
}

.btn--ghost:hover {
  color: #fff;
  background: var(--c-blue-ink);
  border-color: var(--c-blue-ink);
}

.btn--light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
}

.btn--light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.icon {
  flex: none;
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   Home: profilo e valori
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.profile-text p:last-of-type {
  margin-bottom: 28px;
}

.profile-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.profile-media a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-media a:nth-child(2) {
  margin-top: 56px;
}

.profile-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s ease;
}

.profile-media a:hover img {
  transform: scale(1.04);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value {
  padding: 30px 24px;
  background: #fff;
  border-top: 3px solid var(--c-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.value svg {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: var(--c-blue);
}

.value h3 {
  margin: 0;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Servizi: fasi e galleria prodotti
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.services-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.iso-note {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--c-blue-soft);
  border-left: 4px solid var(--c-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.iso-note svg {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--c-blue-ink);
}

.iso-note p {
  margin: 0;
  font-size: .9375rem;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.step:hover {
  border-color: #c9dbe8;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font: 700 1.25rem/1 var(--font-head);
  color: var(--c-blue-ink);
  background: var(--c-blue-soft);
  border-radius: 50%;
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* le miniature originali sono 168px: restano a dimensione naturale su fondo bianco */
.gallery img {
  width: 100%;
  max-width: 168px;
  margin: 14px auto 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery span {
  padding: 10px 14px 16px;
  font-size: .8125rem;
  line-height: 1.4;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Qualità
   -------------------------------------------------------------------------- */
.quality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.cert-logos {
  width: 100px;
  margin-top: 28px;
}

.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.doc-card > a {
  display: block;
  overflow: hidden;
  background: var(--c-soft);
  border-bottom: 1px solid var(--c-line);
}

.doc-card img {
  width: 100%;
  aspect-ratio: 450 / 635;
  object-fit: cover;
  transition: transform .5s ease;
}

.doc-card > a:hover img {
  transform: scale(1.03);
}

.doc-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 26px;
}

.doc-card h3 {
  margin: 0;
}

.doc-card p {
  margin: 0;
  color: var(--c-muted);
  font-size: .9375rem;
}

.doc-card .btn {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Contatti e dove siamo
   -------------------------------------------------------------------------- */
/* Dati aziendali + mappa a tutta larghezza, come la fascia contatti delle altre pagine */
.contact-full {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
  background: var(--c-dark);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  color: #e1e4e7;
}

.contact-card h2 {
  margin-bottom: 24px;
  font-size: 1.375rem;
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.contact-list .icon {
  margin-top: 3px;
  color: var(--c-blue);
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  font: 600 .6875rem/1.3 var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b4b9bf;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  text-decoration: underline;
}

.map-frame {
  min-height: 480px;
  background: #4a4e53;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Testi lunghi (informativa)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 860px;
  margin-inline: auto;
}

.prose h2 {
  margin: 2.2em 0 .5em;
  font-size: 1.0625rem;
  color: var(--c-navy);
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: .6em;
}

.prose li::marker {
  color: var(--c-blue);
}

.prose .intro {
  padding: 22px 26px;
  background: var(--c-soft);
  border-left: 4px solid var(--c-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --------------------------------------------------------------------------
   Fascia contatti (tutte le pagine tranne Contatti)
   -------------------------------------------------------------------------- */
.band-contact {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  color: #cecece;
  background: var(--c-dark);
}

.band-map {
  min-height: 360px;
  background: #4a4e53;
}

.band-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.band-info {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px clamp(24px, 4vw, 56px);
}

.band-info h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: #fff;
}

.band-info address {
  margin-bottom: 22px;
  font-style: normal;
  font-size: .9375rem;
  line-height: 1.8;
}

.band-info address strong {
  color: #fff;
  font-weight: 600;
}

.band-info a {
  color: #fff;
}

.band-info .cert-logos {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  font-size: .875rem;
  color: #a9adb2;
  background: var(--c-ink);
}

/* footer a tutta larghezza */
.footer-inner {
  padding-inline: var(--edge);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 32px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font: 600 .75rem/1.6 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #d9dce0;
}

.footer-nav a:hover {
  color: #fff;
}

.to-top {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  transition: background-color .2s ease;
}

.to-top:hover {
  color: #fff;
  background: var(--c-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 22px 30px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom strong {
  color: #fff;
  font-weight: 600;
}

.footer-bottom .sep {
  margin-inline: 8px;
  opacity: .5;
}

.footer-bottom a {
  color: #d9dce0;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-credit {
  flex: none;
  opacity: .85;
  transition: opacity .2s ease;
}

.footer-credit:hover {
  opacity: 1;
}

.footer-credit img {
  width: 78px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(15, 17, 19, .92);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 76px 40px;
}

.lightbox-inner img {
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
  margin: 16px 0 0;
  color: #e6e8ea;
  text-align: center;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, .22);
}

.lightbox button svg {
  width: 22px;
  height: 22px;
}

.lightbox .lb-close {
  top: 16px;
  right: 16px;
}

.lightbox .lb-prev,
.lightbox .lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-prev {
  left: 16px;
}

.lightbox .lb-next {
  right: 16px;
}

/* --------------------------------------------------------------------------
   Pagina 404: occupa tutto il viewport, footer in fondo e messaggio centrato
   -------------------------------------------------------------------------- */
.page-message {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-message main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.message-page {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.message-page .btn {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav a {
    padding-inline: 11px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .brand-large {
    display: none;
  }

  .brand-small {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--header-edge) 20px;
    background: var(--c-ink);
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 24px rgba(0, 0, 0, .3);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 15px 12px;
    font-size: .875rem;
  }

  .lang-switch {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .profile,
  .services,
  .quality,
  .contact-full,
  .band-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-intro {
    position: static;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .band-map {
    order: 2;
    min-height: 300px;
  }

  .band-map iframe {
    min-height: 300px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs {
    max-width: 380px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery img {
    margin-top: 0;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .step-num {
    width: 44px;
    height: 44px;
    font-size: 1.0625rem;
  }

  .value {
    padding: 22px 18px;
  }

  .band-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-inner {
    padding: 72px 12px 24px;
  }

  .lightbox .lb-prev,
  .lightbox .lb-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox-inner img {
    max-height: calc(100vh - 200px);
  }

  .lightbox-caption {
    margin-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .band-contact,
  .hero,
  .to-top {
    display: none !important;
  }
}
