﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=DM+Sans:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Orbitron:wght@400;500&family=Space+Grotesk:wght@400;500;700&family=Roboto+Condensed:wght@400;500&family=Bebas+Neue&display=swap');

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

html {
  overflow-x: hidden;
}

/* BODY */
body {
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #edf2ff 0%, #f6f8ff 45%, #ffffff 100%);
  color: #111827;
  overflow-x: hidden;
}

/* Home: background bianco pieno */
body.home {
  background: #ffffff;
}

/* Azienda: background bianco pieno (valori mantiene il suo gradiente) */
body.azienda {
  background: #ffffff;
}

body.certificazioni {
  background: #ffffff;
}

body.contatti {
  background: #ffffff;
}

body.contatti .contact-block {
  text-align: left;
}

body.contatti .contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 18px;
  color: #172231;
}

body.contatti .contact-icon {
  width: 24px;
  height: 24px;
  color: #1e6fd9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.contatti .contact-icon svg {
  width: 24px;
  height: 24px;
}

body.contatti .contact-name {
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.7);
  margin-top: 8px;
  text-transform: uppercase;
}

body.contatti main {
  max-width: none;
  padding: 70px 60px 90px;
  background: #ffffff;
}

body.contatti .contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.contatti .contact-layout * {
  font-family: inherit;
}

body.contatti .contact-left {
  display: grid;
  gap: 40px;
}

body.contatti .contact-right {
  display: grid;
  gap: 24px;
  align-content: start;
}

body.contatti .contact-map {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  background: #f8fafc;
  min-height: 320px;
}

body.contatti .contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

body.contatti .contact-head {
  margin-bottom: 24px;
}

body.contatti .contact-divider {
  margin: 24px 0 0;
}

body.contatti .contact-panel {
  border-radius: 22px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  display: grid;
  gap: 18px;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

body.contatti .contact-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}

body.contatti .contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30,111,217,.08);
  border: 1px solid rgba(30,111,217,.16);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: #0f172a;
}

body.contatti .contact-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b5bd3, #17c3b2);
  box-shadow: 0 0 0 4px rgba(11,91,211,.18);
}

body.contatti .contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.contatti .contact-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15,23,42,.12);
  border-color: rgba(11,91,211,.35);
}

body.contatti .contact-items {
  display: grid;
  gap: 14px;
}

body.contatti .contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(248,250,255,.9);
  border: 1px solid rgba(226,232,240,.9);
}

body.contatti .contact-item__text {
  display: grid;
  gap: 6px;
}

body.contatti .contact-label {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(15,23,42,.55);
  font-weight: 600;
  font-family: inherit;
}

body.contatti .contact-value,
body.contatti .contact-value a {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
  font-family: inherit;
}

body.contatti .contact-value a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.contatti .contact-panel__foot {
  padding-top: 14px;
  border-top: 1px solid rgba(226,232,240,.9);
  color: rgba(15,23,42,.7);
  font-size: 16px;
  line-height: 1.6;
  font-family: inherit;
}

body.contatti .contact-map-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  overflow: hidden;
  display: grid;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

body.contatti .contact-map-top {
  padding: 18px 18px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
}

body.contatti .contact-map-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  font-family: inherit;
}

body.contatti .contact-map-hint {
  color: rgba(15,23,42,.6);
  font-size: 16px;
  margin: 4px 0 0;
  font-family: inherit;
}

body.contatti .contact-map-frame {
  width: 100%;
  height: 430px;
  border: 0;
  display: block;
}

body.contatti .contact-strip {
  padding: 14px 18px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(226,232,240,.9);
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

body.contatti .contact-mini {
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(226,232,240,.9);
  background: #ffffff;
}

body.contatti .contact-mini__label {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(15,23,42,.55);
  font-weight: 600;
  margin-bottom: 6px;
  font-family: inherit;
}

body.contatti .contact-mini__value,
body.contatti .contact-mini__value a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(15,23,42,.85);
  text-decoration: none;
  word-break: break-word;
  font-family: inherit;
}

body.contatti .contact-mini__value a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 940px) {
  body.contatti .contact-strip {
    grid-template-columns: 1fr;
  }
  body.contatti .contact-map-frame {
    height: 360px;
  }
}

@media (max-width: 1024px) {
  body.contatti .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.contatti main {
    padding: 48px 16px 70px;
  }

  body.contatti .contact-layout {
    gap: 28px;
  }

  body.contatti .contact-left,
  body.contatti .contact-right {
    width: 100%;
  }

  body.contatti .contact-panel,
  body.contatti .contact-map-card {
    width: 100%;
  }

  body.contatti .contact-map-frame {
    height: 320px;
  }
}

@media (max-width: 900px) {
  .values-constellation {
    padding: 40px 0 90px;
  }

  .values-constellation .section-header {
    margin: 30px auto 24px;
    padding: 0 18px;
  }

  .values-orbit {
    height: auto;
    margin: 10px 0 0;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 18px 18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .values-orbit::before {
    display: none;
  }

  .values-core {
    display: none;
  }

  .values-node {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(86vw, 360px);
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .values-node::before {
    display: none;
  }
  .values-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
  }
  .values-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
  }
  .values-dot.is-active {
    background: #0b5bd3;
    transform: scale(1.25);
  }
}

/* Azienda: animazioni pi� lente e una alla volta */
body.azienda .reveal {
  transition: opacity 1.4s ease 0.4s, transform 1.4s ease 0.4s;
}

body.azienda .reveal-title {
  transition: opacity 1.2s ease 0.5s, transform 1.2s ease 0.5s;
}

body.azienda .reveal-body {
  transition: opacity 1.6s ease 0.7s, transform 1.6s ease 0.7s;
}

body.azienda .values-node {
  opacity: 0;
  animation: valueReveal 0.8s ease both;
  animation-delay: var(--delay);
  animation-play-state: paused;
  transition: none;
}

body.azienda .timeline-step {
  animation-duration: 1.6s;
  animation-delay: calc(var(--i) * 360ms);
}

/* ================= SERVICES: EXPLODING CARDS ================= */
.services-explode {
  --services-bg: #f6f8fb;
  --services-surface: #ffffff;
  --services-ink: #0f172a;
  --services-muted: #4b5563;
  --services-line: #e2e8f0;
  --services-radius: 18px;
  --services-shadow: 0 18px 50px rgba(15,23,42,.10);
  --services-shadow2: 0 14px 30px rgba(15,23,42,.10);
  --services-ease: cubic-bezier(.2,.8,.2,1);
  --services-max: 1200px;

  --tautel-blue: #0b5bd3;
  --tautel-teal: #17c3b2;
  --tautel-amber: #f59e0b;

  padding: 54px 18px 90px;
  background: #ffffff;
  color: var(--services-ink);
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
}

.services-explode__wrap {
  max-width: var(--services-max);
  margin: 0 auto;
}

.services-explode__wrap:has(.service-card[data-open="true"]) {
  max-width: 100%;
  padding: 0 40px;
}

.services-open {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 0 40px;
}

/* ================= SERVICES: CERTIFICAZIONI-STYLE ================= */
.services-cert {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 52px 60px 90px;
  background: #ffffff;
  display: grid;
  gap: 24px;
}

.services-cert__head {
  max-width: 1320px;
  margin: 0 auto;
  text-align: left;
}

.services-cert__head .mv-eyebrow {
  margin-bottom: 16px;
}

.services-cert__head .mv-hero {
  margin-bottom: 14px;
}

.services-cert__head .mv-body {
  margin: 0;
  max-width: none;
  font-size: 22px;
  line-height: 1.9;
}

.services-open--cert {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.services-cert__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
  margin-top: 28px;
  margin-bottom: 2px;
}

/* ================= SERVICES: STACKED LAYOUT ================= */
.services-stack {
  display: grid;
  gap: 60px;
  max-width: 1500px;
  margin: 0 auto;
}

.service-block {
  padding: 32px 0 44px;
  border-bottom: 1px solid rgba(226,232,240,.9);
}

.service-block:last-child {
  border-bottom: 0;
}

.service-block + .service-block {
  padding-top: 28px;
}

.service-block__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.service-block__eyebrow {
  margin-bottom: 10px;
  text-align: center;
}

.service-block__title {
  margin: 0 0 12px;
  line-height: 1.15;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.service-block__subtitle {
  margin: 0 0 22px;
  color: #475569;
  text-align: center;
}

.service-block__details {
  display: grid;
  gap: 14px;
}

.service-block__details--cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  text-align: center;
}

.service-block__details--cols .service-open__item {
  justify-items: center;
}

.service-block__text {
  max-width: 1500px;
  margin: 0 auto;
}

.service-block__cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.service-open__media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  justify-items: center;
  margin-top: 30px;
  padding: 0 20px;
  box-sizing: border-box;
}

.service-open__media-card {
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-open__media-card.reveal {
  transition: opacity 1.6s ease, transform 1.6s ease;
  transform: translateY(22px);
}

.service-open__media-grid .service-open__media-card:nth-child(1) {
  transition-delay: 0ms;
}

.service-open__media-grid .service-open__media-card:nth-child(2) {
  transition-delay: 480ms;
}

.service-open__media-grid .service-open__media-card:nth-child(3) {
  transition-delay: 960ms;
}

.service-open__media-card figcaption {
  display: grid;
  gap: 6px;
  text-align: center;
}

/* ================= CERTIFICAZIONI: LAYOUT TEST ================= */
.cert-layout {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 80px 60px 110px;
  background: #ffffff;
  display: grid;
  gap: 70px;
}

.cert-block__head {
  max-width: 980px;
  margin: 0 auto 48px;
  text-align: center;
}

.cert-block__media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.cert-block__media {
  margin: 0;
  display: grid;
  gap: 12px;
}

.cert-block__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15,23,42,.14);
}

.cert-block__media figcaption {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

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

.cert-block__card {
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(248,250,255,.9);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  font-size: 16px;
  color: #334155;
}

@media (max-width: 980px){
  .cert-layout { padding: 60px 24px 80px; }
  .cert-block__media-grid,
  .cert-block__cards {
    grid-template-columns: 1fr;
  }
  .cert-block__media img { height: 260px; }
}

@media (max-width: 980px) {
  .services-cert {
    padding: 60px 24px 80px;
  }

  .service-block__grid {
    grid-template-columns: 1fr;
  }

  .service-block__media img {
    height: 240px;
  }
}

.services-explode__head {
  margin-bottom: 110px;
}





















.services-explode__head .mv-eyebrow {
  margin-bottom: 18px;
}

.services-explode__head .mv-hero {
  margin-bottom: 16px;
}

.services-explode__head .mv-body {
  margin-top: 0;
}

.services-explode__kicker {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(75,85,99,.70);
  font-weight: 800;
}

.services-explode__title {
  margin: 6px 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.services-explode__title--center {
  text-align: center;
}

.services-explode__sub {
  margin: 0;
  color: var(--services-muted);
  line-height: 1.6;
  max-width: 70ch;
  font-size: 14px;
}

.services-explode__summary--center {
  text-align: center;
  margin: 10px auto 0;
}

.services-explode__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  color: rgba(15,23,42,.70);
  font-size: 12px;
  white-space: nowrap;
  user-select: none;
}

.services-explode__hint i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--tautel-blue);
  box-shadow: 0 0 0 5px rgba(11,91,211,.14);
}

.services-explode__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

/* ================= SERVICES: OPEN SECTIONS ================= */
.services-open {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.service-open {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 26px;
  border-radius: 26px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(250,252,255,.85)) padding-box,
    linear-gradient(90deg, var(--c1, #0b5bd3), var(--c2, #17c3b2)) border-box;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}

.services-open,
.services-open * {
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* top color fused into border via border-box gradient */

.service-open--repairs { --c1: #0b5bd3; --c2: #17c3b2; }
.service-open--install { --c1: #22c55e; --c2: #16a34a; }
.service-open--consulting { --c1: #6366f1; --c2: #9333ea; }

.service-open__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(15,23,42,.16);
  object-position: center;
}

.service-open__eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(15,23,42,.6);
  margin-bottom: 6px;
}

.service-open__title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  color: #0f172a;
}

.service-open__desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
}

.service-open__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-open__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-open__item.has-image {
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 16px;
}

.service-open__item.has-image .service-open__item-img {
  margin-top: 0;
}

.service-open__item:hover {
  transform: translateY(-2px);
}

/* Repairs enrichment */




































.service-open__dot {
  display: none;
}

.service-open__dot::after {
  content: "";
}

.service-open__item-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: #0f172a;
}

.service-open__item-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: #475569;
}

.service-open__item-img {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 5 / 3;
  height: auto;
  margin-top: 30px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(15,23,42,.14);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  object-position: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(0px);
}

.service-open__item-title + .service-open__item-img {
  margin-top: 30px;
}

.service-block--install .service-open__item-img,
.service-block--consulting .service-open__item-img {
  margin-top: 56px;
}

.service-open__media-card:nth-child(2) .service-open__item-img,
.service-open__media-card:nth-child(3) .service-open__item-img {
  object-position: 30% center;
}

.service-open__media-card:hover .service-open__item-img {
  transform: none;
  box-shadow: 0 22px 44px rgba(15,23,42,.28);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
}

.service-open__item:hover .service-open__item-img {
  transform: none;
  box-shadow: 0 12px 26px rgba(15,23,42,.14);
}

.service-open.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-open:nth-child(1) { transition-delay: 0ms; }
.service-open:nth-child(2) { transition-delay: 160ms; }
.service-open:nth-child(3) { transition-delay: 320ms; }

.service-open__cta-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.service-open__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.95);
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-open__cta::after {
  content: "\2197";
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.service-open__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15,23,42,.12);
  border-color: rgba(11,91,211,.5);
}

.pip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}


.pip-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(1200px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  padding-right: 0;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 20px 60px rgba(15,23,42,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1001;
}

.pip-card.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.pip-head {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: .08em;
  text-transform: none;
  background: linear-gradient(90deg, #0b5bd3, #17c3b2);
  border-radius: 28px 28px 0 0;
  z-index: 2;
  pointer-events: none;
}

.pip-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pip-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 24px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.95);
  background: #ffffff;
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
  z-index: 3;
}

.pip-scroll {
  max-height: calc(90vh - 56px);
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,23,42,.35) transparent;
}

.pip-scroll::-webkit-scrollbar {
  width: 10px;
}

.pip-scroll::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.pip-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.45);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.pip-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.75);
  background-clip: padding-box;
}

.pip-content {
  padding: 36px 38px 42px;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pip-title {
  display: none;
}

.pip-text {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  color: #334155;
}

.pip-section {
  margin-top: 28px;
}

.pip-section__title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: #0b5bd3;
  margin-bottom: 14px;
}

.pip-grid {
  display: grid;
  gap: 22px;
}

.pip-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pip-columns--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pip-columns--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pip-columns--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pip-card-box {
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  padding: 18px;
  background: rgba(248,250,255,.95);
}

.pip-card-box__title {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(11,91,211,.18), rgba(23,195,178,.12));
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.pip-card-box--image {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.pip-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

.pip-card-box--image .pip-card-box__title {
  margin: 0;
  background: linear-gradient(90deg, rgba(99,102,241,.18), rgba(147,51,234,.16));
}

.pip-columns {
  display: grid;
  gap: 14px;
}

.pip-col {
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.pip-vendor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.pip-vendor.violet { background: #7c3aed; }
.pip-vendor.blue { background: #0ea5e9; }
.pip-vendor.red { background: #ef4444; }
.pip-vendor.green { background: #22c55e; }
.pip-vendor.orange { background: #f59e0b; }
.pip-vendor.amber { background: #f97316; }
.pip-vendor.indigo { background: #4f46e5; }

.pip-tag {
  margin: 6px 0 4px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #0b5bd3;
}

.pip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 19px;
  line-height: 1.8;
  color: #334155;
}

.pip-list li {
  position: relative;
  padding-left: 12px;
}

.pip-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: #0ea5e9;
}

@media (max-width: 768px) {
  .pip-card {
    width: calc(100vw - 24px);
    max-height: 92vh;
    border-radius: 20px;
  }

  .pip-head {
    height: 48px;
    font-size: 14px;
    letter-spacing: .06em;
    padding: 0 14px;
    border-radius: 20px 20px 0 0;
  }

  .pip-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .pip-content {
    padding: 18px 16px 24px;
  }

  .pip-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .pip-section__title {
    font-size: 15px;
    letter-spacing: .12em;
  }

  .pip-grid--two,
  .pip-columns--two,
  .pip-columns--three,
  .pip-columns--four {
    grid-template-columns: 1fr;
  }

  .pip-card-box {
    padding: 14px;
  }

  .pip-card-box__title {
    font-size: 14px;
  }

  .pip-card-img {
    height: 180px;
  }

  .pip-tag {
    font-size: 12px;
  }

  .pip-list {
    font-size: 16px;
    line-height: 1.6;
  }
}


.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0fr;
  grid-column: span 4;
  border-radius: calc(var(--services-radius) + 4px);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.6));
  border: 1px solid rgba(226,232,240,.7);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(14px);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1);
}

.service-card:not([data-open="true"]) {
  aspect-ratio: 1 / 1;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  opacity: .95;
}

.service-card__toggle {
  grid-column: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 26px 24px 22px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: inherit;
}

.service-card__left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.service-card[data-open="true"] .service-card__left {
  align-items: stretch;
}

.service-card__icon {
  width: 160px;
  height: 160px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.service-card__icon--image {
  background: #ffffff;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 14px 26px rgba(15,23,42,.12);
}

.service-card__icon--image::after {
  content: none;
}

.service-card__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__icon::after {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 60%);
  opacity: .7;
  transform: rotate(18deg);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: rgba(15,23,42,.80);
  position: relative;
  z-index: 1;
}

.service-card__meta { min-width: 0; }

.service-card[data-open="true"] .service-card__meta {
  max-width: none;
}

.service-card__label {
  margin: 0;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,.75);
}

.service-card__headline {
  margin: 6px 0 0;
  font-size: 20px;
  letter-spacing: -.01em;
  line-height: 1.2;
  font-weight: 900;
}

.service-card__desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(75,85,99,.95);
  max-width: 58ch;
}

.service-card__chev {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  flex: 0 0 auto;
  transition: transform .25s var(--services-ease);
}

.service-card__chev svg {
  width: 18px;
  height: 18px;
  color: rgba(15,23,42,.70);
}

.service-card:hover {
  box-shadow: 0 22px 60px rgba(15,23,42,.14);
  transform: translateY(-4px);
}

.service-card__toggle:focus-visible {
  outline: 3px solid rgba(11,91,211,.25);
  outline-offset: 2px;
  border-radius: 10px;
}

.service-card__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  border-top: 1px solid rgba(226,232,240,.95);
  border-left: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .5s var(--services-ease), opacity .3s var(--services-ease);
}

.service-card__mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 14px;
}

.service-card__mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(246,248,251,.95);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
  transform: translateY(6px);
  opacity: 0;
  transition: transform .35s var(--services-ease), opacity .35s var(--services-ease), box-shadow .25s var(--services-ease);
}

.service-card__mini:hover {
  box-shadow: 0 16px 30px rgba(15,23,42,.10);
}

.service-card__badge {
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border: 1px solid rgba(226,232,240,.95);
  position: relative;
}

.service-card__badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 18%, transparent);
}

.service-card__mini h4 {
  margin: 1px 0 3px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.service-card__mini p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(75,85,99,.95);
}

.service-card__cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  padding-bottom: 2px;
}

.service-card__cta-note {
  color: rgba(75,85,99,.85);
  font-size: 12px;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.84);
  color: rgba(15,23,42,.78);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  user-select: none;
  transition: transform .2s var(--services-ease), box-shadow .2s var(--services-ease);
}

.service-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15,23,42,.10);
}

.service-card__cta svg { width: 16px; height: 16px; }

.service-card[data-open="true"] .service-card__panel {
  max-width: 100%;
  opacity: 1;
  padding: 18px 18px 16px;
}

.service-card[data-open="true"] {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  order: -1;
  aspect-ratio: auto;
}

.service-card[data-open="true"] .service-card__toggle {
  padding: 32px 32px 28px 72px;
}

.service-card[data-open="true"] .service-card__panel {
  padding: 28px 28px 28px 40px;
}

.service-card[data-open="true"] .service-card__icon {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  border-bottom: 1px solid rgba(226,232,240,.95);
}

.service-card[data-open="true"] .service-card__label {
  font-size: 13px;
  letter-spacing: .12em;
}

.service-card[data-open="true"] .service-card__headline {
  font-size: 26px;
}

.service-card[data-open="true"] .service-card__desc {
  font-size: 17px;
  line-height: 1.7;
  max-width: none;
}








.service-card--center[data-open="true"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.service-card--right[data-open="true"] {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.service-card--right .service-card__panel {
  grid-column: 1;
  border-right: 0;
}

.service-card--right .service-card__toggle {
  grid-column: 2;
}

.service-card--center .service-card__toggle {
  text-align: left;
}

.service-card--center .service-card__left {
  justify-content: flex-start;
}

.service-card[data-open="true"] .service-card__chev {
  transform: rotate(180deg);
}

.service-card[data-open="true"] .service-card__mini {
  transform: translateY(0);
  opacity: 1;
}

.service-card[data-open="true"] .service-card__mini:nth-child(1){ transition-delay: 40ms; }
.service-card[data-open="true"] .service-card__mini:nth-child(2){ transition-delay: 90ms; }
.service-card[data-open="true"] .service-card__mini:nth-child(3){ transition-delay: 140ms; }
.service-card[data-open="true"] .service-card__mini:nth-child(4){ transition-delay: 190ms; }

@media (max-width: 980px){
  .services-open{ padding: 0 24px; }
  .service-open{ grid-template-columns: 1fr; }
  .service-open__media img{ height: 200px; }

  .service-card{ grid-column: span 6; grid-template-columns: 1fr; }
  .service-card__panel{
    border-left: 0;
    border-top: 1px solid rgba(226,232,240,.95);
    max-width: none;
    max-height: 0;
    padding: 0 16px 0;
    transition: max-height .45s var(--services-ease), opacity .25s var(--services-ease);
  }
  .service-card[data-open="true"]{
    grid-column: span 6;
    grid-template-columns: 1fr;
  }
  .service-card[data-open="true"] .service-card__panel{
    max-height: 520px;
    opacity: 1;
    padding: 16px;
  }
}

@media (max-width: 640px){
  .services-explode__head{ align-items: flex-start; }
  .service-card{ grid-column: span 12; }
  .service-card__toggle{ padding: 16px 16px 14px; }
  .service-card__panel{ padding: 0 16px 14px; }
}

/* Nasconde i testi tradotti finch� la lingua selezionata non � pronta */
body:not(.i18n-ready) [data-i18n] {
  visibility: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 10px 28px;

  background: linear-gradient(90deg, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.0) 55%, rgba(0, 0, 0, 0.0) 100%);
  border-bottom: none;
  transition: all 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  opacity: 1;
}

/* Evita flash di riposizionamento quando le traduzioni cambiano testo */
body:not(.nav-ready) .navbar {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* navbar dopo un po' di scroll: leggero shadow */
.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* navbar nascosta dopo la prima soglia di scroll */
.navbar.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* navbar riapparsa pi� in basso con sfondo pieno */
.navbar.nav-colored {
  background: rgba(8, 20, 40, 0.22);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(0);
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 25px;
}

/* Link */
.navbar a {
  text-decoration: none !important;
  color: white;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 10px;
}

/* Hover */
.navbar a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.25s ease, color 0.25s ease;
  }

/* Embed mode (policy pages in popup) */
body.embed-mode #navbar-container,
body.embed-mode .navbar,
body.embed-mode .site-footer,
body.embed-mode .footer-cta {
  display: none !important;
}

body.embed-mode main {
  padding-top: 20px !important;
}

body.embed-mode .embed-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 6px;
}

body.embed-mode .embed-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* ================= LOGO NAVBAR ================= */

.logo-container {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  gap: 10px;
}

.logo-link::after {
  display: none !important;
}

.logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
  }

/* Mobile: logo piu compatto */
  @media (max-width: 768px) {
  .logo-img {
      height: 44px;
    }
  }
/* Carrello */
.cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 4px;
  position: relative;
}

.cart-icon:hover {
  background: rgba(255,255,255,0.15);
}

.cart-svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: white;
  stroke-width: 1.7;
}

/* Underline attivo su link e carrello */
.nav-links a.active::after,
.mobile-menu a.active::after,
.navbar .cart-icon.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1E5AA8;
}

/* Colore underline su navbar colorata */
.navbar.nav-colored .nav-links a.active::after,
.navbar.nav-colored .cart-icon.active::after {
  background: #ffffff;
}

/* ================= HERO ================= */

.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  padding: 0;

  position: relative;
  overflow: hidden;
  transition: height 0.4s ease, padding 0.4s ease;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero.compact {
  height: 220px;
  padding-top: 0;
  padding-bottom: 10px;
}

/* Immagine full width */
.page-hero {
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-hero img,
.page-hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

body.sostenibilita main {
    max-width: 1500px;
  }

body.sostenibilita .mv-body {
  font-size: 22px;
  line-height: 2;
}

body.sostenibilita {
  background: #ffffff;
}

body.certificazioni .cert-intro {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 50px 0 90px;
}

body.certificazioni .cert-intro .mv-hero {
  white-space: nowrap;
  display: block;
  margin: 0 0 24px;
  text-align: center;
}

@media (max-width: 900px) {
  body.certificazioni .cert-intro .mv-hero {
    white-space: normal;
  }
}

body.certificazioni .cert-intro .mv-block {
  text-align: center;
}

body.certificazioni .cert-intro .mv-body {
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

body.certificazioni .cert-intro .cert-title {
  white-space: nowrap;
  display: inline-block;
  margin: 0 auto 24px;
  text-align: center;
  max-width: none;
}

body.certificazioni .cert-intro .cert-copy {
  max-width: none;
  width: 100%;
  margin: -8px auto 0;
  padding: 0;
  text-align: center;
  font-size: 21px;
  line-height: 1.9;
}

@media (max-width: 1100px) {
  body.certificazioni .cert-intro .cert-title {
    white-space: normal;
  }

  body.certificazioni .cert-intro .cert-copy {
    padding: 0 20px;
    font-size: 19px;
    line-height: 1.8;
  }
}

body.certificazioni main {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 0 80px 0;
}

body.certificazioni .cert-iso-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  justify-items: center;
}

body.certificazioni .cert-iso-media {
    margin: 0;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
  }

body.certificazioni .cert-iso-media:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.24);
  filter: saturate(1.05);
}

body.certificazioni .cert-iso-image {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: contain;
      object-position: center;
      display: block;
      border-radius: 50%;
      transform: scale(1);
      transform-origin: center;
    }

body.certificazioni .cert-iso-layout .mv-block {
  text-align: center;
}

body.certificazioni .cert-iso-layout .cert-title {
  text-align: center;
  white-space: normal;
  display: block;
  margin: 0 0 18px;
}

body.certificazioni .cert-iso-layout .cert-copy {
  text-align: center;
  margin: 0;
  font-size: 19px;
  line-height: 1.8;
}

body.certificazioni .cert-single-badge {
  position: relative;
  padding-top: 20px;
  padding-bottom: 40px;
}

body.certificazioni .cert-single-badge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -70px;
  width: 2px;
  height: 150px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(14, 75, 158, 0.15), rgba(14, 75, 158, 0.65));
  border-radius: 999px;
}

body.certificazioni .cert-left-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-top: 10px;
}

body.certificazioni .cert-left-row::before {
  content: "";
  position: absolute;
  left: 120px;
  right: 120px;
  top: 110px;
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 75, 158, 0.2), rgba(14, 75, 158, 0.65), rgba(14, 75, 158, 0.2));
  border-radius: 999px;
  z-index: 0;
}

body.certificazioni .cert-badge-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
  }

body.certificazioni .cert-badge-col--full {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 48px;
    padding: 32px 24px;
    border-radius: 18px;
    background: url("../images/certificazioni-background-back.webp") center / 120% auto no-repeat;
    position: relative;
    overflow: hidden;
  }

body.certificazioni .cert-badge-col--full.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1.2s ease, transform 1.2s ease;
  }

body.certificazioni .cert-badge-col--full.reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

body.certificazioni .cert-badge-col--full .cert-badge-copy.reveal-body {
    transition-delay: 0.2s;
  }

body.certificazioni .cert-badge-col--full .cert-badge-copy {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
  }

body.certificazioni .cert-badge-copy {
  margin-top: 20px;
  text-align: left;
  max-width: 360px;
  color: #0f172a;
}

body.certificazioni .cert-badge-copy h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
}

body.certificazioni .cert-badge-copy p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
}

body.certificazioni .cert-badge-copy ul {
  margin: 0 0 12px 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.certificazioni .cert-badge-copy li {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  body.certificazioni .cert-single-badge::before {
      display: none;
    }

  body.certificazioni .cert-left-row::before {
    display: none;
  }

  body.certificazioni .cert-left-row {
      justify-content: center;
      flex-wrap: wrap;
    }

  body.certificazioni .cert-badge-copy {
      max-width: 100%;
    }

  body.certificazioni .cert-left-row {
      flex-direction: column;
      align-items: stretch;
      gap: 32px;
    }

  body.certificazioni .cert-badge-col {
      align-items: center;
    }

  body.certificazioni .cert-badge-col--full {
      margin-top: 36px;
      padding: 24px 18px;
      background: none;
    }

  body.certificazioni .cert-badge-col--full .cert-badge-copy {
      background: transparent;
      padding: 0;
    }
}

@media (max-width: 1200px) and (min-width: 901px) {
  body.certificazioni .cert-iso-media {
      width: 180px;
      height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

  body.certificazioni .cert-iso-image {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block;
        border-radius: 50% !important;
      }
}

@media (max-width: 768px) {
  body.certificazioni main {
    padding: 0 16px;
  }

  body.certificazioni .cert-intro {
    padding: 36px 0 60px;
  }

  body.certificazioni .cert-intro .mv-block {
    text-align: left;
  }

  body.certificazioni .cert-intro .mv-hero,
  body.certificazioni .cert-intro .cert-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  body.certificazioni .cert-intro .cert-copy,
  body.certificazioni .cert-intro .mv-body {
    text-align: left;
    padding: 0;
    margin-top: 8px;
  }

  body.certificazioni .cert-iso-layout .mv-block {
    text-align: left;
  }

  body.certificazioni .cert-iso-layout .cert-title,
  body.certificazioni .cert-iso-layout .cert-copy {
    text-align: left;
  }

  body.certificazioni .cert-iso-media {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.certificazioni .cert-iso-image {
        width: 70%;
        height: 70%;
        object-fit: contain;
        border-radius: 50% !important;
      }

  body.certificazioni .cert-badge-col--full {
      padding: 20px 14px;
      background-size: 160% auto;
    }
}

@media (max-width: 1200px) {
  body.certificazioni .cert-iso-layout {
    gap: 24px;
  }

  }

/* ================= SOSTENIBILITA: CAROSELLO ================= */
  body.sostenibilita .sus-hero {
    padding: 30px 0 0;
  }

/* ================= SOSTENIBILITA: CARDS ================= */
body.sostenibilita .sus-cards {
  margin-top: 40px;
  margin-bottom: 60px;
}

body.sostenibilita .sus-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body.sostenibilita .sus-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-rows: 220px 1fr;
  background: #f4f7fb;
  border: 2px solid rgba(30, 111, 217, 0.25);
}

body.sostenibilita .sus-card--people {
  background: #e9f2ff;
  border-color: rgba(30, 111, 217, 0.55);
}

body.sostenibilita .sus-card--partners {
  background: #f1ecff;
  border-color: rgba(123, 91, 214, 0.55);
}

body.sostenibilita .sus-card--environment {
  background: #e7f6ee;
  border-color: rgba(46, 155, 99, 0.55);
}

body.sostenibilita .sus-card__media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin: 0;
}

body.sostenibilita .sus-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body.sostenibilita .sus-card__body {
  padding: 22px 22px 26px;
  text-align: left;
  display: block;
}

body.sostenibilita .sus-card__body .sus-title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

body.sostenibilita .sus-card__body .sus-text {
  margin: 0;
}

body.sostenibilita .sus-card__body .sus-text p {
  margin: 0 0 12px;
}

body.sostenibilita .sus-card__body .sus-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  body.sostenibilita .sus-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.sostenibilita .sus-card-grid {
    grid-template-columns: 1fr;
  }

  body.sostenibilita .sus-card__body {
    padding: 20px 20px 24px;
  }

  body.sostenibilita .sus-card__body .sus-title {
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
  }

  body.sostenibilita .sus-card__body .sus-text p {
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
  }
}

body.sostenibilita .page-hero {
  margin-bottom: 10px;
}

body.sostenibilita .sus-intro-section {
  padding-bottom: 24px;
  margin-bottom: 0;
}

body.sostenibilita .sus-intro-section .mv-body {
  margin-bottom: 0;
}

body.sostenibilita .sus-carousel {
  margin-top: 0;
}

body.sostenibilita .sus-cert-section {
  padding-top: 48px;
  padding-bottom: 140px;
}

body.sostenibilita .sus-approach-section {
  padding-bottom: 160px;
}

body.sostenibilita .sus-approach-section .mv-body {
  margin-bottom: 28px;
}

body.sostenibilita .sus-carousel {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 0 60px 24px;
  --sus-peek: 0px;
  position: relative;
}

body.sostenibilita .sus-carousel__viewport {
  width: 100%;
  overflow: hidden;
}

body.sostenibilita .sus-carousel.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

body.sostenibilita .sus-carousel.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.sostenibilita .sus-carousel .reveal,
body.sostenibilita .sus-carousel .reveal-title,
body.sostenibilita .sus-carousel .reveal-body {
  opacity: 1;
  transform: none;
  transition: none;
}

body.sostenibilita .sus-cert-card.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

body.sostenibilita .sus-cert-card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.sostenibilita .sus-cert-grid .sus-cert-card:nth-child(1) {
  transition-delay: 0ms;
}

body.sostenibilita .sus-cert-grid .sus-cert-card:nth-child(2) {
  transition-delay: 900ms;
}

body.sostenibilita .sus-cert-grid .sus-cert-card:nth-child(3) {
    transition-delay: 1800ms;
  }

body.sostenibilita .sus-cert-grid .sus-cert-card:nth-child(4) {
    transition-delay: 2700ms;
  }

body.sostenibilita .sus-cert-grid {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

body.sostenibilita .sus-cert-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

body.sostenibilita .sus-cert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #e9f6ef;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.sostenibilita .sus-cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
}

body.sostenibilita .sus-cert-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #10b981;
  color: #ffffff;
  flex: 0 0 auto;
}

body.sostenibilita .sus-cert-icon svg {
  width: 20px;
  height: 20px;
}

body.sostenibilita .sus-cert-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 16px;
}

@media (max-width: 900px) {
  body.sostenibilita .sus-cert-grid {
    grid-template-columns: 1fr;
  }
}

body.sostenibilita .sus-carousel__track {
  display: flex;
  padding: 0 var(--sus-peek);
  transition: transform 0.6s ease;
  will-change: transform;
}

body.sostenibilita .sus-slide__card {
  position: relative;
}

body.sostenibilita .sus-slide__card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: auto;
  width: 40%;
  height: 6px;
  border-radius: 999px;
  background: var(--sus-accent, #0b5bd3);
  opacity: 0.95;
}

body.sostenibilita .sus-slide {
  min-width: 100%;
  padding: 30px 0 34px;
}

body.sostenibilita .sus-slide__card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 40px 32px 24px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.sostenibilita .sus-slide__card--people {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%),
    url("../images/sostenibilita-Valorizzazione delle persone.webp") center / cover no-repeat;
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--partners {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%),
    url("../images/sostenibilita-Coinvolgimento dei partner.webp") center / cover no-repeat;
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--environment {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%),
    url("../images/sostenibilita_Tutela dell'ambiente.webp") center / cover no-repeat;
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--people .sus-title,
body.sostenibilita .sus-slide__card--people .sus-text p,
body.sostenibilita .sus-slide__card--people .sus-kicker {
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--people .sus-practice,
body.sostenibilita .sus-slide__card--partners .sus-practice {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--people .sus-practice strong,
body.sostenibilita .sus-slide__card--partners .sus-practice strong {
  color: rgba(255, 255, 255, 0.9);
}

body.sostenibilita .sus-slide__card--partners .sus-title,
body.sostenibilita .sus-slide__card--partners .sus-text p,
body.sostenibilita .sus-slide__card--partners .sus-kicker {
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--environment .sus-practice {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.sostenibilita .sus-slide__card--environment .sus-practice strong {
  color: rgba(255, 255, 255, 0.9);
}

body.sostenibilita .sus-slide__card--environment .sus-title,
body.sostenibilita .sus-slide__card--environment .sus-text p,
body.sostenibilita .sus-slide__card--environment .sus-kicker {
  color: #ffffff;
}

body.sostenibilita .sus-slide__card::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b5bd3, #17c3b2);
  margin-bottom: 22px;
}

body.sostenibilita .sus-slide__head {
  margin-bottom: 20px;
}

body.sostenibilita .sus-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 700;
  margin-bottom: 10px;
}

body.sostenibilita .sus-title {
  font-size: 30px;
  margin: 0 0 14px;
  color: #0f172a;
  font-weight: 600;
}

body.sostenibilita .sus-text p {
  line-height: 1.7;
  margin: 0 0 14px;
  font-size: 19px;
  color: #0f172a;
}

body.sostenibilita .sus-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.sostenibilita .sus-practice {
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  font-size: 17px;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.sostenibilita .sus-practice strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0b5bd3;
}

body.sostenibilita .sus-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

body.sostenibilita .sus-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.sostenibilita .sus-dot.is-active {
  background: #0b5bd3;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  body.sostenibilita .sus-title {
    font-size: 24px;
  }

  body.sostenibilita .sus-slide__card {
    padding: 26px 22px;
  }
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.hero-claim {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', 'DM Sans', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: none;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 3;
  padding: 0 24px;
  text-align: center;
}

/* ================= MISSION & VISION ================= */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr;
  gap: 90px;
  width: 100vw;
  max-width: none;
  margin: 60px calc((100vw - 100%) / -2) 40px;
  padding: 0 120px;
}

.mission-vision {
  margin-bottom: 120px;
}

.mv-divider {
  width: min(900px, 80%);
  height: 1px;
  margin: 10px auto 10px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
}

/* Separatore tra mission/vision e timeline */
.mission-vision + .timeline-section {
  position: relative;
  padding-top: 20px;
}

.mission-vision + .timeline-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  width: min(980px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
}

.home .mission-vision {
  margin: -20px calc((100vw - 100%) / -2) 40px;
}

.mv-block {
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.mv-eyebrow {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0E4B9E;
  font-weight: 700;
  margin-bottom: 12px;
}

.mv-hero {
  font-size: 48px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.mv-body {
  font-size: 21px;
  line-height: 2.05;
  color: #0f172a;
  max-width: none;
  margin: 12px auto 0;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ================= COMPANY VALUES ================= */
.values-constellation {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 50px 100px 160px;
  background: linear-gradient(140deg, #9cc6f8 0%, #86adeb 45%, #e692ce 100%);
  overflow: hidden;
  z-index: 2;
}


.values-constellation::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.values-constellation::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}


.values-constellation .section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 60px auto 50px;
}

.values-constellation .section-eyebrow {
  display: inline-block;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #0E4B9E;
  margin-bottom: 12px;
}

.values-constellation .section-title {
  font-size: 48px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 18px;
  line-height: 1.2;
}

.values-constellation .section-subtitle {
  font-size: 21px;
  line-height: 2.05;
  color: #334155;
  margin: 0;
}


.values-orbit {
  position: relative;
  --radius-x: 560px;
  --radius-y: 700px;
  --spread-x: 1.0;
  --spread-y: 1.6;
  height: 1040px;
  max-width: 2000px;
  margin: -60px auto 0;
}

.values-orbit::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%) scaleY(0.7);
  border-radius: 50%;
  border: 2px dashed rgba(14, 75, 158, 0.18);
}

.values-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #e7effc 55%, #d7e2f4 100%);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  text-transform: uppercase;
  color: #0E4B9E;
  z-index: 2;
}

.values-core-icon svg {
  width: 64px;
  height: 64px;
  stroke: #0E4B9E;
  stroke-width: 2.4;
  fill: none;
}

.values-core-text {
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.values-core-text strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.14em;
}

.values-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  --tx: calc(var(--x) * var(--spread-x));
  --ty: calc(var(--y) * var(--spread-y));
  --node-transform: translate(-50%, -50%) translate(var(--tx), var(--ty));
  --node-transform-hover: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) - 10px));
  transform: var(--node-transform);
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: none;
  opacity: 1;
  animation: none;
  will-change: auto;
}

body.azienda .values-node.visible,
body.azienda .values-node.is-visible {
  animation-play-state: running;
  opacity: 1;
}


.values-node::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0E4B9E;
  box-shadow: 0 0 0 8px rgba(14, 75, 158, 0.15);
}

.values-node:hover {
  transform: var(--node-transform-hover) scale(1.35);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  border-color: rgba(15, 23, 42, 0.18);
  background: #ffffff;
  z-index: 3;
}

.values-node:hover .value-icon {
  background: rgba(14, 75, 158, 0.12);
  transform: none;
}

.values-node:hover .value-icon svg {
  stroke: #0E4B9E;
}

.values-node:hover h3 {
  color: #0f172a;
}

.values-node:hover p {
  color: #475569;
}

.values-node h3 {
  margin: 10px 0 6px;
  font-size: 22px;
  color: #0f172a;
}

.values-node p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 75, 158, 0.12);
  display: grid;
  place-items: center;
}

.value-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0E4B9E;
  stroke-width: 2.5;
  fill: none;
}

/* ================= COMPANY HISTORY ================= */
/* ================= TIMELINE ================= */
.timeline-section {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 30px 18px 40px;
  background: #ffffff;
}

/* Separatore tra timeline e mission/vision */
.timeline-section + .mission-vision {
  position: relative;
  padding-top: 0;
}

.timeline-section + .mission-vision::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: min(980px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
}

.timeline-section + .values-constellation {
  margin-top: -60px;
}

.timeline-wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
}

.timeline-head {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.timeline-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.timeline-sub {
  margin: 10px 0 0;
  color: #4b5563;
  max-width: 72ch;
  line-height: 1.6;
  font-size: 14px;
}

.timeline-label {
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0E4B9E;
  font-weight: 700;
  text-align: center;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.timeline-code {
  font-size: 12px;
  color: rgba(75, 85, 99, 0.75);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 4px;
  white-space: nowrap;
}

.timeline-sheet {
  position: relative;
  border-radius: 26px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 24px 0 30px;
  overflow: visible;
}

.timeline-sheet::before {
  content: "";
  position: absolute;
  left: -140px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center,
      transparent 58%,
      rgba(23, 195, 178, 0.13) 59%,
      transparent 60%,
      transparent 66%,
      rgba(31, 111, 235, 0.1) 67%,
      transparent 68%,
      transparent 76%,
      rgba(31, 111, 235, 0.07) 77%,
      transparent 78%
    );
  pointer-events: none;
  opacity: 0.9;
}

.timeline-corner {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  transform: rotate(10deg);
  background: linear-gradient(135deg, rgba(23, 195, 178, 0.35), rgba(31, 111, 235, 0.18));
  clip-path: polygon(60% 0%, 100% 0%, 100% 100%, 0% 60%);
  opacity: 0.85;
  pointer-events: none;
}

.timeline-corner::after {
  content: "";
  position: absolute;
  inset: 26px;
  background: linear-gradient(135deg, rgba(23, 195, 178, 0.22), rgba(31, 111, 235, 0.1));
  clip-path: polygon(60% 0%, 100% 0%, 100% 100%, 0% 60%);
  opacity: 0.9;
}

.timeline-rail {
  position: relative;
  margin-top: 24px;
  padding: 120px 0 140px;
}

.timeline-rail-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, #d7dee9 8%, #d7dee9 92%, transparent 100%);
  border-radius: 999px;
  opacity: 0.95;
  pointer-events: none;
}

.timeline-ticks {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 18px;
  transform: translateY(-50%);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(215, 222, 233, 0.0) 0,
      rgba(215, 222, 233, 0.0) 10px,
      rgba(215, 222, 233, 0.85) 10px,
      rgba(215, 222, 233, 0.85) 12px
    );
  opacity: 0.55;
  border-radius: 999px;
  pointer-events: none;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.timeline-step {
  position: relative;
  min-height: 420px;
  outline: none;
  animation: timeline-rise 0.7s ease both;
  animation-delay: calc(var(--i) * 220ms);
  animation-play-state: paused;
}

.timeline-step.is-visible {
  animation-play-state: running;
}

@keyframes timeline-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.timeline-stem {
  width: 3px;
  height: 90px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.3);
}

.timeline-stem.top { margin-bottom: 12px; }
.timeline-stem.bottom { margin-top: 12px; }

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: #17c3b2;
  box-shadow: 0 0 0 7px rgba(23, 195, 178, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-icon-ring {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 8px solid rgba(23, 195, 178, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline-icon-ring.alt { border-color: rgba(31, 111, 235, 0.18); }

.timeline-icon {
  width: 30px;
  height: 30px;
  color: rgba(15, 23, 42, 0.78);
  transition: transform 0.25s ease, color 0.25s ease;
  display: block;
}

.timeline-icon--star {
  transform: translateY(-1px);
}

.timeline-card {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(215, 222, 233, 0.95);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  padding: 12px 12px 12px;
  z-index: 2;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline-thumb {
  height: 92px;
  width: calc(100% + 24px);
  margin: -12px -12px 10px;
  background: #eef2ff;
  position: relative;
  overflow: hidden;
}

.timeline-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0) contrast(1.05) brightness(1.02);
  opacity: 0.98;
  transform: scale(1.02);
  transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.timeline-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.0) 30%, rgba(255, 255, 255, 0.85) 100%);
  pointer-events: none;
}

.timeline-bar {
  height: 3px;
  width: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f6feb, #17c3b2);
  margin-bottom: 10px;
  opacity: 0.95;
}

.timeline-year {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: rgba(31, 111, 235, 0.95);
}

.timeline-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.timeline-text {
  margin: 0;
  color: rgba(75, 85, 99, 0.95);
  font-size: 14.5px;
  line-height: 1.6;
}

.timeline-step[data-side="top"] .timeline-pin { flex-direction: column-reverse; }
.timeline-step[data-side="top"] .timeline-stem.bottom { display: none; }
.timeline-step[data-side="top"] .timeline-card { bottom: calc(50% + 40px); top: auto; }
.timeline-step[data-side="bottom"] .timeline-stem.top { display: none; }
.timeline-step[data-side="bottom"] .timeline-card { top: calc(50% + 40px); bottom: auto; }

.timeline-step.dot-top .timeline-pin {
  flex-direction: column;
}

.timeline-step:hover .timeline-card,
.timeline-step:focus-within .timeline-card {
  transform: none;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
  border-color: rgba(215, 222, 233, 0.95);
}

.timeline-step:hover .timeline-thumb img,
.timeline-step:focus-within .timeline-thumb img {
  transform: scale(1.1);
  filter: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .timeline-step { animation: none; }
  .timeline-thumb img,
  .timeline-card,
  .timeline-pin,
  .timeline-dot,
  .timeline-icon-ring,
  .timeline-icon { transition: none; }
}

@media (max-width: 1180px) {
  .timeline-steps { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .timeline-rail { padding: 44px 0 70px; }
  .timeline-step { min-height: 330px; }
}

@media (max-width: 720px) {
  .timeline-steps { grid-template-columns: 1fr; }
  .timeline-rail-line,
  .timeline-ticks { display: none; }
  .timeline-rail { padding: 0; margin-top: 16px; }
  .timeline-step {
    min-height: auto;
    padding: 16px 0;
  }
  .timeline-pin {
    position: static;
    transform: none !important;
    margin: 12px 0 12px;
  }
  .timeline-stem { display: none !important; }
  .timeline-card {
    position: static;
    max-width: 100%;
    transform: none !important;
  }
  .timeline-thumb { height: 140px; }
}

@keyframes floatCard {
  0%, 100% {
    transform: var(--node-transform);
  }
  50% {
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) - 8px));
  }
}

@keyframes floatCardStrong {
  0%, 100% {
    transform: var(--node-transform);
  }
  50% {
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) - 18px));
  }
}

@keyframes valueIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) + 12px)) scale(0.98);
  }
  to {
    opacity: 1;
    transform: var(--node-transform);
  }
}

@keyframes valueReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) + 28px)) scale(0.94);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--tx), calc(var(--ty) - 6px)) scale(1.01);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: var(--node-transform);
    filter: blur(0px);
  }
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  }
  50% {
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.25);
  }
}

@keyframes roadFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -72;
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
  }
}

@media (max-width: 1100px) {
  .values-orbit {
    max-width: 980px;
    --radius: 250px;
    height: 640px;
  }
  .values-node {
    width: 200px;
  }
  .road-point {
    width: 170px;
  }
}

@media (max-width: 900px) {
  .values-constellation {
    padding: 40px 0 90px;
    overflow: visible;
  }
  .values-constellation::before,
  .values-constellation::after {
    display: block;
  }
  .values-constellation::before {
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0) 100%);
  }
  .values-constellation::after {
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.98) 100%);
  }
  .values-orbit {
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    max-width: none;
    margin: 10px 0 0;
    padding: 0 18px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transform: none;
  }
  .values-orbit::before,
  .values-core {
    display: none;
  }
  .values-node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    width: min(86vw, 360px);
    flex: 0 0 auto;
    scroll-snap-align: center;
    padding: 16px 16px 14px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  }
  .values-node::before {
    display: none;
  }
  body.azienda .values-node {
    opacity: 1;
    animation-play-state: running;
  }
  .values-node h3 {
    font-size: 16px;
  }
  .values-node p {
    font-size: 13px;
  }
  .history-road {
    padding: 90px 28px 100px;
  }
  .history-layout {
    grid-template-columns: 1fr;
  }
  .road-stage {
    padding: 22px;
    min-height: 420px;
  }
  .road-point {
    position: static;
    transform: none;
    width: auto;
    margin-top: 16px;
  }
  .road-point::before {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 10px;
    display: inline-block;
  }
  .road-point:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .values-constellation .section-title {
    font-size: 28px;
  }
  .history-header h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .values-node,
  .values-core,
  .road-highlight,
  .road-point::before {
    animation: none;
  }
  .values-node {
    opacity: 1;
  }
}

/* ========== MODERN BUSINESS CARDS � APPLE STYLE ========== */
.ba-modern {
  width: 100%;
  max-width: 1400px;
  margin: 60px auto 90px;
  padding: 0 60px;
  position: relative;
  background: transparent;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ba-modern-grid {
  position: relative;
}

.ba-modern-header {
  text-align: center;
  margin-bottom: 12px;
}

.ba-modern-heading {
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 auto 64px;
  line-height: 1.2;
}

.ba-modern-sub {
  margin: -42px auto 64px;
  max-width: 820px;
  font-size: 22px;
  line-height: 1.6;
  color: #0f172a;
  text-align: center;
}

.ba-modern-eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f46e5;
  font-weight: 700;
  margin-bottom: 10px;
}

.ba-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(380px, 1fr));
  gap: 64px;
  justify-content: center;
  perspective: 1200px;
  position: relative;
}

  .ba-modern-card {
    position: relative;
    min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(46, 58, 78, 0.12), rgba(28, 38, 54, 0.18));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

.ba-modern-card:hover {
  box-shadow: 0 22px 48px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px) scale(1.01);
}

.ba-modern-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.1)),
    var(--ba-card-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.ba-modern-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(500px 180px at 20% 0%, rgba(75,97,209,0.24), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.ba-modern-card:hover::after {
  opacity: 1;
}

@keyframes baGlassShift {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.15) translate(-10px, -14px); }
}

/* Card centrale con immagine di sfondo */
.ba-card-consulting::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.48)),
    url("../images/consulting-card.webp") center/cover no-repeat;
  opacity: 1;
  animation: none;
}
.ba-card-consulting::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.24));
  z-index: 0;
}
.ba-card-consulting .ba-modern-text {
  position: relative;
  z-index: 1;
}

/* Card sinistra con immagine di sfondo */
.ba-card-repair::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.48)),
    url("../images/repair-card.webp") center/cover no-repeat;
  opacity: 1;
  animation: none;
}
.ba-card-repair::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.24));
  z-index: 0;
}
.ba-card-repair .ba-modern-text {
  position: relative;
  z-index: 1;
}

/* Card destra con immagine di sfondo */
.ba-card-install::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.48)),
    url("../images/installation-card.webp") center/cover no-repeat;
  filter: saturate(1.05);
  opacity: 1;
  animation: none;
}
.ba-card-install::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.24));
  z-index: 0;
}
.ba-card-install .ba-modern-text {
  position: relative;
  z-index: 1;
}

.ba-modern-text {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.92);
  text-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-modern-title {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.ba-modern-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}

.ba-modern-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -60px;
  width: 160%;
  height: 520px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='520' viewBox='0 0 1600 520' fill='none'%3E%3Cpath d='M-50 360 C 200 220, 450 460, 700 320 C 950 180, 1200 430, 1450 260' stroke='%230d3d82' stroke-width='14' stroke-linecap='round' stroke-linejoin='round' opacity='0.3'/%3E%3Cpath d='M-20 270 C 230 150, 520 350, 780 210 C 1040 70, 1250 360, 1580 190' stroke='%23236ac7' stroke-width='10' stroke-linecap='round' stroke-linejoin='round' opacity='0.35'/%3E%3Cpath d='M-60 190 C 180 90, 520 240, 860 140 C 1120 60, 1350 210, 1650 120' stroke='%235b8fe0' stroke-width='8' stroke-linecap='round' stroke-linejoin='round' opacity='0.3'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
}

.ba-modern-grid > * {
  position: relative;
  z-index: 1;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
  margin: 80px auto 30px;
}
.section-video-break {
  width: 100vw;
  max-width: none;
  height: 560px;
  margin: -170px calc((100vw - 100%) / -2) 20px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.section-video-break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 22%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  z-index: 1;
}
.section-video-break::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.6) 78%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

/* Home video */
.section-video-break.home-video {
  height: 560px;
  margin: -170px calc((100vw - 100%) / -2) 20px;
}


.section-video-break video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services-shop {
  margin: 32px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.services-shop .btn-primary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.services-shop .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  background: #1d4ed8;
}
.ba-modern-icon {
  width: 48px;
  height: 48px;
  stroke: #ffffff;
  fill: none;
  opacity: 0.85;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.ba-modern-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
}
.ba-modern-icon svg * {
  stroke: #ffffff;
}

.ba-modern-text {
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-modern-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.ba-modern-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

.ba-modern-card .ba-modern-row {
  padding: 24px;
  position: relative;
  z-index: 1;
}


@media (max-width: 900px) {
  .mission-vision {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }
  .ba-modern {
    padding: 0 18px;
    margin: 40px auto 20px;
  }
  .ba-modern-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .ba-modern-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .ba-modern-card {
    padding: 18px 14px;
    min-height: 240px;
  }

  .ba-modern-card::before {
    background-position: center;
    background-size: 120%;
  }
  .ba-modern-title {
    font-size: 20px;
  }
  .ba-modern-image {
    aspect-ratio: 3 / 2;
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .ba-modern-grid {
    gap: 20px;
  }
  .ba-modern-card {
    padding: 16px 12px;
    min-height: 210px;
  }

  .ba-modern-card::before {
    background-position: center;
    background-size: cover;
  }
  .ba-modern-image {
    aspect-ratio: 16 / 10;
  }
}







/* ================= BUSINESS AREAS ================= */
.business-areas {
  max-width: 1100px;
  margin: 110px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.ba-header {
  margin-bottom: 36px;
}

.ba-eyebrow {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0E4B9E;
  font-weight: 700;
  margin-bottom: 16px;
}
 
.ba-text {
  font-size: 16px;
  color: #0f172a;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.ba-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fafb 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ba-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  border-color: #cbd5e1;
}

.ba-card-text {
  font-size: 17px;
  line-height: 1.8;
  color: #111827;
  text-align: left;
}

.ba-tag {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  color: #0f172a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  min-width: auto;
  text-align: left;
  background: #e2e8f0;
}

.tag-blue { background: #e0f2fe; color: #0b4f71; }
.tag-navy { background: #e5e7eb; color: #0f172a; }
.tag-orange { background: #fff4e6; color: #8a4b00; }

/* ================= HIGHLIGHTS ================= */
.highlights {
  width: 100vw;
  max-width: none;
  margin: 80px calc((100vw - 100%) / -2) 0;
  padding: 110px 0 90px;
  background: #003087;
  text-align: left;
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  overflow: visible;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 90px), calc(100% - 90px) 100%, 90px 100%, 0 calc(100% - 90px));
  border-radius: 0;
  z-index: 1;
}

.highlights::before {
  content: "";
  position: absolute;
  left: 0;
  top: -120px;
  width: 100%;
  height: 120px;
  background: #003087;
  clip-path: polygon(0 0, 50% 120px, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 2;
}

.highlights::after {
  content: none;
}

.hl-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 140px;
  position: relative;
  z-index: 1;
}

.hl-header {
  margin-bottom: 46px;
}

.hl-eyebrow {
  display: inline-block;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}

.hl-list {
  display: flex;
  flex-direction: column;
}

.hl-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 260px;
  align-items: flex-start;
  padding: 34px 0;
}

.hl-item + .hl-item {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hl-number {
  font-size: 84px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hl-text {
  width: 520px;
  max-width: 100%;
  justify-self: end;
  text-align: left;
}

.hl-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
  color: #ffffff;
  max-width: 760px;
  word-break: normal;
  overflow-wrap: break-word;
}

.hl-subtitle {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .highlights {
    margin: 40px calc((100vw - 100%) / -2) 30px;
    padding: 80px 0 80px;
    width: 100vw;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 50px) 100%, 50px 100%, 0 calc(100% - 50px));
  }

  .highlights::before {
    top: -90px;
    height: 90px;
    clip-path: polygon(0 0, 50% 90px, 100% 0, 100% 100%, 0 100%);
  }

  .highlights::after {
    content: none;
  }

  .hl-inner {
    padding: 0 22px;
  }

  .hl-item {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: flex-start;
  }

  .hl-number {
    font-size: 58px;
  }

  .hl-title {
    font-size: 18px;
  }

  .hl-subtitle {
    font-size: 14px;
  }
}
/* ================= REVEAL ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s ease 0.35s, transform 1s ease 0.35s;
}

.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-title {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.8s ease 0.45s, transform 0.8s ease 0.45s;
}

.reveal-title.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-body {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 1s ease 0.7s, transform 1s ease 0.7s;
}

.reveal-body.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Servizi: animazioni pi� lente e separate */
body.servizi .reveal {
  transition: opacity 1.1s ease 0.35s, transform 1.1s ease 0.35s;
}

body.servizi .reveal-title {
  transition: opacity 0.9s ease 0.3s, transform 0.9s ease 0.3s;
}

body.servizi .reveal-body {
  transition: opacity 1.2s ease 0.6s, transform 1.2s ease 0.6s;
}

/* Home: animazioni pi� veloci */
body.home .reveal {
  transition: opacity 1.2s ease 0.35s, transform 1.2s ease 0.35s;
}

body.home .reveal-title {
  transition: opacity 1s ease 0.45s, transform 1s ease 0.45s;
}

body.home .reveal-body {
  transition: opacity 1.4s ease 0.6s, transform 1.4s ease 0.6s;
}

body.home .values-node {
  animation-delay: calc(var(--delay) + 0.6s), calc(var(--delay) + 2.2s);
}

/* Testo sovrapposto */
.hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 40px;
  color: white;
  font-size: 26px;
  font-weight: 500;
  background: rgba(15, 42, 68, 0.65);
  padding: 10px 18px;
  border-radius: 4px;
}

/* ================= HEADER ================= */

header {
  background: white;
  padding: 60px 40px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #0f172a;
}

/* ================= MAIN ================= */

main {
  max-width: 1100px;
  margin: auto;
  padding: 60px 40px;
  background: white;
}

@media (max-width: 768px) {
  main {
    padding-top: 120px; /* pi� spazio sotto navbar su mobile */
  }
}

section h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #0f172a;
}

section p {
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
}

.tally-collapse {
  max-width: 1100px;
  margin: 0 auto;
}

.tally-collapse > summary {
  cursor: pointer;
  font-size: 30px;
  font-weight: 600;
  color: #0f172a;
  padding: 16px 0;
  list-style: none;
}

.tally-collapse > summary::-webkit-details-marker {
  display: none;
}

.tally-embed {
  padding-top: 10px;
}

.tally-section {
  margin-top: 80px;
}

.tally-card {
  background: #ffffff;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 20px;
  padding: 28px 34px;
  box-shadow: 0 22px 50px rgba(15,23,42,.12);
  transition: box-shadow .25s ease;
}

.tally-card[open] {
  box-shadow: 0 28px 70px rgba(15,23,42,.16);
}

.tally-card .tally-summary {
  padding: 8px 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  .navbar {
    padding: 15px 20px;
    gap: 15px;
  }

  .navbar a {
    font-size: 15px;
    padding: 6px 8px;
  }

  .cart-svg {
    width: 24px;
    height: 24px;
  }

  header h1 {
    font-size: 24px;
  }

  .hero {
    height: 280px;
    padding-top: 0;        /* MODIFICATO */
    padding-bottom: 30px;
  }

  .hero.compact {
    height: 140px;
  }

  .hero-overlay {
    font-size: 18px;
    left: 20px;
    right: 20px;
  }
}

/* === HAMBURGER === */
.hamburger {
  display: none;           /* nascosto su desktop */
  width: 32px;
  height: 28px;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3000;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.35s ease;
}

.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 22px; }

/* ANIMAZIONE X */
.hamburger.active span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

/* === VISIBILE SOLO SU MOBILE === */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
  }
}

/* ================= MENU MOBILE A TENDINA ================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;  /* ARRIVA DA DESTRA */

  width: 260px;
  height: 100vh;

  background: rgb(2, 41, 183);
  padding: 80px 25px 30px;

  display: flex;
  flex-direction: column;
  gap: 18px;

  transform: translateX(100%); /* nascosto a destra */
  transition: transform 0.35s ease;

  z-index: 2000;
}

.mobile-menu.show {
  transform: translateX(0); /* entra da destra */
}


.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}

/* Stato aperto */
.mobile-menu.show {
  transform: translateX(0);
}

/* Nasconde menu desktop su mobile */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1500;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== TRANSIZIONE PAGINA TRA CAMBI ===== */

#page-fade {
  display: none;
}

/* Voce di menu attiva nel menu mobile - solo linea blu Savoia */
/* La linea blu � gestita tramite .nav-links a.active::after, quindi non sono necessarie regole aggiuntive qui. */

/* Il logo NON deve mai essere evidenziato */
.logo-link.active {
  background: none !important;
  color: inherit !important;
  font-weight: normal !important;
}

/* Spaziatura per tutti i contenuti sotto la navbar */
main {
  padding-top: 0; /* aderisce al video hero */
  min-height: calc(100vh - 200px); /* spazio per scroll anche con poco contenuto */
  padding-bottom: 0; /* margine extra in fondo */
}

/* Stile tipografico globale */
body, p, h1, h2, h3, h4, h5, h6 {
  font-family: 'SF Pro Display', 'SF Pro Text', 'SF Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

/* Stile specifico se serve per questa pagina */
.funded-projects {
  width: 100vw;
  max-width: none;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 50px 90px 90px;
  text-align: center;
}

.funded-projects .mv-hero {
  margin-bottom: 18px;
}

.funded-projects .mv-eyebrow {
  margin-bottom: 12px;
}

.funded-description {
  font-size: 22px;
  line-height: 2;
  margin: 14px auto 0;
  max-width: none;
  width: 100%;
  color: #0f172a;
  text-wrap: normal;
  margin-bottom: 0;
}

.funded-description span + span {
  margin-left: 0.25ch;
}

.funded-divider {
  margin-top: 48px;
}

.funded-text {
  text-align: center;
}

.funded-text p {
  font-size: 19px;
  line-height: 1.85;
  margin: 0 auto 32px;
  max-width: 1200px;
  color: #0f172a;
  text-wrap: pretty;
}

.funded-document h3 {
  margin-bottom: 90px;
  text-align: center;
}

body.progetti-finanziati {
  background: #ffffff;
}

.funded-document {
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.funded-document.reveal {
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s ease;
}

.funded-document .document-image {
  width: 88% !important;
  height: auto;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: 24px !important;
  display: block;
  margin: 60px auto 0;
  object-fit: contain;
  object-position: center;
}


.funded-document .document-image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .funded-projects {
    padding: 48px 32px 80px;
    text-align: center;
  }

  .funded-projects .mv-eyebrow,
  .funded-projects .mv-hero {
    text-align: center;
  }

  .funded-description {
    font-size: 19px;
    line-height: 1.8;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .funded-document h3 {
    margin-bottom: 50px;
  }

  .funded-document .document-image {
    width: 100% !important;
    height: auto;
    margin: 36px auto 0;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .funded-projects {
    padding: 40px 16px 70px;
    text-align: center;
  }

  .funded-projects .mv-eyebrow {
    font-size: 16px;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .funded-projects .mv-hero {
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
  }

  .funded-description {
    font-size: 18px;
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .funded-divider {
    margin-top: 28px;
  }

  .funded-document {
    margin-top: 24px;
  }

  .funded-document h3 {
    margin-bottom: 32px;
    font-size: 16px;
    letter-spacing: 0.12em;
  }

  .funded-document .document-image {
    width: 100% !important;
    height: auto;
    margin: 24px auto 0;
    border-radius: 18px !important;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  body.sostenibilita .sus-carousel {
    padding: 18px 12px 32px;
  }

  body.sostenibilita .sus-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.sostenibilita .sus-carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  body.sostenibilita .sus-carousel__track {
    transition: none;
  }

  body.sostenibilita .sus-slide {
    padding: 18px 0 22px;
    scroll-snap-align: center;
  }

  body.sostenibilita .sus-slide__card {
    padding: 18px 14px 16px;
    min-height: auto;
  }

  body.sostenibilita .sus-slide__card::before {
    height: 3px;
    margin-bottom: 14px;
  }

  body.sostenibilita .sus-slide__head {
    margin-bottom: 10px;
  }

  body.sostenibilita .sus-title {
    font-size: 18px;
    line-height: 1.18;
  }

  body.sostenibilita .sus-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  body.sostenibilita .sus-practice {
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 13.5px;
    border-radius: 12px;
  }

  body.sostenibilita .sus-practice strong {
    font-size: 12px;
    margin-bottom: 6px;
  }
}

@media (max-width: 600px) {
  body.sostenibilita .sus-title {
    font-size: 17px;
  }

  body.sostenibilita .sus-text p {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  body.sostenibilita .sus-practice {
    font-size: 12.5px;
  }

  body.sostenibilita .sus-slide__card {
    padding: 16px 12px 14px;
  }
}

@media (max-width: 768px) {
  .mv-block {
    text-align: left;
  }

  .mv-hero,
  .mv-body {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .mv-body {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .services-cert {
    padding: 40px 16px 70px;
  }

  .services-cert__head {
    text-align: left !important;
  }

  .services-cert__head .mv-eyebrow,
  .services-cert__head .mv-hero,
  .services-cert__head .mv-body {
    text-align: left !important;
  }

  .services-cert__head .mv-hero {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .services-cert__head .mv-body {
    font-size: 18px;
    line-height: 1.8;
  }

  .service-block__eyebrow,
  .service-block__title,
  .service-block__subtitle {
    text-align: left;
  }

  .service-block__title {
    font-size: 22px;
    line-height: 1.25;
  }

  .service-block__subtitle {
    font-size: 16.5px;
    line-height: 1.7;
  }

  .service-block__text {
    max-width: none;
  }

  .service-block__details--cols {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .service-block__details--cols .service-open__item {
    justify-items: start;
  }

  .service-block__cta {
    justify-content: flex-start;
  }

  .service-open__media-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
  }
}

/* --------------------------------------
   CAROSELLO CLIENTI
----------------------------------------- */

/* SEZIONE */
.clients-section {
  width: 100vw;             /* full bleed */
  padding: 100px 0 140px;
  background: #ffffff;
  position: relative;
  text-align: center;
  overflow: hidden;         /* BLOCCA overflow interno */
  margin: 0 calc((100vw - 100%) / -2); /* extend to viewport edges + extra spacing */
}

.clients-section::before {
  content: none;
}

.clients-section > * {
  position: relative;
  z-index: 1;
}

/* TITOLO */
.clients-title {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 54px;
  color: #0E4B9E;
}

/* GRID */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 36px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 110px;
}

.client-logo img {
  height: 110px;
  width: 220px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.8;
  transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
  transform: scale(1);
}

.client-logo:hover img {
  filter: grayscale(0) contrast(1.05);
  opacity: 1;
  transform: scale(1.03);
}

/* ================= LANGUAGE SELECTOR ================= */
.language-selector {
  position: relative;
}

.lang-toggle {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 48px;
}

.lang-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-toggle:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.lang-toggle.active {
  background: #f3f4f6;
  border-color: #6b7280;
}

/* Dropdown Menu */
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  gap: 0;
}

.lang-option img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-option:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: scale(1.05);
}

.lang-option.active {
  background: #0E2651;
  border-color: #0E2651;
  transform: scale(1.1);
}

/* Mobile language selector */
.mobile-language-selector {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: none;
  justify-content: center;
}

.mobile-language-selector .lang-option {
  width: 44px;
  height: 32px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.mobile-language-selector .lang-option img {
  width: 32px;
  height: 24px;
}

.mobile-language-selector .lang-option.active {
  background: #0E2651;
  border-color: #0E2651;
}

.mobile-language-selector .lang-option:hover {
  background: #f3f4f6;
}

/* Hide language selector on mobile */
@media (max-width: 768px) {
  .language-selector {
    display: none;
  }
}

@media (max-width: 900px) {
  .reveal,
  .reveal-title,
  .reveal-body {
    transition-duration: 0.5s !important;
    transition-delay: 0s !important;
  }

  .values-node,
  .values-core,
  .timeline-step,
  .service-open__media-card {
    animation-duration: 0.6s !important;
    animation-delay: 0s !important;
  }
}

/* Specific adjustments for small phones to improve home layout */
@media (max-width: 600px) {
  .mission-vision {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px auto;
    padding: 0 16px;
  }
  .home .mission-vision {
    margin: 0 auto 20px;
  }
  .mv-hero {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.32;
  }
  .mv-body {
    font-size: 18px;
    line-height: 1.9;
    margin: 6px auto 0;
  }

  .ba-modern {
    padding: 0 14px;
    margin: 28px auto 10px;
  }

  .ba-modern-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ba-modern-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .ba-modern-title {
    font-size: 18px;
  }

  .ba-modern-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .section-video-break.home-video {
    height: 420px;
    margin: -270px calc((100vw - 100%) / -2) 16px;
  }

  .section-video-break.home-video video {
    object-fit: cover;
    object-position: center;
    transform: scaleX(1.12);
  }

  /* Reduce hero height so it doesn't dominate the viewport on small screens */
  .hero {
    height: 140px;
    padding-bottom: 10px;
  }

  /* Override large inline header on home page */
  main header h1 {
    font-size: 22px !important;
    margin: 30px 0 !important;
    line-height: 1.2 !important;
    padding: 0 6px !important;
    text-align: center !important;
  }

  /* Reduce main padding and text sizes for better mobile fit */
  main {
    padding: 24px 12px;
  }

  section h2 {
    font-size: 18px;
  }

  section p {
    font-size: 14px;
  }

  .logos-track img {
    height: 50px;
  }

  /* Tweak mobile menu spacing */
  .mobile-menu {
    padding: 60px 12px 12px;
  }

  .mobile-language-selector {
    padding: 8px 12px;
    gap: 6px;
  }
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
    padding: 0 20px;
  }

  .client-logo img {
    height: 70px;
    width: 160px;
  }
}
.tally-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tally-toggle {
    font-size: 34px;
    line-height: 1;
    color: #0E4B9E;
    transition: transform .2s ease;
  }

  .tally-toggle svg {
    width: 32px;
    height: 32px;
    display: block;
  }

.tally-summary:hover .tally-toggle {
  transform: scale(1.12);
}

.tally-collapse[open] .tally-toggle {
  transform: rotate(180deg) scale(1.06);
}
 .values-dots {
   display: none;
 }



