@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlayfairDisplay-500Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SourceSans3-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/SourceSans3-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/SourceSans3-700.woff2') format('woff2');
}

:root {
  --blue-deep: #1F5470;
  --blue-mid: #2E6E96;
  --sage: #7A8B6F;
  --cream: #FAF6EF;
  --cream-2: #F3EDE2;
  --ink: #201F1C;
  --ink-soft: #4A4844;
  --line: rgba(31, 84, 112, 0.16);
  --on-blue: #F3EFE6;
  --on-blue-soft: #C7D6DF;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1120px;
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  text-wrap: balance;
  color: var(--blue-deep);
}

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

a { color: var(--blue-mid); }

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

ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 3px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--blue-deep);
  margin: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 105;
}
.main-nav.is-open { transform: translateX(0); }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.main-nav ul a {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--blue-deep);
  text-decoration: none;
}
.main-nav ul a:hover { color: var(--blue-mid); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    transform: none;
    transition: none;
  }
  .main-nav ul {
    flex-direction: row;
    gap: 28px;
  }
  .main-nav ul a {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
  }
  .main-nav ul a:hover { color: var(--blue-deep); }
}

/* ---------- Layout helpers ---------- */

.section {
  padding: 72px 20px;
}
.section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--blue-deep);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 84, 112, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue-deep);
}
.btn-secondary:hover {
  background: rgba(31, 84, 112, 0.06);
}
.btn-small { padding: 10px 18px; font-size: 13.5px; }
.btn-large { padding: 18px 40px; font-size: 16.5px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 20px 64px;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  align-items: center;
}
.hero__content h1 {
  font-size: clamp(28px, 5vw, 40px);
}
.hero__media img {
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(31, 84, 112, 0.16);
  max-width: min(340px, 100%);
  margin: 0 auto;
}

@media (min-width: 860px) {
  .hero {
    padding: 88px 20px 100px;
  }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .hero__content { flex: 1.1; }
  .hero__media { flex: 0.9; }
  .hero__media img { max-width: 100%; }
}

/* ---------- Chi sono ---------- */

.chi-sono { background: var(--cream-2); }
.chi-sono__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.chi-sono__media img {
  border-radius: 4px;
}
.chi-sono__text p { color: var(--ink-soft); }
.chi-sono__text .lede { color: var(--blue-deep); font-style: italic; font-family: var(--font-serif); font-size: 20px; }
.chi-sono__text .signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  color: var(--blue-deep);
  margin-top: 28px;
}

@media (min-width: 860px) {
  .chi-sono__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
  .chi-sono__text { flex: 1.3; }
  .chi-sono__media { flex: 1; position: sticky; top: 110px; }
}

/* ---------- Aree di intervento ---------- */

.aree-list {
  list-style: none;
  margin: 10px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 18px;
}
.aree-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px var(--cream-2);
  border-radius: 2px;
  padding: 15px 20px 15px 24px;
  color: var(--ink-soft);
  font-size: 14.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.aree-list li::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 2px 3px rgba(31, 84, 112, 0.25);
}
.aree-list li:nth-child(4n+1) { transform: rotate(-1.3deg); }
.aree-list li:nth-child(4n+2) { transform: rotate(1deg) translateY(7px); }
.aree-list li:nth-child(4n+3) { transform: rotate(-0.6deg) translateY(-4px); }
.aree-list li:nth-child(4n+4) { transform: rotate(1.5deg) translateY(4px); }
.aree-list li:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: var(--sage);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--cream-2), 0 14px 26px rgba(31, 84, 112, 0.14);
}

.aree__media {
  margin-bottom: 40px;
}
.aree__media img {
  border-radius: 4px;
  max-width: min(480px, 100%);
  margin: 0 auto;
}

.sub-cards {
  display: grid;
  gap: 22px;
}
.sub-card {
  background: var(--cream-2);
  border-radius: 4px;
  padding: 30px 26px;
  border-top: 2px solid transparent;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.sub-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--sage);
  box-shadow: 0 14px 30px rgba(31, 84, 112, 0.1);
}
.sub-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--blue-deep);
}
.sub-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sub-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.sub-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

@media (min-width: 860px) {
  .aree__media img { max-width: min(640px, 100%); }
  .sub-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Il libro ---------- */

.libro {
  background: var(--blue-deep);
  color: var(--on-blue);
}
.libro h2 { color: #fff; }
.libro .eyebrow { color: var(--sage); }
.libro .lede { color: var(--on-blue); font-family: var(--font-serif); font-style: italic; font-size: 19px; }
.libro__content p { color: var(--on-blue-soft); }
.libro__content ul { list-style: none; margin: 0 0 28px; }
.libro__content li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--on-blue-soft);
  font-size: 14.5px;
}
.libro__content li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.libro__toc-label {
  font-weight: 600;
  color: var(--on-blue);
}

.libro__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.libro__media img {
  border-radius: 4px;
  max-width: min(340px, 100%);
  margin: 0 auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.pull-quote-wrap {
  position: relative;
  margin: 8px 0 30px;
}
.pull-quote-mark {
  position: absolute;
  top: -46px;
  left: -6px;
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
}
.pull-quote {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: #fff;
  border-left: 3px solid var(--sage);
  padding-left: 20px;
  margin: 0;
}

.libro__buy-intro {
  font-size: 14px;
  color: var(--on-blue-soft);
}

.retailer-row {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: 14px;
}
.btn-retailer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 66px;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-retailer:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}
.btn-retailer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.btn-retailer img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 860px) {
  .libro__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .libro__media { flex: 0.85; }
  .libro__content { flex: 1.15; }
  .libro__media img { max-width: 100%; }
  .btn-retailer { width: 168px; height: 74px; }
}

/* ---------- Per chi ---------- */

.per-chi__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.per-chi__col ul {
  list-style: none;
  margin-top: 18px;
}
.per-chi__col li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.per-chi__col li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.per-chi__media {
  margin-bottom: 20px;
}
.per-chi__media img {
  border-radius: 4px;
  max-width: min(460px, 100%);
  margin: 0 auto;
}
.per-chi__col--secondary p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

@media (min-width: 860px) {
  .per-chi__inner {
    flex-direction: row;
    gap: 64px;
  }
  .per-chi__col { flex: 1; }
}

/* ---------- Contatti ---------- */

.contatti { background: var(--cream-2); }
.contatti__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: flex-start;
}
.contatti__list {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contatti__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contatti__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--sage);
}
.contatti__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contatti__item {
  list-style: none;
}
.contatti__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 4px;
}
.contatti__value {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
}
.contatti__item a {
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contatti__item a:hover { color: var(--blue-mid); border-color: var(--blue-mid); }

.contatti__cta { width: 100%; }

@media (min-width: 860px) {
  .contatti__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .contatti__cta { width: auto; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 20px;
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Curve dividers ---------- */

.section { position: relative; }

.curve-divider {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  transform: translateY(-99%);
  line-height: 0;
  pointer-events: none;
}
.curve-divider svg { display: block; width: 100%; height: 100%; }
.curve-divider--into-cream2 path { fill: var(--cream-2); }
.curve-divider--into-blue path { fill: var(--blue-deep); }
.curve-divider--into-cream path { fill: var(--cream); }

@media (min-width: 860px) {
  .curve-divider { height: 78px; }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary:hover,
  .btn-retailer:hover {
    transform: none;
  }
}
