/* Bianchi Group — stylesheet
   Direzione: minimale, ampio respiro, tipografia come elemento centrale,
   un solo colore d'accento, niente decorazioni superflue. */

:root {
  --bg: #FBFBFD;
  --bg-alt: #F5F5F7;
  --bg-dark: #1D1D1F;
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-on-dark: #F5F5F7;
  --text-on-dark-secondary: #A1A1A6;
  --accent: #157570;
  --accent-light: #6ADDD8;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 100px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 253, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: clamp(72px, 10vw, 92px);
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(7px, 2.2vw, 18px);
  min-width: 0;
  flex: 1 1 auto;
}

.logo img {
  display: block;
  flex: none;
  height: clamp(26px, 7vw, 52px);
  width: auto;
}

.logo-divider {
  flex: none;
  width: 1px;
  height: clamp(16px, 4.4vw, 36px);
  background: var(--hairline);
}

.logo-tagline {
  font-family: "Poiret One", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(8.5px, 2.9vw, 15px);
  letter-spacing: clamp(0em, 0.3vw, 0.16em);
  text-transform: uppercase;
  color: #4B7A76;
  white-space: nowrap;
  min-width: 0;
}

nav.main-nav { flex: none; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.main-nav a {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  transition: color 0.2s ease;
}

nav.main-nav a:hover { color: var(--accent); }

nav.main-nav a.current {
  color: var(--text);
  font-weight: 600;
}

.lang-switch {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch a { color: var(--text-secondary); }
.lang-switch a.active { color: var(--text); font-weight: 600; }
.lang-switch span { color: var(--hairline); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  padding: 140px 0 120px;
  text-align: center;
}

.hero-ingots {
  position: relative;
  text-align: left;
  color: var(--text-on-dark);
  background: var(--bg-dark);
  padding: 180px 0 160px;
  overflow: hidden;
}

.hero-ingots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6,7,8,0.4) 0%, rgba(6,7,8,0) 22%);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  display: block;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(1.04) saturate(1.08) contrast(1.02);
  opacity: 0;
  transition: filter 0.3s ease;
}

.hero-slide:hover,
.hero-slide:focus-visible {
  filter: brightness(1.12) saturate(1.1) contrast(1.02);
}

.hero-slide:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -4px;
}

.hero-slide-1 {
  background-image: url("/assets/img/hero-ingots-photo.jpg");
  animation: heroFade1 16.5s ease-in-out infinite;
}

.hero-slide-2 {
  background-image: url("/assets/img/feature-cnc.jpg");
  animation: heroFade2 16.5s ease-in-out infinite;
}

.hero-slide-3 {
  background-image: url("/assets/img/hero-network-bright.jpg");
  animation: heroFade3 16.5s ease-in-out infinite;
}

@keyframes heroFade1 {
  0%, 26% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes heroFade2 {
  0%, 33% { opacity: 0; }
  40%, 66% { opacity: 1; }
  73%, 100% { opacity: 0; }
}

@keyframes heroFade3 {
  0%, 73% { opacity: 0; }
  80%, 97% { opacity: 1; }
  100% { opacity: 0; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-caption-wrap {
  position: relative;
  width: clamp(320px, 48vw, 680px);
  max-width: 100%;
  min-height: clamp(140px, 18vw, 232px);
  margin-bottom: 44px;
}

.hero-caption-wrap::before {
  content: "";
  position: absolute;
  inset: -56px -80px -56px -56px;
  z-index: 0;
  background: radial-gradient(ellipse 70% 75% at 26% 40%, rgba(4,5,6,0.5) 0%, rgba(4,5,6,0.24) 45%, rgba(4,5,6,0) 78%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-caption-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

.hero-caption-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-light);
}

.hero-caption-title {
  font-size: clamp(46px, 6.6vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 10px 34px rgba(0,0,0,0.5);
}

.hero-caption.cap-1 { animation: heroFade1 16.5s ease-in-out infinite; }
.hero-caption.cap-2 { animation: heroFade2 16.5s ease-in-out infinite; }
.hero-caption.cap-3 { animation: heroFade3 16.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-caption { animation: none; }
  .hero-slide-1, .hero-caption.cap-1 { opacity: 1; }
  .hero-slide-2, .hero-caption.cap-2 { opacity: 0; }
  .hero-slide-3, .hero-caption.cap-3 { opacity: 0; }
}

/* Manual override: once the visitor uses the dots/arrows/swipe,
   the CSS auto-crossfade stops and JS drives opacity via .is-active */
.hero-ingots.manual .hero-slide,
.hero-ingots.manual .hero-caption {
  animation: none;
  opacity: 0;
}

.hero-ingots.manual .hero-slide.is-active,
.hero-ingots.manual .hero-caption.is-active {
  opacity: 1;
}

.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-nav-btn {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.hero-nav-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}

.hero-nav-btn:active { transform: scale(0.92); }

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover { background: rgba(255,255,255,0.6); }

.hero-dot.active {
  background: var(--accent-light);
  transform: scale(1.3);
}

.hero-ingots .wrap { max-width: var(--max-width); position: relative; z-index: 2; }

.hero-ingots .button-row { justify-content: flex-start; }

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 auto 24px;
  max-width: 900px;
}

.hero p.lede {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary:hover { background: var(--accent-light); }

.hero-ingots .btn-secondary { color: #8FE8E2; }

.btn-secondary {
  color: var(--accent);
}

.btn-secondary:hover { opacity: 0.7; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  color: var(--text);
  background: var(--bg);
}

.btn-outline svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: var(--accent);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-download {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Eco badge ---------- */

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 20px;
  padding: 10px 16px;
  background: rgba(21, 117, 112, 0.08);
  border: 1px solid rgba(21, 117, 112, 0.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.eco-badge svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

/* ---------- Numbered list (HYLE-style) ---------- */

.num-list { border-top: 1px solid var(--hairline); }

.num-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}

.num-item .num {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 4px;
}

.num-item h3 { margin-bottom: 8px; }
.num-item p { margin-bottom: 0; max-width: 560px; }

/* ---------- Q&A list (HYLE-style) ---------- */

.qa-list { border-top: 1px solid var(--hairline); }

.qa-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 44px 0;
  border-bottom: 1px solid var(--hairline);
}

.qa-item .q {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.qa-item .a { margin: 0; }

/* ---------- Utility bar ---------- */

.utility-bar {
  background: var(--bg-dark);
  color: var(--text-on-dark-secondary);
}

.utility-bar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 34px;
  font-size: 12px;
}

.utility-bar a { color: var(--text-on-dark-secondary); }
.utility-bar a:hover { color: var(--text-on-dark); }

/* ---------- Product tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tile-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: url("/assets/img/tile-alluminio.jpg") center / cover no-repeat, #0E5C57;
  transition: transform 0.3s ease;
}

.tile-card.tile-2 {
  background: url("/assets/img/feature-cnc.jpg") center / cover no-repeat, #1D1D1F;
}

.tile-card:hover { transform: scale(1.015); }

.tile-card .tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}

.tile-card .tile-label {
  position: relative;
  padding: 28px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Quick links strip ---------- */

.quick-strip {
  border-top: 1px solid var(--hairline);
  padding: 0;
}

.quick-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 1px solid var(--hairline);
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.quick-strip a:first-child { border-left: none; }
.quick-strip a:hover { color: var(--text); background: var(--bg-alt); }
.quick-strip svg { width: 22px; height: 22px; }

/* ---------- News list ---------- */

.news-list { border-top: 1px solid var(--hairline); }

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
}

.news-item .news-date {
  font-size: 14px;
  color: var(--text-secondary);
  padding-top: 4px;
}

.news-item h3 { margin-bottom: 8px; }
.news-item p { margin-bottom: 0; max-width: 560px; }

.news-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-alt);
  border-radius: 980px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* ---------- Sections ---------- */

section { padding: 100px 0; }

section.alt { background: var(--bg-alt); }

section.dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

section.dark .section-kicker { color: var(--text-on-dark-secondary); }
section.dark p { color: var(--text-on-dark-secondary); }
section.dark h2, section.dark h3 { color: var(--text-on-dark); }

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

.section-head.left {
  text-align: left;
  margin: 0 0 56px;
}

.section-kicker {
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

/* When the kicker is the section's only heading (no h2 underneath),
   it needs to carry the visual weight of a real title, not a small label. */
.section-kicker:only-child {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 16px;
}

.section-head p {
  font-size: 19px;
}

/* ---------- Two-column feature ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: linear-gradient(135deg, #0E5C57 0%, #4FBAB2 55%, #D8F3F0 100%);
  background-size: cover;
  background-position: center;
}

.feature-visual.fv-alluminio { background-image: url("/assets/img/feature-ingots-close.jpg"); }
.feature-visual.fv-stampi { background-image: url("/assets/img/feature-cnc.jpg"); }
.feature-visual.fv-team { background-image: url("/assets/img/feature-warehouse.jpg"); }
.feature-visual.fv-automotive { background-image: url("/assets/img/feature-automotive.jpg"); }
.feature-visual.fv-network { background-image: url("/assets/img/feature-network-people.jpg"); background-position: 50% 55%; }
.feature-visual.fv-primario { background-image: url("/assets/img/feature-bauxite.jpg"); }

.feature-copy h3 { font-size: 28px; margin-bottom: 16px; }

/* ---------- Service tiles (Servizi hub) ---------- */

.services-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.service-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,0.06) 0%, rgba(10,12,14,0.06) 55%, rgba(10,12,14,0.62) 100%);
  transition: background 0.25s ease;
  z-index: 0;
}

.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: saturate(1.05);
}

.service-tile:hover img { transform: scale(1.05); }
.service-tile:hover::before { background: linear-gradient(180deg, rgba(10,12,14,0.1) 0%, rgba(10,12,14,0.1) 45%, rgba(10,12,14,0.72) 100%); }

.service-tile-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}

.service-tile:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .services-tiles { grid-template-columns: 1fr; }
  .service-tile { aspect-ratio: 16 / 10; }
}

/* ---------- Page hero (static image, secondary pages) ---------- */

.page-hero {
  position: relative;
  text-align: left;
  color: var(--text-on-dark);
  background-size: cover;
  background-position: center;
  padding: 170px 0 90px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(6,10,14,0.72) 0%, rgba(6,10,14,0.45) 45%, rgba(6,10,14,0.78) 100%);
}

.page-hero .wrap { position: relative; z-index: 1; }

.page-hero .section-kicker { color: var(--accent-light); }
.page-hero .section-kicker a { color: inherit; }

.page-hero h1 { color: #fff; }

.page-hero .lede { color: var(--text-on-dark-secondary); }

/* ---------- Events grid (Novità) ---------- */

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

.event-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.event-card-img {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}

.event-card-img.logo-fit {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  background-position: center;
  padding: 12px;
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.event-card-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-card-body h3 {
  font-size: 20px;
  margin: 0;
}

.event-card-body p {
  font-size: 15px;
  margin: 0;
  flex: 1;
}

.event-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-card-link:hover { color: var(--accent); }

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

/* ---------- Alloy composition table ---------- */

.alloy-table-block {
  margin-top: 64px;
}

.alloy-table-intro {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.alloy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.alloy-table th,
.alloy-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.alloy-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--hairline);
}

.alloy-table tbody td:first-child,
.alloy-table thead th:first-child {
  font-weight: 600;
  color: var(--text);
}

.alloy-table tbody td {
  color: var(--text-secondary);
}

.alloy-table tbody tr:last-child td {
  border-bottom: none;
}

.alloy-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

.alloy-table-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ---------- Grid of services / values ---------- */

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

.grid-item .num {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------- Stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
  margin-top: 24px;
}

.stat-row .stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-row .stat-label {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 120px 0;
}

.cta-band h2 { margin-bottom: 32px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-card {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 40px;
}

.contact-card dt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
}

.contact-card dt:first-child { margin-top: 0; }

.contact-card dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.contact-card .placeholder {
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
}

.company-details {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 32px 40px;
  margin-bottom: 56px;
}

.company-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.company-details dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.contact-form-wrap { max-width: 640px; margin: 0 auto; }

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form.contact-form input,
form.contact-form textarea {
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text);
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

form.contact-form label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: -10px;
}

form.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  column-gap: 18px;
  row-gap: 8px;
}

form.contact-form .form-row label {
  margin-bottom: 0;
  align-self: end;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 117, 112, 0.12);
}

form.contact-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

form.contact-form .form-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

form.contact-form .form-consent a { color: var(--accent); text-decoration: underline; }

/* honeypot: hidden from real users, left in the tab order/layout for bots */
.form-field-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form.contact-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

form.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  display: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

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

.form-status.is-success {
  background: rgba(21, 117, 112, 0.1);
  color: var(--accent);
  border: 1px solid rgba(21, 117, 112, 0.25);
}

.form-status.is-error {
  background: rgba(200, 60, 50, 0.08);
  color: #b3382c;
  border: 1px solid rgba(200, 60, 50, 0.25);
}

@media (max-width: 640px) {
  form.contact-form .form-row { grid-template-columns: 1fr; }
  /* On a single column, re-pair each label with its own input right
     below it (the HTML lists both labels first, then both inputs, so
     the desktop grid can align them — on mobile we reorder visually). */
  form.contact-form .form-row label:nth-child(1) { order: 1; }
  form.contact-form .form-row label:nth-child(2) { order: 3; }
  form.contact-form .form-row input:nth-child(3) { order: 2; }
  form.contact-form .form-row input:nth-child(4) { order: 4; }
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover { color: var(--text); }

.footer-legal {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a { color: var(--text-secondary); }
.footer-legal a:hover { color: var(--text); }

/* ---------- Legal pages (privacy / cookie / legal notice) ---------- */

.legal-content {
  padding: 60px 0 100px;
}

.legal-content .wrap { max-width: 820px; }

.legal-content h2 {
  margin-top: 48px;
  font-size: 24px;
}

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

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul { padding-left: 20px; }

.legal-content .legal-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ---------- Entrance animation (single orchestrated moment) ---------- */

.hero h1, .hero p.lede, .hero .button-row {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.hero p.lede { animation-delay: 0.1s; }
.hero .button-row { animation-delay: 0.2s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p.lede, .hero .button-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .feature-row, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual { order: unset; }
  .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .stat-row { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 100px 0 80px; }
  section { padding: 72px 0; }
  .num-item { grid-template-columns: 1fr; gap: 8px; }
  .qa-item { grid-template-columns: 1fr; gap: 12px; }
  .tile-grid { grid-template-columns: 1fr; }
  .quick-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .quick-strip a:nth-child(3) { border-left: none; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 700px) {
  nav.main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  nav.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
}

