/* ========================================================================== 
   LEA GROUP — sistema visivo globale
   Botanica, precisione formulativa, cultura officinale italiana.
   ========================================================================== */

:root {
  --lea-white: #ffffff;
  --lea-ivory: #fbfaf6;
  --lea-ivory-deep: #f0f2ea;
  --lea-green: #0d6128;
  --lea-green-deep: #073d1c;
  --lea-green-soft: #3f7f4d;
  --lea-gold: #e2ad08;
  --lea-gold-soft: #f2d36b;
  --lea-gold-text: #846300;
  --lea-charcoal: #182019;
  --lea-night: #182019;
  --lea-night-deep: #0d140f;
  --lea-night-soft: #2d382f;
  --lea-ink: #182019;
  --lea-ink-soft: #5c675f;
  --lea-olive: #75804a;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --header-height: 78px;
  --radius: 8px;
  --shadow-card: 0 14px 42px rgba(16, 35, 21, 0.08);
  --shadow-card-hover: 0 22px 56px rgba(16, 35, 21, 0.14);
  --ease-birth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--lea-ivory);
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--lea-ivory);
  color: var(--lea-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root {
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--lea-green-deep);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--lea-green);
  text-decoration-color: rgba(226, 173, 8, 0.6);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--lea-gold-text);
}

::selection {
  background: rgba(226, 173, 8, 0.28);
  color: var(--lea-charcoal);
}

:focus-visible {
  outline: 2px solid var(--lea-gold);
  outline-offset: 4px;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.25rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 6.75rem);
}

.section--deep {
  background: var(--lea-ivory-deep);
}

.section--night {
  background:
    radial-gradient(circle at 78% 18%, rgba(54, 113, 68, 0.18), transparent 34%),
    linear-gradient(145deg, var(--lea-night-deep), var(--lea-night) 58%, var(--lea-night-soft));
  color: rgba(255, 255, 255, 0.78);
}

.section--night h2,
.section--night h3 {
  color: var(--lea-white);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--lea-gold-text);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.4em;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
}

.lead {
  max-width: 62ch;
  color: var(--lea-ink-soft);
  font-size: clamp(1rem, 1.45vw, 1.1rem);
  line-height: 1.75;
}

.gold-rule {
  width: 68px;
  height: 2px;
  margin: 1.35rem 0;
  border: 0;
  background: linear-gradient(90deg, var(--lea-gold), rgba(226, 173, 8, 0));
}

.center {
  text-align: center;
}

.center .lead {
  margin-inline: auto;
}

.center .gold-rule {
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--lea-gold), transparent);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s var(--ease-birth), box-shadow 0.22s ease,
    background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn--gold {
  border-color: var(--lea-gold);
  background: var(--lea-gold);
  box-shadow: 0 8px 24px rgba(157, 117, 0, 0.18);
  color: var(--lea-charcoal);
}

.btn--gold:hover {
  border-color: var(--lea-gold-soft);
  background: var(--lea-gold-soft);
  box-shadow: 0 12px 28px rgba(157, 117, 0, 0.24);
  color: var(--lea-charcoal);
  transform: translateY(-2px);
}

.btn--primary {
  border-color: var(--lea-green);
  background: var(--lea-green);
  box-shadow: 0 8px 24px rgba(13, 97, 40, 0.2);
  color: var(--lea-white);
}

.btn--primary:hover {
  border-color: var(--lea-green-deep);
  background: var(--lea-green-deep);
  color: var(--lea-white);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(13, 97, 40, 0.38);
  background: transparent;
  color: var(--lea-green);
}

.btn--ghost:hover {
  border-color: var(--lea-green);
  background: rgba(13, 97, 40, 0.05);
  color: var(--lea-green-deep);
  transform: translateY(-2px);
}

.card {
  border: 1px solid rgba(19, 54, 28, 0.1);
  border-radius: var(--radius);
  background: var(--lea-white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-birth), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  border-color: rgba(226, 173, 8, 0.34);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* Il contenuto è sempre leggibile. L'observer aggiunge soltanto un ingresso
   discreto agli elementi che entrano davvero nel viewport. */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: lea-reveal 0.72s var(--ease-birth) var(--reveal-delay, 0ms) backwards;
}

@keyframes lea-reveal {
  from {
    transform: translateY(22px);
  }
  to {
    transform: none;
  }
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  background: var(--lea-green-deep);
  color: var(--lea-white);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    animation: none !important;
  }

  .btn,
  .card {
    transition: none;
  }
}
