﻿/* Hero refresh — editorial field journal */
:root {
  --hero-paper: #f1eee4;
  --hero-ink: #123D17;
  --hero-moss: #1B5E20;
  --hero-accent: #C3DBB5;
  --hero-line: rgba(27, 94, 32, .22);
}

.hero {
  position: relative;
  min-height: 100svh;
  height: auto;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 22%, rgba(104,128,92,.10), transparent 28%),
    var(--hero-paper);
  color: var(--hero-ink);
}
.hero::before,
.hero::after { display: none !important; }

.hero__media {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 43%;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(.82) contrast(1.04) brightness(.92);
  transform: scale(1.025);
}
.hero__media::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,37,26,.24), transparent 28%),
    linear-gradient(180deg, rgba(6,18,11,.22), transparent 25%, transparent 68%, rgba(6,18,11,.42));
  pointer-events: none;
}
.hero__media::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,.38);
  box-shadow: -24px 0 55px rgba(16,37,26,.12);
}

.hero__center {
  position: relative;
  z-index: 4;
  top: auto;
  left: auto;
  width: min(50vw, 760px);
  min-height: 100svh;
  padding: clamp(9rem, 18vh, 12.5rem) 0 clamp(6rem, 11vh, 8rem) clamp(2rem, 6vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transform: none;
  color: var(--hero-ink);
}
.hero__center::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(1.2rem, 3vw, 3.7rem);
  top: 18%;
  width: clamp(9rem, 16vw, 17rem);
  aspect-ratio: 1;
  border: 1px solid rgba(74,101,76,.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 clamp(1rem, 2.4vw, 2.5rem) rgba(74,101,76,.035),
    0 0 0 clamp(2rem, 4.8vw, 5rem) rgba(74,101,76,.022);
}
.hero__center::after {
  content: "";
  display: block;
  width: clamp(3.5rem, 7vw, 7rem);
  height: 1px;
  margin: clamp(1.6rem, 3.2vh, 2.6rem) 0 0 clamp(1rem, 3.4vw, 4rem);
  background: linear-gradient(90deg, var(--hero-moss), transparent);
}

.hero__kicker {
  position: relative;
  margin: 0 0 clamp(1.4rem, 3vh, 2.4rem);
  padding-left: 3.8rem;
  color: var(--hero-moss);
  font-size: clamp(.7rem, .78vw, .82rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: none;
}
.hero__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.8rem;
  height: 1px;
  background: var(--hero-moss);
}

.hero h1 {
  margin: 0;
  color: var(--hero-ink);
  font-size: clamp(4rem, 6.7vw, 7.6rem);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.055em;
  text-shadow: none;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 > span:last-child {
  margin-top: .14em;
  margin-left: clamp(1rem, 3.4vw, 4rem);
}
.hero h1 em { color: var(--hero-moss); font-style: italic; }
.hero h1 i { color: #7d966c; font-style: normal; }

.hero__promise {
  max-width: 35ch;
  margin: clamp(1.7rem, 3.5vh, 2.7rem) 0 0 clamp(1rem, 3.4vw, 4rem);
  padding: 0 0 0 1.15rem;
  border-left: 1px solid rgba(91,117,85,.45);
  color: rgba(16,37,26,.70);
  font-family: var(--body);
  font-size: clamp(.93rem, 1.05vw, 1.08rem);
  font-style: normal;
  line-height: 1.62;
  text-wrap: balance;
}

.hero__actions-refresh {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin: clamp(1.4rem, 3vh, 2.2rem) 0 0 clamp(1rem, 3.4vw, 4rem);
}
.hero__cta-main,
.hero__cta-text {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.hero__cta-main {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem .9rem 1.2rem;
  border-radius: 999px;
  background: #1B5E20;
  color: #fff;
  box-shadow: 0 14px 28px rgba(18,61,23,.18);
}
.hero__cta-main span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--hero-paper);
  color: #1B5E20;
  font-size: .82rem;
}
.hero__cta-main:hover { transform: translateY(-3px); background: #123D17; }
.hero__cta-text {
  padding-block: .5rem;
  color: var(--hero-ink);
  border-bottom: 1px solid rgba(16,37,26,.32);
}
.hero__cta-text:hover { color: var(--hero-moss); border-color: var(--hero-moss); }

.hero__chapter {
  position: absolute;
  z-index: 4;
  top: clamp(7.5rem, 14vh, 10rem);
  right: clamp(1.5rem, 3vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.36);
}
.hero__chapter span {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--hero-accent);
}
.hero__chapter small {
  max-width: 8ch;
  font-size: .56rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero__seal {
  position: absolute;
  z-index: 4;
  right: clamp(2rem, 5vw, 6rem);
  bottom: clamp(4rem, 8vh, 6.5rem);
  width: clamp(98px, 9vw, 128px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(7,22,13,.18);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.08);
}
.hero__seal::before {
  content: "✦";
  position: absolute;
  top: 12px;
  color: var(--hero-accent);
  font-size: .7rem;
}
.hero__seal span {
  margin-top: .65rem;
  text-align: center;
  font-size: .5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .18em;
}

.hero__footnote {
  position: absolute;
  z-index: 4;
  left: clamp(2rem, 6vw, 7rem);
  bottom: clamp(1.7rem, 3vh, 2.5rem);
  margin: 0;
  color: rgba(16,37,26,.55);
  font-size: .56rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__scroll {
  z-index: 4;
  left: auto;
  right: clamp(1rem, 2.4vw, 2.8rem);
  bottom: clamp(1.5rem, 3vh, 2.3rem);
  color: rgba(255,255,255,.82);
}
.hero__scroll-line { background: rgba(255,255,255,.54); }
.hero__mobile-fade { display: none; }

@media (max-width: 1040px) and (min-width: 761px) {
  .hero__media { left: 47%; }
  .hero__center { width: 54vw; padding-left: 3rem; }
  .hero h1 { font-size: clamp(4rem, 7.4vw, 6rem); }
  .hero__promise { max-width: 31ch; }
  .hero__seal { right: 2.5rem; }
}

@media (max-width: 760px) {
  .hero {
    min-height: max(100svh, 800px);
    background: var(--hero-ink);
  }
  .hero__media {
    inset: 0 0 auto;
    width: 100%;
    height: 58%;
    clip-path: none;
  }
  .hero__media img {
    object-position: 56% center;
    filter: saturate(.82) contrast(1.04) brightness(.9);
    transform: scale(1.02);
  }
  .hero__media::before {
    background:
      linear-gradient(180deg, rgba(5,16,10,.36), transparent 28%, rgba(5,16,10,.08) 58%, rgba(5,16,10,.74)),
      linear-gradient(90deg, rgba(5,16,10,.25), transparent 70%);
  }
  .hero__media::after { display: none; }
  .hero__center {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 2rem);
    min-height: 0;
    margin: 0 1rem;
    padding: 2rem 1.35rem 1.6rem;
    transform: translateY(calc(54svh - 4.5rem));
    display: block;
    background: var(--hero-paper);
    color: var(--hero-ink);
    box-shadow: 0 24px 60px rgba(0,0,0,.24);
  }
  .hero__center::before {
    top: -3.2rem;
    right: 1rem;
    left: auto;
    width: 7rem;
    border-color: rgba(220,232,158,.36);
    box-shadow: none;
  }
  .hero__center::after { margin: 1.25rem 0 0 .6rem; }
  .hero__kicker {
    margin-bottom: 1.15rem;
    padding-left: 2.45rem;
    font-size: .61rem;
    letter-spacing: .22em;
  }
  .hero__kicker::before { width: 1.75rem; }
  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.35rem);
    line-height: .79;
  }
  .hero h1 > span:last-child { margin-left: .65rem; }
  .hero__promise {
    max-width: 32ch;
    margin: 1.25rem 0 0 .65rem;
    padding-left: .85rem;
    font-size: .82rem;
    line-height: 1.5;
  }
  .hero__actions-refresh {
    margin: 1.2rem 0 0 .65rem;
    gap: .85rem;
  }
  .hero__cta-main { padding: .76rem .85rem .76rem 1rem; font-size: .58rem; }
  .hero__cta-main span { width: 20px; height: 20px; }
  .hero__cta-text { font-size: .56rem; }
  .hero__chapter {
    top: 6.2rem;
    right: 1rem;
  }
  .hero__chapter span { font-size: 1.8rem; }
  .hero__chapter small { font-size: .48rem; }
  .hero__seal,
  .hero__footnote,
  .hero__scroll { display: none; }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 760px) {
  .hero { min-height: 760px; }
  .hero__center { transform: translateY(calc(51svh - 4rem)); padding-top: 1.55rem; }
  .hero h1 { font-size: clamp(2.85rem, 14.2vw, 3.65rem); }
  .hero__promise { font-size: .77rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img,
  .hero__cta-main { transition: none !important; transform: none; }
}


/* Header contrast over the light editorial panel */
.nav:not(.is-solid) .nav__shell {
  background: rgba(7, 22, 13, .82);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.nav:not(.is-solid) .nav__logo { filter: brightness(0) invert(1); }
.nav:not(.is-solid) .nav__link { color: rgba(255,255,255,.72); }
.nav:not(.is-solid) .nav__link:hover,
.nav:not(.is-solid) .nav__link--active { color: #fff; }


/* Mobile refinement v3 — anchored editorial card */
@media (max-width: 760px) {
  .hero {
    min-height: max(100svh, 740px);
  }
  .hero__media {
    height: 57%;
  }
  .hero__media img {
    object-position: 56% 42%;
  }
  .hero__center {
    position: absolute;
    inset: auto 1rem 1rem;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 1.55rem 1.25rem 1.35rem;
    transform: none;
    border-top: 3px solid var(--hero-accent);
    box-shadow: 0 24px 62px rgba(0,0,0,.3);
  }
  .hero__center::before { display: none; }
  .hero__center::after {
    width: 3.5rem;
    margin: 1.15rem 0 0 .55rem;
  }
  .hero__kicker {
    margin-bottom: 1rem;
    padding-left: 2.25rem;
    font-size: .58rem;
  }
  .hero__kicker::before { width: 1.55rem; }
  .hero h1 {
    font-size: clamp(3.1rem, 14.5vw, 4rem);
    line-height: .78;
  }
  .hero__promise {
    max-width: 34ch;
    margin: 1.05rem 0 0 .55rem;
    font-size: .82rem;
    line-height: 1.48;
  }
  .hero__actions-refresh {
    width: calc(100% - .55rem);
    margin: 1.05rem 0 0 .55rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
  }
  .hero__cta-main {
    justify-content: space-between;
    padding: .72rem .78rem .72rem .95rem;
  }
  .hero__cta-text { white-space: nowrap; }
}

@media (max-width: 380px), (max-height: 720px) and (max-width: 760px) {
  .hero { min-height: 720px; }
  .hero__center {
    inset: auto .8rem .8rem;
    padding: 1.35rem 1.1rem 1.15rem;
    transform: none;
  }
  .hero h1 { font-size: clamp(2.85rem, 13.8vw, 3.45rem); }
  .hero__promise { font-size: .76rem; }
}

/* Header v4 — full-width structural masthead */
.nav {
  padding: 0 !important;
  background: #1B5E20;
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.nav__shell,
.nav:not(.is-solid) .nav__shell,
.nav.is-solid .nav__shell {
  width: 100%;
  max-width: none;
  min-height: 82px;
  margin: 0;
  padding: .55rem clamp(1rem, 3.5vw, 4.5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.is-solid {
  background: rgba(245, 241, 231, .97);
  border-bottom-color: rgba(28,48,36,.16);
  box-shadow: 0 8px 28px rgba(10,25,16,.1);
}
.nav.is-solid.nav--dark,
.nav.nav--dark {
  background: #1B5E20 !important;
  border-bottom-color: rgba(245,241,231,.08) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.25) !important;
}
.nav.nav--dark .nav__link { color: rgba(245,241,231,.72); }
.nav.nav--dark .nav__link:hover,
.nav.nav--dark .nav__link--active { color: var(--paper); }
.nav.nav--dark .nav__logo { filter: brightness(0) invert(1); }
.nav.is-solid.nav--dark .nav__cta,
.nav.nav--dark .nav__cta {
  background: var(--paper);
  border: 1px solid rgba(245, 241, 231, .55);
  color: #123D17;
  box-shadow: 0 10px 24px rgba(8, 26, 11, .18);
}
.nav.is-solid.nav--dark .nav__cta i,
.nav.nav--dark .nav__cta i {
  background: #1B5E20;
  color: var(--paper);
}
.nav.is-solid.nav--dark .nav__cta:hover,
.nav.nav--dark .nav__cta:hover {
  background: var(--sage-300);
  color: #123D17;
}
.nav.is-solid.nav--dark .nav__cta:hover i,
.nav.nav--dark .nav__cta:hover i {
  background: #123D17;
}
.nav.is-solid.nav--dark .nav__login,
.nav.nav--dark .nav__login {
  background: rgba(245, 241, 231, .12);
  border-color: rgba(245, 241, 231, .38);
  color: var(--paper);
}
.nav.is-solid.nav--dark .nav__login:hover,
.nav.nav--dark .nav__login:hover,
.nav.is-solid.nav--dark .nav__login:focus-visible,
.nav.nav--dark .nav__login:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: #1B5E20;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { height: 54px; }

@media (max-width: 760px) {
  .nav__shell,
  .nav:not(.is-solid) .nav__shell,
  .nav.is-solid .nav__shell {
    min-height: 70px;
    padding: .45rem 1rem;
  }
  .nav__logo { height: 48px; }
}

/* Mobile navigation v6 */
@media (max-width: 900px) {
  .nav.is-open .nav__shell {
    background: #1B5E20 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav.is-open .nav__burger { color: var(--paper); }

  .nav__panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5.5rem clamp(1.5rem, 6vw, 2.5rem) max(2rem, env(safe-area-inset-bottom));
    background: #1B5E20;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .38s var(--ease), visibility .38s;
  }
  .nav__panel::before {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at 100% 0%, rgba(88,165,100,.09) 0%, transparent 60%);
  }
  .nav__panel > * { position: relative; z-index: 1; }
  .nav.is-open .nav__panel { visibility: visible; opacity: 1; }

  /* links */
  .nav__panel-links {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
  }
  .nav__panel-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(.9rem, 2.8vw, 1.25rem) 0;
    border-bottom: 1px solid rgba(245,241,231,.1);
    color: rgba(245,241,231,.7);
    font-family: var(--display);
    font-size: clamp(1.7rem, 6.5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -.03em;
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    transition: color .28s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
  }
  .nav__panel-links a::after {
    content: "";
    width: 0; height: 0;
    transition: width .28s var(--ease), height .28s var(--ease), opacity .28s;
    opacity: 0;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23aebfa6' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='10' x2='15' y2='10'/%3E%3Cpolyline points='10%2C5 16%2C10 10%2C15'/%3E%3C/svg%3E");
  }
  .nav__panel-links a:hover,
  .nav__panel-links a:focus-visible { color: var(--paper); }
  .nav__panel-links a:hover::after,
  .nav__panel-links a:focus-visible::after { width: 1.4rem; height: 1.4rem; opacity: 1; }

  /* stagger per ogni link */
  .nav__panel-links a:nth-child(1) { transition-delay: .05s; }
  .nav__panel-links a:nth-child(2) { transition-delay: .1s; }
  .nav__panel-links a:nth-child(3) { transition-delay: .15s; }
  .nav__panel-links a:nth-child(4) { transition-delay: .2s; }
  .nav__panel-links a:nth-child(5) { transition-delay: .25s; }
  .nav__panel-links a:nth-child(6) { transition-delay: .3s; }
  .nav.is-open .nav__panel-links a { opacity: 1; transform: none; }

  /* footer */
  .nav__panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245,241,231,.12);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s .38s var(--ease), transform .4s .38s var(--ease);
  }
  .nav.is-open .nav__panel-foot { opacity: 1; transform: none; }
  .nav__panel-sig { display: flex; flex-direction: column; gap: .18rem; }
  .nav__panel-sig span {
    font-family: var(--display); font-size: 1rem; font-weight: 400;
    color: var(--paper); letter-spacing: -.01em;
  }
  .nav__panel-sig small {
    font-family: var(--sans); font-size: .52rem; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    color: rgba(245,241,231,.4);
  }
  .nav__panel-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.25rem;
    background: var(--sage-400); border-radius: 999px;
    color: var(--forest-950); text-decoration: none;
    font-family: var(--sans); font-size: .65rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    transition: background .25s var(--ease), gap .25s var(--ease);
  }
  .nav__panel-cta:hover { background: var(--sage-300); gap: .7rem; }
  .nav__panel-cta .ui-arrow { width: .75rem; height: .75rem; stroke: var(--forest-950); }
}

/* Vector arrows v6 — consistent rendering on iOS and Android */
.ui-arrow {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
/* desktop: nav__panel-links non visibili */
@media (min-width: 901px) {
  .nav__panel-links a::after { display: none; }
}
.footer__bottom a { display: inline-flex; align-items: center; gap: .45rem; }
.footer__bottom .ui-arrow { width: .82rem; height: .82rem; }
