/* ── GIULIO BRUSSINO — Shared Stylesheet ──────────────────── */
:root {
  --petrolio:      #21536E;
  --petrolio-dark: #0f2d3e;
  --azzurro:       #0099CC;
  --lime:          #CCFF33;
  --lime-hover:    #b3e600;
  --off-white:     #f7f9fa;
  --gray-100:      #e4e8eb;
  --gray-400:      #8a9daa;
  --gray-600:      #4d6070;
  --text-main:     #19333F;
  --max-w:         1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Prompt', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--azzurro);
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--white { color: rgba(255,255,255,0.6); }

.btn-lime {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--petrolio-dark);
  border: none; border-radius: 9999px;
  padding: 15px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 220ms ease, transform 180ms ease;
  white-space: nowrap;
}
.btn-lime:hover { background: var(--lime-hover); transform: translateY(-1px); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 9999px;
  padding: 13px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: border-color 220ms ease, color 220ms ease;
  white-space: nowrap;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--petrolio);
  border: 1.5px solid rgba(33,83,110,0.3);
  border-radius: 9999px;
  padding: 13px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: border-color 220ms ease, color 220ms ease;
  white-space: nowrap;
}
.btn-outline-dark:hover { border-color: var(--petrolio); color: var(--petrolio-dark); }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 52px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 300ms ease, box-shadow 300ms ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-100);
}
nav.light {
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-100);
}
.nav-logo-wrap { position: relative; width: 160px; height: 36px; }
.nav-logo-wrap img { position: absolute; height: 36px; width: auto; transition: opacity 300ms; }
.nav-logo-wrap img.white { opacity: 1; }
.nav-logo-wrap img.color { opacity: 0; }
nav.scrolled .nav-logo-wrap img.white,
nav.light .nav-logo-wrap img.white { opacity: 0; }
nav.scrolled .nav-logo-wrap img.color,
nav.light .nav-logo-wrap img.color { opacity: 1; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); transition: color 220ms; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
nav.scrolled .nav-links a,
nav.light .nav-links a { color: var(--gray-600); }
nav.scrolled .nav-links a:hover,
nav.light .nav-links a:hover { color: var(--petrolio); }
nav.scrolled .nav-links a.active,
nav.light .nav-links a.active { color: var(--petrolio); font-weight: 600; }
.nav-cta .btn-lime { padding: 10px 22px; font-size: 13px; }

/* ── PAGE HERO (light) ─────────────────────────────────────── */
.page-hero {
  padding: 140px 80px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--petrolio-dark);
  max-width: 720px;
  margin-bottom: 20px;
}
.page-hero h1 em { color: var(--azzurro); font-style: normal; }
.page-hero p {
  font-size: 18px; font-weight: 300;
  line-height: 1.75; color: var(--gray-600);
  max-width: 620px;
}

/* ── PAGE HERO (dark, full-bleed photo) ────────────────────── */
.hero-dark {
  min-height: 64vh;
  background: var(--petrolio-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}
.hero-dark-text {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 56px 64px 80px; gap: 16px;
}
.hero-dark-text h1 {
  font-size: clamp(30px, 2.8vw, 46px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.025em; color: #fff;
}
.hero-dark-text h1 em { color: var(--azzurro); font-style: normal; }
.hero-dark-text p {
  font-size: 16px; font-weight: 300;
  line-height: 1.75; color: rgba(255,255,255,0.65);
  max-width: 420px;
}
.hero-dark-photo {
  position: relative; overflow: hidden;
}
.hero-dark-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(0.8) saturate(0.9);
}
.hero-dark-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--petrolio-dark) 0%, transparent 20%);
  pointer-events: none;
}

/* ── SECTION BLOCKS ────────────────────────────────────────── */
.section { padding: 72px 80px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section--off { background: var(--off-white); }
.section--dark { background: var(--petrolio-dark); }
.section--brand { background: var(--petrolio); }

.section-header { margin-bottom: 40px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 {
  font-size: 32px; font-weight: 700;
  color: var(--petrolio); letter-spacing: -0.02em;
  line-height: 1.15; max-width: 600px;
}
.section-header h2--white { color: #fff; }
.section-header p {
  font-size: 16px; font-weight: 300;
  color: var(--gray-600); line-height: 1.75;
  max-width: 560px; margin-top: 12px;
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: 12px;
  padding: 28px 26px;
  box-shadow: 0 4px 16px rgba(33,83,110,0.10);
  border: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(33,83,110,0.16); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 18px; font-weight: 600; color: var(--petrolio); line-height: 1.3; }
.card p { font-size: 14px; font-weight: 300; color: var(--gray-600); line-height: 1.7; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--azzurro);
  margin-top: 4px; transition: gap 200ms;
}
.card-link:hover { gap: 10px; }

/* ── CTA BAND ──────────────────────────────────────────────── */
.cta-band {
  background: var(--petrolio);
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 48px;
}
.cta-band-text .eyebrow { color: var(--lime); margin-bottom: 14px; }
.cta-band-text h2 {
  font-size: 28px; font-weight: 700;
  color: #fff; line-height: 1.25;
  letter-spacing: -0.02em; max-width: 560px;
}
.cta-band-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band-cta .nota { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; max-width: 200px; }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--petrolio-dark);
  padding: 56px 80px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand-col p {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.45); line-height: 1.8; max-width: 260px;
}
.footer-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.55); line-height: 1.6;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; stroke: var(--azzurro); }
.footer-col-title {
  font-family: 'Prompt', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px;
}
.footer-nav-links { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-links a {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.6); transition: color 200ms;
}
.footer-nav-links a:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; margin-bottom: 18px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: border-color 200ms, color 200ms;
}
.footer-socials a:hover { border-color: var(--azzurro); color: var(--azzurro); }
.footer-newsletter p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9999px; padding: 11px 18px;
  font-family: 'Poppins', sans-serif; font-size: 13px; color: #fff;
  outline: none; transition: border-color 200ms;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.3); }
.newsletter-btn {
  background: var(--lime); color: var(--petrolio-dark);
  border: none; border-radius: 9999px; padding: 11px 20px;
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background 220ms; white-space: nowrap;
}
.newsletter-btn:hover { background: var(--lime-hover); }
.newsletter-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-success[hidden] { display: none; }
.newsletter-success {
  font-size: 13px; font-weight: 500;
  color: var(--lime);
  line-height: 1.6;
  margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
}
.newsletter-success::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lime);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2d3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,0.25); transition: color 200ms; }
.footer-legal a:hover { color: rgba(255,255,255,0.55); }

/* Hide hamburger on desktop */
.hamburger { display: none; background: transparent; border: none; }
.nav-mobile-cta { display: none; }
.nav-links { list-style: none; }
.nav-links li { list-style: none; }
.page-hero, .page-hero-light { padding: 140px 80px 80px; max-width: var(--max-w); margin: 0 auto; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Nav bar: always solid white on mobile */
  nav {
    padding: 0 20px;
    height: 64px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gray-100);
  }
  /* Force color logo on mobile regardless of scroll state */
  .nav-logo-wrap img.white { opacity: 0; }
  .nav-logo-wrap img.color { opacity: 1; }
  .nav-logo-wrap { width: 140px; }
  .nav-logo-wrap img { height: 32px; }

  /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    background: transparent;
    border: none;
  }
  .hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--petrolio);
    border-radius: 2px;
    transition: transform 280ms ease, opacity 200ms ease;
  }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Desktop CTA hidden on mobile */
  .nav-cta { display: none; }

  /* Mobile menu drawer */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: #fff;
    padding: 8px 24px 40px;
    overflow-y: auto;
    z-index: 99;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
  }
  .nav-links.open { display: flex !important; }
  .nav-links li {
    list-style: none;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    display: block;
    text-align: left;
    flex-shrink: 0;
  }
  .nav-links li.nav-mobile-cta { border-bottom: none; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 18px 4px;
    font-size: 17px;
    font-weight: 500;
    color: var(--petrolio) !important;
    text-align: left;
    background: transparent;
    box-sizing: border-box;
  }
  .nav-links a.active { color: var(--azzurro) !important; }
  .nav-links a:hover { color: var(--azzurro) !important; }

  .nav-mobile-cta {
    display: block;
    margin-top: 24px;
  }
  .nav-mobile-cta .btn-lime {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 15px;
    border-radius: 12px;
    color: var(--petrolio-dark) !important;
  }

  /* ── PAGE HERO DARK (split) ── */
  .hero-dark, .page-hero-dark, .svc-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-dark-photo, .phd-photo, .svc-hero-photo { height: 280px; order: 0; }
  .hero-dark-photo::after, .phd-photo::after, .svc-hero-photo::after {
    background: linear-gradient(to bottom, transparent 60%, var(--petrolio-dark) 100%);
  }
  .hero-dark-text, .phd-text, .svc-hero-text {
    padding: 32px 24px 40px;
    order: 1;
    justify-content: flex-start;
  }
  .hero-dark-text h1, .phd-text h1, .svc-hero-text h1 { font-size: 26px; }

  /* ── PAGE HERO LIGHT ── */
  .page-hero, .page-hero-light { padding: 96px 24px 40px; }
  .page-hero h1, .page-hero-light h1 { font-size: 28px; }
  .page-hero p, .page-hero-light p { font-size: 16px; }

  /* ── SECTIONS ── */
  .section { padding: 48px 24px; }
  .section-header h2 { font-size: 24px; }

  /* ── CTA BAND ── */
  .cta-band { grid-template-columns: 1fr; padding: 44px 24px; gap: 28px; }
  .cta-band-text h2 { font-size: 22px; }
  .cta-band-cta { align-items: stretch; }
  .cta-band-cta .btn-lime { width: 100%; justify-content: center; }

  /* ── FOOTER ── */
  footer { padding: 44px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { width: 100%; padding: 13px; border-radius: 10px; }

  /* ── FORM GRID ── */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
}

@media (max-width: 480px) {
  .section-header h2 { font-size: 22px; }
  .btn-lime { padding: 14px 24px; font-size: 13px; }
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 580ms ease, transform 580ms ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 80ms; }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }

/* ── FORM ──────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--petrolio); }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 300;
  color: var(--text-main);
  background: #fff;
  border: 1.5px solid var(--gray-100);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 200ms;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--azzurro); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--gray-400); line-height: 1.6; }
