/* =============================================================
   ISO CAR – Stylesheet
   Struttura: Reset → Variabili → Base → Layout → Componenti → Sezioni → Footer → Media Query
   ============================================================= */


/* ───────────────────────────── 1. RESET ─────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  font-size: 16px;
}

body {
  min-height: 100svh;
  min-height: 100dvh;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-body);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  -webkit-font-smoothing: antialiased;
}

main {
  padding-top: 72px;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}


/* ───────────────────────────── 2. VARIABILI ─────────────────────────── */

:root {
  /* Palette brand */
  --blue-900: #0e2233;
  --blue-800: #163148;
  --blue-700: #1a3a5c;
  /* colore principale logo */
  --blue-600: #1f4a74;
  --blue-400: #2d6fa0;
  --blue-200: #7aafd4;
  --blue-100: #d0e6f5;
  --blue-050: #f0f7fc;

  /* Testi */
  --text-heading: var(--blue-900);
  --text-body: #3a4a58;
  --text-muted: #7a8f9e;
  --text-light: #ffffff;

  /* Sfondi */
  --bg-base: #ffffff;
  --bg-alt: #f5f8fb;
  --bg-dark: var(--blue-800);
  --bg-darker: var(--blue-900);

  /* Bordi */
  --border: #dce8f0;
  --border-mid: #b8d0e0;

  /* Spaziature */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Raggio */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Ombre */
  --shadow-sm: 0 1px 4px rgba(14, 34, 51, 0.08);
  --shadow-md: 0 4px 20px rgba(14, 34, 51, 0.12);
  --shadow-lg: 0 12px 40px rgba(14, 34, 51, 0.16);

  /* Transizioni */
  --transition: 220ms ease;
}


/* ───────────────────────────── 3. TIPOGRAFIA BASE ───────────────────── */

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

p {
  max-width: 68ch;
}


/* ───────────────────────────── 4. LAYOUT ────────────────────────────── */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

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

.section-dark {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-light);
}

.section-dark .section-eyebrow {
  color: var(--blue-200);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}


/* ───────────────────────────── 5. HEADER ───────────────────────────── */

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo {
  height: 36px;
  width: auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--blue-700);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  background: var(--blue-700);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ───────────────────────────── 6. HERO ──────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/*.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  z-index: 0;
}*/

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(8, 35, 58, 0.75), rgba(20, 89, 140, 0.25)),
    url("../assets/hero.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 0;
}

/* Texture sottile */
/*.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.03) 81px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.03) 81px);
  z-index: 1;
}*/

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  display: grid;
  gap: 1rem;
  align-items: start;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-200);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: none;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  width: fit-content;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 180px;
}

.hero-advantages {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-left: 0;
}

.hero-advantages li {
  position: relative;
  padding-left: 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.hero-advantages li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--blue-200);
  font-weight: 700;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 770px) {
  .hero-scroll-indicator {
    display: none;
  }
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}


/* ───────────────────────────── 7. BOTTONI ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

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

.btn-primary:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}


/* ───────────────────────────── 8. STATS STRIP ───────────────────────── */

.stats-strip {
  background: var(--blue-700);
  padding: calc(var(--spacing-md) + 0.75rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:not(:last-child) {
  border-right: none;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-200);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}


/* ───────────────────────────── 9. INTESTAZIONI SEZIONE ──────────────── */

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p,
.section-header h2,
.section-header h3 {
  margin: 0 auto;
}

.section-header-light .section-eyebrow {
  color: var(--blue-200);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.65);
}

/* Texture sottile */
.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.06) 81px),
    repeating-linear-gradient(90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.06) 81px);
  z-index: 1;
}

/* ───────────────────────────── 10. SERVIZI ──────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  min-height: 260px;
}

.service-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-700);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text-heading);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: none;
}


/* ───────────────────────────── 11. MATERIALI ────────────────────────── */

.materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr);
  gap: 4rem;
  align-items: start;
}

.materials-list {
  align-self: center;
}

.material-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.material-item + .material-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.material-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.material-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
}

.material-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
}

/* Card visiva dati tecnici */
.section-visual-card {
  background: var(--blue-700);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
}

.visual-icon-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  color: var(--blue-200);
}

.visual-icon-large svg {
  width: 100%;
  height: 100%;
}

.visual-specs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: rgba(255, 255, 255, 0.65);
}

.spec-value {
  font-weight: 600;
  color: #fff;
  font-size: 0.875rem;
}


/* ───────────────────────────── 12. SETTORI ──────────────────────────── */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sector-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.sector-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.sector-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.sector-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.sector-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: none;
}


/* ───────────────────────────── 13. PERCHÉ NOI ───────────────────────── */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 4rem;
}

.reason-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.reason-number {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-200);
  margin-bottom: 0.75rem;
}

.reason-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #fff;
}

.reason-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: none;
}


/* ───────────────────────────── 14. CONTATTI ─────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 4rem;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: none;
}

/* Info contatto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-block h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-info-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.contact-detail svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue-700);
  margin-top: 2px;
}

.contact-detail div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-detail strong {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-heading);
}

.contact-detail span,
.contact-detail a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-detail a:hover {
  color: var(--blue-700);
}


/* ───────────────────────────── 15. FOOTER ───────────────────────────── */

.site-footer {
  background: var(--bg-darker);
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: env(safe-area-inset-bottom);
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  padding-top: calc(var(--spacing-lg) + 1rem);
  padding-bottom: calc(var(--spacing-lg) + 1rem);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 30ch;
  margin-top: 0;
}

.footer-logo {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.85);
  margin-bottom: 0.15rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  max-width: none;
}


/* ───────────────────────────── 16. MEDIA QUERY ──────────────────────── */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .materials-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-info {
    order: -1;
  }
}


@media (max-width: 770px) {

    .hero-scroll-indicator {
    display: none;
  }

  :root {
    --spacing-xl: 4rem;
  }

  .site-footer {
    margin-top: 3rem;
  }

  .footer-inner {
    padding-top: 2.5rem;
  }

  .footer-brand {
    margin-top: 2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-content {
    width: min(100%, 420px);
    align-items: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-title,
  .hero-subtitle,
  .hero-advantages,
  .hero-actions {
    width: 100%;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
    max-width: 100%;
    display: grid;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-advantages {
    text-align: left;
  }

  .hero-scroll-indicator {
    bottom: 0.75rem;
  }

  /* Header mobile */
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.9rem var(--spacing-md);
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin: 1rem var(--spacing-md) 0;
    width: calc(100% - 4rem);
    border-radius: var(--radius-md);
    justify-content: center;
  }

  /* Hero */
  .hero-content {
    padding-top: clamp(4.5rem, 12vh, 6rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* Grids */
  .services-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    max-width: 180px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ───────────────────────────── 17. GALLERIA & LIGHTBOX ──────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-alt);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 34, 51, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: var(--blue-200);
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--blue-200);
  transform: translateY(-50%) scale(1.1);
}

/* Mailto CTA */
.contact-cta-wrapper {
  background: var(--bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.contact-cta-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 50ch;
}

.contact-mail-btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-cta-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 770px) {

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 0.5rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }

  .contact-cta-wrapper {
    padding: 1.5rem;
  }
}