/* ============================================================
   CHIARA ABATE — NUTRIZIONISTA
   Palette OKLCH · Cormorant Garamond + Inter
   ============================================================ */

:root {
  /* Palette semantica */
  --color-bg:           #FAFAF8;
  --color-dark:         #1C1C1C;
  --color-accent:       #C8956C;
  --color-accent-light: #FDF6F0;
  --color-mid:          #6B6B6B;

  /* Token di sistema (mappati sui nuovi colori) */
  --bg:        var(--color-bg);
  --surface:   oklch(0.978 0.004 75);       /* sezione alternata */
  --ink:       var(--color-dark);
  --muted:     var(--color-mid);
  --brand:     var(--color-accent);
  --brand-h:   oklch(0.60 0.100 57);        /* terracotta scuro hover */
  --line:      oklch(0.88 0.006 10);        /* bordi sottili */
  --on-brand:  oklch(1.000 0.000 0);        /* testo su sfondo brand */

  /* Tipografia */
  --display:   'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;

  /* Spazio */
  --nav-height:  4rem;
  --section-gap: clamp(5rem, 10vw, 9rem);
  --content-max: 1200px;
  --side-pad:    clamp(1.5rem, 5vw, 5rem);

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

p { text-wrap: pretty; max-width: 65ch; }

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-brand {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.nav-brand:hover { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--color-dark);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(clamp(6rem, 12vh, 8rem) + var(--nav-height)) var(--side-pad) clamp(3rem, 6vh, 5rem);
  gap: 4rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Clip-reveal per il label */
.hero-label { overflow: hidden; }
.hero-label span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.7s var(--ease-out-expo) 0.15s forwards;
}

/* Nome principale */
.hero-name {
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}

.hero-name .word {
  display: block;
  overflow: hidden;
}
.hero-name .word span {
  display: block;
  transform: translateY(110%);
}
.hero-name .word:nth-child(1) span { animation: rise 0.9s var(--ease-out-expo) 0.28s forwards; }
.hero-name .word:nth-child(2) span { animation: rise 0.9s var(--ease-out-expo) 0.44s forwards; }

/* Payoff */
.hero-payoff {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.5;
  overflow: hidden;
}
.hero-payoff span {
  display: block;
  transform: translateY(24px);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out-expo) 0.65s forwards;
}

/* CTA */
.hero-cta {
  opacity: 0;
  animation: fadeIn 0.6s ease 0.95s forwards;
  align-self: flex-start;
}

/* Badge credenziali */
.hero-badge {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 1.5rem;
  opacity: 0.9;
  text-wrap: balance;
}

/* Immagine — wipe orizzontale da sinistra */
.hero-visual {
  position: relative;
  height: clamp(420px, 70vh, 700px);
  clip-path: inset(0 100% 0 0);
  animation: wipeIn 1.2s var(--ease-out-expo) 0.55s forwards;
  border-radius: 2px;
  overflow: hidden;
  background: oklch(0.93 0.015 10);
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* ============================================================
   BOTTONI
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.15s;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn:active { transform: scale(0.98); }

.btn-primary  { background: var(--color-dark); color: #fff; border: 1px solid transparent; }
.btn-primary:hover { background: var(--color-accent); border-color: transparent; }

.btn-secondary {
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
}
.btn-secondary:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
}

/* ============================================================
   METODO
   ============================================================ */
#metodo {
  padding: var(--section-gap) var(--side-pad);
  background: var(--surface);
}

.metodo-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.metodo-text h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.metodo-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Linea verticale con nodi */
.percorsi {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.75rem;
}
.percorsi::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}

.percorso {
  position: relative;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.percorso:last-child { border-bottom: none; }

.percorso::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: 1.85rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--brand);
  transition: background 0.2s;
}
.percorso:hover::before { background: var(--brand); }

.percorso-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.2rem;
}

.card-number-bg {
  position: absolute;
  right: -0.5rem;
  top: -1rem;
  font-family: var(--display);
  font-size: 8rem;
  color: var(--color-accent);
  opacity: 0.07;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}
.percorso h3 {
  font-size: 1.1rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.percorso p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38ch;
}

/* ============================================================
   SEZIONI SERVIZIO
   ============================================================ */
/* Sfondo alternato sezioni servizio */
#dimagrimento { background: var(--color-bg); }
#clinica       { background: var(--color-accent-light); }
#performance   { background: var(--color-bg); }

.servizio {
  padding: var(--section-gap) var(--side-pad);
  border-top: 1px solid var(--line);
}

.servizio-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.servizio:nth-child(even) .servizio-inner {
  grid-template-columns: 1.4fr 1fr;
}
.servizio:nth-child(even) .servizio-visual { order: -1; }

.servizio-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.servizio-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--brand);
  flex-shrink: 0;
}

.servizio h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
}
.servizio p {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.servizio-visual {
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface);
}
.servizio-visual img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
#performance .servizio-visual {
  aspect-ratio: 3/4;
  background: var(--color-bg);
}
#performance .servizio-visual img {
  object-fit: contain;
  object-position: center center;
}

/* ============================================================
   CHI SONO
   ============================================================ */
#chi-sono {
  padding: var(--section-gap) var(--side-pad);
  background: var(--ink);
  color: var(--bg);
}

.chi-sono-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

#chi-sono .label { color: var(--brand); }

.chi-sono-badge {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.9;
}

#chi-sono h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--bg);
  margin: 0;
}
#chi-sono p {
  color: oklch(0.76 0.006 10);
  font-size: 1.02rem;
  line-height: 1.75;
}

.chi-sono-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chi-sono-photo {
  aspect-ratio: 3/4;
  background: oklch(0.22 0.010 10);
  border-radius: 2px;
  overflow: hidden;
}
.chi-sono-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* ─── CHI SONO · PHOTO CUBE ───────────────────────────────── */
.chi-sono-photo.cube-container {
  --cube-s: 400px;
  aspect-ratio: 1;
  background: transparent;
  overflow: visible;
  perspective: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-cube {
  position: relative;
  width:  var(--cube-s);
  height: var(--cube-s);
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
}

.photo-cube-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px;
  backface-visibility: hidden;
}

.photo-cube-face img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-cube-face:nth-child(1) { transform: rotateY(  0deg) translateZ(calc(var(--cube-s) / 2)); }
.photo-cube-face:nth-child(2) { transform: rotateY( 90deg) translateZ(calc(var(--cube-s) / 2)); }
.photo-cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--cube-s) / 2)); }
.photo-cube-face:nth-child(4) { transform: rotateY(270deg) translateZ(calc(var(--cube-s) / 2)); }

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

/* ============================================================
   FILOSOFIA (blocco citazione scuro)
   ============================================================ */
#filosofia {
  padding: var(--section-gap) var(--side-pad);
  background: var(--color-dark);
}

.filosofia-inner {
  max-width: 760px;
  margin: 0 auto;
}

.filosofia-statement {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: none;
  margin-bottom: 2rem;
}

.filosofia-body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: oklch(0.70 0.005 10);
  max-width: 65ch;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  padding: var(--section-gap) var(--side-pad);
  background: var(--color-bg);
  border-top: 1px solid var(--line);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

#faq .label { margin-bottom: 0.75rem; }

#faq h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 3rem;
}

.faq-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 1.4rem 2.5rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--color-dark);
  line-height: 1.4;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  line-height: 1;
}
details[open] > .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 0 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-mid);
  max-width: 68ch;
}
.faq-answer p { max-width: none; }

/* ============================================================
   CONTATTI
   ============================================================ */
#contatti {
  padding: var(--section-gap) var(--side-pad);
  background: var(--surface);
}

.contatti-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

#contatti h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 1rem 0 1.5rem;
}

.recapiti { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.recapito { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.95rem; color: var(--muted); }
.recapito a { color: var(--ink); transition: color 0.2s; }
.recapito a:hover { color: var(--brand); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: oklch(0.72 0.004 10); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--brand); }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--brand);
  padding-left: 0.85rem;
  line-height: 1.55;
  font-style: italic;
}

.consent {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.84rem; color: var(--muted);
  cursor: pointer; line-height: 1.5;
}
.consent input[type="checkbox"] {
  flex-shrink: 0; margin-top: 0.1rem;
  accent-color: var(--brand);
  width: 1rem; height: 1rem;
}
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 2.5rem var(--side-pad);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-info { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.82rem; }
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }

/* ============================================================
   REVEAL ANIMATIONS (IntersectionObserver trigger)
   Stato default: visibile. L'animazione è un enhancement,
   non un gate — se l'observer non scatta il contenuto resta leggibile.
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
.js [data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.95s var(--ease-out-expo);
}
.js [data-reveal="left"] {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
.js [data-reveal="right"] {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
[data-reveal].revealed {
  opacity: 1; transform: none;
  clip-path: inset(0 0 0% 0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes rise    { to { transform: translateY(0); } }
@keyframes fadeUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes wipeIn  { to { clip-path: inset(0 0% 0 0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    padding-top: calc(clamp(5rem, 10vh, 7rem) + var(--nav-height));
    gap: 2rem;
    max-width: none;
  }
  .hero-visual { height: clamp(260px, 55vw, 380px); order: -1; }
  .hero-text { gap: 1.25rem; }

  .metodo-inner,
  .chi-sono-inner,
  .contatti-inner { grid-template-columns: 1fr; }

  .chi-sono-inner { gap: 2rem; }

  .servizio-inner,
  .servizio:nth-child(even) .servizio-inner {
    grid-template-columns: 1fr;
  }
  /* Immagine sempre sopra su mobile */
  .servizio-visual,
  .servizio:nth-child(even) .servizio-visual { order: -1; }
  .servizio-visual { aspect-ratio: 16/9; }
  .chi-sono-photo  { aspect-ratio: 4/3; }
  .chi-sono-photo.cube-container { --cube-s: 320px; aspect-ratio: 1; }

  /* Performance: limita altezza su mobile per non occupare tutta la viewport */
  #performance .servizio-visual { max-height: 420px; }

  /* Bottoni a larghezza piena nelle sezioni servizio su mobile */
  .servizio .btn,
  #chi-sono .chi-sono-text .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Navbar: hamburger */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 5% 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .nav-links a:last-child { border-bottom: none; }

  /* Hero badge leggibile su mobile */
  .hero-badge { font-size: 0.65rem; letter-spacing: 0.08em; }
}

@media (max-width: 600px) {
  :root {
    /* Sezioni più ravvicinate su schermi piccoli */
    --section-gap: clamp(3rem, 8vw, 9rem);
  }

  .percorsi { padding-left: 1.5rem; }
  .percorso  { padding-left: 1rem; }
  .percorso::before { left: -1.2rem; }
  .form-actions { flex-direction: column; align-items: stretch; }
  footer { flex-direction: column; align-items: flex-start; }
  .card-number-bg { font-size: 5rem; }

  /* Cubo fluido: non supera il 72% della viewport width */
  .chi-sono-photo.cube-container { --cube-s: min(260px, 72vw); aspect-ratio: 1; }

  /* Hero badge: più stretto per evitare troppi a-capo */
  .hero-badge { font-size: 0.6rem; letter-spacing: 0.05em; }

  /* Textarea: altezza minima confortevole su touch */
  .contact-form textarea { min-height: 100px; }

  /* Bottone WhatsApp a larghezza piena */
  #contatti .contatti-info .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  /* Chi-sono badge leggibile */
  .chi-sono-badge { font-size: 0.65rem; letter-spacing: 0.08em; }
}

/* ── Schermi extra-small (≤380px, iPhone SE 1a gen) ──────── */
@media (max-width: 380px) {
  :root { --side-pad: 1.25rem; }

  /* Cubo ulteriormente ridotto su schermi strettissimi */
  .chi-sono-photo.cube-container { --cube-s: min(220px, 76vw); }

  /* Nome hero più compatto */
  .hero-name { font-size: clamp(2.8rem, 10vw, 3.5rem); }

  /* Hero badge ridotto al minimo */
  .hero-badge { font-size: 0.55rem; letter-spacing: 0.03em; }
}

/* ============================================================
   REDUCED MOTION — tutto visibile subito, zero animazioni
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero-label span,
  .hero-name .word span,
  .hero-payoff span,
  .hero-cta,
  .hero-badge,
  .hero-visual {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-page {
  min-height: 100vh;
  padding: clamp(5rem, 10vh, 7rem) var(--side-pad) clamp(3rem, 6vh, 5rem);
  max-width: 780px;
  margin: 0 auto;
}
.privacy-page h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 0.5rem; }
.privacy-page h2 {
  font-size: 0.88rem; font-family: var(--sans); font-weight: 600;
  color: var(--brand); margin: 2rem 0 0.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.privacy-page p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.75rem; }
.privacy-page a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.placeholder { color: var(--brand); font-style: italic; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--muted); margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }
