:root {
  --ink: #122028;
  --muted: #5a6b75;
  --paper: #f7f8f5;
  --white: #ffffff;
  --brand: #0a3d62;
  --brand-2: #1f6b45;
  --accent: #c9852c;
  --gold: #e6b422;
  --line: #d5dde2;
  --shadow: 0 18px 50px rgba(10, 61, 98, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font: "Segoe UI", "Candara", "Trebuchet MS", sans-serif;
  --display: "Candara", "Segoe UI Semibold", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--brand-2); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 246, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 221, 226, 0.8);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 8px 24px rgba(10, 61, 98, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--brand-2); }

.nav-muted { color: var(--muted) !important; }

.nav-item { position: relative; }

.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 60;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub,
.nav-item.open .nav-sub {
  display: grid;
  gap: 0.1rem;
}

.nav-sub a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.84rem;
}

.nav-sub a:hover { background: rgba(10, 61, 98, 0.08); }

.nav-cta {
  background: var(--brand);
  color: var(--white) !important;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--brand-2); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateX(6%);
  transition: opacity 1s ease, transform 1.1s ease;
}

.hero-slide--sede { background-position: 50% 42%; }
.hero-slide--campo { background-position: 50% 35%; }
.hero-slide--impianto { background-position: 48% 40%; }

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.hero-slide.is-exit {
  opacity: 0;
  transform: translateX(-8%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, rgba(7, 31, 49, 0.82) 8%, rgba(10, 61, 98, 0.42) 48%, rgba(31, 107, 69, 0.18) 100%);
  pointer-events: none;
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(7, 31, 49, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
  background: rgba(7, 31, 49, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.hero-nav-prev { left: 1rem; }
.hero-nav-next { right: 1rem; }

.hero-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

.quality-band {
  background: linear-gradient(90deg, #e8b50f 0%, #f0c73a 50%, #e0ad08 100%);
  color: #1a1608;
  padding: 1.55rem 0 1.7rem;
  text-align: center;
  border-block: 1px solid rgba(120, 90, 0, 0.2);
}

.home-story {
  padding: 2.6rem 0 2.4rem;
  background:
    linear-gradient(180deg, #f4f7f6 0%, #eef3f1 100%);
  border-bottom: 1px solid rgba(15, 61, 46, 0.08);
}

.home-story__inner {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
}

.home-story__lead {
  margin: 0;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  line-height: 1.65;
  color: var(--ink);
}

.home-story__cta {
  margin: 1.15rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand);
}

.quality-band h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.quality-band .quality-grid {
  max-width: 820px;
  margin: 0 auto;
}

.quality-band .quality-item {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.4rem;
}

.quality-band .quality-item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  padding: 0.45rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.quality-band .quality-item h3 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.cert-ecom-section { padding-top: 2.2rem; padding-bottom: 1.2rem; }

.cert-ecom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.cert-iso {
  height: 110px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.65rem;
  box-shadow: var(--shadow);
}

.ecom-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  padding: 1.1rem 1.15rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  color: #1e5f9a;
  overflow: hidden;
  box-sizing: border-box;
}

.ecom-badge:hover { color: #174a78; }

.ecom-top,
.ecom-mid,
.ecom-mail {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0.15rem;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.25;
}

.ecom-top {
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  font-weight: 600;
}

.ecom-logo {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1e6db5;
  margin: 0.15rem 0;
}

.ecom-logo supp,
.ecom-logo sup {
  font-size: 0.45em;
  vertical-align: super;
}

.ecom-mid {
  font-size: clamp(0.72rem, 1.6vw, 0.84rem);
  font-weight: 600;
}

.ecom-mail {
  font-size: 0.82rem;
  font-weight: 700;
  color: #174a78;
}

.ecom-badge--compact {
  max-width: 240px;
  padding: 0.85rem 0.9rem;
  box-shadow: none;
}

.ecom-badge--compact .ecom-logo { font-size: 1.85rem; }
.ecom-badge--compact .ecom-top,
.ecom-badge--compact .ecom-mid { font-size: 0.68rem; }

.img-contain-wrap {
  background: #eef3f1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.img-contain-wrap img {
  max-width: min(100%, 280px);
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); }
.news-card .card-media {
  aspect-ratio: 16 / 10;
  background: #e8eef2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card .card-media img {
  max-width: 70%;
  max-height: 85%;
  object-fit: contain;
}
.news-card .card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.news-card time {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

/* Highlights — comunicazioni, date, promozioni, volantini */
.highlights-band {
  background: linear-gradient(135deg, #0a3d62 0%, #134e6f 55%, #1a5f4a 100%);
  color: #fff;
  padding: 2.4rem 0 2.6rem;
}

.highlights-band .section-head h2 {
  color: #fff;
  margin: 0 0 0.35rem;
}

.highlights-band .section-head p {
  color: rgba(255, 255, 255, 0.82);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.hl-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.05rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  transition: transform 0.22s ease, background 0.22s ease;
  text-decoration: none;
  color: inherit;
}

.hl-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.hl-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1608;
}

.hl-tag--date { background: #7ec8e3; color: #0a3040; }
.hl-tag--promo { background: #e8b50f; color: #1a1608; }
.hl-tag--flyer { background: #c4e0c0; color: #1a3a20; }
.hl-tag--alert { background: #f0a07a; color: #3a1a08; }

.hl-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #fff;
  line-height: 1.3;
}

.hl-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
}

.hl-card .hl-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.hl-card .hl-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold);
}

.hl-media {
  margin: -0.15rem -0.15rem 0.55rem;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.hl-media img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.hl-media video {
  width: 100%;
  max-height: 200px;
  display: block;
  background: #000;
}

.hl-media--file {
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.12);
}

.hl-media--file a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.highlights-page .hl-media--file {
  background: rgba(10, 61, 98, 0.06);
}

.highlights-page .hl-media--file a { color: var(--brand); }

.highlights-page .hl-card {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.highlights-page .hl-card:hover { color: var(--ink); background: #fff; }

.highlights-page .hl-card h3 { color: var(--brand); }
.highlights-page .hl-card p { color: var(--muted); }
.highlights-page .hl-meta { color: var(--muted); }
.highlights-page .highlights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.line-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 5.5rem 0 3.5rem;
}



.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 18ch;
  font-weight: 700;
}

.hero p {
  margin: 0 0 1.6rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #1a1205;
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #1a1205;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-dark {
  background: var(--brand);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--brand-2);
  color: var(--white);
}

.section { padding: 4rem 0; }

.section-head { margin-bottom: 1.8rem; }

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  color: var(--brand);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(10, 61, 98, 0.18);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe7ec;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-media img { transform: scale(1.06); }

.card-body { padding: 1.25rem 1.35rem 1.4rem; }

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--brand);
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card a {
  font-weight: 700;
  text-decoration: none;
}

.band {
  background: linear-gradient(90deg, rgba(10, 61, 98, 0.08), rgba(11, 110, 79, 0.1));
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

/* Immagine ecom / banner a metà larghezza (Chi siamo) */
.split-img--half {
  max-width: 50%;
  margin: 0 auto;
  box-shadow: var(--shadow);
  justify-self: center;
}

.split-img--half img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  display: block;
}

@media (max-width: 980px) {
  .split-img--half {
    max-width: 70%;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.panel li + li { margin-top: 0.45rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stat {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1.1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--brand-2);
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.quality-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.25s ease;
}

.quality-item:hover { transform: translateY(-3px); }

.quality-item img {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.7rem;
  object-fit: contain;
}

.quality-item h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--brand);
}

.page-hero {
  padding: 2.8rem 0 1.4rem;
  background: linear-gradient(180deg, rgba(10, 61, 98, 0.08), transparent);
}

.page-hero h1 {
  font-family: var(--display);
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

/* Titoli prodotto: zero ben distinto dalla lettera O (Candara lo rendeva ambiguo) */
.product-title,
h2.product-title,
h3.product-title {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.01em;
}

.card h3,
.prose h2,
.nav-sub a {
  font-variant-numeric: lining-nums;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

.prose h2 {
  color: var(--brand);
  margin-top: 1.6rem;
}

.prose h2:first-child { margin-top: 0; }

.prose ul { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 180px;
}

/* Schede AFC / AFG: centrale grande + logo piccolo (biglietto da visita) */
.product-visual {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.1rem;
  align-items: end;
  margin: 0 0 1.6rem;
}

.product-visual .gallery {
  margin: 0;
  min-width: 0;
}

.product-visual .gallery img {
  object-fit: contain;
  background: #f4f7f6;
  padding: 0.7rem;
  min-height: 0;
  max-height: 320px;
}

.card-media--product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  aspect-ratio: auto;
  min-height: 0;
  background: #eef3f1;
  padding: 0.85rem 0.85rem 0.65rem;
}

.card-media--product > img:first-child {
  width: auto !important;
  height: auto !important;
  max-height: 170px;
  max-width: 100%;
  object-fit: contain !important;
}

/* Loghi MAINGAS / MAINETOX sotto la centrale: ~1/3, ma leggibili */
.card-media--product .brand-mark,
.card-media--product .brand-mark--card {
  width: auto !important;
  max-width: 112px !important;
  height: auto !important;
  max-height: 46px !important;
  object-fit: contain !important;
  padding: 0.2rem 0.3rem;
  margin: 0;
  transform: none !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card:hover .card-media--product .brand-mark {
  transform: none !important;
}

.brand-mark {
  width: auto;
  max-width: 120px;
  max-height: 50px;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.35rem;
  box-shadow: 0 4px 12px rgba(10, 61, 98, 0.07);
  object-fit: contain;
}

.brand-mark--card {
  max-width: 112px;
  max-height: 46px;
  box-shadow: none;
}

@media (max-width: 720px) {
  .product-visual {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .brand-mark {
    max-width: 100px;
    max-height: 42px;
  }

  .card-media--product .brand-mark,
  .card-media--product .brand-mark--card {
    max-width: 96px !important;
    max-height: 40px !important;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.contact-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: var(--brand);
}

.contact-card p,
.contact-card a {
  margin: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
  display: block;
}

.contact-email-text {
  font-weight: 700;
  color: var(--brand) !important;
}

.contact-card .btn {
  display: inline-block;
  margin-top: 0.5rem;
  width: auto;
}

.site-footer {
  background: #071f31;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.4rem 0 1.6rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a { color: #e8b86d; }

.site-footer h3 {
  margin: 0 0 0.7rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li { margin-top: 0.35rem; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.social-links--header {
  margin-left: auto;
  margin-right: 0.35rem;
}

.social-links--header .social-btn {
  width: 36px;
  height: 36px;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brand);
  padding: 0;
}

.social-links--header .social-btn span { display: none; }

.social-links--header .social-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.social-links--footer .social-btn,
.social-block .social-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.45rem 0.85rem;
}

.social-links--footer .social-btn:hover,
.social-block .social-btn:hover {
  background: var(--gold);
  color: #1a1608;
  border-color: var(--gold);
}

.social-section {
  padding: 2.2rem 0;
  background: linear-gradient(90deg, rgba(10, 61, 98, 0.07), rgba(26, 95, 74, 0.08));
  border-block: 1px solid var(--line);
}

.social-section .social-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-section h2 {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.social-section p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.social-section .social-btn {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brand);
  padding: 0.55rem 1rem;
  box-shadow: var(--shadow);
}

.social-section .social-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.contact-card .social-links {
  margin-top: 0.8rem;
}

.contact-card .social-btn {
  background: rgba(10, 61, 98, 0.06);
  border: 1px solid var(--line);
  color: var(--brand);
  padding: 0.45rem 0.85rem;
}

.contact-card .social-btn:hover {
  background: var(--brand);
  color: #fff;
}

/* Form richiesta / newsletter */
.contact-form-card .site-form {
  margin-top: 1rem;
}

.site-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a6b75;
  margin: 0 0 0.3rem;
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="tel"],
.site-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  margin-bottom: 0.75rem;
}

.site-form textarea {
  resize: vertical;
  min-height: 120px;
}

.site-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.85rem;
}

.site-form .form-grid .full {
  grid-column: 1 / -1;
}

.site-form .check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0.45rem 0;
  cursor: pointer;
}

.site-form .check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.site-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.site-form .form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6b75;
}

.site-form .form-status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.site-form .form-status.ok {
  background: #e8f5ee;
  border: 1px solid #b7dcc8;
  color: #1f6b45;
}

.site-form .form-status.err {
  background: #fceeee;
  border: 1px solid #e2b4b4;
  color: #a33;
}

.site-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 720px) {
  .site-form .form-grid {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: var(--accent);
  color: #1a1205;
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(201, 133, 44, 0.45);
  animation: pulse 2.8s ease-in-out infinite;
}

.float-cta:hover { color: #1a1205; filter: brightness(1.05); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 640px) {
  .hero {
    min-height: 52vh;
    max-height: 420px;
  }

  .hero-slide--sede { background-position: 38% 36%; }
  .hero-slide--campo { background-position: 60% 30%; }
  .hero-slide--impianto { background-position: 52% 34%; }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .hero p {
    font-size: 0.98rem;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: min(62vh, 560px);
  }

  .hero-slide {
    /* Su telefono: meno “solo centro”, inquadra meglio soggetti utili */
    background-size: cover;
  }

  .hero-slide--sede { background-position: 42% 38%; }
  .hero-slide--campo { background-position: 55% 32%; }
  .hero-slide--impianto { background-position: 50% 36%; }

  .hero-inner {
    padding: 4.2rem 0 2.4rem;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .hero-nav-prev { left: 0.55rem; }
  .hero-nav-next { right: 0.55rem; }

  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem;
    box-shadow: var(--shadow);
    min-width: min(92vw, 320px);
    max-height: 70vh;
    overflow: auto;
  }

  .nav.open { display: flex; }

  .nav-sub {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 0.55rem;
  }

  .nav-item.open .nav-sub { display: grid; }

  .cards,
  .split,
  .contact-grid,
  .footer-grid,
  .stats,
  .quality-grid,
  .gallery,
  .news-grid,
  .line-duo,
  .cert-ecom-row,
  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlights-page .highlights-grid {
    grid-template-columns: 1fr;
  }
}
