/**
 * NCC Emiliano — foglio di stile principale
 * Mobile first, variabili CSS, componenti riutilizzabili
 */

/* --- Variabili tema --- */
:root {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-primary: #1e4d8c;
  --color-primary-dark: #153a6b;
  --color-accent: #0ea5e9;
  --color-accent-soft: #e0f2fe;
  --color-border: #e2e8f0;
  --color-success: #15803d;
  --color-error: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-photo: 0 14px 48px rgba(30, 77, 140, 0.14), 0 2px 10px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --radius-pill: 999px;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h-mobile: 64px;
  --maxw: 1100px;
  --focus-ring: 0 0 0 3px rgba(14, 165, 233, 0.45);
  --section-y: clamp(32px, 4vw, 44px);
  --section-y-tight: clamp(24px, 3vw, 32px);
  /* distanza sotto header sticky (Contatti: colonna mappa) */
  --map-sticky-top: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--color-surface);
  border-radius: 8px;
  z-index: 2000;
  box-shadow: var(--shadow-md);
}

/* --- Layout --- */
.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: var(--section-y) 0;
}

.section--tight {
  padding: var(--section-y-tight) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.25;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.section__lead {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--color-muted);
}

.section__lead--tight {
  margin-bottom: 12px;
}

/* Secondo blocco titolo dentro la stessa section (meno aria vuota) */
.section-divider {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--color-border);
}

/* Home: Per chi + Come funziona affiancati su desktop */
.home-pair {
  display: grid;
  gap: 22px;
  align-items: start;
}

@media (min-width: 900px) {
  .home-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .home-pair .steps {
    grid-template-columns: 1fr;
  }
}

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Header / Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

/* Su smartphone l’header resta fisso in alto per CTA rapide sempre a portata */
@media (max-width: 899px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
  }

  .site-main {
    padding-top: 72px;
  }
}

.header-quick {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 900px) {
  .header-quick {
    display: none;
  }
}

.header-quick__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  line-height: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background: var(--color-surface);
}

.header-quick__link--call {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.header-quick__link--wa {
  background: #25d366;
  color: #fff;
  border-color: #1ebe57;
}

.header-quick__link .icon-img {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.card__icon-img {
  width: 26px;
  height: 26px;
  display: block;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--color-accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: rotate(-45deg);
  top: 0;
}

.main-nav {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 4px;
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--color-text);
  font-weight: 600;
}

.main-nav a:hover {
  background: var(--color-accent-soft);
}

.main-nav a.is-active {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Mobile bar CTA sempre visibile sotto header */
.mobile-cta-bar {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}

.mobile-cta-bar .btn {
  flex: 1;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-height: 52px;
}

.mobile-cta-bar .btn--primary,
.mobile-cta-bar .btn--whatsapp {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* Banner cookie / privacy (prima visita) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;
  padding: 14px 0;
  background: rgba(15, 23, 42, 0.97);
  color: #e2e8f0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

/* Sopra la barra CTA mobile */
@media (max-width: 899px) {
  .cookie-banner {
    bottom: 72px;
  }
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.cookie-banner__msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 62ch;
}

.cookie-banner__msg a {
  color: #7dd3fc;
  font-weight: 700;
}

.cookie-banner__msg a:hover {
  color: #bae6fd;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn--cookie-ghost {
  background: transparent;
  color: #f1f5f9;
  border-color: rgba(248, 250, 252, 0.45);
}

.btn--cookie-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 250, 252, 0.65);
}

/* Spazio per barra fissa in basso su mobile */
body {
  padding-bottom: 72px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .site-main {
    padding-top: 0;
  }

  .mobile-cta-bar {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    gap: 4px;
  }

  .header-cta {
    display: flex;
  }

  .header-cta .btn {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .header-cta .btn--primary,
  .header-cta .btn--whatsapp {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  }

  .site-header__inner {
    flex-wrap: nowrap;
  }
}

/* --- Pulsanti --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.26);
}

.btn--whatsapp:hover {
  filter: brightness(0.95);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
}

.btn--block {
  width: 100%;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* --- Hero --- */
.hero {
  padding: clamp(24px, 4vw, 36px) 0 clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, #e8f2ff 0%, var(--color-bg) 100%);
}

.hero__grid {
  display: grid;
  gap: 20px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.hero__subtitle {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--color-muted);
}

.hero__text {
  margin: 0 0 14px;
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--color-surface);
}

/* Leggero scurimento in basso: profondità senza coprire il soggetto */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.12) 100%);
}

.hero__media img {
  width: 100%;
  height: auto;
  max-height: min(58vh, 480px);
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.05) saturate(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    filter: none;
  }
}

/* Foto servizi / anteprime: proporzione uniforme */
.service-block picture {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-border);
}

.service-block picture img {
  border-radius: 0;
  display: block;
}

.service-block img,
.content-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: contrast(1.03) saturate(1.04);
}

.content-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.content-figure img {
  border-radius: 0;
  display: block;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-block picture img,
  .content-figure img {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  }

  .service-block:hover picture img {
    transform: scale(1.035);
    filter: contrast(1.06) saturate(1.08);
  }

  .content-figure:hover img {
    transform: scale(1.025);
    filter: contrast(1.05) saturate(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-block img,
  .content-figure img {
    filter: none;
  }
}

/* --- Card / griglie --- */
.grid-2 {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 16px 17px;
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 1.35rem;
}

.card__icon--svg {
  font-size: 0;
}

.card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* --- Steps --- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 14px 14px 52px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* --- Notice / CTA strip --- */
.notice {
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-soft);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
}

.cta-strip p {
  margin: 0;
  max-width: 48ch;
}

.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-strip .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-strip .btn--whatsapp {
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* --- Recensioni --- */
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.review-card__stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.review-card blockquote {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--color-text);
}

.review-card footer {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --- Form contatti --- */
.form {
  display: grid;
  gap: 14px;
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font: inherit;
  background: #fff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Campo esca per bot (modulo contatti): nascosto visivamente e agli screen reader principali */
.form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form__hint {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.field-error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.input-invalid {
  border-color: var(--color-error) !important;
}

.form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #dcfce7;
  color: var(--color-success);
  border: 1px solid #86efac;
}

.form-status.is-error {
  display: block;
  background: #fee2e2;
  color: var(--color-error);
  border: 1px solid #fecaca;
}

/* --- Mappa --- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 36px 0 20px;
  margin-top: 24px;
}

.site-footer a {
  color: #bae6fd;
}

.site-footer .footer-aside {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.site-footer .footer-aside p {
  margin: 0;
}

.site-footer .footer-aside a {
  color: #f0f9ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .footer-aside a:hover,
.site-footer .footer-aside a:focus-visible {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #fff;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  text-align: center;
}

.footer-bottom__row a {
  color: #bae6fd;
  font-weight: 600;
}

.footer-bottom__row a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom__sep {
  color: #64748b;
  user-select: none;
}

/* --- Torna su --- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .back-to-top {
    bottom: 24px;
  }
}

/* --- Liste servizi pagina --- */
.service-block {
  display: grid;
  gap: 12px;
  align-items: start;
}

.section-actions {
  margin-top: 14px;
}

@media (min-width: 800px) {
  .service-block {
    grid-template-columns: minmax(260px, 340px) 1fr;
  }
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 0;
}

.prose p {
  margin: 0 0 0.85em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* --- Page header interno --- */
.page-hero {
  padding: 22px 0 4px;
  background: linear-gradient(180deg, #e8f2ff 0%, var(--color-bg) 100%);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
  color: var(--color-primary-dark);
}

.page-hero p {
  margin: 0;
  color: var(--color-muted);
  max-width: 60ch;
}

.page-hero--center .container {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center p {
  margin-left: auto;
  margin-right: auto;
}

.page-hero--center p {
  max-width: 42rem;
}

/* --- Pagina Contatti --- */
.layout-contact-top {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .layout-contact-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }
}

.contact-visual-frame {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--color-border);
}

.contact-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .contact-visual-frame img {
    filter: none;
  }
}

.contact-panel .eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.contact-panel-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.2;
  color: var(--color-primary-dark);
  text-wrap: balance;
}

.contact-panel-lead {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 40ch;
}

.contact-action-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 520px) {
  .contact-action-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  min-height: 120px;
}

.contact-action-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.contact-action-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.contact-action-card__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  word-break: break-word;
}

.contact-action-card__cta {
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-primary-dark);
}

.contact-action-card--phone {
  border-color: rgba(30, 77, 140, 0.25);
  background: linear-gradient(165deg, #f0f7ff 0%, #fff 55%);
}

.contact-action-card--phone .contact-action-card__cta {
  color: #0f172a;
}

.contact-action-card--wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%);
}

.contact-action-card--wa .contact-action-card__cta {
  color: #14532d;
}

.contact-dl {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: grid;
  gap: 14px;
}

@media (min-width: 520px) {
  .contact-dl {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.contact-dl dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.contact-dl dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

.contact-dl a {
  font-weight: 600;
}

/* Ancora footer → modulo: non resta sotto l’header fisso (scroll da link #modulo-contatti) */
#modulo-contatti {
  scroll-margin-top: 5.5rem;
}

/* Form + mappa affiancati */
.layout-form-map {
  display: grid;
  gap: 28px;
  align-items: start;
}

.layout-form-map > .form-panel,
.layout-form-map > .map-sticky-shell {
  min-width: 0;
  align-self: start;
}

.form-panel {
  padding: 24px 22px;
}

@media (min-width: 640px) {
  .form-panel {
    padding: 28px 32px;
  }
}

/* Wrapper dedicato: sticky sulla shell, non sull’aside, per comportamento corretto con CSS Grid */
.map-sticky-shell {
  width: 100%;
}

@media (min-width: 900px) {
  .layout-form-map {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    gap: 32px;
  }

  .map-sticky-shell {
    position: -webkit-sticky;
    position: sticky;
    top: var(--map-sticky-top);
    z-index: 1;
  }
}

.map-panel {
  position: relative;
}

.map-panel__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.map-panel__text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--color-muted);
  max-width: 42ch;
}

.map-wrap--tall iframe {
  height: min(420px, 55vh);
}

/* --- Pagina Chi siamo --- */
.layout-about-split {
  display: grid;
  gap: 20px;
  align-items: center;
}

@media (min-width: 880px) {
  .layout-about-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
  }

  .layout-about-split__text {
    order: 0;
  }

  .layout-about-split__visual {
    order: 1;
  }
}

.about-visual-frame {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--color-border);
}

.about-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .about-visual-frame img {
    filter: none;
  }
}

.layout-about-split .prose h2 {
  margin-top: 0;
}

.about-mission-wrap {
  background: linear-gradient(180deg, #eef4fb 0%, var(--color-bg) 100%);
}

.about-mission-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.about-mission-card p {
  margin: 0;
}

.about-values .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-statement {
  margin: 0 auto;
  max-width: 720px;
  padding: 20px 22px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--color-text);
}

.about-statement p {
  margin: 0;
}

.about-prof-grid {
  margin-bottom: 28px;
}

.u-text-center {
  text-align: center;
}

.u-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.section__lead--narrow {
  max-width: 40rem;
}
