@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
}

:root {
  --white: #ffffff;
  --grey-light: #F3F1EB;
  --grey-dark: #2E2E2C;
  --green-accent: #639922;
  --green-dark: #173824;
  --green-pine: #3F5443;
  --settore-forestale: #3F5443;
  --settore-edilizia: #A9762F;
  --settore-trasporti: #2F5D8A;
  --text-dark: #22241f;
  --text-muted: #6b6f66;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.55;
  cursor: url('../img/cursor-dragonfly-nera.png?v=3') 25 9, auto;
  cursor: -webkit-image-set(url('../img/cursor-dragonfly-nera.png?v=3') 1x, url('../img/cursor-dragonfly-nera@2x.png?v=3') 2x) 25 9, auto;
  cursor: image-set(url('../img/cursor-dragonfly-nera.png?v=3') 1x, url('../img/cursor-dragonfly-nera@2x.png?v=3') 2x) 25 9, auto;
}

a,
button,
.btn,
.burger,
select,
input[type="submit"] {
  cursor: url('../img/cursor-dragonfly-nera.png?v=3') 25 9, pointer;
  cursor: -webkit-image-set(url('../img/cursor-dragonfly-nera.png?v=3') 1x, url('../img/cursor-dragonfly-nera@2x.png?v=3') 2x) 25 9, pointer;
  cursor: image-set(url('../img/cursor-dragonfly-nera.png?v=3') 1x, url('../img/cursor-dragonfly-nera@2x.png?v=3') 2x) 25 9, pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

img, svg {
  display: block;
}

/* Icone SVG inline */
svg.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #111;
  background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('../img/carbon-texture.jpg');
  background-size: auto, 256px 256px;
  background-repeat: repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

/* Logo partner ERS-MB (header, destra) */
.ers-link {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 6px;
  flex-shrink: 0;
}

.ers-img {
  height: 28px;
  width: auto;
  display: block;
}

@media (max-width: 860px) {
  .ers-link {
    margin-left: 12px;
    padding: 3px 6px;
  }

  .ers-img {
    height: 22px;
  }
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s;
}

.nav-links li a.active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid var(--green-accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  transition: transform .15s, box-shadow .15s;
}

.btn-primary {
  background: var(--green-accent);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99,153,34,.35);
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
}

/* BURGER MENU MOBILE */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  width: 26px;
  height: 2px;
  background: #fff;
  display: block;
}

/* Eyebrow (etichetta sopra i titoli) */
.section-eyebrow,
.eyebrow,
.storia-eyebrow,
.scopo-eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-eyebrow {
  color: var(--green-accent);
  margin-bottom: 10px;
}

.eyebrow {
  color: #B9D98A;
  margin-bottom: 12px;
}

.storia-eyebrow {
  color: var(--green-accent);
  margin-bottom: 12px;
  text-align: center;
}

.scopo-eyebrow {
  color: var(--green-accent);
  margin-bottom: 12px;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(23,56,36,.2) 0%, rgba(63,84,67,.1) 55%, rgba(46,46,44,.2) 100%),
    url('../img/vertich-showroom.jpg') center 35%/cover no-repeat;
}

/* Desktop: foto intera (non ritagliata), centrata; i lati sfumano nella stessa immagine sfocata */
@media (min-width: 901px) {
  .hero {
    height: calc(100vh - 81px);
  }

  .video-placeholder {
    background: #1b130d;
    overflow: hidden;
  }

  .video-placeholder::before,
  .video-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
  }

  .video-placeholder::before {
    left: -40px;
    right: -40px;
    background: url('../img/vertich-showroom.jpg') center/cover no-repeat;
    filter: blur(26px) brightness(.55);
  }

  .video-placeholder::after {
    left: 56%;
    transform: translateX(-50%);
    width: min(100%, calc(100vh * 1.3334));
    min-width: min(100%, 747px);
    background:
      linear-gradient(135deg, rgba(23,56,36,.2) 0%, rgba(63,84,67,.1) 55%, rgba(46,46,44,.2) 100%),
      url('../img/vertich-showroom.jpg') center/cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10,15,10,.6) 0%, rgba(10,15,10,.3) 45%, rgba(10,15,10,0) 75%),
    linear-gradient(180deg, rgba(10,15,10,.25) 0%, rgba(10,15,10,0) 35%, rgba(10,15,10,.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 80px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 700;
  color: #fff;
  max-width: 760px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: #B9D98A;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* CARGO */
.cargo {
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green-pine) 100%);
  color: #fff;
  padding: 80px 0;
}

.cargo-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}

.cargo-top h2 {
  font-size: 2rem;
  font-weight: 700;
  max-width: 520px;
}

.cargo-top p {
  color: rgba(255,255,255,.75);
  max-width: 420px;
  font-size: .95rem;
}

.cargo-quick {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
}

.cargo-quick strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 6px;
}

/* GREEN VISION */
.green-vision {
  padding: 70px 0;
}

.gv-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.gv-visual {
  background: var(--grey-light);
  border-radius: 16px;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gv-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gv-visual.gv-gallery {
  background: none;
  aspect-ratio: auto;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gv-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--grey-light);
  aspect-ratio: 4/3;
}

.gv-gallery .gv-main {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
}

.gv-text .section-eyebrow {
  color: var(--green-pine);
}

.gv-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.gv-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: .98rem;
}

.gv-progress {
  margin-top: 22px;
  background: #E7E5DD;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.gv-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-pine), var(--green-accent));
  border-radius: 20px;
}

.gv-caption {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* CTA FINALE */
.cta-final {
  background: var(--grey-dark);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-final h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-final p {
  color: rgba(255,255,255,.65);
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
}

/* FOOTER */
footer {
  background-color: #111;
  background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url('../img/carbon-texture.jpg');
  background-size: auto, 256px 256px;
  background-repeat: repeat;
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-logo-img {
  height: 32px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 280px;
  font-size: .88rem;
}

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: .9rem;
}

.footer-col li a {
  color: inherit;
}

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

.footer-bottom a {
  color: rgba(255,255,255,.78);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* PAGE HEADER (per tutte le pagine interne) */
.page-header {
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green-pine) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.page-header h1 {
  font-size: 2.3rem;
  font-weight: 700;
  max-width: 640px;
  margin-bottom: 14px;
}

.page-header p {
  color: rgba(255,255,255,.8);
  max-width: 560px;
  font-size: 1rem;
}

/* PAGINE LEGALI */
.legal {
  padding: 64px 0 90px;
  background: #fff;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 34px 0 10px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-body a {
  color: var(--green-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* STORIA */
.storia {
  padding: 52px 0 8px;
  background: #fff;
}

.storia-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.65;
}

/* I TRE SETTORI */
.settori {
  padding: 44px 0 60px;
  background: #fff;
}

.settori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.settore-card {
  text-align: center;
  padding: 0 12px;
}

.settore-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.settore-icon svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
}

.settore-forestale {
  background: var(--settore-forestale);
}

.settore-edilizia {
  background: var(--settore-edilizia);
}

.settore-trasporti {
  background: var(--settore-trasporti);
}

.settore-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.settore-card p {
  color: var(--text-muted);
  font-size: .9rem;
}

/* SOCI */
.soci {
  padding: 70px 0;
  background: var(--grey-light);
}

.soci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.socio-card {
  background: #fff;
  border: 1px solid #E7E5DD;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30,30,20,.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.socio-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #e2dfd3, #e2dfd3 10px, #d8d4c5 10px, #d8d4c5 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  position: relative;
}

.socio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.socio-photo img.focus-mid {
  object-position: center 52%;
}

.socio-photo img.focus-top {
  object-position: center 5%;
}

.socio-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.socio-settore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  color: #fff;
}

.socio-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.socio-bio {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 16px;
  flex: 1;
  padding: 10px 12px;
  border: 1px dashed #cfcabf;
  border-radius: 8px;
  background: var(--grey-light);
}

.socio-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-top: 14px;
  border-top: 1px solid #E7E5DD;
  margin-top: auto;
}

.socio-phone:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.formula-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
}

.formula-box .badge {
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .9rem;
}

.formula-box .badge-forestale {
  background: var(--settore-forestale);
}

.formula-box .badge-edilizia {
  background: var(--settore-edilizia);
}

.formula-box .badge-trasporti {
  background: var(--settore-trasporti);
}

/* SCOPO */
.scopo {
  padding: 70px 0 76px;
  background: #fff;
  text-align: center;
}

.scopo-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.scopo-lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cargo .section-eyebrow {
  color: #B9D98A;
}

.cargo-lead {
  color: rgba(255,255,255,.85);
  max-width: 760px;
  font-size: 1.02rem;
  margin-bottom: 44px;
}

.cargo-photo {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 44px;
  border: 1px solid rgba(255,255,255,.14);
}

.cargo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cargo-subhead {
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  margin-top: 44px;
}

.cargo-subhead:first-of-type {
  margin-top: 0;
}

.cargo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}

.stat-card .num {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

.cargo-configs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.config-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 24px 26px;
  text-align: center;
  transition: transform .2s ease;
}

.config-card:hover {
  transform: translateY(-3px) scale(1.015);
}

.config-card .config-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.config-card .config-sub {
  font-size: .86rem;
  color: rgba(255,255,255,.65);
}

.cargo-cta {
  margin-top: 44px;
}

/* COME FUNZIONA */
.come-funziona {
  padding: 76px 0;
  background: var(--grey-light);
}

.come-funziona .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.come-funziona .section-eyebrow {
  color: var(--green-accent);
  text-align: center;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cf-card {
  background: #fff;
  border: 1px solid #E7E5DD;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(30,30,20,.04);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}

.cf-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 26px rgba(30,30,20,.09);
}

.cf-card .cf-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #d7d2c2;
  margin-bottom: 14px;
}

.cf-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cf-card p {
  color: var(--text-muted);
  font-size: .88rem;
}

/* ALTRI SERVIZI */
.altri-servizi {
  padding: 76px 0;
  background: #fff;
}

.altri-servizi .section-eyebrow {
  color: var(--green-accent);
}

.altri-servizi .section-head {
  text-align: center;
  margin: 0 auto 36px;
}

.altri-servizi .section-head p {
  margin-left: auto;
  margin-right: auto;
}

.as-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.as-card {
  background: var(--grey-light);
  border: 1px solid #E7E5DD;
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.as-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 26px rgba(30,30,20,.08);
}

.altri-home {
  background: var(--grey-light);
}

.altri-home .as-card {
  background: #fff;
  display: block;
}

.altri-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.altri-head h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.altri-head p {
  color: var(--text-muted);
}

.as-card > svg.icon {
  width: 30px;
  height: 30px;
  color: var(--green-accent);
  margin: 0 auto 12px;
  display: block;
}

.as-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.as-card p {
  color: var(--text-muted);
  font-size: .86rem;
}

/* EVENTI */
.eventi {
  padding: 76px 0 90px;
  background: #fff;
}

.eventi-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: var(--grey-light);
  border: 1px solid #E7E5DD;
  border-radius: 20px;
}

.eventi-empty > svg.icon {
  width: 44px;
  height: 44px;
  color: var(--green-accent);
  margin: 0 auto 18px;
  display: block;
}

.eventi-empty h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.eventi-empty p {
  color: var(--text-muted);
  font-size: .96rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* GALLERIA */
.galleria {
  padding: 76px 0 90px;
  background: #fff;
}

.galleria-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.galleria-item {
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E7E5DD;
}

.galleria-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.galleria-item {
  position: relative;
}

.galleria-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.galleria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.galleria-item:hover img {
  transform: scale(1.04);
}

.galleria-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  pointer-events: none;
}

/* LIGHTBOX */
body.lb-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,12,10,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 16px 24px;
}

.lightbox[hidden] {
  display: none;
}

.lb-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 10px;
  display: block;
}

.lb-figure figcaption {
  margin-top: 14px;
  color: #fff;
  font-size: .95rem;
  text-align: center;
}

.lb-count {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
}

.lb-btn {
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease;
}

.lb-btn:hover {
  background: rgba(255,255,255,.28);
}

.lb-btn svg.icon {
  width: 24px;
  height: 24px;
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* CONTATTI */
.contatti-main {
  padding: 76px 0;
  background: #fff;
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: stretch;
}

.form-card {
  background: var(--grey-light);
  border: 1px solid #E7E5DD;
  border-radius: 16px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 28px;
}

.form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field:has(#messaggio) {
  flex: 1;
}

.form-field:has(#messaggio) textarea {
  flex: 1;
}

.form-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.required-mark {
  color: #D52B1E;
  margin-left: 2px;
}

.optional-mark {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid #DAD6C9;
  border-radius: 9px;
  padding: 12px 14px;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9a9788;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6f66' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: .76rem;
  color: #9a9788;
  margin-top: 18px;
}

.btn-primary:disabled {
  opacity: .6;
  cursor: default;
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

.info-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.call-note {
  background: rgba(99,153,34,.08);
  border: 1px solid rgba(99,153,34,.3);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.call-note .info-icon {
  background: var(--green-accent);
  color: #fff;
}

.call-note-title {
  font-weight: 600;
  font-size: .92rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.call-note-text {
  font-size: .84rem;
  color: var(--text-muted);
}

.info-card {
  background: #fff;
  border: 1px solid #E7E5DD;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(30,30,20,.04);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--green-pine);
  flex-shrink: 0;
}

.info-icon svg.icon {
  width: 22px;
  height: 22px;
}

.info-card .info-label {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-card .info-value {
  font-size: .98rem;
  font-weight: 600;
}

.info-card .info-sub {
  font-size: .86rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contatti-soci-head {
  margin-top: 8px;
  margin-bottom: 2px;
}

.contatti-soci-head .info-label {
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

.contatti-soci-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contatti-socio-card {
  background: var(--grey-light);
  border: 1px solid #E7E5DD;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contatti-socio-name {
  font-weight: 600;
  font-size: .92rem;
}

.contatti-socio-settore {
  font-size: .78rem;
  color: var(--text-muted);
}

.contatti-socio-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--green-pine);
  white-space: nowrap;
}

.info-card .info-value a,
.contatti-socio-phone {
  text-underline-offset: 3px;
}

.info-card .info-value a:hover,
.contatti-socio-phone:hover,
.info-card-main:hover .info-value,
.info-card-main:hover .info-sub {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.info-card-sede {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.info-card-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2rem;
  }

  .gv-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .settori-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .soci-grid {
    grid-template-columns: 1fr;
  }

  .cargo-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cargo-configs {
    grid-template-columns: 1fr;
  }

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

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

  .contatti-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #111;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 14px 24px;
  }

  .burger {
    display: flex;
  }

  header nav .nav-right > .btn-primary {
    display: none;
  }
}

@media (max-width: 700px) {
  .galleria-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cf-grid,
  .as-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .video-overlay {
    background: linear-gradient(180deg, rgba(10,15,10,.2) 0%, rgba(10,15,10,.6) 35%, rgba(10,15,10,.88) 100%);
  }
}

@media (min-width: 901px) {
  .hero h1 {
    font-size: 2.1rem;
    max-width: 460px;
  }

  .hero p {
    max-width: 440px;
    font-size: 1rem;
  }

  .hero-content {
    padding-bottom: 48px;
  }
}

/* ERS-MB: all'estremo destro della finestra su schermi larghi */
@media (min-width: 1240px) {
  .ers-link {
    position: absolute;
    right: calc(24px - (100vw - 100%) / 2);
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

/* Con il sostegno di (home, sopra il footer) */
.sostegno {
  background: #fff;
  padding: 48px 0 56px;
  text-align: center;
}

.sostegno-label {
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sostegno-logo {
  display: block;
  margin: 0 auto;
  width: 480px;
  max-width: 86%;
  height: auto;
}

.sostegno-logo.sostegno-logo-ers {
  width: 320px;
}


/* ===== PROVE: RILIEVI / EVENTI PASSATI / CHI SIAMO ===== */
.rilievi { padding: 80px 0; background: #fff; }
.rilievi-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.rilievi-head .section-eyebrow { color: var(--green-accent); }
.rilievi-head h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.rilievi-head p { color: var(--text-muted); }
.rilievo-main { margin: 0 0 22px; border-radius: 16px; overflow: hidden; background: #05070a; }
.rilievo-main img { display: block; width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.rilievo-main figcaption { padding: 14px 20px 18px; background: var(--grey-light); font-size: .9rem; color: var(--text-muted); }
.rilievi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rilievo-fig { margin: 0; background: var(--grey-light); border: 1px solid #E7E5DD; border-radius: 14px; overflow: hidden; }
.rilievo-fig img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #05070a; }
.rilievo-fig figcaption { padding: 14px 18px 18px; font-size: .88rem; color: var(--text-muted); }
.rilievo-main figcaption strong, .rilievo-fig figcaption strong { display: block; color: var(--grey-dark); font-size: .98rem; margin-bottom: 4px; }
.rilievi-cta { text-align: center; margin-top: 32px; }
.as-grid.as-grid-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.as-grid.as-grid-5 .as-card { flex: 1 1 200px; max-width: 240px; }

.eventi-passati { max-width: 900px; margin: 56px auto 0; }
.eventi-passati h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.evento-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey-light); border: 1px solid #E7E5DD; border-radius: 16px; overflow: hidden; }
.evento-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evento-body { padding: 28px 30px; }
.evento-badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: #E7E5DD; color: var(--grey-dark); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.evento-date { color: var(--green-pine); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.evento-body h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.evento-body p { color: var(--text-muted); font-size: .94rem; line-height: 1.6; margin-bottom: 16px; }
.evento-link { color: var(--green-pine); font-weight: 600; text-decoration: underline; }

.storia-claim { text-align: center; font-size: 1.5rem; font-weight: 700; line-height: 1.35; max-width: 760px; margin: 0 auto 22px; }
.storia-claim em { font-style: normal; color: var(--green-accent); }

@media (max-width: 900px) {
  .rilievi { padding: 56px 0; }
  .rilievi-head h2 { font-size: 1.6rem; }
  .rilievi-grid { grid-template-columns: 1fr; }
  .evento-card { grid-template-columns: 1fr; }
  .evento-card img { aspect-ratio: 4/3; }
}


/* CAROSELLO GALLERIA */
.galleria-carosello { background: #161616; }
.galleria-carosello .car-track { display: flex; height: 100%; transition: transform .45s ease; }
.galleria-carosello .car-slide { flex: 0 0 100%; height: 100%; }
.galleria-carosello .galleria-open { cursor: zoom-in; }
.galleria-carosello .galleria-open img { object-fit: contain; }
.galleria-carosello:hover img { transform: none; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #222; font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.car-btn:hover { background: #fff; }
.car-prev { left: 14px; }
.car-next { right: 14px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 50px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.car-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.car-dot.on { background: #fff; }

/* ACCESSO AREA RISERVATA (icona in alto a destra) */
.nav-right { display: flex; align-items: center; gap: 14px; }
.prova-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.6); cursor: pointer; transition: color .2s ease, background .2s ease; }
.prova-btn:hover, .prova-btn:focus-visible { color: #fff; background: rgba(255,255,255,.12); }
.prova-dialog { margin: auto; border: 0; border-radius: 16px; padding: 0; width: min(92vw, 340px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.prova-dialog::backdrop { background: rgba(10,15,10,.65); }
.prova-dialog form { padding: 30px 28px 26px; text-align: center; }
.prova-dialog h2 { font-size: 1.3rem; margin: 0 0 6px; }
.prova-dialog p { margin: 0 0 18px; color: var(--text-muted); font-size: .9rem; }
.prova-dialog input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cfcdc4; border-radius: 10px; font: inherit; margin-bottom: 14px; }
.prova-actions { display: flex; gap: 10px; }
.prova-actions button { flex: 1; padding: 11px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.prova-annulla { background: #fff; border: 1px solid #cfcdc4; color: var(--grey-dark); }
.prova-entra { background: var(--green-accent); border: 0; color: #fff; }
@media (max-width: 860px) {
  .burger { order: 2; margin-left: auto; }
  .nav-right { order: 3; margin-left: 10px; }
}

.prova-errore { margin: -4px 0 12px; color: #b3261e; font-size: .85rem; }
.prova-errore[hidden] { display: none; }
