/* ============================================================
   GABRIELE LEITA — Automazione Industriale  v3
   Brand: #C0272D crimson | #0F172A dark | Montserrat + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --red:        #C0272D;
  --red-dark:   #9B1D22;
  --red-light:  #D93237;
  --dark:       #0F172A;
  --dark-2:     #1E293B;
  --dark-3:     #334155;
  --gray:       #64748B;
  --gray-light: #94A3B8;
  --border:     #E2E8F0;
  --light:      #F8FAFC;
  --white:      #FFFFFF;
  --fh: 'Montserrat', sans-serif;
  --fb: 'Inter', sans-serif;
  --r:  8px;
  --rl: 16px;
  --sh: 0 4px 24px rgba(0,0,0,.07);
  --shl: 0 12px 48px rgba(0,0,0,.14);
  --t:  .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fb);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--fh); font-weight: 700; line-height: 1.15; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.label--light { color: rgba(255,255,255,.55); }
.label--light::before { background: rgba(255,255,255,.35); }

.title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -.02em;
  font-weight: 800;
}
.title span { color: var(--red); }
.title--light { color: var(--white); }

.sub {
  font-size: .98rem;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.78;
  font-weight: 400;
}
.sub--light { color: rgba(255,255,255,.6); }

/* ── Layout ───────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 100px 0; }
.s-dark     { background: var(--dark); }
.s-gray     { background: var(--light); }
.tc         { text-align: center; }
.tc .sub    { margin: 0 auto; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-family: var(--fh);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192,39,45,.3);
}
.btn-red:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,39,45,.42);
}
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--light); transform: translateY(-2px); }
.btn-outline-w {
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
}
.btn-outline-w:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline-d { border: 1.5px solid var(--dark-3); color: var(--dark); }
.btn-outline-d:hover { border-color: var(--dark); background: var(--dark); color: var(--white); }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,23,42,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
  transition: box-shadow var(--t);
}
.header.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.2);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 1px 4px rgba(255,255,255,.55)) drop-shadow(0 -1px 4px rgba(255,255,255,.55));
  transition: opacity var(--t);
}
.header__logo:hover img { opacity: .85; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  padding: 7px 14px;
  font-family: var(--fh);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  border-radius: 6px;
  transition: var(--t);
  position: relative;
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* ── Mobile menu — proper animation with visibility ─────────── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(15,23,42,.98);
  backdrop-filter: blur(16px);
  padding: 24px 28px 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  z-index: 999;
  /* animate with visibility+opacity instead of display */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  pointer-events: none;
}
.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-nav .nav__link {
  display: block;
  padding: 14px 0;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
}
.mobile-nav .nav__link:last-of-type { border-bottom: none; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 20px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--dark);
  background-image:
    linear-gradient(110deg, rgba(15,23,42,.96) 42%, rgba(15,23,42,.52) 100%),
    url('https://images.unsplash.com/photo-1716191299980-a6e8827ba10b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center right;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: 10%; right: 5%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(192,39,45,.14) 0%, transparent 68%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding-top: 90px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(192,39,45,.1);
  border: 1px solid rgba(192,39,45,.25);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 32px;
}
.hero__dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2.4s ease infinite;
}
.hero__eyebrow-text {
  font-family: var(--fh);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 140, 140, .9);
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,39,45,.6); }
  50%      { box-shadow: 0 0 0 7px transparent; }
}
.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.03em;
  margin-bottom: 24px;
  line-height: 1.06;
}
.hero__title em {
  font-style: normal;
  color: var(--red);
}
.hero__sub {
  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  color: rgba(255,255,255,.58);
  max-width: 500px;
  line-height: 1.78;
  margin-bottom: 40px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Hero phone shortcut */
.hero__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  transition: color var(--t);
}
.hero__phone svg { width: 14px; height: 14px; color: var(--red); }
.hero__phone a { color: rgba(255,255,255,.65); font-weight: 600; transition: var(--t); }
.hero__phone a:hover { color: var(--white); }

.hero__bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding-bottom: 40px;
}
.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
}
.hero__stat {
  flex: 1;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child  { border-right: none; }
.hero__stat-num {
  font-family: var(--fh);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.03em;
}
.hero__stat-num .red { color: var(--red); }
.hero__stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  letter-spacing: .05em;
  margin-top: 6px;
  text-transform: uppercase;
  font-family: var(--fh);
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  bottom: 36px; right: 32px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  z-index: 2; cursor: pointer;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.35));
  animation: scrollLine 2.2s ease infinite;
}
@keyframes scrollLine {
  0%  { transform: scaleY(0); transform-origin: top; }
  49% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}
.hero__scroll-text {
  font-family: var(--fh);
  font-size: .58rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
  writing-mode: vertical-rl;
}

/* ── Strengths ────────────────────────────────────────────── */
.strengths { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; }
.strength {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 36px 30px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.strength::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--t);
}
.strength:hover { transform: translateY(-5px); box-shadow: var(--shl); }
.strength:hover::before { transform: scaleX(1); }
.strength__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(192,39,45,.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.strength__icon svg { width: 22px; height: 22px; color: var(--red); }
.strength h3 { font-size: 1.02rem; margin-bottom: 10px; font-weight: 700; }
.strength p  { font-size: .875rem; color: var(--gray); line-height: 1.72; }

/* ── Process ──────────────────────────────────────────────── */
.process-wrap { position: relative; margin-top: 64px; }
.process-line {
  position: absolute;
  top: 36px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--red) 50%, var(--border) 80%, transparent);
}
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; z-index: 1; }
.process-step { text-align: center; }
.process-step__bubble {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  transition: var(--t);
  position: relative;
}
.process-step__bubble svg { width: 26px; height: 26px; color: var(--gray); transition: var(--t); }
.process-step:hover .process-step__bubble {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 10px rgba(192,39,45,.08);
}
.process-step:hover .process-step__bubble svg { color: var(--white); }
.process-step__num {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  font-family: var(--fh);
  font-size: .58rem; font-weight: 800;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.process-step h3 { font-size: .93rem; font-weight: 700; margin-bottom: 8px; }
.process-step p  { font-size: .82rem; color: var(--gray); line-height: 1.65; }

/* ── Service photo cards ──────────────────────────────────── */
.services-photo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 60px;
}
.spc {
  border-radius: var(--rl);
  overflow: hidden;
  position: relative;
  height: 320px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform var(--t), box-shadow var(--t);
}
.spc::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.96) 25%, rgba(15,23,42,.1) 70%);
  transition: background var(--t);
}
.spc:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.35); }
.spc:hover::after {
  background: linear-gradient(to top, rgba(140,22,28,.96) 15%, rgba(15,23,42,.45) 75%);
}
.spc__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  z-index: 1;
}
.spc__num {
  font-family: var(--fh); font-size: .58rem; font-weight: 700;
  letter-spacing: .12em; color: rgba(255,255,255,.4);
  margin-bottom: 7px; text-transform: uppercase;
}
.spc h3 { font-size: .97rem; color: var(--white); margin-bottom: 0; font-weight: 700; }
.spc p {
  font-size: .8rem; color: rgba(255,255,255,.58);
  line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .35s ease, margin .35s ease;
  margin-top: 0;
}
.spc:hover p { max-height: 72px; opacity: 1; margin-top: 8px; }
.spc__arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--fh); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 12px; transition: color var(--t);
}
.spc:hover .spc__arrow { color: var(--white); }
.spc__arrow svg { width: 12px; height: 12px; transition: transform var(--t); }
.spc:hover .spc__arrow svg { transform: translateX(3px); }
.spc-1 { background-image: url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?auto=format&fit=crop&w=800&q=80'); }
.spc-2 { background-image: url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=800&q=80'); }
.spc-3 { background-image: url('https://images.unsplash.com/photo-1581091212991-8891c7d4bd9b?auto=format&fit=crop&w=800&q=80'); }
.spc-4 { background-image: url('https://images.unsplash.com/photo-1601462904263-f2fa0c851cb9?auto=format&fit=crop&w=800&q=80'); }
.spc-5 { background-image: url('https://images.unsplash.com/photo-1655393001768-d946c97d6fd1?auto=format&fit=crop&w=800&q=80'); }
.spc-6 { background-image: url('https://plus.unsplash.com/premium_photo-1682928136660-8cbeaf4941b2?auto=format&fit=crop&w=800&q=80'); }

/* ── About split ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-photos { position: relative; }
.about-photos__main { border-radius: var(--rl); overflow: hidden; box-shadow: var(--shl); }
.about-photos__main img {
  width: 100%; height: 520px;
  object-fit: cover; object-position: top center;
}
.about-photos__secondary {
  position: absolute;
  bottom: -28px; right: -28px;
  width: 180px; height: 145px;
  border-radius: var(--rl); overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shl);
}
.about-photos__secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  top: 32px; left: -24px;
  background: var(--red);
  border-radius: var(--rl);
  padding: 18px 22px;
  box-shadow: 0 8px 28px rgba(192,39,45,.38);
  z-index: 2;
}
.about-badge-num { font-family: var(--fh); font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1; }
.about-badge-text { font-size: .7rem; font-weight: 600; font-family: var(--fh); color: rgba(255,255,255,.7); margin-top: 4px; max-width: 88px; }

.about-content p { font-size: .92rem; color: var(--gray); line-height: 1.78; margin-bottom: 14px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 30px; }
.about-tag {
  padding: 5px 13px;
  background: rgba(192,39,45,.05);
  border: 1px solid rgba(192,39,45,.15);
  color: var(--red-dark);
  border-radius: 100px;
  font-size: .74rem; font-weight: 700; font-family: var(--fh);
}

/* ── Quote ────────────────────────────────────────────────── */
.quote-section {
  /* no parallax - broken on iOS */
  background:
    linear-gradient(rgba(15,23,42,.88), rgba(15,23,42,.88)),
    url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 96px 0;
}
.quote-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: .6;
  color: var(--red);
  opacity: .4;
  margin-bottom: 24px;
  display: block;
}
.quote-text {
  font-family: var(--fh);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 36px;
}
.quote-author {
  display: flex; align-items: center;
  justify-content: center; gap: 14px;
}
.quote-author img {
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover; object-position: top;
  border: 2px solid var(--red);
}
.quote-author-name { font-family: var(--fh); font-size: .85rem; font-weight: 700; color: var(--white); }
.quote-author-role { font-size: .73rem; color: rgba(255,255,255,.45); margin-top: 3px; }

/* ── Blog preview ─────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  transition: var(--t);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shl); border-color: rgba(192,39,45,.2); }
.blog-card__img {
  height: 200px;
  background-size: cover; background-position: center;
  flex-shrink: 0;
  position: relative;
}
.blog-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15,23,42,.5));
}
.bi-1 { background-image: url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?auto=format&fit=crop&w=600&q=75'); }
.bi-2 { background-image: url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=600&q=75'); }
.bi-3 { background-image: url('https://images.unsplash.com/photo-1581091212991-8891c7d4bd9b?auto=format&fit=crop&w=600&q=75'); }

.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.blog-card__cat {
  background: rgba(192,39,45,.08);
  color: var(--red-dark);
  border: 1px solid rgba(192,39,45,.15);
  border-radius: 4px;
  padding: 3px 9px;
  font-family: var(--fh); font-size: .65rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.blog-card__date { font-size: .75rem; color: var(--gray-light); }
.blog-card__read { font-size: .73rem; color: var(--gray-light); margin-left: auto; }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.35; color: var(--dark); }
.blog-card p { font-size: .85rem; color: var(--gray); line-height: 1.68; flex: 1; }
.blog-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fh); font-size: .73rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--red); margin-top: 18px;
  transition: var(--t);
}
.blog-card__link svg { width: 13px; height: 13px; transition: transform var(--t); }
.blog-card:hover .blog-card__link svg { transform: translateX(3px); }

/* Blog page */
.blog-list-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; margin-top: 56px; }
.blog-list-main > .blog-card { margin-bottom: 28px; flex-direction: row; }
.blog-list-main > .blog-card .blog-card__img { width: 280px; height: auto; min-height: 200px; flex-shrink: 0; }
.blog-sidebar { }
.sidebar-box {
  background: var(--light);
  border-radius: var(--rl);
  padding: 28px 24px;
  margin-bottom: 24px;
}
.sidebar-box h4 {
  font-size: .8rem; font-weight: 800; font-family: var(--fh);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 16px;
}
.sidebar-tag {
  display: inline-block;
  padding: 5px 12px; margin: 4px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; font-size: .78rem; color: var(--gray);
  transition: var(--t);
}
.sidebar-tag:hover { border-color: var(--red); color: var(--red); }

/* Single article */
.article-content { max-width: 760px; margin: 0 auto; padding: 80px 0; }
.article-hero-img {
  width: 100%; height: 420px;
  object-fit: cover; border-radius: var(--rl);
  margin-bottom: 48px;
  box-shadow: var(--shl);
}
.article-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; letter-spacing: -.025em;
  margin-bottom: 24px; line-height: 1.2;
}
.article-content h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.article-content h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.article-content p { font-size: .95rem; color: var(--gray); line-height: 1.85; margin-bottom: 18px; }
.article-content ul { margin: 12px 0 18px 20px; }
.article-content li { font-size: .95rem; color: var(--gray); line-height: 1.8; padding: 4px 0; position: relative; }
.article-content li::before { content: '—'; position: absolute; left: -20px; color: var(--red); }
.article-content strong { color: var(--dark); font-weight: 600; }
.article-pullquote {
  border-left: 3px solid var(--red);
  padding: 16px 24px;
  background: rgba(192,39,45,.04);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 28px 0;
}
.article-pullquote p { font-style: italic; font-size: 1rem; color: var(--dark-2); margin: 0; font-weight: 500; }

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: var(--red);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-band__inner {
  position: relative;
  display: flex; align-items: center;
  justify-content: space-between; gap: 48px;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); color: var(--white); max-width: 540px; font-weight: 800; }
.cta-band p  { color: rgba(255,255,255,.72); margin-top: 10px; font-size: .93rem; }

/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  padding: 148px 0 88px;
  position: relative; overflow: hidden;
}
.page-hero--chi {
  background-image:
    linear-gradient(rgba(15,23,42,.86), rgba(15,23,42,.86)),
    url('https://images.unsplash.com/photo-1581091212991-8891c7d4bd9b?auto=format&fit=crop&w=1920&q=80');
}
.page-hero--servizi {
  background-image:
    linear-gradient(rgba(15,23,42,.86), rgba(15,23,42,.86)),
    url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=1920&q=80');
}
.page-hero--contatti {
  background-image:
    linear-gradient(rgba(15,23,42,.9), rgba(15,23,42,.9)),
    url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?auto=format&fit=crop&w=1920&q=80');
}
.page-hero--blog {
  background-image:
    linear-gradient(rgba(15,23,42,.9), rgba(15,23,42,.9)),
    url('https://images.unsplash.com/photo-1655393001768-d946c97d6fd1?auto=format&fit=crop&w=1920&q=80');
}
.page-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero__content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .76rem; color: rgba(255,255,255,.32);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: var(--t); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb svg { width: 10px; height: 10px; }
.breadcrumb span { color: var(--red); font-weight: 600; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white); letter-spacing: -.025em;
  margin-bottom: 14px; font-weight: 900;
}
.page-hero p { color: rgba(255,255,255,.58); font-size: 1.02rem; max-width: 540px; line-height: 1.72; }

/* ── Mission ──────────────────────────────────────────────── */
.mission-block {
  display: grid; grid-template-columns: 180px 1fr; gap: 56px;
  align-items: start; padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.mission-block:last-of-type { border-bottom: none; }
.mission-block__num { font-family: var(--fh); font-size: 4rem; font-weight: 900; color: var(--red); opacity: .1; line-height: 1; }
.mission-block__tag { font-family: var(--fh); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: -8px; }
.mission-block h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.mission-block p  { font-size: .91rem; color: var(--gray); line-height: 1.78; }

/* ── Values ───────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.value-card {
  text-align: center; padding: 40px 24px;
  border-radius: var(--rl);
  background: rgba(192,39,45,.03);
  border: 1px solid rgba(192,39,45,.1);
  transition: var(--t);
}
.value-card:hover { background: rgba(192,39,45,.07); transform: translateY(-3px); }
.value-card svg { width: 34px; height: 34px; color: var(--red); margin: 0 auto 14px; }
.value-card h4 { font-size: .96rem; font-weight: 700; margin-bottom: 10px; }
.value-card p  { font-size: .84rem; color: var(--gray); line-height: 1.65; }

/* ── Service list ─────────────────────────────────────────── */
.service-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 60px; }
.service-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); overflow: hidden; transition: var(--t);
  display: flex; flex-direction: column;
}
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shl); border-color: rgba(192,39,45,.22); }
.service-item__img {
  height: 160px; background-size: cover; background-position: center;
  flex-shrink: 0;
}
.si-1 { background-image: url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?auto=format&fit=crop&w=600&q=75'); }
.si-2 { background-image: url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=600&q=75'); }
.si-3 { background-image: url('https://images.unsplash.com/photo-1581091212991-8891c7d4bd9b?auto=format&fit=crop&w=600&q=75'); }
.si-4 { background-image: url('https://images.unsplash.com/photo-1601462904263-f2fa0c851cb9?auto=format&fit=crop&w=600&q=75'); }
.si-5 { background-image: url('https://images.unsplash.com/photo-1655393001768-d946c97d6fd1?auto=format&fit=crop&w=600&q=75'); }
.si-6 { background-image: url('https://plus.unsplash.com/premium_photo-1682928136660-8cbeaf4941b2?auto=format&fit=crop&w=600&q=75'); }
.service-item__body { padding: 28px 24px; flex: 1; }
.service-item__num { font-family: var(--fh); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.service-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-item p  { font-size: .875rem; color: var(--gray); line-height: 1.7; }
.service-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service-item__tag { font-size: .68rem; font-weight: 600; font-family: var(--fh); padding: 4px 9px; border-radius: 4px; background: var(--light); color: var(--gray); border: 1px solid var(--border); }

/* ── Contacts ─────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; margin-top: 56px; }
.contact-cards  { display: flex; flex-direction: column; gap: 16px; }
.ccard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 22px 20px;
  display: flex; gap: 16px; align-items: flex-start; transition: var(--t);
}
.ccard:hover { border-color: rgba(192,39,45,.28); box-shadow: var(--sh); }
.ccard__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px; background: rgba(192,39,45,.07);
  display: flex; align-items: center; justify-content: center;
}
.ccard__icon svg { width: 18px; height: 18px; color: var(--red); }
.ccard__label { font-size: .68rem; font-weight: 700; font-family: var(--fh); letter-spacing: .08em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.ccard__value { font-size: .95rem; font-weight: 600; color: var(--dark); }
.ccard__value a { color: var(--dark); transition: var(--t); }
.ccard__value a:hover { color: var(--red); }

.contact-form-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 44px 36px; box-shadow: var(--sh);
}
.contact-form-box h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.contact-form-box > p { font-size: .88rem; color: var(--gray); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-size: .73rem; font-weight: 700; font-family: var(--fh); letter-spacing: .04em; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-family: var(--fb); font-size: .88rem;
  color: var(--dark); background: var(--white);
  transition: border-color var(--t), box-shadow var(--t); outline: none; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,39,45,.1); }
.form-group textarea { min-height: 110px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 15px; }
.form-note { font-size: .72rem; color: var(--gray); text-align: center; margin-top: 10px; }
.form-note a { color: var(--red); }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success svg { width: 52px; height: 52px; color: #22C55E; margin: 0 auto 14px; }
.form-success h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.form-success p  { font-size: .88rem; color: var(--gray); }

/* ── Privacy ──────────────────────────────────────────────── */
.privacy-content { max-width: 760px; margin: 0 auto; padding: 80px 0; }
.privacy-content h2 { font-size: 1.3rem; color: var(--dark); margin-top: 44px; margin-bottom: 12px; padding-top: 28px; border-top: 1px solid var(--border); }
.privacy-content h3 { font-size: .98rem; color: var(--dark); margin: 20px 0 8px; }
.privacy-content p  { font-size: .9rem; color: var(--gray); line-height: 1.78; margin-bottom: 12px; }
.privacy-content ul { margin: 10px 0 12px 20px; }
.privacy-content li { font-size: .9rem; color: var(--gray); line-height: 1.72; padding: 3px 0; position: relative; }
.privacy-content li::before { content: '—'; position: absolute; left: -20px; color: var(--red); }
.privacy-content hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── FOOTER — fixed: class on <a>, img as descendant ────────── */
.footer { background: var(--dark); padding: 80px 0 0; }
.footer__top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__logo-wrap { display: block; margin-bottom: 16px; }
.footer__logo-wrap img {
  height: 44px; width: auto;
  filter: drop-shadow(0 1px 4px rgba(255,255,255,.5)) drop-shadow(0 -1px 4px rgba(255,255,255,.5));
}
.footer__desc { font-size: .86rem; color: var(--gray-light); line-height: 1.72; max-width: 280px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light); transition: var(--t);
}
.footer__social a:hover { border-color: var(--red); color: var(--white); background: rgba(192,39,45,.15); }
.footer__social a svg { width: 14px; height: 14px; }
.footer__heading {
  font-family: var(--fh); font-size: .63rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.88); margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: .86rem; color: var(--gray-light); transition: color var(--t), padding-left var(--t); }
.footer__links a:hover { color: var(--white); padding-left: 4px; }
.footer__ci {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .86rem; color: var(--gray-light); margin-bottom: 10px;
}
.footer__ci svg { width: 13px; height: 13px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: .76rem; color: var(--gray);
  gap: 16px; flex-wrap: wrap;
}
.footer__bottom a { color: var(--gray); transition: var(--t); }
.footer__bottom a:hover { color: var(--white); }

/* ── Reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .strengths,
  .services-photo-grid { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 48px; }
  .about-photos__secondary { display: none; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .blog-list-main > .blog-card { flex-direction: column; }
  .blog-list-main > .blog-card .blog-card__img { width: 100%; height: 200px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .hero__stats { flex-wrap: wrap; }
  .hero__stat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.07); }
  .hero__stat:nth-child(2n) { border-right: none; }
  .hero__scroll { display: none; }
  .strengths,
  .services-photo-grid,
  .service-list,
  .values-grid,
  .process-steps,
  .blog-grid { grid-template-columns: 1fr; }
  .process-line { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photos__main img { height: 320px; }
  .about-badge { left: 0; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-box { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .mission-block { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 2.2rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { justify-content: center; }
  .spc { height: 260px; }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE PAGES
═══════════════════════════════════════════════════════════════ */

/* Article hero (full-bleed photo banner) */
.article-hero {
  position: relative;
  min-height: 420px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  padding: 0;
}
.article-hero.bi-1 { background-image: url('https://images.unsplash.com/photo-1655393001768-d946c97d6fd1?auto=format&fit=crop&w=1920&q=80'); }
.article-hero.bi-2 { background-image: url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?auto=format&fit=crop&w=1920&q=80'); }
.article-hero.bi-3 { background-image: url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=1920&q=80'); }
.article-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.92) 0%, rgba(15,23,42,.55) 60%, rgba(15,23,42,.3) 100%);
}
.article-hero .container { position: relative; z-index: 2; padding-bottom: 52px; width: 100%; }
.article-hero__content { max-width: 820px; }
.article-hero__meta {
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap; margin-bottom: 18px;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white); font-weight: 900; letter-spacing: -.025em;
  line-height: 1.18;
}

/* Two-column layout: article + sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  padding: 64px 0 96px;
  align-items: start;
}

/* Article content overrides for layout mode */
.article-layout .article-content {
  max-width: none; margin: 0; padding: 0;
}

/* Lead paragraph */
.article-lead {
  font-size: 1.1rem !important;
  color: var(--dark-2) !important;
  line-height: 1.8 !important;
  margin-bottom: 32px !important;
  font-weight: 400;
}

/* In-article CTA box */
.article-cta-box {
  margin: 48px 0 0;
  padding: 36px 40px;
  background: rgba(192,39,45,.04);
  border: 1px solid rgba(192,39,45,.15);
  border-left: 3px solid var(--red);
  border-radius: var(--rl);
}
.article-cta-box h4 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark);
}
.article-cta-box p {
  font-size: .9rem; color: var(--gray); margin-bottom: 20px;
}

/* Sidebar */
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 28px 24px;
}
.sidebar-card h4 {
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card--cta {
  background: var(--dark);
  border-color: transparent;
}
.sidebar-card--cta h4 { color: var(--white); border-color: rgba(255,255,255,.1); }
.sidebar-card--cta p { color: rgba(255,255,255,.58); font-size: .88rem; line-height: 1.65; margin-bottom: 20px; }

.sidebar-articles { display: flex; flex-direction: column; gap: 16px; }
.sidebar-article {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  align-items: start; text-decoration: none;
  padding: 12px; border-radius: var(--r);
  transition: background var(--t);
}
.sidebar-article:hover { background: var(--light); }
.sidebar-article__img {
  width: 72px; height: 56px; border-radius: 6px;
  background-size: cover; background-position: center; flex-shrink: 0;
}
.sidebar-article__img.bi-1 { background-image: url('https://images.unsplash.com/photo-1655393001768-d946c97d6fd1?auto=format&fit=crop&w=200&q=70'); }
.sidebar-article__img.bi-2 { background-image: url('https://images.unsplash.com/photo-1544724569-5f546fd6f2b5?auto=format&fit=crop&w=200&q=70'); }
.sidebar-article__img.bi-3 { background-image: url('https://images.unsplash.com/photo-1647427060118-4911c9821b82?auto=format&fit=crop&w=200&q=70'); }
.sidebar-article p {
  font-size: .8rem; font-weight: 600; color: var(--dark);
  line-height: 1.45; margin: 4px 0 0;
}
.sidebar-article .blog-card__cat { font-size: .68rem; }

/* Article pullquote (overrides generic) */
.article-pullquote {
  border-left: 3px solid var(--red);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--light);
  border-radius: 0 var(--r) var(--r) 0;
}
.article-pullquote p { display: none; }

/* Responsive article */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-sidebar { position: static; }
}
@media (max-width: 640px) {
  .article-hero { min-height: 320px; }
  .article-hero h1 { font-size: 1.6rem; }
  .article-cta-box { padding: 24px 20px; }
}
