:root {
  --accent: #c8202f;
  --accent-hover: #a91a27;
  --gold: #e8a317;
  --violet: #6b4e9e;
  --teal: #1a7a6d;
  --origine: #8b1e2d;
  --fiducia: #1e4d8c;
  --evoluzione: #3d6b5a;
  --visione: #6b4e9e;
  --bg: #f6f1e8;
  --bg-deep: #ebe3d6;
  --ink: #161311;
  --muted: #5a534c;
  --soft: #8a8178;
  --line: #ddd4c7;
  --dark: #14110f;
  --dark-surface: #1f1b18;
  --on-dark: #faf7f2;
  --on-dark-muted: #c6bdb2;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Archivo", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  overflow-x: hidden;
  position: relative;
}

.page::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.brand-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 5px;
}

.brand-bar span:nth-child(1) { background: var(--accent); }
.brand-bar span:nth-child(2) { background: var(--gold); }
.brand-bar span:nth-child(3) { background: var(--violet); }
.brand-bar span:nth-child(4) { background: var(--teal); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--on-dark {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--light {
  background: var(--on-dark);
  color: var(--dark);
}

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

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--on-dark);
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn--text {
  background: transparent;
  color: var(--ink);
  border: none;
  padding-left: 8px;
  padding-right: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  min-height: auto;
}

.btn--text:hover {
  color: var(--accent);
  background: transparent;
  transform: none;
}

/* Top */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(246, 241, 232, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 212, 199, 0.7);
}

.top__logo {
  width: 118px;
  height: auto;
}

.top__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}

.top__cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.top__cta:hover {
  color: var(--accent);
}

.top__cta:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  padding: 40px 24px 36px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 12% 18%, rgba(232, 163, 23, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 88% 8%, rgba(200, 32, 47, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 90%, rgba(26, 122, 109, 0.08), transparent 50%),
    linear-gradient(160deg, #f8f3eb 0%, #f0e7d8 48%, #e7dccb 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-bottom: 20px;
  animation: rise 1s var(--ease) both;
}

.hero__brand {
  margin: 0 0 18px;
  line-height: 0;
  position: relative;
}

.hero__logo-mark {
  display: block;
  width: min(100%, 400px);
  height: auto;
}

.hero__lead {
  margin: 0 0 32px;
  max-width: 36ch;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.hero__visual {
  position: relative;
  z-index: 1;
  margin: 52px 0 0;
  overflow: visible;
  isolation: auto;
  animation: rise 1.15s var(--ease) 0.12s both;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  height: auto;
}

.hero__visual img {
  width: min(100%, 320px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(22, 19, 17, 0.14));
  transition: transform 1.4s var(--ease);
}

.hero__visual:hover img {
  transform: translateY(-4px);
}

/* Intro */
.block {
  display: grid;
  gap: 36px;
  padding: 80px 24px;
}

.block__text {
  max-width: 560px;
}

.block__text h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.block__text p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.block__media {
  margin: 0;
  overflow: visible;
  background: transparent;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 28px);
}

.block__media img {
  width: min(100%, 620px);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(22, 19, 17, 0.14));
  transition: transform 1.2s var(--ease);
}

.block__media:hover img {
  transform: translateY(-4px);
}

/* Meanings */
.meanings {
  position: relative;
  padding: 88px 24px;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}

.meanings__glow {
  position: absolute;
  inset: auto -10% -30% 30%;
  height: 60%;
  background: radial-gradient(circle, rgba(232, 163, 23, 0.16), transparent 60%);
  pointer-events: none;
}

.meanings__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.meanings__head {
  margin-bottom: 48px;
  max-width: 560px;
}

.meanings__head .eyebrow {
  color: var(--gold);
}

.meanings__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

.meanings__head em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.meanings__grid {
  display: grid;
  gap: 18px;
}

.meaning {
  padding: 28px 26px 30px;
  background: linear-gradient(160deg, #24201c 0%, #1a1613 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 2px solid rgba(232, 163, 23, 0.55);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.meaning:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold);
}

.meaning__index {
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: rgba(232, 163, 23, 0.75);
  line-height: 1;
}

.meaning h3 {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.meaning p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Energies / decades */
.energies {
  padding: 88px 24px;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(200, 32, 47, 0.06), transparent 55%),
    var(--bg);
}

.energies__intro {
  max-width: 560px;
  margin-bottom: 44px;
}

.energies__intro h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
}

.energies__intro h2 em {
  font-style: italic;
  font-weight: 500;
}

.energies__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.energies__grid {
  display: grid;
  gap: 16px;
  margin: 0 0 36px;
}

.decade {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-top-width: 3px;
  min-height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.decade:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 19, 17, 0.07);
}

.decade--origine { border-top-color: var(--origine); }
.decade--fiducia { border-top-color: var(--fiducia); }
.decade--evoluzione { border-top-color: var(--evoluzione); }
.decade--visione { border-top-color: var(--visione); }

.decade__years {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.decade__cat {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.decade--origine .decade__cat { color: var(--origine); }
.decade--fiducia .decade__cat { color: var(--fiducia); }
.decade--evoluzione .decade__cat { color: var(--evoluzione); }
.decade--visione .decade__cat { color: var(--visione); }

.decade h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.1;
}

.decade h3 span {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

.decade > p:not(.decade__years):not(.decade__cat) {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}

.decade__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}

.decade__color {
  display: flex;
  align-items: center;
  gap: 8px;
}

.decade__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.decade--origine .decade__dot { background: var(--origine); }
.decade--fiducia .decade__dot { background: var(--fiducia); }
.decade--evoluzione .decade__dot { background: var(--evoluzione); }
.decade--visione .decade__dot { background: var(--visione); }

.energies__closing {
  margin: 0;
  max-width: 28rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

/* Store */
.store {
  position: relative;
  padding: 72px 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232, 163, 23, 0.28), transparent 55%),
    linear-gradient(165deg, #c8202f 0%, #9a1528 50%, #7a1220 100%);
}

.store__texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 11px
  );
  pointer-events: none;
}

.store__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 0;
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store__panel h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.store__panel > p {
  margin: 0 0 14px;
  color: rgba(250, 247, 242, 0.9);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 38ch;
}

.store__address {
  margin: 28px 0 8px !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.store__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Variante confronto: stile TOP SECRET originale, centrato */
.store--secret {
  background:
    radial-gradient(ellipse 80% 70% at 50% 10%, rgba(232, 163, 23, 0.38), transparent 50%),
    linear-gradient(135deg, #d01f30 0%, #9a1528 55%, #6e1020 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.store__panel--secret h2 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.02;
}

.store__secret {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

/* Footer */
.foot {
  padding: 72px 24px 48px;
  background: var(--bg-deep);
  text-align: center;
}

.foot p {
  margin: 0 auto 14px;
  max-width: 420px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.foot__thanks {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2rem) !important;
  font-style: italic;
  color: var(--ink) !important;
  max-width: 480px !important;
}

.foot__meta {
  margin-top: 36px !important;
  font-size: 11px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft) !important;
}

.foot__meta a {
  color: inherit;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.hero__brand::after {
  display: none;
}

@media (min-width: 860px) {
  .top {
    padding: 16px 52px;
  }

  .top__logo {
    width: 146px;
  }

  .hero {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 0 48px;
    min-height: 100svh;
  }

  .hero__content {
    display: block;
    flex: 0 1 auto;
    width: min(100%, 520px);
    max-width: 520px;
    padding: 64px 0;
    justify-content: initial;
  }

  .hero__logo-mark {
    width: min(100%, 500px);
  }

  .hero__lead {
    max-width: 36ch;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
  }

  .hero__visual {
    flex: 0 1 auto;
    margin: 0;
    height: auto;
    box-shadow: none;
    align-content: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
  }

  .hero__visual img {
    width: min(38vw, 460px);
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .block {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 72px;
    padding: 110px 64px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .meanings {
    padding: 110px 64px;
  }

  .meanings__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .energies {
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 64px;
  }

  .energies__grid {
    grid-template-columns: 1fr 1fr;
  }

  .store {
    padding: 96px 64px;
  }

  .store__panel {
    padding: 0;
  }

  .foot {
    padding: 88px 64px 56px;
  }
}

@media (max-width: 820px) {
  .hero__logo-mark {
    width: min(100%, 300px);
  }

  .hero__visual {
    margin-top: 52px;
  }

  .hero__visual img {
    width: min(100%, 320px);
  }

  .block__media img {
    width: min(100%, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content,
  .hero__visual,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
