/* ==========================================================================
   Studio Scozzi — Ingegnere Civile
   Palette: blu #0085b2 (accent), arancione #f42b00 (secondary)
   File: css/style.css
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #0085b2;
  --blue-dark: #006083;
  --blue-deep: #04445f;
  --blue-darker: #03293c;
  --blue-light: #22a7d4;
  --blue-soft: #e6f4fa;
  --blue-mist: rgba(0, 133, 178, 0.08);

  --orange: #f42b00;
  --orange-bright: #ff5a2b;
  --orange-soft: #ffeae3;

  --ink: #1c2b36;
  --ink-soft: #44525e;
  --slate: #5c6b78;
  --line: #e2e8ee;
  --paper: #ffffff;
  --paper-soft: #f6f9fb;
  --paper-dark: #0d1b26;

  --grad-blue: linear-gradient(135deg, #0085b2 0%, #04445f 100%);
  --grad-hero: linear-gradient(120deg, #04445f 0%, #0085b2 55%, #0e6e96 100%);
  --grad-orange: linear-gradient(135deg, #ff5a2b 0%, #f42b00 100%);
  --grad-skill: linear-gradient(135deg, #e6f4fa 0%, #f4fafd 100%);

  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(4, 68, 95, 0.06);
  --shadow-md: 0 12px 32px rgba(4, 68, 95, 0.12);
  --shadow-lg: 0 30px 70px rgba(4, 68, 95, 0.18);
  --shadow-orange: 0 14px 34px rgba(244, 43, 0, 0.28);

  --font: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", "Open Sans", system-ui, sans-serif;

  --container: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--orange); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.6em; line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }

::selection { background: var(--blue); color: #fff; }

/* Scrollbar (webkit) — sottile e a tema */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-soft); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--blue-dark)); border-radius: 8px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

section { position: relative; }

.section-header {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 84px);
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.kicker::before,
.kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.kicker--light { color: #9fd4ea; }

.section-title {
  font-size: clamp(30px, 4.6vw, 46px);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }

.btn--primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(244, 43, 0, 0.38); color: #fff; }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; color: var(--blue-dark); transform: translateY(-3px); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-md); }

.btn--sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Arrow link ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--orange);
}
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.arrow-link:hover { color: var(--blue); }
.arrow-link:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   HERO (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--grad-hero);
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(255, 90, 43, 0.28), transparent 46%),
    radial-gradient(ellipse at 12% 85%, rgba(34, 167, 212, 0.35), transparent 52%),
    linear-gradient(118deg, #03293c 0%, #05506f 48%, #0085b2 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9), transparent 78%);
}

.hero__glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 43, 0.32), transparent 62%);
  top: -140px;
  right: -120px;
  filter: blur(10px);
  animation: glow-float 9s ease-in-out infinite;
}
.hero__glow--2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 167, 212, 0.4), transparent 60%);
  bottom: -160px;
  left: -100px;
  top: auto;
  right: auto;
  animation-delay: -4.5s;
}

@keyframes glow-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(34px) scale(1.06); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(48px, 8vh, 104px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d7edf7;
  margin-bottom: 26px;
}
.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 0 rgba(255, 90, 43, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 43, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 90, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 43, 0); }
}

.hero__title {
  font-size: clamp(38px, 6vw, 68px);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  line-height: 1.06;
}
.hero__title .hl { color: var(--orange-bright); position: relative; }
.hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: rgba(255, 90, 43, 0.22);
  z-index: -1;
}

.hero__text {
  font-size: clamp(16.5px, 2vw, 19px);
  color: #c9e2ef;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  font-size: 14.5px;
  color: #a9cdde;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--orange-bright); }

/* Hero visual: card tecnica */
.hero__visual { position: relative; }

.bldg-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.35);
  animation: card-in 1.1s var(--ease-out) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bldg { position: relative; margin: 0 auto; max-width: 300px; }

.bldg__ground {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -6px;
  height: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  border-radius: 2px;
  transform: perspective(300px) rotateX(58deg);
}

.bldg__body {
  position: relative;
  background: linear-gradient(160deg, #0f6f96 0%, #0a5477 55%, #08415f 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 26px 44px rgba(0,0,0,0.38);
  overflow: hidden;
}

.bldg__floor { position: relative; height: 104px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.bldg__floor:last-child { border-bottom: none; }

.bldg__window {
  position: absolute;
  width: 22px;
  height: 30px;
  background: linear-gradient(180deg, #ffe9b0, #ffb14d);
  border-radius: 3px;
  top: 22px;
  box-shadow: 0 0 12px rgba(255, 200, 80, 0.55), inset 0 -3px 6px rgba(244, 43, 0, 0.45);
  animation: window-glow 4.2s ease-in-out infinite;
}
.bldg__window--2 { animation-delay: 1.4s; }
.bldg__window--3 { animation-delay: 2.8s; }
@keyframes window-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 200, 80, 0.5), inset 0 -3px 6px rgba(244, 43, 0, 0.45); }
  50% { box-shadow: 0 0 20px rgba(255, 200, 80, 0.95), inset 0 -3px 6px rgba(244, 43, 0, 0.45); }
}

.bldg__roof {
  height: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom: none;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.2);
}

.bldg__floats {
  position: absolute;
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #eaf6fc;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  animation: float-y 5.5s ease-in-out infinite;
}
.bldg__float--1 { top: 12%; left: -34px; }
.bldg__float--2 { bottom: 26%; right: -46px; animation-delay: -2.8s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__scroll .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--orange-bright);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Mini hero (pagina progetti)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(96px, 15vh, 150px) 0 clamp(64px, 9vh, 100px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 20%, rgba(255, 90, 43, 0.24), transparent 48%),
    linear-gradient(118deg, #03293c 0%, #05506f 52%, #0085b2 100%);
  isolation: isolate;
}
.page-hero .hero__grid { z-index: -1; }
.page-hero__breadcrumb {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd4ea;
  margin-bottom: 18px;
}
.page-hero__breadcrumb a { color: #9fd4ea; font-weight: 600; }
.page-hero__breadcrumb a:hover { color: var(--orange-bright); }
.page-hero__title {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero__title .hl { color: var(--orange-bright); }
.page-hero__text {
  color: #c9e2ef;
  font-size: clamp(16.5px, 2vw, 19px);
  max-width: 640px;
}
.page-hero__line {
  width: 88px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-orange);
  margin: 22px 0 20px;
}

/* --------------------------------------------------------------------------
   MARQUEE (banda tecnica)
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--blue-dark);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfe3f2;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.marquee__track span::after {
  content: "✦";
  color: var(--orange-bright);
  font-size: 12px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   SERVIZI (grid cards)
   -------------------------------------------------------------------------- */
.services {
  padding: clamp(84px, 11vw, 130px) 0;
  background: var(--paper);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.4s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--blue-mist);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-out);
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card:hover .service-card__icon {
  background: var(--grad-orange);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
  box-shadow: var(--shadow-orange);
}

.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { font-size: 15.5px; color: var(--slate); margin-bottom: 0; }
.service-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #eef4f8;
  line-height: 1;
  transition: color 0.4s ease;
}
.service-card:hover .service-card__num { color: var(--orange-soft); }

/* --------------------------------------------------------------------------
   CHI SONO (about / biography)
   -------------------------------------------------------------------------- */
.about {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--paper-soft);
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 133, 178, 0.1), transparent 62%);
  pointer-events: none;
}

.about__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.about__media { position: relative; }

.about__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
}
.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.about__frame:hover img { transform: scale(1.05); }

.about__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(4, 68, 95, 0.05), rgba(4, 68, 95, 0.28));
}

.about__deco {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
  border: 3px solid var(--blue);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.55;
}
.about__deco--2 {
  top: auto;
  right: auto;
  bottom: -20px;
  left: -20px;
  border-color: var(--orange);
}

.about__chip {
  position: absolute;
  bottom: 26px;
  left: -20px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 16px 24px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.about__chip b {
  font-size: 30px;
  line-height: 1;
  color: var(--orange-bright);
  font-weight: 700;
}
.about__chip span { font-size: 13px; color: #b9ccd9; line-height: 1.35; }

.about__content .kicker { margin-bottom: 14px; }
.about__content h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
.about__content p { color: var(--ink-soft); }

.about__list {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 22px;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.about__list svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--orange);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   COUNTER (stats)
   -------------------------------------------------------------------------- */
.counter {
  position: relative;
  color: #fff;
  padding: clamp(70px, 9vw, 110px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255, 90, 43, 0.2), transparent 46%),
    linear-gradient(120deg, #03293c 0%, #05506f 60%, #0e6e96 100%);
  isolation: isolate;
}
.counter .hero__grid { z-index: -1; opacity: 0.7; }

.counter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  text-align: center;
}

.stat {
  position: relative;
  padding: clamp(20px, 2.4vw, 34px) clamp(12px, 1.6vw, 24px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
}
.stat:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 90, 43, 0.55);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}
.stat__value .suffix { color: var(--orange-bright); }
.stat__label {
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfe3f2;
  font-weight: 600;
}
.stat__bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  margin-top: 16px;
  overflow: hidden;
}
.stat__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-orange);
  transition: width 1.6s var(--ease-out) 0.3s;
}

/* --------------------------------------------------------------------------
   PROCESSO (come lavoro — timeline)
   -------------------------------------------------------------------------- */
.process {
  padding: clamp(84px, 11vw, 130px) 0;
  background: var(--paper);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}

.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s ease;
}
.step:hover {
  transform: translateY(-8px);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.step__num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--slate); margin: 0; }
.step::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -14px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.step:last-child::after { display: none; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  color: #fff;
  padding: clamp(64px, 8vw, 96px) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 30%, rgba(255, 90, 43, 0.3), transparent 48%),
    linear-gradient(120deg, #0085b2 0%, #04445f 100%);
  isolation: isolate;
}
.cta-band .hero__grid { z-index: -1; opacity: 0.6; }

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 0 0 8px;
}
.cta-band p { color: #c9e2ef; margin: 0; font-size: 16.5px; }
.cta-band .btn { flex: none; }

/* --------------------------------------------------------------------------
   CONTATTI
   -------------------------------------------------------------------------- */
.contacts {
  padding: clamp(84px, 11vw, 130px) 0;
  background: var(--paper-soft);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contacts__card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}

.contact-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-mist);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.contact-row__icon svg { width: 24px; height: 24px; }
.contact-row h4 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin: 0 0 4px; }
.contact-row p { margin: 0; color: var(--ink); font-weight: 600; font-size: 16.5px; line-height: 1.55; }
.contact-row a { color: var(--ink); font-weight: 600; }
.contact-row a:hover { color: var(--orange); }

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: saturate(0.92);
}

/* --------------------------------------------------------------------------
   SEZIONE PROGETTI — home (anteprima)
   -------------------------------------------------------------------------- */
.preview {
  padding: clamp(84px, 11vw, 130px) 0;
  background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 100%);
}

.preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue-deep);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.08); }
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, transparent 55%, rgba(3, 41, 60, 0.75));
}
.project-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--grad-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-orange);
}
.project-card__year {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.project-card__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card__meta {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.project-card p { font-size: 15px; color: var(--slate); margin-bottom: 18px; flex: 1; }
.project-card__arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  transform: rotate(-45deg) translateX(-8px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), background 0.3s ease;
}
.project-card__arrow svg { width: 18px; height: 18px; }
.project-card:hover .project-card__arrow { opacity: 1; transform: rotate(0) translateX(0); }
.project-card__arrow:hover { background: var(--grad-orange); }

/* --------------------------------------------------------------------------
   PAGINA PROGETTI
   -------------------------------------------------------------------------- */
.projects-page {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--paper-soft);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.filter-btn {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filter-btn.active {
  background: var(--grad-orange);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 36px);
}

.project-item {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  animation: fade-slide-up 0.8s var(--ease-out) both;
}
.project-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-item__media {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: var(--blue-deep);
}
.project-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.project-item:hover .project-item__media img { transform: scale(1.06); }
.project-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(188deg, rgba(3, 41, 60, 0.12) 30%, rgba(3, 41, 60, 0.82));
}
.project-item__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: var(--grad-orange);
  color: #fff;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-orange);
}
.project-item__year-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.project-item__body {
  padding: clamp(22px, 3vw, 32px);
  position: relative;
}
.project-item__title { font-size: clamp(20px, 2.4vw, 24px); margin-bottom: 10px; line-height: 1.28; }
.project-item__desc { font-size: 15.5px; color: var(--slate); margin-bottom: 18px; }
.project-item__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.spec {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-mist);
  border-radius: 999px;
  padding: 6px 14px;
  letter-spacing: 0.04em;
}
.project-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.project-item__client {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.project-item__client b { color: var(--ink); }
.project-item__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.project-item__gallery img {
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0.92;
}
.project-item__gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.project-item--hidden { display: none; }

/* Dettagli tecnici (elemento <details>) */
.project-item__details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
  margin: 0 0 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.project-item__details[open] { box-shadow: var(--shadow-sm); }
.project-item__details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue);
  user-select: none;
}
.project-item__details summary::-webkit-details-marker { display: none; }
.project-item__details summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-mist);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.35s var(--ease-out), background 0.3s ease, color 0.3s ease;
}
.project-item__details[open] summary::after {
  transform: rotate(45deg);
  background: var(--grad-orange);
  color: #fff;
}
.details__content { padding: 4px 18px 18px; }
.details__content h4 {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 16px 0 6px;
}
.details__content h4:first-child { margin-top: 6px; }
.details__content p { font-size: 14.5px; margin: 0 0 8px; color: var(--ink-soft); }

/* Pulsante "mostra tutto" */
.show-more-wrap { text-align: center; margin-top: clamp(36px, 5vw, 54px); }

/* --------------------------------------------------------------------------
   LIGHTBOX
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 20, 30, 0.94);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.45s var(--ease-out);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox__close:hover { background: var(--orange); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.lightbox__nav:hover { background: var(--orange); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfe6f2;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   RIVELAZIONE ALLO SCROLL (IntersectionObserver)
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 1;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-animate="left"] { transform: translateX(-44px); }
[data-animate="right"] { transform: translateX(44px); }
[data-animate="zoom"] { transform: scale(0.92); }
[data-animate].in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__glow, .bldg__window, .bldg__floats, .stat__value { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero { min-height: auto; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .counter__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin: 0 auto; }
  .about__chip { left: 12px; bottom: 18px; }
  .about__deco { display: none; }
  .contacts__grid { grid-template-columns: 1fr; }
  .preview__grid { grid-template-columns: repeat(2, 1fr); }
  .projects-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .preview__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .counter__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__meta { gap: 10px 20px; }
  .hero__scroll { display: none; }
  .about__list { grid-template-columns: 1fr; }
  .bldg__float--1 { left: -8px; }
  .bldg__float--2 { right: -8px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .filters { gap: 8px; }
  .filter-btn { padding: 9px 16px; font-size: 13.5px; }
  .project-item__gallery { grid-template-columns: repeat(2, 1fr); }
  .contacts__map iframe { min-height: 320px; }
  .stat__value { font-size: 38px; }
}
/* --------------------------------------------------------------------------
   HEADER / NAVIGAZIONE
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(4, 68, 95, 0.08);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px rgba(4, 68, 95, 0.14);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
  transition: transform 0.35s var(--ease-out);
}
.brand:hover .brand__logo { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__text small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 17px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 5px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover { color: var(--blue); background: var(--blue-mist); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--blue); }
.site-nav a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--blue-mist);
  border: 1px solid rgba(0, 133, 178, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 3px;
  background: var(--blue);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle:hover { background: rgba(0, 133, 178, 0.16); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Overlay mobile */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(3, 41, 60, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

body.nav-locked { overflow: hidden; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(4, 68, 95, 0.1);
    box-shadow: 0 26px 50px rgba(4, 68, 95, 0.18);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.45s var(--ease-out), opacity 0.35s ease, transform 0.4s var(--ease-out);
  }
  .site-nav.open {
    max-height: min(78vh, 480px);
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; padding: 18px clamp(20px, 5vw, 48px) 26px; }
  .site-nav a { display: block; padding: 14px 18px; font-size: 16.5px; border-radius: 12px; }
  .site-nav a::after { display: none; }
  .site-nav a.active { background: var(--blue-mist); }
  .brand__text strong { font-size: 15.5px; }
  .brand__logo { width: 40px; height: 40px; }
}

section[id], .page-hero { scroll-margin-top: 92px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(0, 133, 178, 0.22), transparent 46%),
    var(--paper-dark);
  color: #9fb3c1;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--blue) 55%, transparent 100%);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(52px, 7vw, 84px) 0 44px;
}
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand .brand__text strong { color: #fff; }
.footer__brand .brand__text small { color: var(--orange-bright); }
.footer__brand p { font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; max-width: 320px; }
.footer__piva {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: #cfe6f2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
}
.footer__piva b { color: var(--orange-bright); }

.footer__col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col ul a {
  color: #9fb3c1;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease, transform 0.25s var(--ease-out);
}
.footer__col ul a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.footer__col ul a:hover { color: #fff; transform: translateX(4px); }
.footer__col ul a:hover::before { opacity: 1; }

.footer__contact li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.6;
}
.footer__contact svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--blue-light); }
.footer__contact a { color: #9fb3c1; }
.footer__contact a:hover { color: #fff; }

.footer__note {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13.5px;
  color: #7991a1;
}
.footer__note a { color: #a9cdde; font-weight: 600; }
.footer__note a:hover { color: var(--orange-bright); }
.footer__note .sep { opacity: 0.4; margin: 0 4px; }

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__note { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   PAGINA PRIVACY E COOKIE
   -------------------------------------------------------------------------- */
.policy {
  padding: clamp(52px, 7vw, 84px) 0;
  background: var(--paper-soft);
}
.policy__inner {
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.policy__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 26px;
}

.prose { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.prose h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 10px; }
.prose h3 { font-size: 17.5px; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }
.prose .prose__lead {
  font-size: 17.5px;
  color: var(--ink);
  background: var(--blue-mist);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prose thead th {
  background: var(--grad-blue);
  color: #fff;
  text-align: left;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 16px;
}
.prose tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}
.prose tbody tr:nth-child(even) { background: var(--paper-soft); }
.prose tbody tr:hover { background: var(--blue-mist); }
.prose .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   PROGETTI DINAMICI (stati + layout singolo)
   -------------------------------------------------------------------------- */
.projects-status {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  color: var(--slate);
  padding: 40px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.projects-status .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 18px;
  border: 3px solid var(--blue-mist);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.projects-status.is-error .spinner { border-top-color: var(--orange); }
.projects-status p { margin: 0; font-size: 15.5px; }

.projects-list.is-single {
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin: 0 auto;
}
.projects-list.is-single .project-item {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.projects-list.is-single .project-item__media { aspect-ratio: auto; min-height: 100%; }
.projects-list.is-single .project-item__body { padding: clamp(24px, 3.4vw, 44px); }
@media (max-width: 860px) {
  .projects-list.is-single .project-item { grid-template-columns: 1fr; }
  .projects-list.is-single .project-item__media { aspect-ratio: 16 / 10; min-height: auto; }
}

.filters { display: none; }
.filters.has-filters { display: flex; }

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
}
.filter-btn.active .filter-count { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* Card CTA nella preview della home */
.project-card--cta .project-card__media::after {
  background: linear-gradient(188deg, rgba(4, 68, 95, 0.25) 30%, rgba(3, 41, 60, 0.9));
}
.project-card--cta .project-card__meta { color: var(--orange); }