/* ==========================================================================
   Sicur.Fer — Fabbro Pronto Intervento H24 Roma
   Stylesheet principale — palette rosso/nero, mobile-first
   ========================================================================== */

:root {
  --black: #0d0d0d;
  --anthracite: #1a1a1a;
  --anthracite-2: #262626;
  --red: #c8102e;
  --red-dark: #960c22;
  --red-light: #e8344f;
  --white: #ffffff;
  --offwhite: #f6f4f2;
  --gray-100: #ebe8e5;
  --gray-300: #c9c5c1;
  --gray-600: #5c5856;
  --gray-700: #3a3735;

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-small: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --container: 1180px;

  --sticky-bar-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

/* Jost è il font di default per il testo corrente (paragrafi, liste, testo
   piccolo): copre automaticamente tutto ciò che non ha una regola propria.
   Titoli, bottoni, nav e altri elementi in grassetto/UI restano su Inter
   tramite override espliciti più sotto. */
body {
  margin: 0;
  font-family: var(--font-small);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-bar-height);
}

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

a {
  color: var(--red);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--black);
}

h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }
li { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus visibile per accessibilità */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Icone SVG (sostituiscono le emoji) ---------- */
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Reveal on scroll (whisper, non slop) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--dark {
  background: var(--black);
  color: var(--gray-100);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--offwhite {
  background: var(--offwhite);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 0.6em;
}

.section-head p {
  color: var(--gray-600);
}

.section--dark .section-head p {
  color: var(--gray-300);
}

/* Fix contrasto WCAG AA: --red su sfondo nero è ~3.5:1 (sotto soglia per testo
   piccolo). --red-light su nero è ~5:1, passa AA. */
.section--dark .eyebrow {
  color: var(--red-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn--whatsapp {
  background: #1ea952;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #168540;
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.btn--dark-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn--dark-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--block { width: 100%; }
.btn--lg { padding: 1em 2em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 3px solid var(--red);
}

.site-header__inner {
  display: flex;
  align-items: center;
  /* Sotto i 900px .main-nav è display:none, quindi .header-actions resta
     l'unico figlio flex in flusso: con un solo elemento, space-between lo
     allinea a sinistra invece che a destra. Fix con l'override mobile qui
     sotto (flex-end). */
  justify-content: space-between;
  position: relative;
  padding: 0.85rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 899.98px) {
  .site-header__inner {
    justify-content: flex-end;
  }
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 900px) {
  .logo { font-size: 2.6rem; }
}

.logo span {
  color: var(--red);
}

.logo small {
  display: block;
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }
}

/* Child combinator diretto (>) invece del discendente generico: così questa
   regola colpisce solo la lista di primo livello (Servizi/Zone/FAQ) e non
   anche l'<ul class="nav-dropdown"> annidato dentro il <li>. Era proprio
   questo il bug: "align-items:center" (specificità più alta di .nav-dropdown
   da solo) centrava ogni voce del dropdown come elemento flex, anche con
   text-align:left sul testo al suo interno. */
.main-nav > ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.8rem;
}

.main-nav a {
  color: var(--gray-100);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.05rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--red-light);
}

/* ---------- Dropdown "Servizi" ---------- */
.main-nav li.has-dropdown {
  position: relative;
}

.main-nav .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  color: var(--gray-100);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.4rem 0;
}

.main-nav .dropdown-toggle .icon-svg {
  width: 0.7em;
  height: 0.7em;
  transition: transform 0.15s ease;
}

.main-nav li.has-dropdown:hover .dropdown-toggle,
.main-nav li.has-dropdown:focus-within .dropdown-toggle,
.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle[aria-current="page"] {
  color: var(--red-light);
}

.main-nav li.has-dropdown:hover .dropdown-toggle .icon-svg,
.main-nav li.has-dropdown:focus-within .dropdown-toggle .icon-svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  /* .main-nav ul { display:flex } si applica anche a questo <ul> annidato:
     va sovrascritto esplicitamente per ottenere un elenco verticale.
     flex-direction:column è ridondante con display:block ma resta come
     rete di sicurezza in caso di ulteriori regole flex ereditate. */
  display: block;
  flex-direction: column;
  text-align: left;
  width: max-content;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  transform: translateY(-6px);
  background: var(--anthracite);
  border: 1px solid var(--anthracite-2);
  border-top: 2px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 70;
}

.main-nav li.has-dropdown:hover .nav-dropdown,
.main-nav li.has-dropdown:focus-within .nav-dropdown,
.main-nav li.has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown a {
  display: block;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--gray-100);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--red-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-call {
  display: none;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 1.1rem;
  line-height: 1;
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Pannello laterale a scorrimento: resta sempre nel render tree (niente
   display:none) così la transizione su transform/visibility può animare;
   "top" viene impostato via JS all'altezza reale dell'header, per non
   coprirlo e lasciare il pulsante di apertura/chiusura sempre visibile. */
.mobile-nav {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: var(--anthracite);
  border-left: 1px solid var(--anthracite-2);
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
  z-index: 65;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
  z-index: 55;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  padding: 0.5rem 1.25rem 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  color: var(--gray-100);
  font-family: var(--font-main);
  font-weight: 600;
  border-bottom: 1px solid var(--anthracite-2);
}

@media (min-width: 900px) {
  .mobile-nav,
  .mobile-nav-backdrop { display: none !important; }
}

/* ---------- Sticky bottom CTA bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  height: var(--sticky-bar-height);
  background: var(--black);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  border-top: 2px solid var(--red);
  transition: transform 0.3s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(100%);
}

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}

.sticky-cta__call {
  background: var(--red);
}

.sticky-cta__call:hover { background: var(--red-dark); }

.sticky-cta__whatsapp {
  background: #1ea952;
}

.sticky-cta__whatsapp:hover { background: #168540; }

.sticky-cta__icon { font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--black) 0%, var(--anthracite) 60%, var(--red-dark) 130%);
  color: var(--white);
  padding: 2.75rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid var(--red-light);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee06a;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(46, 224, 106, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 224, 106, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46, 224, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 224, 106, 0); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  max-width: 1000px;
}

.hero__lead {
  font-size: 1.25rem;
  color: var(--gray-300);
  max-width: 760px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__meta-item strong {
  display: block;
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: var(--white);
}

.hero__meta-item span {
  font-size: 0.8rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Trust badges ---------- */
.badges {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.badges__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
}

@media (min-width: 700px) {
  .badges__grid { grid-template-columns: repeat(4, 1fr); }
}

.badge-item {
  text-align: center;
  padding: 0.5rem;
}

.badge-item .icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.badge-item strong {
  display: block;
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--black);
}

.badge-item span {
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ---------- Come funziona — layout editoriale a timeline ---------- */
.steps--timeline {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 800px) {
  .steps--timeline {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
  }

  .steps--timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-100);
  }
}

.step-item {
  position: relative;
}

.step-item .step-number {
  display: inline-block;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--red);
  background: var(--white);
  padding-right: 0.4em;
  margin-bottom: 0.5rem;
}

.step-item h3 { margin-bottom: 0.4em; }

/* ---------- Servizi cards ---------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--red);
}

.service-card .more-link {
  margin-top: auto;
  font-family: var(--font-main);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.service-card--premium {
  border: 2px solid var(--red);
  position: relative;
}

.service-card--premium::before {
  content: "Prodotto Premium";
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

/* ---------- Certificazioni / garanzie ---------- */
.guarantees-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .guarantees-grid { grid-template-columns: repeat(3, 1fr); }
}

.guarantee-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.guarantee-card .icon { font-size: 1.6rem; margin-bottom: 0.5rem; }

.guarantee-card h3 { color: var(--white); font-size: 1.05rem; }

.guarantee-card p { color: var(--gray-300); font-size: 0.92rem; margin: 0; }

/* ---------- Zone servite ---------- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 700px) {
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .zone-grid { grid-template-columns: repeat(4, 1fr); }
}

.zone-grid a {
  display: block;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.zone-grid a:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.zone-featured {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .zone-featured { grid-template-columns: repeat(3, 1fr); }
}

.zone-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.zone-card h3 { color: var(--white); }
.zone-card p { color: var(--gray-300); font-size: 0.9rem; }
.zone-card a { font-family: var(--font-main); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.faq-question .icon {
  flex-shrink: 0;
  color: var(--red);
  transition: transform 0.2s ease;
  font-weight: 800;
}

.faq-question[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--gray-600);
}

.faq-answer.is-open { display: block; }

/* ---------- Form preventivo ---------- */
.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 600px) {
  .form-grid--2col { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--anthracite);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
}

.urgency-toggle {
  display: flex;
  gap: 0.6rem;
}

.urgency-toggle label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.6em;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
}

.urgency-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.urgency-toggle input:checked + span {
  color: var(--red);
}

.urgency-toggle label:has(input:checked) {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.06);
}

.field--file {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
}

.field--file small {
  display: block;
  color: var(--gray-600);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.8rem;
  text-align: center;
}

.form-success {
  display: none;
  background: #eafaf1;
  border: 1px solid #1ea952;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  color: #145c30;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.92rem;
}

.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col p,
.footer-col a {
  color: var(--gray-300);
  font-size: 0.92rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--red-light); }

.footer-logo {
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  display: block;
}

.footer-logo span { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--anthracite-2);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  /* Fix contrasto WCAG AA: --gray-600 su nero era ~2.9:1, sotto soglia. */
  color: var(--gray-300);
}

.footer-bottom a { color: var(--gray-300); }

/* ---------- Pagina interna (servizi/zone/legal) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 2.5rem 0;
}

.page-title {
  padding: 2.25rem 0 0.5rem;
  text-align: center;
}

.page-title .breadcrumb {
  color: var(--gray-600);
}

.page-title .breadcrumb a {
  color: var(--gray-600);
}

.page-title .breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-300);
  margin-bottom: 0.8rem;
}

.breadcrumb a { color: var(--gray-300); }
.breadcrumb a:hover { color: var(--red-light); }

.page-hero p {
  color: var(--gray-300);
  max-width: 640px;
}

.content-block {
  max-width: 760px;
}

.content-block h2 { margin-top: 1.6em; }

.checklist li {
  display: flex;
  gap: 0.6em;
  margin-bottom: 0.6em;
  align-items: flex-start;
}

.checklist li::before {
  content: "✓";
  color: var(--red);
  font-weight: 800;
  flex-shrink: 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { color: var(--white); }
.cta-banner .hero__actions { justify-content: center; margin-top: 1.2rem; }

.related-services {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .related-services { grid-template-columns: repeat(3, 1fr); }
}

.related-services a {
  display: block;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--black);
}

.related-services a:hover {
  background: var(--red);
  color: var(--white);
}

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

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
