/* =========================================================
   Corugate.com — stylesheet (brand OptGroup)
   ========================================================= */

:root {
  --color-blue-dark: #214C87;
  --color-blue-light: #E6ECF2;
  --color-orange: #E87C35;
  --color-orange-light: #F6EBE5;
  --color-gray-light: #E9EDF1;
  --color-text-title: #000000;
  --color-text-body: #54595f;
  --color-white: #ffffff;

  --font-family-base: 'Poppins', sans-serif;

  --border-radius-card: 15px;
  --border-radius-icon: 15px;
  --icon-padding: 15px;
  --card-padding: 25px;
  --card-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);

  --spacing-sm: 12px;
  --spacing-md: 25px;
  --spacing-lg: 50px;

  --section-max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-text-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
  position: relative;
}

/* ---------- Ambient background motion (very subtle, brand-tinted) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 12% -8%, rgba(33,76,135,0.06), transparent 60%),
    radial-gradient(ellipse 700px 520px at 108% 18%, rgba(232,124,53,0.05), transparent 60%),
    radial-gradient(ellipse 900px 700px at 50% 118%, rgba(33,76,135,0.045), transparent 60%);
  animation: bgDrift 32s ease-in-out 1.5s infinite alternate;
  will-change: transform;
}
@keyframes bgDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.04); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

img { max-width: 100%; height: auto; box-shadow: none; display: block; }

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

ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { background: transparent; padding: var(--spacing-lg) 0; position: relative; }

h1, h2 {
  font-family: var(--font-family-base);
  font-size: 35px;
  font-weight: 600;
  color: var(--color-text-title);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: 1.25;
}

h3 { font-family: var(--font-family-base); font-size: 18px; font-weight: 600; color: var(--color-text-title); margin: 0 0 var(--spacing-sm) 0; }
h4 { font-family: var(--font-family-base); font-size: 18px; font-weight: 600; color: var(--color-text-title); margin: 0 0 8px 0; }

p { font-family: var(--font-family-base); font-size: 16px; font-weight: 300; color: var(--color-text-body); margin: 0 0 var(--spacing-md) 0; }

.lede { font-size: 18px; font-weight: 400; color: var(--color-text-body); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-blue-dark);
  background: var(--color-blue-light);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: var(--spacing-sm);
}

.text-center { text-align: center; }
.center-col { display: flex; flex-direction: column; align-items: center; }

/* ---------- Scroll-reveal (classes added by script.js) ---------- */
.reveal-target {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-target.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-target { opacity: 1; transform: none; transition: none; }
  body::before, .hero-media img { animation: none; }
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
}
.site-header .container { display: flex; align-items: center; padding-top: 16px; padding-bottom: 16px; min-height: 76px; position: relative; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-main { font-size: 24px; font-weight: 700; color: var(--color-blue-dark); }
.logo .logo-sub { font-size: 11px; font-weight: 400; color: var(--color-text-body); letter-spacing: .03em; }

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo-img { height: 48px; width: auto; display: block; }
.footer-optgroup-badge { display: inline-block; }
.footer-optgroup-badge img { height: 48px; width: auto; display: block; }
nav.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; padding-left: 30px; }
nav.main-nav a { font-size: 15px; font-weight: 400; color: var(--color-text-title); white-space: nowrap; }
nav.main-nav a:hover { color: var(--color-blue-dark); }
nav.main-nav a.active { color: var(--color-blue-dark); font-weight: 600; }
nav.main-nav a.btn-primary { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 28px; line-height: 1; color: var(--color-blue-dark); cursor: pointer; padding: 4px; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-family-base); font-size: 16px; font-weight: 600; padding: 14px 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn-primary { background: var(--color-blue-dark); color: #fff !important; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #163862 !important; color: #fff !important; box-shadow: 0 4px 12px rgba(33,76,135,0.35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-blue-dark) !important; border-color: var(--color-blue-dark); }
.btn-outline:hover, .btn-outline:focus, .btn-outline:active { background: var(--color-blue-dark) !important; color: #fff !important; border-color: var(--color-blue-dark) !important; box-shadow: 0 4px 12px rgba(33,76,135,0.25); transform: translateY(-2px); }
.btn-orange { background: var(--color-orange); color: #fff !important; }
.btn-orange:hover, .btn-orange:focus, .btn-orange:active { background: #CC5F1E !important; color: #fff !important; box-shadow: 0 4px 12px rgba(232,124,53,0.35); transform: translateY(-2px); }
.btn-row { display: flex; gap: var(--spacing-md); flex-wrap: wrap; margin-top: var(--spacing-md); }
.btn-row.justify-center { justify-content: center; }
.btn-row.btn-row-full { flex-direction: column; }
.btn-row.btn-row-full .btn { width: 100%; text-align: center; }
.btn-nav { padding: 12px 24px; font-size: 15px; }

/* ---------- WhatsApp CTA ---------- */
.btn-whatsapp { background: #fff; color: #0B7A3B !important; border-color: #0B7A3B; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-whatsapp:hover, .btn-whatsapp:focus, .btn-whatsapp:active { background: #085C2E !important; color: #fff !important; border-color: #085C2E !important; box-shadow: 0 4px 12px rgba(8,92,46,0.3); transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: #0B7A3B; flex-shrink: 0; transition: fill .15s ease; }
.btn-whatsapp:hover svg, .btn-whatsapp:focus svg, .btn-whatsapp:active svg { fill: #fff; }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid #0B7A3B; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.2); z-index: 999; transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #0B7A3B; transition: fill .15s ease; }
.whatsapp-float:hover { background: #085C2E; border-color: #085C2E; transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.nav-whatsapp { display: none; }
.whatsapp-float:hover svg { fill: #fff; }
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--color-blue-light); padding: var(--spacing-lg) 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--spacing-lg); align-items: center; }
.hero-media img { border-radius: var(--border-radius-card); animation: floatY 6s ease-in-out 1.5s infinite; }
.hero-text .eyebrow { background: var(--color-white); }

/* ---------- Stat columns ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }
.stat { text-align: center; }
.stat .stat-num { font-size: 34px; font-weight: 700; color: var(--color-blue-dark); }
.stat .stat-label { font-size: 15px; font-weight: 400; color: var(--color-text-body); margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--border-radius-card);
  box-shadow: var(--card-shadow);
  padding: var(--card-padding);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow), 0 16px 32px -14px rgba(33,76,135,0.3); }
.card-grid { display: grid; gap: var(--spacing-md); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }

.feature-card { display: flex; flex-direction: column; gap: var(--spacing-sm); min-width: 0; }
.feature-card .icon-box { width: 52px; height: 52px; border-radius: var(--border-radius-icon); background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s ease; }
.feature-card .icon-box svg { width: 26px; height: 26px; stroke: var(--color-blue-dark); }
.feature-card.orange .icon-box { background: var(--color-orange-light); border: 1px solid var(--color-orange-light); }
.feature-card.orange .icon-box svg { stroke: var(--color-orange); }
.feature-card:hover .icon-box { transform: scale(1.08) rotate(-4deg); }

/* section 2 style — full width band, centered, one big card */
.intro-card { max-width: var(--section-max-width); margin: 0 auto; }
.intro-card .measure { max-width: 760px; margin-left: auto; margin-right: auto; }
.card-narrow { max-width: 640px; margin: 0 auto; }

/* left-aligned content sections (3+) */
.section-left h2 { text-align: left; }

/* plain card titles (e.g. domenii de utilizare) stay centered at every size */
.card-grid .card h2, .card-grid .card h3 { text-align: center; }

/* Resistance class cards */
.sn-card { background: var(--color-white); border-radius: var(--border-radius-card); border: 1px solid var(--color-gray-light); box-shadow: var(--card-shadow); padding: var(--card-padding); transition: transform .3s ease, box-shadow .3s ease; }
.sn-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow), 0 16px 32px -14px rgba(33,76,135,0.3); }
.sn-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.sn-dot.blue { background: #2E6DB4; }
.sn-dot.yellow { background: #E8B92E; }
.sn-card ul { margin-top: var(--spacing-sm); }
.sn-card li { font-size: 16px; font-weight: 300; color: var(--color-text-body); margin-bottom: 8px; padding-left: 18px; position: relative; }
.sn-card li::before { content: "•"; color: var(--color-blue-dark); position: absolute; left: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--border-radius-card); border: 1px solid var(--color-gray-light); box-shadow: var(--card-shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table caption { caption-side: top; text-align: left; font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; padding: 16px 14px 14px; color: var(--color-text-title); background: var(--color-white); border-bottom: 1px solid var(--color-gray-light); }
thead th { background: var(--color-blue-dark); color: #fff; font-weight: 600; text-align: left; padding: 12px 14px; }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--color-gray-light); color: var(--color-text-body); }
tbody tr:nth-child(even) { background: #FAFBFC; }

/* Steps list */
.steps-list { display: flex; flex-direction: column; gap: var(--spacing-md); }
.step-item { display: flex; gap: var(--spacing-md); align-items: flex-start; min-width: 0; }
.step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--color-blue-dark); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: var(--spacing-md); }
.faq-item { border-radius: var(--border-radius-card); border: 1px solid var(--color-gray-light); box-shadow: var(--card-shadow); padding: var(--card-padding) !important; transition: transform .3s ease, box-shadow .3s ease; }
.faq-item:hover { transform: translateY(-3px); box-shadow: var(--card-shadow), 0 16px 32px -14px rgba(33,76,135,0.25); }
.faq-item h2 { font-size: 18px; font-weight: 600; color: var(--color-text-title); margin: 0 0 var(--spacing-sm) 0; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--color-text-body); padding-top: 16px; }
.breadcrumb a { color: var(--color-blue-dark); }
.breadcrumb span { margin: 0 6px; }

/* CTA band */
.cta-band { background: var(--color-blue-light); }
.cta-band .card { background: var(--color-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: start; }
.contact-info .icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: var(--spacing-md); }
.contact-info .icon-box { width: 44px; height: 44px; border-radius: var(--border-radius-icon); background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .icon-box svg { width: 22px; height: 22px; stroke: var(--color-blue-dark); }
.card-medium { max-width: 920px; margin: 0 auto; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--spacing-lg); }
.contact-cols .contact-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--spacing-sm); max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.contact-cols .icon-box { width: 52px; height: 52px; border-radius: var(--border-radius-icon); background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-cols .icon-box svg { width: 26px; height: 26px; stroke: var(--color-blue-dark); }
.contact-cols .contact-col strong { color: var(--color-text-title); font-size: 16px; }
.contact-cols .contact-col a { color: var(--color-blue-dark); }
.contact-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.social-row { display: flex; justify-content: center; align-items: center; gap: 16px; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color .15s ease, transform .15s ease; }
.social-row a svg { width: 20px; height: 20px; fill: var(--color-blue-dark); transition: fill .15s ease; }
.social-row a:hover { background: var(--color-blue-dark); transform: translateY(-2px); }
.social-row a:hover svg { fill: #fff; }
@media (max-width: 900px) {
  .contact-cols.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .contact-cols { grid-template-columns: 1fr; }
  .contact-cols.cols-4 { grid-template-columns: 1fr; }
}

form.quote-form { display: flex; flex-direction: column; gap: var(--spacing-md); }
/* Pair two fields on the same row on desktop (contact.html: Nume+Companie,
   Telefon+Email); stacks back to one column on narrow screens. */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}
form.quote-form label { display: block; font-size: 14px; font-weight: 600; color: var(--color-text-title); margin-bottom: 6px; }
/* Required-field marker — same color as the label text it sits in, not a
   contrasting red, so it doesn't read as an error state. */
form.quote-form .req-star { color: inherit; font-weight: 600; }
form.quote-form .field-note { font-style: italic; font-weight: 400; font-size: 13px; color: var(--color-text-body); margin: -2px 0 6px; }
form.quote-form input, form.quote-form select, form.quote-form textarea {
  display: block; width: 100%;
  /* 16px minimum: iOS Safari auto-zooms on focus for any form field under 16px. */
  font-family: var(--font-family-base); font-size: 16px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--color-gray-light); background: #fff; color: var(--color-text-body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
form.quote-form input:focus, form.quote-form select:focus, form.quote-form textarea:focus {
  outline: none; border-color: var(--color-blue-dark); box-shadow: 0 0 0 3px rgba(33,76,135,0.12);
}
form.quote-form textarea { resize: vertical; min-height: 100px; }
form.quote-form .hp-field { position: absolute; left: -9999px; top: -9999px; }
form.quote-form .cf-status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.3em; }
form.quote-form .cf-status.cf-status-ok { color: #0B7A3B; }
form.quote-form .cf-status.cf-status-error { color: #C1560E; }
form.quote-form button[disabled] { opacity: .7; cursor: not-allowed; }
form.quote-form template { display: none; }
/* Radio groups (fieldset/legend) and the terms checkbox — reset the general
   input/label rules above, which would otherwise stretch radios/checkboxes
   to full width and force their labels into bold block rows. */
form.quote-form fieldset.radio-group {
  border: none; margin: 0; padding: 0;
  /* Radio rows are visually short/compact — pull the next field closer than
     the form's normal (larger) field-to-field gap, on both mobile and
     desktop, instead of leaving a disproportionately big empty gap under
     such a short row. */
  margin-bottom: calc(var(--spacing-sm) - var(--spacing-md));
}
form.quote-form fieldset.radio-group legend {
  padding: 0; font-size: 14px; font-weight: 600; color: var(--color-text-title); margin-bottom: 6px;
}
form.quote-form .radio-row {
  display: flex; gap: var(--spacing-md); flex-wrap: wrap;
  /* Column gap (between options on the same line) stays at spacing-md;
     row gap (between wrapped lines on narrow screens) is smaller — a big
     25px gap between two wrapped radio lines reads as a layout mistake. */
  row-gap: var(--spacing-sm);
}
form.quote-form .radio-option {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 400; color: var(--color-text-body);
  margin-bottom: 0; cursor: pointer;
}
form.quote-form input[type="radio"],
form.quote-form input[type="checkbox"] {
  display: inline-block; width: auto; flex-shrink: 0; margin: 0; padding: 0;
  border: none; background: none; accent-color: var(--color-blue-dark); cursor: pointer;
}
form.quote-form .checkbox-row { display: flex; }
form.quote-form .checkbox-option {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: 14px; font-weight: 400; color: var(--color-text-body);
  margin-bottom: 0; cursor: pointer;
}
form.quote-form .checkbox-option input[type="checkbox"] { margin-top: 3px; }
form.quote-form .checkbox-option a { color: var(--color-blue-dark); }
.repeater-row {
  position: relative;
  border: 1px solid var(--color-gray-light); border-radius: 10px;
  /* Plain, uniform padding on every side — no extra space reserved for the
     remove button. The button is sized small enough (see .repeater-remove)
     to float over the top-right corner without ever reaching into the
     field below it, even on mobile where the label is a single short line. */
  padding: var(--spacing-sm);
  background: #fafbfc;
}
.repeater-row + .repeater-row { margin-top: var(--spacing-sm); }
.repeater-fields { display: flex; gap: var(--spacing-sm); align-items: stretch; }
.repeater-fields > div { flex: 1 1 160px; min-width: 140px; display: flex; flex-direction: column; }
.repeater-fields .qty-field { flex: 0 1 150px; }
/* Tight, identical label-to-field gap in every column, on both desktop and
   mobile (no reserved fixed height — a 2-line label like Diametru simply
   pushes its own select down slightly relative to the 1-line columns, which
   is a smaller visual trade-off than a looser gap everywhere). */
.repeater-fields label { margin-bottom: 2px; }
/* Force an identical fixed height on the select controls and the quantity
   stepper — native <select> elements render a couple of pixels taller than
   custom flex containers even with matching padding, so pin both explicitly
   instead of relying on padding alone to keep them level. */
.repeater-fields select,
.qty-stepper { height: 48px; }
.repeater-remove {
  /* Original bigger size (28x28), right edge flush with the selects/inputs
     below it. Sits with only a small top offset — not the row's full
     padding — so it still floats without reserving dedicated space and
     without pushing the fields below it down. */
  position: absolute; top: 4px; right: var(--spacing-sm); z-index: 1;
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--color-gray-light); background: #fff; color: #C1560E;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: background-color .15s ease, border-color .15s ease;
}
.repeater-remove svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.repeater-remove:hover { background: #FBEAEA; border-color: #C1560E; }
.repeater-add {
  display: block; width: 100%; text-align: center; padding: 7px 14px;
  /* Pull it up closer to the repeater box above it, instead of the form's
     normal inter-field gap (spacing-md). */
  margin-top: calc(var(--spacing-sm) - var(--spacing-md));
}
.qty-stepper { display: flex; align-items: stretch; border: 1px solid var(--color-gray-light); border-radius: 8px; overflow: hidden; background: #fff; }
.qty-btn {
  flex: 0 0 36px; border: none; background: #fff; color: var(--color-blue-dark);
  font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.qty-btn:hover { background: var(--color-blue-light); }
form.quote-form .qty-input {
  flex: 1 1 auto; min-width: 0; border: none; text-align: center;
  font-family: var(--font-family-base); font-size: 16px; padding: 12px 4px; color: var(--color-text-body);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Override the generic focus ring (border-color + box-shadow) from the
   form.quote-form input:focus rule above — the qty-input has no border of
   its own (the visible border/shadow lives on .qty-stepper instead), so
   that ring would otherwise show up floating inside the stepper. */
form.quote-form .qty-input:focus { outline: none; box-shadow: none; border-color: transparent; }
@media (max-width: 600px) {
  .repeater-fields { flex-direction: column; align-items: stretch; gap: var(--spacing-sm); }
  /* flex-basis/flex-grow apply to whichever axis is "main" for the current
     direction — once the container above switches to column, the desktop
     "flex: 1 1 160px" (a WIDTH basis) is reinterpreted as a HEIGHT basis and
     grows each field to fill leftover vertical space, leaving a big empty
     gap under each select. Reset to auto so height just matches content. */
  .repeater-fields > div { flex: 0 0 auto; min-width: 0; }
  /* .qty-field (Metri liniari) has its own more specific desktop rule
     (flex: 0 1 150px) that the generic reset above can't beat on
     specificity alone — override it by name too. */
  .repeater-fields .qty-field { flex: 0 0 auto; }
}

/* Video section */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.video-card { border-radius: var(--border-radius-card); overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid var(--color-gray-light); background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow), 0 16px 32px -14px rgba(33,76,135,0.3); }
.video-card .video-embed { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; cursor: pointer; }
.video-card .video-embed:focus-visible { outline: 3px solid var(--color-blue-dark); outline-offset: 2px; }
.video-card .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.video-card .video-embed:hover .video-play { background: rgba(33,76,135,0.85); transform: translate(-50%, -50%) scale(1.1); }
.video-card .video-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-card .video-caption { padding: var(--card-padding); }
.video-card .video-caption h3 { font-size: 16px; margin-bottom: 0; }
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--color-blue-dark); color: #fff; padding: 56px 0 24px; }
footer.site-footer a { color: #fff; opacity: .85; }
footer.site-footer a:hover { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid .footer-title { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 var(--spacing-sm) 0; }
.footer-grid p, .footer-grid li { font-size: 14px; opacity: .85; margin-bottom: 10px; color: #fff; line-height: 1.5; }
.footer-grid ul li:last-child { margin-bottom: 0; }
.footer-brand-col p { margin-top: 16px; margin-bottom: 0; max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; opacity: .75; }

/* ---------- Utilities ---------- */
.mt-lg { margin-top: var(--spacing-lg); }
.mb-0 { margin-bottom: 0; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.badge.blue { background: var(--color-blue-light); color: var(--color-blue-dark); }
.badge.orange { background: var(--color-orange-light); color: var(--color-orange); }

/* ---------- Responsive ---------- */
@media (max-width: 1220px) {
  nav.main-nav { position: absolute; top: 100%; left: 0; right: 0; margin-left: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px 20px 24px; border-top: 1px solid var(--color-gray-light); border-bottom: 1px solid var(--color-gray-light); display: none; gap: 4px; box-shadow: 0px 12px 20px rgba(0,0,0,0.08); }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 10px 0; width: 100%; }
  nav.main-nav a.btn-primary { margin-left: 0; margin-top: 12px; width: 100%; text-align: center; padding: 14px 24px; }
  .nav-toggle { display: block; }
  .nav-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: auto; border-radius: 8px; background: #fff; border: 2px solid #0B7A3B; margin: 10px 0 0; padding: 12px 24px; transition: background-color .15s ease, border-color .15s ease; }
  .nav-whatsapp svg { width: 20px; height: 20px; fill: #0B7A3B; flex-shrink: 0; transition: fill .15s ease; }
  .nav-whatsapp-text { display: inline; color: #0B7A3B; font-weight: 600; font-size: 15px; transition: color .15s ease; }
  .nav-whatsapp:hover { background: #085C2E; border-color: #085C2E; }
  .nav-whatsapp:hover svg { fill: #fff; }
  .nav-whatsapp:hover .nav-whatsapp-text { color: #fff; }
}
@media (max-width: 900px) {
  h1, h2 { font-size: 28px; }
  .hero .container { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-6 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }

  /* Center every eyebrow badge, section heading (h1/h2) and its intro
     description everywhere on the site, even when there's no description */
  .eyebrow { display: table; margin-left: auto; margin-right: auto; }
  h1, h2 { text-align: center; }
  .section-left h2 { text-align: center; }
  .lede { text-align: center; margin-left: auto; margin-right: auto; }
  main > section:first-of-type .btn-row { justify-content: center; }
  main > section:first-of-type .hero-media { display: flex; justify-content: center; }

  /* Exceptions: keep left-aligned wherever it's paired with long left-aligned
     body text, bullet lists, tables or step lists right below it */
  .faq-item h2 { text-align: left; }
  .section-left > .container > .card h2 { text-align: left; }
  .cta-band .card h2,
  .cta-band .card .lede { text-align: left; margin-left: 0; margin-right: 0; }
  .card-grid .card p { text-align: left; }

  /* Center icon + title + short text inside feature cards */
  .feature-card { align-items: center; text-align: center; }

  /* Center numbered step items (number on top, title + text centered below) */
  .steps-list { align-items: center; }
  .step-item { flex-direction: column; align-items: center; text-align: center; }

  /* Center video captions */
  .video-card .video-caption { text-align: center; }

  /* Buttons: full width and stacked when they don't fit side by side */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand-col { grid-column: auto; }
  .footer-brand-col p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
