:root {
  --bg-main: #f4f3ef;
  --bg-section: #ffffff;

  --text-main: #1c1c1c;
  --text-muted: #6d6d6d;

  --accent: #1f3a4d;        /* Blu Atlantis */
  --accent-2: #0f2a3a;      /* Blu più profondo (ombre/hover) */

  --line-soft: #e1e1dd;

  --container: 1200px;
  --narrow: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover { color: var(--accent); }

.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.container.narrow { max-width: var(--narrow); }

/* ===============================
   HEADER (BLU)
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  transition: padding 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
}

.brand-logo {
  height: 84px;
  width: auto;
  transition: height 0.3s ease;

  /* Se avete un logo già bianco, potete rimuovere queste 2 righe */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-header.is-scrolled .brand-logo {
  height: 54px;
}

/* ===============================
   NAV (BIANCO + ACTIVE)
================================ */
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  border: none;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a.active {
  color: #fff;
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.9);
}

/* ===============================
   HERO
================================ */
.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 80px 0 56px;

  background:
    linear-gradient(rgba(244, 243, 239, 0.88), rgba(244, 243, 239, 0.88)),
    url("../assets/images/hero.png") center / cover no-repeat;
}

.hero-content { max-width: var(--narrow); }

.kicker {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 3.1rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.payoff {
  margin: 0 0 22px;
  font-size: 1.15rem;
  color: var(--accent);
}

.intro { margin: 0; max-width: 680px; }

/* ===============================
   SEZIONI
================================ */
.section { padding: 128px 0; }

.section-light {
  background: var(--bg-section);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

h2 {
  margin: 0 0 42px;
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent); /* Titoli in blu: “parti azzurre” */
}

h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--accent);
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

/* ===============================
   AREE DI ATTIVITÀ
================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}

.card {
  padding: 26px 22px;
  background: transparent;
  border-top: 1px solid var(--line-soft);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===============================
   PRINCIPI
================================ */
.principi-intro {
  color: var(--text-muted);
  margin-bottom: 38px;
}

.principi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.principi-list li {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===============================
   LEADERSHIP + LINK
================================ */
.lead-name {
  margin-top: -10px;
  margin-bottom: 28px;
}

.links a {
  border-bottom: 1px solid currentColor;
  color: var(--accent);
}

/* ===============================
   IMAGE BLOCK
================================ */
.image-block {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #000;
}

.image-block img {
  width: 100%;
  height: auto;
}

/* ===============================
   FOOTER (BLU)
================================ */
.site-footer {
  padding: 38px 0;
  background: var(--accent);
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-text {
  margin: 0;
  border: none;
}

.footer-logo {
  height: 86px;
  width: auto;

  /* Se avete un logo già bianco, potete rimuovere queste 2 righe */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }

  .hero {
    min-height: 80vh;
    padding: 84px 0 64px;
  }

  .hero h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }

  .principi-list li { font-size: 1.2rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 14px;
  }
}
