@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Inter:wght@300;400;500&display=swap');

/* ─────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Design System Palette ── */
  --primary:      #49110B;   /* deep burgundy — branding & interactive */
  --secondary:    #56483B;   /* earthy brown — secondary actions */
  --tertiary:     #C8C2B7;   /* warm gray — accents & deepest section bg */
  --neutral:      #E7E5DB;   /* off-white — main background */

  /* ── Derived surface tokens ── */
  --ivory:        #E7E5DB;   /* = neutral */
  --ivory-warm:   #DEDAD0;   /* mid between neutral and tertiary */
  --ivory-deep:   #C8C2B7;   /* = tertiary */

  /* ── Text tokens ── */
  --dark:         #1C1C1C;
  --dark-80:      rgba(28, 28, 28, 0.88);
  --dark-60:      rgba(28, 28, 28, 0.72);
  --dark-40:      rgba(28, 28, 28, 0.52);
  --dark-20:      rgba(28, 28, 28, 0.24);
  --dark-08:      rgba(28, 28, 28, 0.09);
  --dark-05:      rgba(28, 28, 28, 0.06);

  /* ── Brown aliases (mapped to new palette) ── */
  --brown:        #49110B;   /* primary */
  --brown-light:  #56483B;   /* secondary */
  --brown-muted:  rgba(73, 17, 11, 0.12);

  /* ── Typography ── */
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;

  /* ── Layout ── */
  --content:      720px;
  --content-sm:   580px;
  --content-read: 640px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--ivory);
  color: var(--dark);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }


/* ─────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.5s ease;
  border-bottom: 1px solid var(--dark-08);
}

.nav.scrolled {
  background: var(--ivory);
  padding: 22px 48px;
  box-shadow: 0 1px 0 var(--dark-08);
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: baseline;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  opacity: 0.90;
  transition: opacity 0.3s ease;
  position: relative;
  line-height: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--brown);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--dark);
  transition: all 0.35s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ─────────────────────────────────────────────────
   CTA — FRECCIA EDITORIALE
───────────────────────────────────────────────── */
.cta-arrow {
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.35s ease;
  position: relative;
}

.cta-arrow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.cta-arrow:hover {
  color: var(--brown);
}

.cta-arrow:hover::after {
  opacity: 0.7;
}

.cta-arrow__icon {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 15px;
}

.cta-arrow:hover .cta-arrow__icon {
  transform: translateX(4px);
}

.cta-arrow--warm {
  color: var(--brown);
}

.cta-arrow--warm:hover {
  color: var(--dark);
}

/* ─────────────────────────────────────────────────
   BUTTON — SOLID PRIMARY
───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 22px 56px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.btn:hover {
  background: var(--secondary);
  color: #fff;
}

.btn--wide {
  display: block;
  width: 100%;
  text-align: center;
  padding: 22px 40px;
}


/* Legacy CTA link (for other pages) */
.cta-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--dark);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
}

.cta-link:hover {
  color: var(--brown);
  border-color: var(--brown);
}

.cta-link--brown {
  color: var(--brown);
  border-color: var(--brown);
}

.cta-link--brown:hover {
  color: var(--dark);
  border-color: var(--dark);
}

.cta-link--large {
  font-size: 15px;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
}

/* CTA con icona social: l'icona resta fuori dalla sottolineatura,
   solo il testo è sottolineato. Icona e testo ereditano il colore. */
.cta-link--icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: none;
  padding-bottom: 0;
}

.cta-link--icon .cta-link__label {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.cta-link__ic {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}


/* ─────────────────────────────────────────────────
   SECTION BACKGROUND VARIANTS
   Alternanza calda lungo la pagina
───────────────────────────────────────────────── */
.sec--warm {
  background: var(--ivory-warm); /* #F3EEE7 */
}

.sec--deep {
  background: var(--ivory-deep); /* #EBE4DA */
}


/* ─────────────────────────────────────────────────
   LAYOUT UTILITY
───────────────────────────────────────────────── */
.align-left {
  text-align: left !important;
}

.align-left .rule {
  margin-left: 0;
}

.align-left .sec-label {
  text-align: left;
}

/* ─────────────────────────────────────────────────
   RULE / DIVIDER
───────────────────────────────────────────────── */
.rule {
  width: 36px;
  height: 1px;
  background: var(--brown);
  opacity: 0.5;
  margin: 0 auto;
}

.rule--left {
  margin: 0;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--dark-08);
  border: none;
}

/* Section Label — used across homepage */
.sec-label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 40px;
}

.sec-label--light {
  color: var(--brown-light);
}


/* ─────────────────────────────────────────────────
   CONTENT WRAPPER (inner pages)
───────────────────────────────────────────────── */
.content-wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 32px;
}

.content-wrap--sm {
  max-width: var(--content-sm);
  margin: 0 auto;
  padding: 0 32px;
}


/* ─────────────────────────────────────────────────
   SECTION BASE (inner pages)
───────────────────────────────────────────────── */
.section {
  padding: 120px 0;
}

.section--large {
  padding: 160px 0;
}

.section--tight {
  padding: 80px 0;
}

.section-label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: 48px;
}

/* Section heading used standalone (no serif title beneath it) */
.section-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--dark);
  display: block;
  margin-bottom: 56px;
}

.section-heading em {
  font-style: italic;
  color: var(--brown);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 40px;
}

.section-title em {
  font-style: italic;
  color: var(--brown);
}

.section-title--center {
  text-align: center;
}

.section-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark-80);
}

.section-text + .section-text {
  margin-top: 24px;
}

/* "Breathed" single sentences */
.breathed {
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark-80);
}

.breathed p {
  margin-bottom: 18px;
}

.breathed p:last-child {
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────────
   LE 4 VIE (inner pages — legacy)
───────────────────────────────────────────────── */
.vie-intro {
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark-80);
  margin-bottom: 64px;
}

.vie-list {
  list-style: none;
}

.vie-item {
  padding: 40px 0;
  border-top: 1px solid var(--dark-08);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.vie-item:last-child {
  border-bottom: 1px solid var(--dark-08);
}

.vie-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  font-style: italic;
  color: var(--dark);
  padding-top: 2px;
}

.vie-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark-80);
  font-weight: 400;
}

.vie-footer {
  margin-top: 56px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--dark-40);
  font-style: italic;
  font-family: var(--serif);
}


/* ─────────────────────────────────────────────────
   QUOTE BLOCK (inner pages)
───────────────────────────────────────────────── */
.quote-block {
  text-align: center;
  padding: 80px 0;
}

.quote-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--dark);
  max-width: 520px;
  margin: 0 auto;
}

.quote-attr {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brown);
}


/* ─────────────────────────────────────────────────
   HIGHLIGHT BAND
───────────────────────────────────────────────── */
.band {
  background: rgba(73, 17, 11, 0.04);
  border-top: 1px solid var(--dark-05);
  border-bottom: 1px solid var(--dark-05);
}


/* ─────────────────────────────────────────────────
   PAGE CLOSING + CITAZIONI (sistema unificato)
───────────────────────────────────────────────── */
/* Finale di pagina: fascia centrata con frase serif e CTA opzionale */
.page-closing {
  background: var(--ivory-warm);
  border-top: 1px solid var(--dark-08);
  border-bottom: 1px solid var(--dark-08);
  text-align: center;
  padding: 110px 32px;
}

.page-closing__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.55;
  color: var(--dark);
  max-width: 640px;
  margin: 0 auto;
}

.page-closing__cta {
  margin-top: 48px;
}

/* Variante invertita: pannello burgundy con testo chiaro */
.page-closing--invert {
  background: var(--brown);
  border-top-color: var(--brown);
  border-bottom-color: var(--brown);
}

.page-closing--invert .page-closing__quote {
  color: var(--ivory);
}

.page-closing--invert .page-closing__attr {
  color: var(--ivory);
  opacity: 0.7;
}

/* Attribuzione condivisa: pullquote in-flow + finali */
.pullquote-attr,
.page-closing__attr {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 28px;
}


/* ─────────────────────────────────────────────────
   CLOSING (inner pages — legacy)
───────────────────────────────────────────────── */
.closing {
  text-align: center;
  padding: 140px 32px;
}

.closing-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  font-weight: 400;
  color: var(--dark-60);
  margin-bottom: 56px;
  line-height: 1.4;
}

.closing-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.closing-tagline {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark-40);
}


/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
.footer {
  padding: 56px 48px;
  border-top: 1px solid var(--dark-08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark-40);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--dark);
}

.footer-copy {
  font-size: 11px;
  color: var(--dark-40);
  white-space: nowrap;
}

/* Colonna centrale del footer: nav + social impilati */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dark-40);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--dark);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ── Modal Policy (Privacy Policy / Cookie Policy) ── */
#ua-policy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#ua-policy-modal.ua-pm--open {
  display: flex;
}

.ua-pm__overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ua-pm__box {
  position: relative;
  z-index: 1;
  background: var(--ivory);
  width: min(860px, 92vw);
  height: min(82vh, 700px);
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--primary);
  animation: ua-pm-in 0.25s ease;
}

@keyframes ua-pm-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ua-pm__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--dark-20);
  cursor: pointer;
  color: var(--dark-60);
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}

.ua-pm__close:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.ua-pm__frame {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .ua-pm__box {
    width: 100vw;
    height: 100dvh;
    border-top: none;
    border-top: 2px solid var(--primary);
  }
}


/* ── Barra legale sotto il footer principale ── */
.footer-legal {
  padding: 14px 48px;
  border-top: 1px solid var(--dark-08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-legal .cookie-preferences-link {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dark-40);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-legal a:hover,
.footer-legal .cookie-preferences-link:hover {
  color: var(--dark);
}

.footer-legal__sep {
  font-size: 11px;
  color: var(--dark-20);
  user-select: none;
}


/* ─────────────────────────────────────────────────
   PAGE HEADER (inner pages)
───────────────────────────────────────────────── */
.page-header {
  padding: 180px 32px 100px;
  text-align: center;
}

.page-header-label {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

.page-header-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}

.page-header-sub {
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark-60);
  max-width: 480px;
  margin: 0 auto 48px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.6s;
}

.page-header-rule {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.7s;
}


/* ─────────────────────────────────────────────────
   MANIFESTO SPECIFIC
───────────────────────────────────────────────── */
.manifesto-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 32px;
}

.manifesto-chapter {
  padding: 80px 0;
  border-top: 1px solid var(--dark-08);
}

.manifesto-pullquote + .manifesto-chapter {
  border-top: none;
}

.manifesto-chapter:first-child {
  border-top: none;
  padding-top: 40px;
}

.manifesto-chapter-label {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--brown);
  display: block;
  margin-bottom: 22px;
}

.manifesto-chapter-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 40px;
  color: var(--dark);
}

.manifesto-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--dark-80);
}

.manifesto-text p {
  margin-bottom: 20px;
}

.manifesto-text p:last-child {
  margin-bottom: 0;
}

.manifesto-text em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--dark);
  font-size: 18px;
}

.manifesto-pullquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  padding: 80px 0;
  border-top: 1px solid var(--brown-muted);
  border-bottom: 1px solid var(--brown-muted);
  margin: 56px 0;
  text-align: center;
}


/* ─────────────────────────────────────────────────
   TEST PAGE
───────────────────────────────────────────────── */
.test-embed {
  width: 100%;
  min-height: 600px;
  border: none;
  background: transparent;
}

.test-intro {
  max-width: var(--content-sm);
  margin: 0 auto;
  padding: 0 32px 80px;
  text-align: center;
}

.test-intro-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark-80);
}

.test-intro-text p {
  margin-bottom: 18px;
}


/* ─────────────────────────────────────────────────
   NEWSLETTER PAGE
───────────────────────────────────────────────── */
.newsletter-form {
  margin-top: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark-60);
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(28, 28, 28, 0.25);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-input::placeholder {
  color: var(--dark-40);
}

.form-input:focus {
  border-color: var(--brown);
}

.form-submit {
  margin-top: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--dark);
  border-bottom: 1px solid var(--dark);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.form-submit:hover {
  color: var(--brown);
  border-color: var(--brown);
}

.form-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--dark-40);
}


/* ─────────────────────────────────────────────────
   LINK IN BIO
───────────────────────────────────────────────── */
.bio-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
}

.bio-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.bio-tagline {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark-40);
  margin-bottom: 64px;
}

.bio-links {
  list-style: none;
  width: 100%;
  max-width: 380px;
}

.bio-link-item {
  border-top: 1px solid var(--dark-08);
  padding: 28px 0;
}

.bio-link-item:last-child {
  border-bottom: 1px solid var(--dark-08);
}

.bio-link {
  display: block;
  text-decoration: none;
}

.bio-link-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.bio-link-sub {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dark-40);
}

.bio-link:hover .bio-link-title {
  color: var(--brown);
}

.bio-link:hover .bio-link-sub {
  color: var(--brown);
  opacity: 0.7;
}


/* ═══════════════════════════════════════════════════
   ═══════════════════════════════════════════════════
   HOMEPAGE — DESIGN EDITORIALE MEMORABILE
   ═══════════════════════════════════════════════════
   ═══════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────
   1. HERO — COPERTINA DI MANIFESTO
   Centrata, iconica, quasi tutta la prima schermata
───────────────────────────────────────────────── */
.hero-ed {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 32px 100px;
  position: relative;
}

.hero-ed__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.3s;
}

.hero-ed__intro {
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.hero-ed__intro p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
}

.hero-ed__greek {
  font-family: var(--serif);
  font-size: clamp(48px, 8.5vw, 100px);
  font-style: italic;
  font-weight: 500;
  color: var(--brown);
  line-height: 1.0;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.65s;
}

.hero-ed__definition {
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.85s;
}

.hero-ed__definition p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.65;
}

.hero-ed__contrast {
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.05s;
}

.hero-ed__contrast p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  line-height: 2.4;
}

.hero-ed__contrast-em {
  font-weight: 400 !important;
  color: var(--dark) !important;
  margin-top: 4px;
}

.hero-ed__origin {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  color: var(--dark);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.2s;
}

.hero-ed__cta {
  margin-top: 64px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.4s;
}

.hero-ed__cta .cta-arrow {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-ed__cta .cta-arrow__icon {
  font-size: 20px;
}

/* Scroll hint — subtle animated line */
.hero-ed__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s;
}

.hero-ed__scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--brown);
  opacity: 0.3;
  animation: scrollPulse 2.5s ease-in-out infinite 2.5s;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50%      { transform: scaleY(0.5); opacity: 0.12; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ─────────────────────────────────────────────────
   2. IL PRESENTE — PRESA DI POSIZIONE
   Allineata a sinistra, netta, tagliente
───────────────────────────────────────────────── */
.sec-presente {
  padding: 160px 0 140px;
  border-top: 1px solid var(--dark-08);
}

.sec-presente__inner {
  max-width: var(--content-read);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.sec-presente__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.sec-presente__body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 2.1;
  color: var(--dark-80);
}

.sec-presente__body p + p {
  margin-top: 4px;
}

.sec-presente__pause {
  margin-top: 48px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark);
}

.sec-presente__pause p + p {
  margin-top: 4px;
}

.sec-presente__close {
  margin-top: 64px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
  line-height: 2.0;
  letter-spacing: 0.01em;
}

.sec-presente__transition {
  display: block;
  margin-top: 64px;
  opacity: 0.45;
}


.sec-direzione__close {
  margin-top: 64px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 23px);
  font-style: italic;
  font-weight: 400;
  color: var(--dark-80);
  line-height: 2.0;
  letter-spacing: 0.01em;
}


/* ─────────────────────────────────────────────────
   3. LA DIREZIONE — PASSAGGIO CONTEMPLATIVO
   Centrata, con accento verticale, tono diverso
───────────────────────────────────────────────── */
.sec-direzione {
  padding: 140px 0 160px;
  position: relative;
  border-top: 1px solid var(--dark-08);
}

.sec-direzione__inner {
  max-width: var(--content-read);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}


.sec-direzione__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 40px;
}

.sec-direzione__body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark-80);
}

.sec-direzione__body p + p {
  margin-top: 4px;
}

.sec-direzione__triad {
  margin-top: 56px;
}

.sec-direzione__triad-intro {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.85;
  margin-bottom: 28px;
}

.sec-direzione__triad-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 24px;
  border-left: 1px solid rgba(73, 17, 11, 0.25);
}

.sec-direzione__triad-items span {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
}

.sec-direzione__triad-item {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.5;
}

.sec-direzione__triad-close {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--dark);
  font-weight: 400;
}


/* ─────────────────────────────────────────────────
   4. LE 4 VIE — SEQUENZA SOLENNE, TIPOGRAFICA
   Centrata, enorme spazio, nessuna griglia
───────────────────────────────────────────────── */
.sec-vie {
  padding: 140px 0;
  background: var(--ivory-warm);
  border-top: 1px solid var(--dark-08);
  border-bottom: 1px solid var(--dark-08);
}

.sec-vie__header {
  max-width: var(--content-read);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  margin-bottom: 64px;
}

.sec-vie__intro {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-style: italic;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.2;
}

.sec-vie__list {
  list-style: none;
  counter-reset: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 32px;
}

.sec-vie__item {
  text-align: center;
  padding: 32px 0;
  position: relative;
}

.sec-vie__item + .sec-vie__item {
  border-top: 1px solid var(--dark-08);
}

.sec-vie__number {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brown);
  margin-bottom: 20px;
  opacity: 0.7;
}

.sec-vie__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 12px;
}

.sec-vie__desc {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-80);
  max-width: 360px;
  margin: 0 auto;
}

.sec-vie__note {
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 32px 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--dark);
  line-height: 1.65;
  border-top: 1px solid var(--dark-08);
}


/* ─────────────────────────────────────────────────
   5. IL TEST — STEP CONCRETO
   Fondo distinto, caldo e profondo
───────────────────────────────────────────────── */
.sec-test {
  padding: 160px 0;
  background: var(--ivory-warm);
  position: relative;
  border-top: 1px solid var(--dark-08);
}


.sec-test__inner {
  max-width: var(--content-read);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.sec-test__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 40px;
}

.sec-test__body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark-80);
  margin-bottom: 64px;
}

.sec-test__body p + p {
  margin-top: 16px;
}




/* ─────────────────────────────────────────────────
   6. COSA DIVENTERÀ
   Centrata, omogenea
───────────────────────────────────────────────── */
.sec-futuro {
  padding: 160px 0;
  border-top: 1px solid var(--dark-08);
}

.sec-futuro__inner {
  max-width: var(--content-read);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.sec-futuro__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 40px;
}

.sec-futuro__body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--dark-80);
}

.sec-futuro__body p + p {
  margin-top: 16px;
}

.sec-futuro__close {
  margin-top: 48px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--dark-80);
}


/* ─────────────────────────────────────────────────
   7. CHIUSURA — HERO FINALE
   Dichiarazione grande, molto spazio
───────────────────────────────────────────────── */
.sec-chiusura {
  text-align: center;
  padding: 200px 32px 180px;
  border-top: 1px solid var(--dark-08);
}

.sec-chiusura__quote {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 64px);
  font-style: italic;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sec-chiusura__tagline {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  color: var(--dark-60);
  letter-spacing: 0.03em;
}


/* ─────────────────────────────────────────────────
   HOMEPAGE REDESIGN — NUOVE CLASSI (legacy compat)
───────────────────────────────────────────────── */

/* Titolo XL per "Il Presente" */
.section-title--xl {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 48px;
}

.section-title--xl em {
  font-style: italic;
  color: var(--brown);
}

/* Testo respirato più grande */
.breathed--large {
  font-size: 19px;
  line-height: 2.0;
  color: var(--dark-60);
}

.breathed--large p {
  margin-bottom: 20px;
}

.breathed--large p:last-child {
  margin-bottom: 0;
}

/* Marcatore di svolta editoriale tra sezioni */
.section-pivot {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-pivot::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--brown);
  opacity: 0.5;
  flex-shrink: 0;
}

.section-pivot-text {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.8;
}

/* Le 4 Vie — versione editoriale */
.vie-editorial {
  list-style: none;
  padding-top: 80px;
  border-top: 1px solid var(--dark-08);
}

.vie-editorial-item {
  padding-bottom: 80px;
}

.vie-editorial-item + .vie-editorial-item {
  border-top: none;
}

.vie-editorial-number {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: 20px;
}

.vie-editorial-name {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 64px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.0;
  color: var(--dark);
  margin-bottom: 20px;
  display: block;
}

.vie-editorial-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark-60);
  max-width: 480px;
  font-weight: 400;
}

/* Sezione "Il Test" — distinta */
.section--test {
  padding: 180px 0;
  background: rgba(28, 28, 28, 0.025);
  border-top: 1px solid var(--dark-05);
  border-bottom: 1px solid var(--dark-05);
}

/* Sezione "Lo Spazio" — offset destra */
.content-wrap--offset {
  max-width: 460px;
  margin-left: auto;
  margin-right: 120px;
  padding: 0 32px;
}

/* Chiusura — quasi una seconda hero */
.closing-hero {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 64px);
  font-style: italic;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 80px;
}

.closing--large {
  padding: 200px 32px;
}

/* Legacy homepage classes (for compatibility if needed) */
.hp-center {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.hp-left {
  max-width: 640px;
  margin-left: max(40px, 10vw);
  margin-right: auto;
  padding: 0 32px;
}

.hp-right {
  max-width: 560px;
  margin-left: auto;
  margin-right: max(40px, 10vw);
  padding: 0 32px;
}

.hp-pivot {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 32px 0 52px;
  border-left: 1px solid rgba(73, 17, 11, 0.20);
}


/* ─────────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-d1 { transition-delay: 0.12s; }
.fade-in-d2 { transition-delay: 0.24s; }
.fade-in-d3 { transition-delay: 0.36s; }
.fade-in-d4 { transition-delay: 0.50s; }
.fade-in-d5 { transition-delay: 0.65s; }


/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav {
    padding: 24px 28px;
  }

  .nav.scrolled {
    padding: 18px 28px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
    padding: 0;
    margin: 0;
    box-shadow: -8px 0 24px rgba(28, 28, 28, 0.04);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 14px;
    opacity: 1;
  }

  /* Homepage sections */
  .sec-presente__inner,
  .sec-futuro__inner,
  .sec-direzione__inner {
    padding: 0 28px;
  }
}

@media (max-width: 680px) {
  /* Inner pages */
  .section {
    padding: 80px 0;
  }

  .section--large {
    padding: 100px 0;
  }

  .section--tight {
    padding: 60px 0;
  }

  .content-wrap,
  .content-wrap--sm {
    padding: 0 24px;
  }

  .hero {
    padding: 120px 24px 80px;
    min-height: 85vh;
  }

  .closing {
    padding: 100px 24px;
  }

  .footer {
    flex-direction: column;
    padding: 48px 24px;
    text-align: center;
    gap: 28px;
  }

  .footer-nav {
    gap: 20px;
  }

  .vie-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-wrap--offset {
    margin-right: auto;
    padding: 0 24px;
  }

  .section--test {
    padding: 100px 0;
  }

  .closing--large {
    padding: 120px 24px;
  }

  .vie-editorial {
    padding-top: 56px;
  }

  .vie-editorial-item {
    padding-bottom: 56px;
  }

  .manifesto-body {
    padding: 0 24px;
  }

  .page-closing {
    padding: 80px 24px;
  }

  .test-intro {
    padding: 0 24px 60px;
  }

  .page-header {
    padding: 140px 24px 80px;
  }

  /* ── Homepage mobile ── */
  .hero-ed {
    padding: 120px 24px 80px;
    min-height: 90vh;
  }

  .hero-ed__eyebrow {
    margin-bottom: 48px;
  }

  .hero-ed__scroll-hint {
    bottom: 24px;
  }

  .sec-presente {
    padding: 100px 0 80px;
  }

  .sec-presente__inner {
    padding: 0 24px;
  }

  .sec-presente__title {
    margin-bottom: 36px;
  }

  .sec-direzione {
    padding: 80px 0 100px;
  }

  .sec-direzione__inner {
    padding: 0 24px;
  }

  .sec-vie {
    padding: 100px 0;
  }

  .sec-vie__header {
    margin-bottom: 64px;
  }

  .sec-vie__item {
    padding: 40px 0;
  }

  .sec-vie__note {
    padding-top: 40px;
  }

  .sec-test {
    padding: 100px 0;
  }

  .sec-test__inner {
    padding: 0 24px;
  }

  .sec-futuro {
    padding: 100px 0 80px;
  }

  .sec-futuro__inner,
  .sec-presente__inner,
  .sec-direzione__inner {
    padding: 0 24px;
  }

  .sec-chiusura {
    padding: 120px 24px 100px;
  }

  .sec-chiusura__quote {
    margin-bottom: 48px;
  }
}

/* Extra small */
@media (max-width: 400px) {
  .hero-ed__greek {
    font-size: 40px;
  }

  .sec-presente__title {
    font-size: 32px;
  }

  .sec-vie__name {
    font-size: 28px;
  }

  .sec-chiusura__quote {
    font-size: 26px;
  }
}


/* ─────────────────────────────────────────────────
   MAILERLITE EMBEDDED FORMS
   Gli stili Agathos per i form MailerLite sono iniettati
   dinamicamente da JavaScript (vedi main.js, funzione
   applyAgathosMailerLiteStyles). Il JS legge l'ID specifico
   di ogni form e crea uno <style> con la specificità necessaria
   a battere la cascade di MailerLite. Funziona automaticamente
   per qualsiasi form: newsletter, community, futuri.
───────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────
   NAV — DROPDOWN "PROGETTO"
───────────────────────────────────────────────── */
.nav-dropdown {
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.90;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
}

.nav-dropdown-toggle::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.nav-submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: var(--submenu-x, 0);
  transform: translateY(-6px);
  margin: 0;
  padding: 18px 24px;
  background: var(--ivory);
  border: 1px solid var(--dark-08);
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: var(--submenu-w, max-content);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 210;
}

/* Ponte invisibile: mantiene l'hover nel gap toggle-pannello */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -52px;
  left: 0;
  right: 0;
  height: 52px;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-dropdown {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .nav-dropdown-toggle {
    font-size: 14px;
    opacity: 1;
  }
  .nav-submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: auto;
    left: auto;
    min-width: 0;
    gap: 20px;
  }
  .nav-submenu::before { display: none; }
  .nav-dropdown.open .nav-submenu {
    display: flex;
    visibility: visible;
    transform: none;
  }
}
