/* ==========================================================================
   Building SRL — Foglio di stile globale
   Struttura: 1) Font  2) Reset/Base  3) Token  4) Tipografia  5) Layout/utility
              6) Bottoni  7) Header  8) Footer  9) Hero  10) Sezioni home
              11) Page hero (pagine interne)  12) Animazioni  13) Responsive
   ========================================================================== */

/* 1) FONT ------------------------------------------------------------------ */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2) RESET / BASE ---------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

/* 3) TOKEN ----------------------------------------------------------------- */
:root {
  --navy: #16233a;
  --navy-d: #0f1a2b;
  --navy-l: #1c2c46;
  --orange: #e8842b;
  --orange-h: #f5983f;
  --paper: #f4f1ec;
  --text: #ffffff;
  --text-soft: #cdd7e2;
  --text-muted: #9fb0c4;
  --line: rgba(255, 255, 255, 0.09);
  --maxw: 1240px;
  --pad-x: 6vw;
  --radius: 8px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4) TIPOGRAFIA ------------------------------------------------------------ */
body {
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: var(--navy-d);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* 5) LAYOUT / UTILITY ------------------------------------------------------ */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section {
  padding: clamp(64px, 9vw, 110px) var(--pad-x);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
}
.section-head p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-muted);
  margin-top: 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}
.kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
}
.kicker.center {
  justify-content: center;
}

.text-orange {
  color: var(--orange);
}

/* 6) BOTTONI --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--orange-h);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn--light {
  background: #fff;
  color: var(--navy-d);
}
.btn--light:hover {
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--navy-d);
  color: #fff;
}
.btn--dark:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* 7) HEADER ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  transition:
    background 0.3s var(--ease),
    padding 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 26, 43, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px var(--pad-x);
  border-bottom-color: var(--line);
}
.site-header__logo img {
  height: 46px;
  width: auto;
}
.main-nav ul {
  display: flex;
  gap: 34px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--orange);
}
.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.header-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 30px;
  height: 22px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 0;
}
.nav-toggle span:nth-child(2) {
  top: 10px;
}
.nav-toggle span:nth-child(3) {
  top: 20px;
}
body.nav-open .nav-toggle span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* 8) FOOTER ---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-d);
  border-top: 1px solid var(--line);
  padding: 64px var(--pad-x) 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img {
  height: 50px;
  margin-bottom: 20px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--orange);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13px;
  color: #61718a;
}

/* 9) HERO (home) ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/mission-band.jpg') center/cover;
  transform: scale(1.04);
  will-change: transform;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 33, 0.93) 0%, rgba(11, 20, 33, 0.62) 44%, rgba(11, 20, 33, 0.86) 100%);
}
.hero__veil2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(232, 132, 43, 0.14), transparent 36%);
}
.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--pad-x);
}
.hero__content {
  max-width: 850px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: min(420px, 68vw);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.4));
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.04;
  max-width: 760px;
}
.hero p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-soft);
  margin: 24px auto 34px;
  max-width: 620px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__trust {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  padding: 22px var(--pad-x);
  font-size: 14px;
  color: var(--text-soft);
}
.hero__trust b {
  color: #fff;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 40px;
}
.trust-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* 10) SEZIONI HOME --------------------------------------------------------- */
/* Statement */
.statement {
  background: var(--navy-d);
  text-align: center;
  padding: clamp(80px, 11vw, 120px) var(--pad-x);
}
.statement h2 {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.22;
  max-width: 1000px;
  margin-inline: auto;
  letter-spacing: -0.02em;
}

/* Servizi (righe) */
.servizi {
  background: #0b1422;
}
.servizi__lead {
  max-width: 620px;
  margin-bottom: 26px;
}
.servizi__lead h2 {
  font-size: clamp(30px, 3.2vw, 42px);
}
.srow {
  display: grid;
  grid-template-columns: 90px 1.1fr 2fr auto;
  align-items: center;
  gap: 30px;
  padding: 34px 8px;
  border-top: 1px solid var(--line);
  transition:
    padding 0.25s var(--ease),
    background 0.25s var(--ease);
}
.srow:last-child {
  border-bottom: 1px solid var(--line);
}
.srow:hover {
  padding-left: 22px;
  background: linear-gradient(90deg, rgba(232, 132, 43, 0.08), transparent);
}
.srow__idx {
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
}
.srow h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
}
.srow p {
  font-size: 16px;
  color: var(--text-muted);
}
.srow__arrow {
  font-size: 22px;
  color: #5f718a;
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.srow:hover .srow__arrow {
  color: var(--orange);
  transform: translateX(6px);
}

/* Banda mission */
.band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--pad-x);
  background: url('../img/mission-band.jpg') center/cover fixed;
}
.band__ov {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 33, 0.78);
}
.band__in {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.band blockquote {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.3;
}

/* Progetti (mosaico asimmetrico) */
.progetti {
  background: var(--navy-d);
}
.pmosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  height: 640px;
}
.pcard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pcard--big {
  grid-row: 1/3;
}
.pcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.pcard:hover img {
  transform: scale(1.06);
}
.pcard__ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 33, 0.94), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.pcard__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.pcard h3 {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
}
.pcard__loc {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Fascia numeri */
.stats {
  background: var(--orange);
  padding: clamp(60px, 8vw, 80px) var(--pad-x);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  max-width: var(--maxw);
  margin-inline: auto;
}
.stat__n {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat__t {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 10px;
}

/* Certificazioni & partner */
.cert {
  background: #0b1422;
  text-align: center;
}
.cert--skyscraper {
  position: relative;
  background: url('../img/mission-band.jpg') center/cover fixed;
  overflow: hidden;
}
.cert--skyscraper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 33, 0.9), rgba(11, 20, 33, 0.76));
}
.cert--skyscraper > * {
  position: relative;
  z-index: 1;
}
.cert h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 34px;
}
.cert__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}
.chip {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #e4e9ef;
}
.chip b {
  color: var(--orange);
}
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.partners span {
  font-size: 20px;
  font-weight: 800;
  opacity: 0.5;
}

/* Servizi home: griglia 2x3 + foto */
.home-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.home-service {
  position: relative;
  background: #0b1422;
  padding: 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.home-service:hover {
  background: var(--navy);
  transform: translateY(-2px);
}
.home-service span {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(232, 132, 43, 0.58);
}
.home-service h3 {
  font-size: clamp(20px, 1.8vw, 27px);
  margin-bottom: 10px;
}
.home-service p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
}
.services-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.services-photos img {
  width: 100%;
  height: clamp(190px, 24vw, 320px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* CTA — card orizzontale navy con accento */
.cta {
  background: var(--navy-d);
}
.cta__card {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
}
.cta__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--orange);
}
.cta__text h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
}
.cta__text p {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 8px;
}
.cta__card .btn {
  flex: 0 0 auto;
}

/* 11) PAGE HERO (pagine interne) ------------------------------------------ */
.page-hero {
  position: relative;
  padding: clamp(150px, 18vw, 200px) var(--pad-x) clamp(60px, 8vw, 90px);
  overflow: hidden;
  background: var(--navy);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy-d), transparent), linear-gradient(90deg, var(--navy) 20%, transparent);
}
.page-hero__in {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}
.page-hero p {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-soft);
  margin-top: 18px;
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover {
  color: var(--orange);
}
.breadcrumb span {
  color: #5f718a;
}

/* 11b) COMPONENTI PAGINE INTERNE ------------------------------------------ */
/* Blocco testo + immagine (storia) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.split--reverse .split__media {
  order: 2;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media .badge {
  position: absolute;
  left: 14px;
  bottom: 34px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 30px 26px;
  max-width: 240px;
}
.split__media .badge .n {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.split__media .badge .t {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 10px;
}
.split__body h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 20px;
}
.split__body p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.split__body p:last-child {
  margin-bottom: 0;
}

/* Griglia valori */
.values {
  background: #0b1422;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.value-card__ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(232, 132, 43, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-card__ic svg {
  width: 26px;
  height: 26px;
}
.value-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Squadra */
.team {
  background: var(--navy-d);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 14px;
}
.team__box {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.team__box .n {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.team__box .t {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.45;
}

/* Composizione societaria */
.company-structure {
  background: #0b1422;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.person-card {
  position: relative;
  background: linear-gradient(180deg, var(--navy), #101d31);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 260px;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.person-card::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(232, 132, 43, 0.22);
  border-radius: 50%;
}
.person-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 132, 43, 0.55);
}
.person-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.person-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(232, 132, 43, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.person-card__avatar svg {
  width: 26px;
  height: 26px;
}
.person-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.person-card h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  margin-bottom: 14px;
  line-height: 1.05;
}
.person-card p {
  display: inline-flex;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
}
.person-card small {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Schede servizio dettagliate */
.services-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.svc:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.svc__num {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.16);
}
.svc__ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(232, 132, 43, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.svc__ic svg {
  width: 26px;
  height: 26px;
}
.svc h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
}
.svc > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.svc__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.svc__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.svc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* Processo di lavoro */
.process {
  background: #0b1422;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pstep {
  position: relative;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}
.pstep::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--orange);
}
.pstep .no {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  color: rgba(232, 132, 43, 0.28);
  line-height: 1;
  margin-bottom: 10px;
}
.pstep h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pstep p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Portfolio realizzazioni + filtro */
.filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.filter button:hover {
  border-color: var(--orange);
  color: #fff;
}
.filter button.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.work.is-hidden {
  display: none;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work:hover img {
  transform: scale(1.06);
}
.work__ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 33, 0.94), rgba(11, 20, 33, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.work__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(232, 132, 43, 0.9);
  padding: 5px 12px;
  border-radius: 40px;
  margin-bottom: 12px;
}
.work h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.work__loc {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Contatti: recapiti + form */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.contact--stacked {
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin-inline: auto;
}
.contact--stacked .contact__info {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.contact--stacked .contact__info .lead {
  grid-column: 1/-1;
}
.contact--stacked .contact__info .lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 14px;
}
.contact__info .lead h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  margin-bottom: 14px;
}
.contact__info .lead p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.info-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 138px;
}
.info-item--half {
  grid-column: span 3;
}
.info-item--third {
  grid-column: span 2;
}
.info-item__ic {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(232, 132, 43, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-item__ic svg {
  width: 22px;
  height: 22px;
}
.info-item h3 {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 700;
}
.info-item p,
.info-item a {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  line-height: 1.65;
  word-break: break-word;
}
.info-item a:hover {
  color: var(--orange);
}

.contact__form {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.form-group label .req {
  color: var(--orange);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: #6f7f92;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}
.contact__form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact__form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb0c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}
.checkbox input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--orange);
}
.checkbox a {
  color: var(--orange);
}
.contact__form .btn {
  width: 100%;
  justify-content: center;
}
.form-success {
  display: none;
  background: rgba(29, 158, 117, 0.14);
  border: 1px solid rgba(29, 158, 117, 0.5);
  color: #7ee0bf;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 15px;
  margin-bottom: 20px;
}
.form-success.is-visible {
  display: block;
}

/* Mappa (segnaposto — in produzione: embed Google/Elementor) */
.map {
  position: relative;
  height: clamp(300px, 40vw, 440px);
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: #0d1622;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.map__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(#16233a 1px, transparent 1px), linear-gradient(90deg, #16233a 1px, transparent 1px);
  background-size: 44px 44px;
}
.map__pin {
  position: relative;
  z-index: 2;
}
.map__pin .dot {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(232, 132, 43, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map__pin .dot svg {
  width: 30px;
  height: 30px;
  color: var(--orange);
}
.map__pin p {
  color: var(--text-muted);
  font-size: 15px;
}
.map__pin b {
  color: #fff;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

/* Pagine legali */
.legal-page {
  background: var(--navy-d);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(28px, 5vw, 70px);
  max-width: var(--maxw);
  margin-inline: auto;
  align-items: start;
}
.legal-aside {
  position: sticky;
  top: 110px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.legal-aside h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 14px;
}
.legal-aside p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.legal-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-meta span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.legal-meta b {
  color: #fff;
  font-size: 16px;
}
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legal-block {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.legal-block h2 {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 14px;
}
.legal-block p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.legal-block p:last-child {
  margin-bottom: 0;
}
.legal-block a {
  color: var(--orange);
  font-weight: 700;
}
.legal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.legal-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.cookie-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #0b1422;
}
.cookie-table th,
.cookie-table td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}
.cookie-table th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.04);
}
.cookie-table td {
  color: var(--text-soft);
}
.cookie-table tr:last-child td {
  border-bottom: 0;
}
.legal-callout {
  background: linear-gradient(135deg, rgba(232, 132, 43, 0.18), rgba(22, 35, 58, 0.9));
  border-color: rgba(232, 132, 43, 0.35);
}
.legal-preferences {
  margin-top: 10px;
}
.legal-preferences:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Scheda progetto (dettaglio) */
.tagpill {
  display: inline-block;
  background: rgba(232, 132, 43, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
}
.project-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.project-body .lead-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 34px;
}
.project-body .lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-body h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 34px 0 16px;
}
.project-body h2:first-child {
  margin-top: 0;
}
.project-body p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.project-body ul.facts {
  margin: 6px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-body ul.facts li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 16px;
}
.project-body ul.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

.spec-card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.spec-card h3 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 700;
}
.spec-card dl {
  margin-top: 6px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec-row:last-child {
  border-bottom: 0;
}
.spec-row dt {
  color: var(--text-muted);
}
.spec-row dd {
  color: #fff;
  font-weight: 600;
  text-align: right;
}
.spec-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.gallery a {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery a:hover img {
  transform: scale(1.06);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 60px;
}
.project-nav a {
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 45%;
}
.project-nav a b {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 6px;
}
.project-nav a.next {
  text-align: right;
  align-items: flex-end;
}
.project-nav a:hover b {
  color: var(--orange);
}

/* Certificazioni: badge ISO + attestazione SOA */
.cert-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
}
.cert-badge {
  text-align: center;
}
.cert-badge__img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 0 0 1px var(--line);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.cert-badge:hover .cert-badge__img {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px var(--orange);
}
.cert-badge__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cert-badge .lbl {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.cert-badge .sub {
  font-size: 13px;
  color: var(--text-muted);
}
.soa {
  max-width: 560px;
  margin: 26px auto 0;
  background: #0d1a2b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.soa img {
  height: 50px;
  width: auto;
  border-radius: 6px;
}
.soa .txt {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 360px;
}
.soa .txt b {
  color: #fff;
}

/* Slider infinito partner */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  opacity: 0.5;
  letter-spacing: 0.01em;
  transition: opacity 0.2s var(--ease);
}
.marquee__item:hover {
  opacity: 1;
}
.marquee__item::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin: 0 clamp(28px, 4vw, 52px);
  flex: 0 0 auto;
  opacity: 0.8;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Variante con loghi in card bianche */
.marquee__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  height: 92px;
  width: 190px;
  padding: 16px 24px;
  margin: 0 clamp(12px, 1.6vw, 22px);
  flex: 0 0 auto;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.marquee__logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.marquee__logo img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* "Cosa facciamo" interattivo: lista + anteprima */
.svc-explorer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}
.svc-list {
  display: flex;
  flex-direction: column;
}
.svc-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 8px 24px 22px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.svc-item:last-child {
  border-bottom: 1px solid var(--line);
}
.svc-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--orange);
  transform: translateY(-50%);
  transition: height 0.3s var(--ease);
}
.svc-item.is-active::before {
  height: 64%;
}
.svc-item.is-active {
  background: linear-gradient(90deg, rgba(232, 132, 43, 0.06), transparent);
}
.svc-item__idx {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.svc-item.is-active .svc-item__idx {
  color: var(--orange);
}
.svc-item h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}
.svc-item.is-active h3 {
  color: #fff;
}
.svc-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.35s var(--ease),
    opacity 0.35s var(--ease),
    margin-top 0.35s var(--ease);
}
.svc-item.is-active p {
  max-height: 90px;
  opacity: 1;
  margin-top: 8px;
}
.svc-item__arrow {
  font-size: 20px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.svc-item.is-active .svc-item__arrow {
  opacity: 1;
  transform: none;
}
.svc-preview {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.5s var(--ease),
    transform 6s var(--ease);
}
.svc-preview img.is-shown {
  opacity: 1;
  transform: scale(1.06);
}
.svc-explorer--home {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.svc-explorer--home .svc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}
.svc-explorer--home .svc-item {
  min-height: 100px;
}
.svc-explorer--home .svc-preview {
  position: relative;
  top: auto;
  aspect-ratio: 16/7;
  width: 100%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

/* Bottone centrato sotto una sezione */
.section-cta {
  text-align: center;
  margin-top: 44px;
}

/* 12) ANIMAZIONI ----------------------------------------------------------- */
/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.24s;
}
.reveal[data-delay='4'] {
  transition-delay: 0.32s;
}
.reveal[data-delay='5'] {
  transition-delay: 0.4s;
}

/* Hero entrata */
.hero__bg {
  animation: heroZoom 8s var(--ease) forwards;
}
@keyframes heroZoom {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1.02);
  }
}
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: heroUp 0.9s var(--ease) forwards;
}
.hero-anim.d1 {
  animation-delay: 0.15s;
}
.hero-anim.d2 {
  animation-delay: 0.3s;
}
.hero-anim.d3 {
  animation-delay: 0.45s;
}
.hero-anim.d4 {
  animation-delay: 0.62s;
}
.hero__trust.hero-anim {
  animation-delay: 0.85s;
}
@keyframes heroUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-anim,
  .hero__bg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track {
    animation: none !important;
  }
}

/* 13) RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 860px) {
  body.nav-open .site-header,
  body.nav-open .site-header.is-scrolled {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    padding: 22px var(--pad-x);
  }
  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 99;
    background:
      linear-gradient(rgba(15, 26, 43, 0.96), rgba(15, 26, 43, 0.97)),
      url('../img/mission-band.jpg') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 96px var(--pad-x) 48px;
    opacity: 0;
    visibility: hidden;
    transform: none;
    pointer-events: none;
    overflow: hidden;
    overscroll-behavior: contain;
    transition:
      opacity 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 26px;
    text-align: center;
  }
  .main-nav a {
    font-size: clamp(26px, 8vw, 42px);
    font-weight: 800;
  }
  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }
  .nav-toggle {
    display: block;
    z-index: 101;
  }
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 104px 0 92px;
    display: flex;
    align-items: center;
  }
  .hero__bg {
    background-position: center;
  }
  .hero__inner {
    padding-bottom: 64px;
  }
  .hero__content {
    max-width: none;
  }
  .hero__logo {
    width: min(280px, 70vw);
    margin-bottom: 20px;
  }
  .hero .kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
  }
  .hero p {
    font-size: 15.5px;
    line-height: 1.62;
    margin: 18px 0 24px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn,
  .hero__actions .btn--ghost {
    justify-content: center;
    width: 100%;
  }
  .hero__trust {
    position: absolute;
    bottom: 0;
    padding: 12px var(--pad-x);
    gap: 8px;
    justify-content: center;
  }
  .trust-pill {
    font-size: 12px;
    padding: 6px 10px;
  }

  .srow {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }
  .srow p,
  .srow__arrow {
    display: none;
  }

  .svc-explorer {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .svc-preview {
    display: none;
  }
  .svc-explorer--home {
    gap: 18px;
  }
  .svc-explorer--home .svc-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .svc-explorer--home .svc-preview {
    display: block;
    aspect-ratio: 4/3;
  }
  .svc-explorer--home .svc-item {
    min-height: auto;
  }
  .svc-item {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }
  .svc-item__arrow {
    display: none;
  }
  .svc-item p {
    max-height: none;
    opacity: 1;
    margin-top: 8px;
  }
  .home-services {
    grid-template-columns: 1fr;
  }
  .home-service {
    min-height: auto;
    padding: 26px 24px;
  }
  .services-photos {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .services-photos img {
    height: 220px;
  }

  .pmosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }
  .pcard {
    aspect-ratio: 4/3;
  }
  .pcard--big {
    grid-row: auto;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .band,
  .page-hero__bg,
  .cert--skyscraper {
    background-attachment: scroll;
  }
  .cta__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split--reverse .split__media {
    order: 0;
  }
  .values__grid {
    grid-template-columns: 1fr;
  }
  .team__grid {
    grid-template-columns: 1fr 1fr;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .services-detail {
    grid-template-columns: 1fr;
  }
  .process__grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact--stacked .contact__info {
    grid-template-columns: 1fr;
  }
  .contact--stacked .contact__info .lead {
    text-align: left;
    margin: 0 0 8px;
  }
  .info-item,
  .info-item--half,
  .info-item--third {
    grid-column: 1/-1;
  }
  .info-item {
    min-height: 0;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-aside {
    position: static;
  }
  .legal-block {
    padding: 24px;
  }
  .cookie-table th,
  .cookie-table td {
    padding: 14px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .project-layout {
    grid-template-columns: 1fr;
  }
  .spec-card {
    position: static;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .values__grid {
    grid-template-columns: 1fr 1fr;
  }
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services-detail {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cookie-policy-page .page-hero {
    padding: 118px var(--pad-x) 46px;
  }
  .cookie-policy-page .page-hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }
  .cookie-policy-page .page-hero p {
    font-size: 16px;
    line-height: 1.65;
  }
  .cookie-policy-page .legal-page {
    padding-top: 38px;
  }
  .legal-layout {
    gap: 18px;
  }
  .legal-aside {
    padding: 22px;
    border-radius: 12px;
  }
  .legal-aside .kicker {
    margin-bottom: 14px;
  }
  .legal-aside h2 {
    font-size: 24px;
  }
  .legal-meta {
    margin-top: 18px;
    padding-top: 16px;
  }
  .legal-content {
    gap: 14px;
  }
  .legal-block {
    padding: 20px;
    border-radius: 12px;
  }
  .legal-block h2 {
    font-size: 21px;
    line-height: 1.2;
  }
  .legal-block p {
    font-size: 15px;
    line-height: 1.72;
  }
  .cookie-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    margin-top: 18px;
  }
  .cookie-table {
    display: block;
    min-width: 0;
    background: transparent;
  }
  .cookie-table thead {
    display: none;
  }
  .cookie-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cookie-table tr {
    display: block;
    background: #0b1422;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2px 0;
  }
  .cookie-table td {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .cookie-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
  }
  .cookie-table tr:last-child td {
    border-bottom: 1px solid var(--line);
  }
  .cookie-table tr td:last-child {
    border-bottom: 0;
  }
  .legal-list li {
    font-size: 14px;
    line-height: 1.6;
  }
  .legal-preferences {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .team__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .team__box {
    min-height: 112px;
    padding: 22px;
  }
  .team__box .n {
    font-size: clamp(25px, 8vw, 32px);
  }
  .team__box .t {
    font-size: 14px;
    margin-top: 8px;
  }
  .person-card {
    min-height: 0;
    padding: 24px;
    border-radius: 12px;
  }
  .person-card__top {
    margin-bottom: 22px;
  }
  .person-card__avatar {
    width: 48px;
    height: 48px;
  }
  .person-card h3 {
    font-size: 28px;
  }
  .person-card p {
    font-size: 13px;
  }
}
