/* PALETTE */
:root {
  --ink: #0A0A0A;
  --surface: #0F0F0F;
  --paper: #1A1A1A;
  --accent: #B8956A;
  --accent-2: #6B5D4F;
  --accent-3: #E8D9B5;
  --text: #F5F5F5;
  --text-mute: #A9A9A9;
  --line: rgba(255,255,255,0.08);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* BASE */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 0.95vw + 8px, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* GRAIN TEXTURE CINEMATICA */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* VIGNETTE ATMOSFERICA */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4em, 5vw, 4em); }
h2 { font-size: clamp(1.8em, 3.5vw, 2.8em); }
h3 { font-size: clamp(1.2em, 2vw, 1.6em); }

em {
  font-style: italic;
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 0.8s var(--ease) 2.2s forwards;
}

.loader__inner {
  text-align: center;
}

.loader__brand {
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
  display: flex;
  justify-content: center;
}

.loader__logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  margin: 2rem auto;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  width: 0%;
  animation: loadBar 2s var(--ease) forwards;
}

.loader__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9em;
  color: var(--text-mute);
}

.loader__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2em;
  color: var(--accent);
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes fadeOut {
  to { opacity: 0; pointer-events: none; }
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0);
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.3s var(--ease);
}

.nav__logo:hover {
  opacity: 0.7;
  color: var(--text);
}

.nav__mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 600;
}

.nav__logo-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav__logo:hover .nav__logo-img {
  transform: rotate(10deg);
  border-color: var(--accent);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.nav__link {
  font-size: 0.9em;
  color: var(--text-mute);
  transition: all 0.3s var(--ease);
}

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

.nav__cta {
  position: relative;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.4s var(--ease);
  text-decoration: none;
}

.nav__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.nav__cta:hover {
  color: var(--ink);
  border-color: var(--accent-3);
  transform: translateY(-2px);
}

.nav__cta:hover::before {
  transform: translateY(0);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

@media (max-width: 768px) {
  .nav__links { display: none; }
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.55;
  filter: grayscale(15%) contrast(1.05);
}

.hero__overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(10,10,10,0.8), transparent);
  z-index: 2;
}

.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--ink), transparent);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2em, 5vw, 3.8em);
  font-weight: 600;
}

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  margin: 0 0.25em;
}

.reveal-word.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero__claim {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--accent);
  margin-bottom: 3rem;
  font-style: italic;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat__num {
  font-size: 2.2em;
  font-weight: 600;
  color: var(--accent-3);
  font-family: 'JetBrains Mono', monospace;
}

.stat__label {
  font-size: 0.85em;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--accent);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* MARQUEE POETICO */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.6rem 0;
  background: linear-gradient(180deg,
    var(--ink) 0%,
    rgba(20,15,10,0.9) 50%,
    var(--ink) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 50s linear infinite;
}

.marquee__item {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--text-mute);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.marquee__sep {
  color: var(--accent);
  font-size: 0.85em;
  opacity: 0.65;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* SECTIONS */
.section {
  position: relative;
  padding: clamp(60px, 11vw, 120px) clamp(1rem, 5vw, 3rem);
  scroll-margin-top: 70px;
}

.section--dark {
  background: var(--surface);
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.chap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.chap__num {
  font-size: 2.5em;
  font-weight: 600;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  /* stato iniziale: entra dal basso in dissolvenza */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.chap__label {
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-mute);
  /* entra dopo il numero */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease) 0.12s, transform 0.9s var(--ease) 0.12s;
}

/* Linea dorata che si disegna accanto alla label */
.chap::after {
  content: "";
  align-self: center;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
  transition: width 0.9s var(--ease) 0.28s;
}

/* Stato "entrato" (aggiunto dallo scroll observer) */
.chap.is-in .chap__num {
  opacity: 0.5;
  transform: translateY(0);
}

.chap.is-in .chap__label {
  opacity: 1;
  transform: translateY(0);
}

.chap.is-in::after {
  width: clamp(40px, 8vw, 90px);
}

/* MANIFESTO */
.manifesto__title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.manifesto__text {
  font-size: clamp(1.1em, 1.8vw, 1.3em);
  color: var(--text-mute);
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.8;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.pillar {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}

.pillar.is-in {
  opacity: 1;
  transform: translateY(0);
}

.pillar:hover {
  border-color: var(--accent);
  background: rgba(184, 149, 106, 0.05);
}

.pillar__icon {
  font-size: 1.8em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pillar__title {
  font-size: 1.2em;
  margin-bottom: 0.8rem;
}

.pillar p {
  color: var(--text-mute);
  font-size: 0.95em;
  line-height: 1.7;
}

/* BRANI - layout editoriale magazine */
.brani-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.brani-item {
  position: relative;
  padding: 2.4rem 2rem 2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg,
    rgba(184,149,106,0.02) 0%,
    transparent 30%);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.brani-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.brani-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.brani-item:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg,
    rgba(184,149,106,0.08) 0%,
    transparent 50%);
  transform: translateY(-4px);
}

.brani-item:hover::before {
  opacity: 1;
}

.brani-item__number {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(3.5em, 6vw, 5em);
  font-weight: 400;
  color: var(--accent-3);
  line-height: 0.8;
  margin: 0 0 0.4rem -0.05em;
  opacity: 0.55;
  letter-spacing: -0.02em;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}

.brani-item:hover .brani-item__number {
  opacity: 0.85;
  color: var(--accent);
}

.brani-item__title {
  font-size: clamp(1.4em, 2vw, 1.7em);
  margin-bottom: 0.8rem;
  position: relative;
  padding-top: 1rem;
}

.brani-item__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transition: width 0.5s var(--ease), opacity 0.5s var(--ease);
}

.brani-item:hover .brani-item__title::before {
  width: 60px;
  opacity: 1;
}

.brani-item__desc {
  color: var(--text-mute);
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  font-style: italic;
  flex: 1;
}

.brani-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  transition: gap 0.4s var(--ease), color 0.4s var(--ease);
  align-self: flex-start;
}

.brani-item__link:hover {
  gap: 0.9rem;
  color: var(--accent-3);
}

.cta-block {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
}

.cta-block.is-in {
  opacity: 1;
  transform: translateY(0);
}

.cta-block p {
  font-size: 1.1em;
  margin-bottom: 1.5rem;
  color: var(--text-mute);
}

/* VIDEO */
.video-intro {
  font-size: clamp(1em, 1.6vw, 1.15em);
  color: var(--text-mute);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.video-intro.is-in {
  opacity: 1;
  transform: translateY(0);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}

.video-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--accent);
  color: var(--text);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.95);
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(1.05);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.85;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 1;
}

.video-card__body {
  padding: 1.5rem;
}

.video-card__title {
  font-size: clamp(1.1em, 1.5vw, 1.3em);
  margin-bottom: 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.3;
}

.video-card:hover .video-card__title {
  color: var(--accent-3);
}

.video-card__sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* GALLERIA */
.gallery-intro {
  font-size: clamp(1em, 1.6vw, 1.15em);
  color: var(--text-mute);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.gallery-intro.is-in {
  opacity: 1;
  transform: translateY(0);
}

.gallery {
  column-count: 3;
  column-gap: 1.2rem;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.2rem 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.4s var(--ease);
}

.gallery-item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.9) brightness(0.92);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(184,149,106,0.18));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.gallery-item:hover {
  border-color: var(--accent);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.02);
}

.gallery-item:hover::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .gallery { column-count: 2; }
}

@media (max-width: 640px) {
  .gallery { column-count: 1; }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.8em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.lightbox__close:hover {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text);
  font-size: 2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  font-family: 'Cormorant Garamond', serif;
}

.lightbox__nav:hover {
  background: var(--accent);
  color: var(--ink);
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--text-mute);
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.5em; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__close { top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; }
}

/* SHOWCASE — 3 foto in evidenza (vetrina della galleria) */
.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: min(72vh, 640px);
  perspective: 1200px;
}

.showcase__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0;
  cursor: pointer;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}

.showcase__item--main { grid-row: 1 / span 2; }

.showcase__item:hover,
.showcase__item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Riflesso di luce che attraversa la foto al passaggio del mouse. */
.showcase__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.16) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 1s var(--ease);
}

.showcase__item:hover::before,
.showcase__item:focus-visible::before {
  transform: translateX(130%);
}

.showcase__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.96);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.showcase__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0,0,0,0.55));
  opacity: 0.7;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.showcase__item:hover img,
.showcase__item:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.05);
}

.showcase__item:hover::after,
.showcase__item:focus-visible::after { opacity: 0.5; }

.showcase__hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.showcase__hint::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent var(--accent);
}

.showcase__item:hover .showcase__hint,
.showcase__item:focus-visible .showcase__hint {
  opacity: 1;
  transform: translateY(0);
}

.showcase__badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.showcase__cta {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .showcase__item { aspect-ratio: 1 / 1; }
  .showcase__item--main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .showcase__badge { font-size: 0.62em; }
}

/* COLLEZIONE COMPLETA — overlay a schermo intero con tutte le foto */
.collection {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  background: rgba(7,7,7,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.collection.is-open {
  opacity: 1;
  pointer-events: auto;
}

.collection__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,0.55);
}

.collection__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4em, 3vw, 2em);
  font-weight: 600;
  line-height: 1;
}

.collection__count {
  display: block;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72em;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.collection__close {
  flex: none;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.8em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.collection__close:hover {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(90deg);
}

.collection__scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(1rem, 4vw, 2.5rem);
  -webkit-overflow-scrolling: touch;
}

/* COOKIE BANNER (informativa) */
.cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  transform: translateX(-50%) translateY(20px);
  width: min(680px, calc(100% - 2rem));
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.1rem 1.4rem;
  background: rgba(15,15,15,0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.cookie.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cookie__text {
  flex: 1 1 320px;
  font-size: 0.85em;
  line-height: 1.6;
  color: var(--text-mute);
}

.cookie__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease);
}

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

.cookie__actions {
  flex: 0 0 auto;
}

.cookie__btn {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie__btn { width: 100%; }
}

/* PLAYER YOUTUBE INLINE */
.player {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.player.is-open {
  opacity: 1;
  pointer-events: auto;
}

.player__stage {
  width: min(960px, 92vw);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.5s var(--ease);
}

.player.is-open .player__stage {
  transform: scale(1) translateY(0);
}

.player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(184,149,106,0.18);
}

.player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player__title {
  margin-top: 1.1rem;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2em, 2.4vw, 1.6em);
  color: var(--accent-3);
  letter-spacing: 0.01em;
}

.player__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.8em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.player__close:hover {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(90deg);
}

@media (max-width: 640px) {
  .player { padding: 1rem; }
  .player__close { top: 0.8rem; right: 0.8rem; width: 40px; height: 40px; }
}

/* LIBRO */
.book {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.book__cover {
  position: relative;
  display: block;
  aspect-ratio: 2/3;
  border-radius: 4px 8px 8px 4px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.55),
    0 12px 24px rgba(0,0,0,0.35);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) translateY(20px);
  transform-origin: left center;
  transition: transform 1s var(--ease), box-shadow 0.6s var(--ease), opacity 0.8s var(--ease);
  opacity: 0;
  cursor: pointer;
}

.book__cover.is-in {
  opacity: 1;
  transform: perspective(1200px) rotateY(-8deg) translateY(0);
}

.book__cover:hover {
  transform: perspective(1200px) rotateY(-2deg) translateY(-6px);
  box-shadow:
    0 45px 90px rgba(0,0,0,0.7),
    0 20px 40px rgba(0,0,0,0.45),
    0 0 0 1px var(--accent);
}

.book__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}

.book__cover:hover .book__cover-img {
  transform: scale(1.04);
}

.book__cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.book__cover:hover .book__cover-shine {
  transform: translateX(100%);
}

.book__cover-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.book__cover-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0) 60%);
  border-left: 1px solid rgba(184,149,106,0.25);
  z-index: 3;
  pointer-events: none;
}

.book__cover-ornament {
  font-size: 1.4em;
  color: var(--accent-3);
  letter-spacing: 0.3em;
  margin-top: 1rem;
  opacity: 0.85;
}

.book__cover-title {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--paper);
  font-size: clamp(1.8em, 4vw, 2.8em);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.book__cover-title em {
  font-style: italic;
  color: var(--accent-3);
  font-weight: 400;
}

.book__cover-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
  opacity: 0.7;
}

.book__cover-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7em;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.book__content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.book__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.book__title {
  font-size: clamp(2em, 4vw, 3em);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.book__description {
  color: var(--text-mute);
  font-size: clamp(1em, 1.4vw, 1.1em);
  line-height: 1.8;
  max-width: 560px;
}

.book__features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin: 0.4rem 0 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book__feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.book__feature-icon {
  color: var(--accent);
  font-size: 1.1em;
}

.book__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .book {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .book__cover {
    max-width: 280px;
    margin: 0 auto;
    transform: perspective(1200px) rotateY(0) translateY(20px);
  }
  .book__cover.is-in {
    transform: perspective(1200px) rotateY(0) translateY(0);
  }
  .book__cover:hover {
    transform: perspective(1200px) rotateY(0) translateY(-6px);
  }
}

/* PROCESSO */
.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.processo-step {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
}

.processo-step.is-in {
  opacity: 1;
  transform: translateY(0);
}

.processo-step__num {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--accent);
}

.processo-step h3 {
  margin-bottom: 1rem;
}

.processo-step p {
  color: var(--text-mute);
  font-size: 0.95em;
  line-height: 1.7;
}

.processo-note {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.2em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
}

.processo-note.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* NEWSLETTER */
.newsletter-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
}

.newsletter-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-card h2 {
  margin-bottom: 1rem;
}

.newsletter-card > p {
  color: var(--text-mute);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  position: relative;
}

.form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95em;
  transition: all 0.3s var(--ease);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(184, 149, 106, 0.05);
}

.form__input--textarea {
  resize: vertical;
  min-height: 80px;
}

.form__check {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9em;
}

.form__check input {
  cursor: pointer;
}

.form__check label {
  cursor: pointer;
  color: var(--text-mute);
}

.form-success {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--accent);
  background: rgba(184, 149, 106, 0.1);
  border-radius: 4px;
  animation: slideIn 0.5s var(--ease);
}

.form-success__text {
  color: var(--accent);
  font-size: 1.1em;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* BUTTONS — premium con shine sweep */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border: none;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  isolation: isolate;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    var(--accent) 0%,
    var(--accent-3) 50%,
    var(--accent) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  z-index: -2;
  transition: background-position 0.7s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%);
  z-index: -1;
  transition: left 0.85s var(--ease);
}

.btn--primary {
  color: var(--ink);
  box-shadow:
    0 8px 24px rgba(184,149,106,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(184,149,106,0.4),
    0 0 0 1px var(--accent-3),
    inset 0 0 0 1px rgba(255,255,255,0.25);
  color: var(--ink);
}

.btn--primary:hover::before {
  background-position: 100% 50%;
}

.btn--primary:hover::after {
  left: 100%;
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--large {
  padding: 1.15rem 2.8rem;
  font-size: 0.85em;
  letter-spacing: 0.22em;
}

/* Ghost button — outline elegante (alternativa) */
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 0 var(--accent);
}

.btn--ghost::before { display: none; }

.btn--ghost:hover {
  color: var(--ink);
  box-shadow: inset 0 -56px 0 0 var(--accent);
  transform: translateY(-2px);
}

.btn--ghost:hover::after { left: 100%; }

/* CONTACTS */
.contacts h2 {
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.contact-link {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s var(--ease);
  color: var(--text);
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(184, 149, 106, 0.05);
}

.contact-link__label {
  font-weight: 500;
}

.contact-link__arrow {
  color: var(--accent);
  font-size: 0.8em;
  transition: transform 0.3s var(--ease);
}

.contact-link:hover .contact-link__arrow {
  transform: translateX(3px);
}

/* FOOTER editoriale */
.footer {
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
  color: var(--text-mute);
  font-size: 0.9em;
  position: relative;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 3rem;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 360px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
}

.footer__logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.footer__brand:hover .footer__logo {
  border-color: var(--accent);
}

.footer__brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.footer__brand-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mute);
}

.footer__quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05em;
  line-height: 1.6;
  color: var(--text-mute);
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.footer__quote em {
  font-style: italic;
  color: var(--accent-3);
}

.footer__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78em;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 2.5rem 0 2rem;
}

.footer__divider::before,
.footer__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.footer__divider::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

.footer__ornament {
  padding: 0 1.5rem;
  color: var(--accent);
  font-size: 1em;
  opacity: 0.7;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78em;
  letter-spacing: 1px;
  color: var(--text-mute);
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85em;
  margin: 0;
}

.footer__legal a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

.footer__dot {
  color: var(--line);
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer__col--brand {
    max-width: 100%;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* FORM PRIVACY LINK */
.form__privacy-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(184,149,106,0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.3s var(--ease);
}

.form__privacy-link:hover {
  text-decoration-color: var(--accent);
}

/* PAGINA LEGALE (Privacy Policy) */
.legal-page {
  background: var(--ink);
}

.legal {
  padding: clamp(100px, 12vw, 160px) clamp(1rem, 5vw, 3rem) clamp(60px, 8vw, 100px);
  min-height: 100vh;
}

.legal__container {
  max-width: 820px;
  margin: 0 auto;
}

.legal__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4em, 5vw, 3.8em);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.legal__updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--text-mute);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal__updated strong {
  color: var(--accent);
  font-weight: 500;
}

.legal__intro {
  font-size: clamp(1.05em, 1.6vw, 1.2em);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.legal__section {
  margin-bottom: 3rem;
}

.legal__section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4em, 2.2vw, 1.8em);
  color: var(--accent-3);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.legal__section p {
  color: var(--text-mute);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal__section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2rem;
}

.legal__section ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--text-mute);
  line-height: 1.7;
}

.legal__section ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8em;
  top: 0.4em;
}

.legal__section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(184,149,106,0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.3s var(--ease);
}

.legal__section a:hover {
  text-decoration-color: var(--accent);
}

.legal__section strong {
  color: var(--text);
  font-weight: 600;
}

.legal__footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* RIFINITURE — accessibilità e coerenza */

/* Ancore: il titolo di sezione non finisce sotto la nav sticky. */
.section,
.hero,
[id] { scroll-margin-top: 90px; }

/* Focus visibile e coerente col brand (solo da tastiera). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* Segnala che il brano si ascolta qui (player inline): piccolo ▶ prima del link. */
.brani-item__link::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.4s var(--ease);
}
.brani-item__link:hover::before {
  transform: scale(1.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__cta {
    padding: 0.5rem 1rem;
    font-size: 0.85em;
  }
}

@media (max-width: 480px) {
  .chap {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero__title {
    font-size: 1.8em;
  }

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

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
