:root {
  --navy: #0f1d35;
  --navy-2: #182b4e;
  --gold: #b08540;
  --gold-soft: #d4b681;
  --cream: #f6f1e7;
  --cream-2: #ede4d2;
  --ink: #15171c;
  --ink-2: #3a3d44;
  --muted: #6e727a;
  --line: #e1dcd1;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100% }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block }
a { color: inherit }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(15, 29, 53, .08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy) }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--cream);
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  display: grid; place-items: center; letter-spacing: .03em;
}
.brand-mark.dark { background: var(--navy); color: var(--cream); width: 48px; height: 48px; font-size: 17px }
.brand-text { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .01em }

.primary-nav { display: flex; gap: 28px }
.primary-nav a {
  text-decoration: none; color: var(--ink-2);
  font-size: 14px; font-weight: 500; letter-spacing: .03em;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.primary-nav a:hover { color: var(--navy) }
.primary-nav a.active { color: var(--navy); border-bottom-color: var(--gold) }

.nav-toggle {
  display: none; background: transparent; border: none;
  width: 36px; height: 36px; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 4px 0; transition: transform .2s, opacity .2s }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg) }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) }

/* HERO */
.hero { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden }
.hero-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.55) saturate(1.05);
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,29,53,.6) 0%, rgba(15,29,53,.3) 35%, rgba(15,29,53,.85) 100%);
}
.hero-content { position: relative; color: var(--cream); padding: 96px 24px; max-width: 880px }
.hero-eyebrow {
  font-size: 13px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 18px; font-weight: 500;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08; letter-spacing: -.01em; margin-bottom: 24px;
}
.hero-lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; opacity: .92; margin-bottom: 36px }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap }

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 4px;
  font-weight: 500; font-size: 14px; letter-spacing: .03em;
  text-decoration: none; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--gold); color: var(--navy); border-color: var(--gold) }
.btn.primary:hover { background: var(--gold-soft); border-color: var(--gold-soft) }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(246,241,231,.4) }
.btn.ghost:hover { background: rgba(246,241,231,.08); border-color: var(--cream) }

/* SECTIONS */
.section { padding: 96px 0 }
.section-soft { background: var(--cream-2) }
.section-dark { background: var(--navy); color: var(--cream) }
.no-pad-bottom { padding-bottom: 0 }

.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-soft) }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 18px; color: var(--navy) }
h2.light, .section-dark h2 { color: var(--cream) }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; color: var(--navy) }
.section-dark h3 { color: var(--cream) }

p { color: var(--ink-2); margin-bottom: 14px }
.section-dark p { color: rgba(246,241,231,.85) }

.two-col {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center;
}
.figure-frame {
  position: relative; border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,29,53,.15);
}
.figure-frame img { aspect-ratio: 4/5; object-fit: cover; width: 100% }
.figure-frame.portrait img { aspect-ratio: 4/5 }

.link-arrow {
  display: inline-block; margin-top: 10px;
  color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.link-arrow:hover { color: var(--gold) }

/* AREAS GRID */
.areas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.area-card {
  background: rgba(246, 241, 231, .04);
  border: 1px solid rgba(246, 241, 231, .14);
  border-radius: 8px; padding: 28px;
  transition: background .2s, border-color .2s, transform .2s;
}
.area-card:hover {
  background: rgba(246, 241, 231, .08);
  border-color: rgba(212, 182, 129, .4);
  transform: translateY(-2px);
}
.area-icon {
  width: 44px; height: 44px; color: var(--gold-soft);
  margin-bottom: 18px;
}
.area-icon svg { width: 100%; height: 100% }
.area-card p { font-size: 14px; line-height: 1.6 }

/* CTA */
.cta { background: var(--cream-2); padding: 64px 0 }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: 6px }
.cta p { margin: 0 }

/* PAGE HERO (chi-sono, contatti) */
.page-hero { background: var(--navy); color: var(--cream); padding: 110px 0 80px }
.page-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1; letter-spacing: -.005em; margin-bottom: 18px;
}
.page-hero-lead { font-size: 17px; max-width: 680px; opacity: .9 }

/* TIMELINE */
.timeline { display: grid; gap: 28px; max-width: 800px; margin-top: 32px }
.timeline-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none }
.timeline-year {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--gold); letter-spacing: -.01em;
}
.timeline-item h3 { margin-bottom: 6px }
.timeline-item p { font-size: 15px }

/* VALUES */
.values-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start;
}
.values-list { display: grid; gap: 32px }
.value { padding-left: 24px; border-left: 2px solid var(--gold) }

/* CONTACT */
.contact-block { margin-bottom: 22px }
.contact-label {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.contact-block a { color: var(--navy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gold-soft) }
.contact-block a:hover { color: var(--gold) }

/* FORM */
.contact-form { display: grid; gap: 16px; margin-top: 8px }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em }
.contact-form label em { font-style: normal; font-weight: 400; color: var(--muted) }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 133, 64, .12);
}
.contact-form textarea { resize: vertical; min-height: 120px }
.contact-form .checkbox {
  flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400;
  display: flex; font-size: 13px; line-height: 1.5;
}
.contact-form .checkbox input { width: auto; margin-top: 3px }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px }

/* MAP */
.map-wrap { margin-top: 36px; height: 420px; background: var(--cream-2) }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block }

/* FOOTER */
.site-footer { background: var(--navy); color: rgba(246,241,231,.85); padding: 64px 0 32px; margin-top: 0 }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px }
.footer-name { font-family: var(--serif); font-size: 18px; color: var(--cream); margin: 14px 0 4px }
.footer-small { font-size: 13px; color: rgba(246,241,231,.65) }
.footer-label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: 14px;
}
.site-footer a { color: rgba(246,241,231,.85); text-decoration: none }
.site-footer a:hover { color: var(--gold-soft) }
.site-footer p { color: rgba(246,241,231,.85); margin-bottom: 6px; font-size: 14px }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(246,241,231,.12); margin-top: 40px; padding-top: 20px;
}
.footer-bottom small { color: rgba(246,241,231,.55); font-size: 12px }

/* RESPONSIVE */
@media (max-width: 880px) {
  .nav-toggle { display: block }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(15,29,53,.08);
    flex-direction: column; gap: 0; padding: 12px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid rgba(15,29,53,.06) }
  .primary-nav a:last-child { border-bottom: none }

  .hero-content { padding: 80px 24px }
  .section { padding: 64px 0 }
  .two-col { grid-template-columns: 1fr; gap: 40px }
  .figure-frame img { aspect-ratio: 16/10 }
  .areas-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px }
  .values-grid { grid-template-columns: 1fr; gap: 32px }
  .timeline-item { grid-template-columns: 1fr; gap: 8px }
  .timeline-year { font-size: 18px }
  .footer-grid { grid-template-columns: 1fr; gap: 32px }
  .footer-bottom { flex-direction: column; align-items: flex-start }
  .cta-inner { flex-direction: column; align-items: flex-start }
}
