:root {
  --bg: #f5f4ef;
  --panel: #ffffff;
  --ink: #0f2233;
  --muted: #5f6f7d;
  --accent: #0a4d86;
  --accent-soft: #dcecf9;
  --line: #d9e1e8;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(10, 33, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #e8f2fb 0, transparent 35%),
    radial-gradient(circle at 90% 5%, #fde9d8 0, transparent 28%),
    var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 244, 239, 0.88);
  border-bottom: 1px solid rgba(15, 34, 51, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--accent-soft);
}

.lang-pill {
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
}

.lang-pill a {
  border-radius: 0;
  padding: 10px 12px;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: hero-in 1.2s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 18, 32, 0.8), rgba(10, 77, 134, 0.32));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 92px 0 86px;
}

.kicker {
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  opacity: 0.86;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.12;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 5.7vw, 5rem);
  max-width: 14ch;
}

.hero p {
  max-width: 56ch;
  font-size: 1.08rem;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: var(--ink);
}

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

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 84px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
}

.section-head p {
  max-width: 72ch;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid rgba(15, 34, 51, 0.08);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.team-photo {
  width: 46%;
  min-width: 230px;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 14px;
  margin: 0;
}

.team-photo-stefano {
  object-position: center 12%;
}

.team-photo-emanuela {
  object-position: center 14%;
}

.team-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.team-card h3 {
  margin-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.image-panel {
  min-height: 340px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.contact {
  background: #0d2234;
  color: #fff;
  border-radius: 34px;
  padding: 28px;
}

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 1fr;
}

.contact p,
.contact li {
  color: rgba(255, 255, 255, 0.84);
}

.contact form {
  display: grid;
  gap: 10px;
}

.contact input,
.contact textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}

.contact textarea {
  min-height: 108px;
  resize: vertical;
}

.contact button {
  justify-self: start;
  margin-top: 2px;
}

.map {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 34, 51, 0.12);
  box-shadow: var(--shadow);
  margin-top: 18px;
}

.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.site-footer {
  padding: 24px 0 42px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(15, 34, 51, 0.14);
  padding-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-in {
  from {
    transform: scale(1.11);
    filter: saturate(0.9);
  }
  to {
    transform: scale(1.04);
    filter: saturate(1);
  }
}

@media (max-width: 920px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero {
    min-height: 64vh;
  }
}

@media (max-width: 740px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 74px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .nav-links a,
  .lang-pill {
    width: 100%;
    margin-left: 0;
  }

  .lang-pill {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
  }

  .team-photo {
    width: 100%;
    max-width: none;
    min-width: 0;
    aspect-ratio: 5 / 4;
  }

  .section {
    padding: 62px 0;
  }
}
