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

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

:root {
  --blue-dark:  #152f73;
  --blue-mid:   #1e4499;
  --blue-light: #dde8f8;
  --blue-pale:  #f0f5fd;
  --white:      #ffffff;
  --text-dark:  #0d0d4a;
  --text-body:  #1a1a5e;
  --text-muted: #3a3a7a;
  --nav-h:      76px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.75;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid #e2e8f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(21,47,115,.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 14px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color .2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-lang a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-lang a:hover,
.nav-lang a.active {
  color: var(--blue-dark);
}

.nav-lang-sep {
  color: #ccc;
}

/* ── PAGE WRAPPER ─────────────────────────────────────── */
main {
  margin-top: var(--nav-h);
}

/* ── HERO (Home) ──────────────────────────────────────── */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(20,20,130,.45) 0%, rgba(10,10,70,.35) 100%),
    url('hero-rome2.jpg') center/cover no-repeat;
  /* Placeholder gradient if image missing */
  background-color: #0e0e6a;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 760px;
  padding: 0 32px;
}

.hero-content .eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -.01em;
  color: #0d0d4a;
}

.hero-content p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.95);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-outline-white {
  border: 2px solid #152f73;
  color: #152f73;
}

.btn-outline-white:hover {
  background: #152f73;
  color: var(--white);
}

/* ── PAGE HERO (inner pages) ──────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #152f73 0%, #0e1f4d 100%);
  padding: 10px 48px 8px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 4px;
}

.page-hero p {
  font-size: .78rem;
  margin: 0;
}

/* ── PAGE INTRO (foto + titolo affiancati) ───────────── */
.page-intro {
  display: flex;
  align-items: stretch;
  min-height: 320px;
}

.page-intro.photo-left  { flex-direction: row; }
.page-intro.photo-right { flex-direction: row-reverse; }

.page-intro-photo {
  flex: 0 0 45%;
  overflow: hidden;
}

.page-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-intro-text {
  flex: 1;
  background: var(--blue-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
}

.page-intro-text h1 {
  color: var(--white);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.page-intro-text p {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.7;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  font-weight: 300;
  letter-spacing: .04em;
}

/* ── SECTIONS ─────────────────────────────────────────── */
section {
  padding: 40px 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -.01em;
  margin-bottom: 28px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
  letter-spacing: .01em;
}

p {
  margin-bottom: 16px;
  font-size: .96rem;
  color: var(--text-body);
}

p:last-child { margin-bottom: 0; }

/* ── HERO NEW ─────────────────────────────────────────── */
.hero-new {
  background: #ffffff;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 18px;
}

.hero-topbar {
  width: 100%;
  text-align: center;
  background: #152f73;
  padding: 18px 48px 16px;
  margin-bottom: 24px;
}

.hero-company-name {
  display: block;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.hero-tagline {
  display: block;
  font-size: clamp(.85rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,.75);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-left {
  flex: 0 0 180px;
  text-align: center;
}

.hero-founded-label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6666aa;
  margin-bottom: 8px;
}

.hero-founded-year {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #152f73;
  line-height: 1;
  letter-spacing: .45em;
}

.hero-photo-wrap {
  flex: 0 0 auto;
  width: clamp(680px, 72vw, 1100px);
  border: 3px solid rgba(255,255,255,.2);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.hero-photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-right {
  flex: 0 0 200px;
  text-align: left;
}

.hero-trusted {
  font-size: .95rem;
  font-weight: 300;
  color: #1a1a5e;
  line-height: 1.75;
  font-style: italic;
}

.hero-bottom {
  text-align: center;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-arrow {
  font-size: 1.8rem;
  color: #152f73;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── HOME — intro strip ──────────────────────────────── */
.intro-strip {
  background: var(--blue-pale);
  padding: 64px 0;
  text-align: center;
}

.intro-strip p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dark);
}

/* ── HOME — services grid ─────────────────────────────── */
.services-section {
  background: var(--white);
  padding: 88px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  border: 1px solid #dde6f5;
  border-radius: 4px;
  padding: 36px 32px;
  transition: box-shadow .25s, transform .25s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(26,26,170,.1);
  transform: translateY(-3px);
}

.service-card .icon {
  width: 48px;
  height: 4px;
  background: var(--blue-dark);
  margin-bottom: 24px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card a {
  display: inline-block;
  margin-top: 20px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.service-card a:hover { border-bottom-color: var(--blue-dark); }

/* ── HOME — since strip ───────────────────────────────── */
.since-strip {
  background: var(--blue-dark);
  padding: 56px 0;
  text-align: center;
}

.since-strip .big-num {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1;
}

.since-strip .label {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 10px;
}

/* ── CONTENT BLOCKS ───────────────────────────────────── */
.content-block {
  padding: 32px 0;
}

.content-block + .content-block {
  border-top: 1px solid #e8edf8;
}

.content-block.alt-bg {
  background: var(--blue-pale);
}

.block-inner {
  max-width: 780px;
}

ul.styled {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

ul.styled li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: .96rem;
  color: var(--text-body);
  border-bottom: 1px solid #eaeef8;
}

ul.styled li:last-child { border-bottom: none; }

ul.styled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  background: var(--blue-dark);
}

ol.styled {
  padding-left: 0;
  list-style: none;
  counter-reset: item;
  margin: 16px 0 0;
}

ol.styled li {
  counter-increment: item;
  padding: 14px 0 14px 48px;
  position: relative;
  font-size: .96rem;
  color: var(--text-body);
  border-bottom: 1px solid #eaeef8;
}

ol.styled li:last-child { border-bottom: none; }

ol.styled li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: .05em;
  top: 16px;
}

/* ── NETWORK — two-col ────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

/* ── STRUCTURE ────────────────────────────────────────── */
.person-card {
  padding: 44px 0;
  border-bottom: 1px solid #e2e8f5;
}

.person-card:last-child { border-bottom: none; }

.person-card .role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.person-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}

/* ── CONTACTS ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-block h3 {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-light);
}

.contact-line {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
  font-size: .93rem;
}

.contact-line .lbl {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 120px;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: 2px;
}

.contact-line a {
  color: var(--blue-dark);
  text-decoration: none;
}

.contact-line a:hover { text-decoration: underline; }

/* ── FOOTER ───────────────────────────────────────────── */
.footer-wave {
  background: #0a0a32;
  line-height: 0;
}
.footer-wave svg {
  display: block;
  width: 100%;
}

footer {
  background: #0a0a32;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .06em;
}

footer .footer-right {
  text-align: right;
}

footer p {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin: 0;
  line-height: 1.8;
}

/* ── DIVIDER ─────────────────────────────────────────── */
.rule {
  width: 48px;
  height: 3px;
  background: var(--blue-dark);
  margin: 0 0 32px;
}

/* ── HAMBURGER BUTTON ────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--blue-dark);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ── RESPONSIVE NAV ──────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: .72rem; }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  html, body { overflow-x: hidden; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 2px solid #e2e8f4;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
  }
  .nav-links.open a { font-size: .85rem; }
  .nav-toggle { display: block; }

  .container { padding: 0 20px; }
  .page-hero { padding: 60px 24px; }
  footer { padding: 36px 20px; flex-direction: column; align-items: flex-start; }
  footer .footer-right { text-align: left; }

  /* Hero home */
  .hero-new { min-height: auto; padding-bottom: 24px; }
  .hero-middle { flex-direction: column; gap: 0; padding: 0; }
  .hero-left { display: none; }
  .hero-right { display: none; }
  .hero-company-name { font-size: 1.5rem !important; }
  .hero-photo-wrap { width: 100% !important; min-width: 0 !important; border: none; box-shadow: none; display: block !important; }
  .hero-photo-wrap > div { height: 180px !important; width: 100%; }
  .hero-photo-wrap > div img { height: 180px !important; }

  /* Hero title su una riga */
  .hero-company-name { font-size: 1.25rem !important; white-space: nowrap; }

  /* Contatti: etichetta sopra il valore invece che affiancata */
  .contact-line { flex-direction: column; gap: 2px; }
  .contact-line .lbl { min-width: 0; }

  /* Dirigenti: nome più piccolo per stare su una riga */
  .person-card h3 { font-size: 1rem; }

  /* Intro strip */
  .intro-strip { padding: 36px 0; }
  .intro-strip p { text-align: left; font-size: .92rem; }

  /* Services */
  .services-section { padding: 48px 0; }

  /* Hero bottom button */
  .hero-new > div:last-child { padding: 0 20px; }
}
