:root {
  --color-ink: #0f172a;
  --color-muted: #55657d;
  --color-soft: #eef4f2;
  --color-surface: #ffffff;
  --color-surface-2: #f7faf9;
  --color-line: rgba(15, 23, 42, 0.10);
  --color-brand: #159447;
  --color-brand-dark: #0d6634;
  --color-accent: #1f7a8c;
  --color-warm: #f4b63f;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 22px 60px rgba(15, 23, 42, 0.13);
  --shadow-lg: 0 34px 90px rgba(15, 23, 42, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --container: 1180px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 148, 71, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(31, 122, 140, 0.12), transparent 26rem),
    linear-gradient(180deg, #fbfdfc 0%, #f4f7f6 48%, #ffffff 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.05rem;
  color: var(--color-muted);
}

strong {
  color: var(--color-ink);
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.5rem;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: #ffffff;
  background: var(--color-brand);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.site-topbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.1rem;
}

.site-topbar a {
  color: var(--color-ink);
  font-weight: 700;
}

.site-topbar a:hover {
  color: var(--color-brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand img {
  width: 126px;
  height: auto;
  border-radius: 10px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.brand__claim {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-ink);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  transform: translateY(-6px) rotate(-90deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--color-ink);
  background: rgba(21, 148, 71, 0.10);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  margin-left: 0.3rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  box-shadow: 0 14px 30px rgba(21, 148, 71, 0.20);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand-dark), var(--color-accent));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 6vw, 6.4rem) 0 clamp(2.5rem, 4vw, 4.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 520px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.38)),
    radial-gradient(circle at 80% 20%, rgba(21, 148, 71, 0.20), transparent 18rem),
    radial-gradient(circle at 22% 25%, rgba(244, 182, 63, 0.20), transparent 20rem);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(21, 148, 71, 0.18);
  border-radius: 999px;
  color: var(--color-brand-dark);
  background: rgba(21, 148, 71, 0.09);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-brand);
  box-shadow: 0 0 0 5px rgba(21, 148, 71, 0.15);
}

.hero h1,
.page-heading h1 {
  max-width: 12ch;
  margin: 0 0 1.2rem;
  font-size: clamp(2.6rem, 8vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.page-heading h1 {
  max-width: 14ch;
}

.hero__lead,
.page-heading__lead {
  max-width: 66ch;
  color: #44546a;
  font-size: clamp(1.03rem, 1.6vw, 1.25rem);
  line-height: 1.72;
}

.hero__actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.015em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  box-shadow: 0 16px 34px rgba(21, 148, 71, 0.25);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 18px 44px rgba(21, 148, 71, 0.30);
}

.btn--secondary {
  color: var(--color-ink);
  border-color: var(--color-line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  color: var(--color-brand-dark);
  border-color: rgba(21, 148, 71, 0.22);
  background: rgba(21, 148, 71, 0.08);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(15, 23, 42, 0.66));
  z-index: 1;
}

.hero-card img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 800ms ease;
}

.hero-card:hover img {
  transform: scale(1.035);
}

.hero-card__caption {
  position: absolute;
  inset: auto 1.1rem 1.1rem;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.hero-card__caption strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.hero-card__caption span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.stats-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.stat-card {
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-card span {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section {
  padding: clamp(3.2rem, 6vw, 6rem) 0;
}

.section--tight {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.section--soft {
  background:
    radial-gradient(circle at 15% 0%, rgba(21, 148, 71, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(238, 244, 242, 0.58), rgba(255, 255, 255, 0));
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.7rem, 3vw, 3rem);
}

.section__header > div {
  max-width: 740px;
}

.section h2,
.content-panel h2,
.sidebar-card h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section h3,
.card h3,
.service-card h3,
.contact-card h3,
.timeline-card h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--color-brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.contact-card,
.content-panel,
.sidebar-card,
.timeline-card,
.gallery-section,
.news-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.card,
.contact-card,
.content-panel,
.sidebar-card,
.timeline-card,
.news-card {
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
}

.card,
.service-card,
.contact-card,
.timeline-card,
.news-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.service-card:hover,
.contact-card:hover,
.timeline-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 148, 71, 0.22);
  box-shadow: var(--shadow-md);
}

.card__icon,
.contact-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  box-shadow: 0 14px 30px rgba(21, 148, 71, 0.18);
}

.service-card {
  overflow: hidden;
}

.service-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-soft);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 1.2rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.pill-list li,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(21, 148, 71, 0.16);
  border-radius: 999px;
  color: var(--color-brand-dark);
  background: rgba(21, 148, 71, 0.08);
  font-size: 0.83rem;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.38fr);
  align-items: start;
  gap: 1.4rem;
}

.content-stack {
  display: grid;
  gap: 1.2rem;
}

.content-panel p:last-child,
.sidebar-card p:last-child,
.card p:last-child,
.contact-card p:last-child,
.news-card p:last-child {
  margin-bottom: 0;
}

.highlight-panel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(13, 102, 52, 0.82)),
    url("../../images/hero-location.jpg") center/cover;
}

.highlight-panel p,
.highlight-panel strong,
.highlight-panel h2,
.highlight-panel h3 {
  color: #ffffff;
}

.highlight-panel p {
  color: rgba(255, 255, 255, 0.80);
}

.gallery-section {
  overflow: hidden;
}

.gallery-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 1.2rem;
}

.gallery-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(21, 148, 71, 0.08), rgba(31, 122, 140, 0.08));
  outline-offset: 4px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.gallery-link img,
.gallery-link video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-link::after {
  content: "Apri";
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-link:hover img,
.gallery-link:hover video {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.03);
}

.gallery-link:hover::after,
.gallery-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.media-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(280px, 0.55fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.product-section__copy {
  padding: clamp(0.5rem, 1.4vw, 1.1rem);
}

.product-section__copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
}

.product-section__copy p:last-child {
  margin-bottom: 0;
}

.product-section__gallery {
  align-self: stretch;
  display: grid;
  gap: 0.65rem;
}

.list-clean {
  display: grid;
  gap: 0.58rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--color-muted);
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--color-brand);
}

.aside-gallery {
  display: grid;
  gap: 0.75rem;
}

.aside-gallery a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease;
}

.aside-gallery a:hover,
.aside-gallery a:focus-visible {
  transform: translateX(3px);
  border-color: rgba(21, 148, 71, 0.28);
}

.aside-gallery img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
}

.aside-gallery span {
  color: var(--color-ink);
  font-weight: 900;
}

.page-heading {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.2rem) 0 clamp(2.6rem, 5vw, 4.6rem);
}

.page-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.24) 100%),
    var(--page-hero, none) center/cover;
  z-index: -2;
}

.page-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(251, 253, 252, 0.98));
  z-index: -1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--color-brand-dark);
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgba(85, 101, 125, 0.55);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(21, 148, 71, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 182, 63, 0.14), transparent 16rem),
    linear-gradient(135deg, rgba(21, 148, 71, 0.10), rgba(31, 122, 140, 0.08));
}

.callout h2,
.callout h3 {
  margin-bottom: 0.45rem;
}

.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.80), rgba(13, 102, 52, 0.68)),
    url("../../images/mappa4.gif") center/contain no-repeat,
    var(--color-ink);
  box-shadow: var(--shadow-md);
}

.map-panel__content {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(16px);
}

.map-panel__content p,
.map-panel__content strong {
  color: #ffffff;
}

.route-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  list-style: none;
}

.route-list li {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card a {
  color: var(--color-brand-dark);
  font-weight: 900;
  word-break: break-word;
}

.contact-card__line {
  display: block;
  margin-top: 0.25rem;
}

.form-note {
  padding: 1rem;
  border: 1px dashed rgba(21, 148, 71, 0.32);
  border-radius: 18px;
  color: var(--color-muted);
  background: rgba(21, 148, 71, 0.06);
}

.footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.2rem;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 10% 0%, rgba(21, 148, 71, 0.30), transparent 28rem),
    linear-gradient(135deg, #0f172a, #10251b 70%, #0d6634);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.65fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
}

.footer h2,
.footer h3,
.footer strong,
.footer a {
  color: #ffffff;
}

.footer h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.footer h3 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 0;
}

.footer a:hover,
.footer a:focus-visible {
  color: #b5f3c9;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(16px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(100%, 1040px);
  max-height: calc(100dvh - 2rem);
}

.lightbox__media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-lg);
}

.lightbox__media img,
.lightbox__media video {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-weight: 800;
}

.lightbox__button {
  position: absolute;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  background: rgba(21, 148, 71, 0.92);
  transform: scale(1.05);
}

.lightbox__close {
  right: 0;
  top: -3.7rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev:hover,
.lightbox__prev:focus-visible,
.lightbox__next:hover,
.lightbox__next:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.lightbox__prev {
  left: -3.6rem;
}

.lightbox__next {
  right: -3.6rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .hero__grid,
  .split-layout,
  .product-section {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    min-height: 340px;
  }

  .grid--4,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__inner {
    min-height: 74px;
  }

  .brand img {
    width: 106px;
  }

  .brand__claim {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.65rem);
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav .nav-cta {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .stats-strip,
  .grid--3,
  .grid--4,
  .gallery-grid,
  .gallery-grid--compact,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section__header,
  .callout {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer__grid,
  .footer__bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox__close {
    right: 0;
    top: -3.2rem;
  }

  .lightbox__prev {
    left: 0.5rem;
  }

  .lightbox__next {
    right: 0.5rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand__text {
    display: none;
  }

  .hero h1,
  .page-heading h1 {
    letter-spacing: -0.06em;
  }

  .hero-card,
  .content-panel,
  .sidebar-card,
  .card,
  .service-card,
  .contact-card,
  .timeline-card,
  .news-card,
  .gallery-section,
  .product-section,
  .callout {
    border-radius: 22px;
  }

  .product-section,
 .gallery-grid {
    padding: 0.75rem;
  }

  .aside-gallery a {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .aside-gallery img {
    width: 72px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-topbar,
  .site-header,
  .hero__actions,
  .section-actions,
  .footer,
  .lightbox,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #111827;
    background: #ffffff;
  }

  a {
    text-decoration: underline;
  }

  .container {
    width: 100%;
  }

  .section,
  .page-heading,
  .hero {
    padding: 1rem 0;
  }

  .card,
  .content-panel,
  .sidebar-card,
  .product-section,
  .contact-card {
    break-inside: avoid;
    box-shadow: none;
  }
}


.product-section__gallery .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
}

.product-section__gallery .gallery-link {
  border-radius: 20px;
}

.gallery-section .gallery-link {
  aspect-ratio: 16 / 10;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(181, 243, 201, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.social-link--placeholder {
  opacity: 0.78;
}

.whatsapp-inline {
  color: #0d6634 !important;
}

.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 2.4vw, 1.6rem);
  bottom: clamp(1rem, 2.4vw, 1.6rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #159447, #0d6634);
  box-shadow: 0 18px 40px rgba(13, 102, 52, 0.26);
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(13, 102, 52, 0.32);
}

.whatsapp-float__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #0d6634;
  background: #ffffff;
  font-size: 1rem;
}

@media (max-width: 560px) {
  .product-section__gallery .gallery-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 0.85rem;
    bottom: 0.85rem;
    min-height: 52px;
    padding: 0.7rem 0.85rem;
  }

  .whatsapp-float__label {
    display: none;
  }
}

.media-missing::before {
  content: "Immagine non disponibile";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--color-muted);
  text-align: center;
  background: var(--color-soft);
  font-weight: 800;
}
