/* Bridge Adv — Design System */
:root {
  --navy: #003366;
  --blue: #6699CC;
  --blue-hover: #5588bb;
  --light: #F5F5F5;
  --white: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.08);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  line-height: 1.2;
}

.logo__tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--blue);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: #002244;
}

.btn--blue {
  background: var(--blue);
  color: var(--white);
}

.btn--blue:hover {
  background: var(--blue-hover);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
  background: var(--navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 80px 0;
  color: var(--white);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero__title span {
  color: var(--blue);
}

.hero__text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0.95;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--white);
}

.section--gray {
  background: var(--light);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}

.section--navy .section__title {
  color: var(--white);
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section--navy .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.section__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Icon Grid ── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.icon-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.icon-card {
  text-align: center;
  padding: 24px 16px;
}

.icon-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-card__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.section--navy .icon-card__icon svg {
  stroke: var(--white);
}

.icon-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--navy);
}

.section--navy .icon-card__title {
  color: var(--white);
}

.icon-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section--navy .icon-card__text {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Split Section ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.split__image {
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
  background: var(--light);
}

.split__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
}

.split__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  margin-top: var(--header-height);
  padding: 64px 0;
  background: var(--light);
  text-align: center;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Services List ── */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid #e0e0e0;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:nth-child(even) .service-row__image {
  order: -1;
}

.service-row__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.service-row__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.service-row__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-row__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-row__image {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.service-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── About Page ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  background: var(--white);
  padding: 32px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
}

.value-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.value-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat {
  text-align: center;
  padding: 32px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 50%;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.contact-info__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-info__value a:hover {
  color: var(--blue);
}

/* ── Form ── */
.form {
  background: var(--light);
  padding: 40px;
  border-radius: 6px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 8px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--white);
  transition: border-color var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 4px;
  display: none;
}

.form__group.error .form__error {
  display: block;
}

.form__group.error .form__input,
.form__group.error .form__textarea {
  border-color: #c0392b;
}

.form__success {
  display: none;
  padding: 16px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form__success.visible {
  display: block;
}

/* ── Map ── */
.map {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer .logo__name {
  color: var(--white);
}

.footer .logo__tagline {
  color: var(--blue);
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--blue);
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--blue);
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a:hover {
  color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .icon-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    text-align: center;
  }

  .nav .btn {
    width: 100%;
    text-align: center;
  }

  .icon-grid,
  .icon-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__image {
    min-height: 280px;
  }

  .split__content {
    padding: 48px 24px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-row:nth-child(even) .service-row__image {
    order: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .icon-grid,
  .icon-grid--5 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

/* ── Cosa Facciamo cards ── */
.cosa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cosa-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.cosa-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.cosa-card--light {
  background: var(--white);
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
}

.cosa-card--light:hover {
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0, 51, 102, 0.1);
}

.cosa-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cosa-card__icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.section--navy .cosa-card__icon svg,
.cosa-card .cosa-card__icon svg {
  stroke: var(--blue);
}

.cosa-card--light .cosa-card__icon svg {
  stroke: var(--blue);
}

.cosa-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--white);
}

.cosa-card--light .cosa-card__title {
  color: var(--navy);
}

.cosa-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.cosa-card--light .cosa-card__text {
  color: var(--text-muted);
}

.cosa-card__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color var(--transition);
}

.cosa-card__link:hover {
  color: var(--white);
}

.cosa-card--light .cosa-card__link:hover {
  color: var(--navy);
}

.cosa-grid--home .cosa-card {
  background: transparent;
  border: none;
  padding: 24px 16px;
}

.cosa-grid--home .cosa-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
}

.cosa-grid--home {
  grid-template-columns: repeat(5, 1fr);
}

.section--navy .cosa-card__icon svg {
  stroke: var(--white);
}

@media (max-width: 1024px) {
  .cosa-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cosa-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .cosa-grid,
  .cosa-grid--home {
    grid-template-columns: 1fr;
  }
}

/* ── Legal pages ── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  letter-spacing: 0.04em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 12px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--blue);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}
