/* Inter (variable) ospitato in locale – nessuna richiesta a Google Fonts (GDPR). Licenza: assets/fonts/LICENSE-Inter.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.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;
}

:root {
  --ink: #0a1019;
  --muted: #5d6978;
  --line: #dce5ee;
  --paper: #f4f7f9;
  --white: #ffffff;
  --blue: #006ec8;
  --blue-dark: #092f51;
  --steel: #9aa9b9;
  --cyan: #25d5ff;
  --accent: #ff8b1f;
  --lime: #b9f24b;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(6, 14, 24, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* l'header è sticky: le ancore (es. #servizi) non devono finire sotto di esso */
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 213, 255, .12), transparent 26rem),
    linear-gradient(180deg, #eef4f7 0%, var(--paper) 34%, #ffffff 100%);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 252, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(160, 176, 190, .34);
  transition: box-shadow .24s var(--ease), background .24s var(--ease), border-color .24s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(128, 145, 162, .42);
  box-shadow: 0 12px 34px rgba(8, 18, 31, .08);
}
.header-shell {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.brand::after {
  content: "";
  position: absolute;
  inset: auto 8% -10px 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
  opacity: .7;
  transform: scaleX(.72);
}
.brand img { width: min(245px, 58vw); filter: drop-shadow(0 9px 18px rgba(9, 25, 42, .12)); }
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item { position: relative; }
.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .78rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.nav-item.is-active > a,
.nav-item > a:hover,
.nav-item:focus-within > a {
  background: rgba(0, 110, 200, .1);
  color: var(--blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}
.nav-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}
.nav-toggle span { display: none; }

.hero {
  position: relative;
  min-height: clamp(520px, 70vh, 740px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: #070d14;
  background-image: linear-gradient(90deg, rgba(4, 10, 18, .95), rgba(5, 17, 28, .72) 48%, rgba(5, 17, 28, .14)), var(--hero-image);
  background-size: cover;
  background-position: center right;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 16, .14), rgba(4, 9, 16, .46)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 104px);
  z-index: 1;
  mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.82), transparent);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}
.hero-media,
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-media {
  background:
    radial-gradient(circle at 74% 30%, rgba(37, 213, 255, .32), transparent 18rem),
    radial-gradient(circle at 82% 66%, rgba(255, 139, 31, .28), transparent 16rem);
  mix-blend-mode: screen;
  opacity: .82;
  animation: energyDrift 9s var(--ease) infinite alternate;
}
.hero-canvas {
  opacity: .9;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 22px 82px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: #bfefff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 22px rgba(37, 213, 255, .78);
}
.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 5.4rem);
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}
.hero-lead {
  max-width: 720px;
  margin: 1.35rem 0 0;
  color: #dbe7f4;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .76rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.button.primary {
  background: linear-gradient(135deg, var(--accent), #ffd266);
  color: #111111;
  box-shadow: 0 18px 40px rgba(255, 139, 31, .26);
}
.button.secondary {
  border: 1px solid rgba(255,255,255,.42);
  color: var(--white);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
}
.button:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 20px 44px rgba(8, 16, 26, .18); }

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 84px;
}
.legacy-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86)),
    radial-gradient(circle at 0 0, rgba(37, 213, 255, .11), transparent 22rem);
  border: 1px solid rgba(200, 211, 222, .9);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 23, 34, .07);
  padding: clamp(22px, 4vw, 46px);
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow .24s var(--ease);
}
.reveal-ready .legacy-section {
  transform: translateY(18px);
  opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease), box-shadow .24s var(--ease);
}
.reveal-ready .legacy-section.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.legacy-section:hover {
  box-shadow: var(--shadow);
}
.legacy-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--accent), var(--lime));
}
.legacy-section h1,
.legacy-section h2 {
  line-height: 1.08;
  margin: 0 0 1rem;
}
.legacy-section h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.legacy-section h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); color: var(--blue-dark); }
.legacy-section h3 {
  margin: 2rem 0 .55rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 1.25rem;
}
.legacy-section p,
.legacy-section li { color: #2e3948; font-size: 1.02rem; }
.legacy-section ul { padding-left: 1.2rem; }
.legacy-section li { margin: .35rem 0; }
.legacy-section strong { color: var(--ink); }
.legacy-section > img:first-child,
#imgTestata,
#imgTestataHome {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(9, 22, 36, .12);
}
.legacy-section p img,
.legacy-section h3 + p img,
.legacy-section img.justifyleft {
  width: min(220px, 100%);
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(9, 22, 36, .1);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
  margin: .25rem 1.25rem 1rem 0;
  float: left;
}
.legacy-section p img:hover,
.legacy-section h3 + p img:hover,
.legacy-section img.justifyleft:hover {
  transform: translateY(-3px) rotate(.35deg);
  box-shadow: 0 18px 34px rgba(9, 22, 36, .16);
}
.legacy-section::after { content: ""; display: table; clear: both; }
.legacy-contentExtra .scroll ul,
.home-page .legacy-contentExtra ul {
  columns: 2;
  column-gap: 42px;
}
.gallery ul,
.pgwSlider {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery li,
.pgwSlider li { margin: 0; }
.gallery img,
.pgwSlider img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .28s var(--ease), filter .28s var(--ease);
}
.gallery img:hover,
.pgwSlider img:hover {
  transform: translateY(-4px) scale(1.018);
  filter: saturate(1.08) contrast(1.04);
}

.site-footer {
  background:
    radial-gradient(circle at 82% 0, rgba(37, 213, 255, .18), transparent 20rem),
    #08111c;
  color: #dfe8f2;
}
.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px;
  align-items: start;
}
.site-footer p { margin: .35rem 0 0; color: #aebccd; }
.site-footer a { color: #dfe8f2; }
address { font-style: normal; display: grid; gap: .25rem; }
.legal-links { display: flex; flex-direction: column; gap: .25rem; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    max-height: calc(100vh - 78px);
    overflow: auto;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: .2s ease;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav > ul { display: block; padding: 12px 22px 24px; }
  .nav-item > a { width: 100%; }
  .hero { min-height: 560px; }
  .hero::before { mask-image: none; }
  .footer-shell { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-shell { min-height: 70px; }
  .site-nav { inset: 70px 0 auto 0; }
  .hero-content { padding-bottom: 54px; }
  .hero-actions .button { width: 100%; }
  .legacy-section { padding: 20px; }
  .legacy-section p img,
  .legacy-section h3 + p img,
  .legacy-section img.justifyleft {
    float: none;
    width: 100%;
    margin: .5rem 0 1rem;
  }
  .legacy-contentExtra .scroll ul,
  .home-page .legacy-contentExtra ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .reveal-ready .legacy-section { opacity: 1; transform: none; }
  .hero-media,
  .hero-canvas { display: none; }
}

/* ── Intro strip ──────────────────────────────────────────── */
.intro-strip {
  text-align: center;
  padding: 52px 22px 36px;
  max-width: 820px;
  margin: 0 auto;
}
.intro-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blue-dark);
  margin: 0 0 .75rem;
  line-height: 1.2;
}
.intro-strip p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.7;
}

/* ── Services grid (9 card) ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 80px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(200, 211, 222, .8);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(8, 16, 28, .07);
  text-decoration: none;
  color: var(--ink);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(8, 16, 28, .14);
  border-color: rgba(0, 110, 200, .28);
  text-decoration: none;
}
.service-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .38s var(--ease), filter .38s var(--ease);
  filter: saturate(.9);
}
.service-card:hover .service-card__img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.04);
}
.service-card__img-wrap {
  overflow: hidden;
  position: relative;
}
.service-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4, 10, 20, .38));
  pointer-events: none;
}
.service-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.25;
}
.service-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .02em;
  transition: gap .2s var(--ease);
}
.service-card:hover .service-card__cta { gap: .6rem; }
.service-card__cta::after { content: "→"; }

/* reveal animation for cards */
.reveal-ready .service-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.reveal-ready .service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-ready .service-card:hover { transform: translateY(-6px) !important; }

/* stagger delays */
.services-grid .service-card:nth-child(1) { transition-delay: .05s; }
.services-grid .service-card:nth-child(2) { transition-delay: .10s; }
.services-grid .service-card:nth-child(3) { transition-delay: .15s; }
.services-grid .service-card:nth-child(4) { transition-delay: .20s; }
.services-grid .service-card:nth-child(5) { transition-delay: .25s; }
.services-grid .service-card:nth-child(6) { transition-delay: .30s; }
.services-grid .service-card:nth-child(7) { transition-delay: .35s; }
.services-grid .service-card:nth-child(8) { transition-delay: .40s; }
.services-grid .service-card:nth-child(9) { transition-delay: .45s; }

/* ── Responsive grid ──────────────────────────────────────── */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 14px 52px; }
}

/* ── Azienda + Storia merged page ────────────────────────── */
.story-timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 1.5rem;
}
.story-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--accent));
  border-radius: 3px;
}
.story-milestone {
  position: relative;
  margin-bottom: 2rem;
}
.story-milestone::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 213, 255, .25);
}
.story-milestone h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: var(--blue-dark);
}

/* ── Google map iframe ───────────────────────────────────── */
.gmap { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.gmap iframe { width: 100%; height: 380px; border: 0; display: block; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .service-card { opacity: 1; transform: none; }
}

@keyframes energyDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

/* ── Brands layout ──────────────────────────────────────── */
.brands-section {
  margin-bottom: 2.5rem;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-dark);
  text-decoration: none;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.brand-card:hover {
}
.intro-strip p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
  line-height: 1.7;
}

/* ── Services grid (9 card) ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 80px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(200, 211, 222, .8);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(8, 16, 28, .07);
  text-decoration: none;
  color: var(--ink);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(8, 16, 28, .14);
  border-color: rgba(0, 110, 200, .28);
  text-decoration: none;
}
.service-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform .38s var(--ease), filter .38s var(--ease);
  filter: saturate(.9);
}
.service-card:hover .service-card__img {
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.04);
}
.service-card__img-wrap {
  overflow: hidden;
  position: relative;
}
.service-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4, 10, 20, .38));
  pointer-events: none;
}
.service-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.25;
}
.service-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .02em;
  transition: gap .2s var(--ease);
}
.service-card:hover .service-card__cta { gap: .6rem; }
.service-card__cta::after { content: "→"; }

/* reveal animation for cards */
.reveal-ready .service-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.reveal-ready .service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-ready .service-card:hover { transform: translateY(-6px) !important; }

/* stagger delays */
.services-grid .service-card:nth-child(1) { transition-delay: .05s; }
.services-grid .service-card:nth-child(2) { transition-delay: .10s; }
.services-grid .service-card:nth-child(3) { transition-delay: .15s; }
.services-grid .service-card:nth-child(4) { transition-delay: .20s; }
.services-grid .service-card:nth-child(5) { transition-delay: .25s; }
.services-grid .service-card:nth-child(6) { transition-delay: .30s; }
.services-grid .service-card:nth-child(7) { transition-delay: .35s; }
.services-grid .service-card:nth-child(8) { transition-delay: .40s; }
.services-grid .service-card:nth-child(9) { transition-delay: .45s; }

/* ── Responsive grid ──────────────────────────────────────── */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 14px 52px; }
}

/* ── Azienda + Storia merged page ────────────────────────── */
.story-timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 1.5rem;
}
.story-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), var(--accent));
  border-radius: 3px;
}
.story-milestone {
  position: relative;
  margin-bottom: 2rem;
}
.story-milestone::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 213, 255, .25);
}
.story-milestone h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  color: var(--blue-dark);
}

/* ── Google map iframe ───────────────────────────────────── */
.gmap { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.gmap iframe { width: 100%; height: 380px; border: 0; display: block; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .service-card { opacity: 1; transform: none; }
}

@keyframes energyDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

/* ── Brands layout ──────────────────────────────────────── */
.brands-section {
  margin-bottom: 2.5rem;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-dark);
  text-decoration: none;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(8, 16, 28, .08);
  border-color: rgba(0, 110, 200, .4);
  text-decoration: none;
}
.brand-card.highlight {
  background: linear-gradient(135deg, rgba(37, 213, 255, .08), transparent);
  border-color: rgba(37, 213, 255, .4);
}

/* ── Clients layout ─────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.client-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 150px;
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(8, 16, 28, .08);
}
.client-logo {
  max-width: 120px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.client-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  margin: 0;
}
