/* ================================================================
   CUORE DI SICILIA - css/style.css
   Stack: HTML5 + CSS3 puro + GSAP/ScrollTrigger via CDN. Zero build.
================================================================ */

/* ----------------------------------------------------------------
   1. RESET & TOKEN
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:root {
  /* Colori brand */
  --arancio:      #E8873A;
  --arancio-deep: #C86620;
  --arancio-tint: #F7E4CE;
  --verde:        #6B8E4E;
  --verde-deep:   #55703D;
  --terracotta:   #7A3B1E;
  --crema:        #FBF3E7;
  --crema-soft:   #F3E6D3;
  --white:        #FFFFFF;

  --ink:          var(--terracotta);
  --ink-soft:     #96674A;
  --arancio-ink:  #3A1B0C; /* bruno caldo scuro: testo/icone su fondo arancio o crema, contrasto AA */
  --line:         rgba(122, 59, 30, 0.12);

  /* Tipografia */
  --font-display: "Cormorant Garamond", serif;
  --font-body:    "Outfit", sans-serif;

  /* Raggi (sistema unico, morbido) */
  --radius-sm:  12px;
  --radius:     20px;
  --radius-lg:  32px;
  --radius-pill: 999px;

  /* Ombre tinte terracotta */
  --shadow-sm: 0 8px 22px -14px rgba(122, 59, 30, 0.35);
  --shadow:    0 22px 48px -22px rgba(122, 59, 30, 0.38);

  --container:   1180px;
  --section-pad: clamp(4rem, 9vw, 7rem);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-body);
  background-color: var(--crema);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; height: 100%; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

section { padding-block: var(--section-pad); scroll-margin-top: var(--nav-h); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-wrap: balance;
}

p { max-width: 65ch; }

:focus-visible {
  outline: 2.5px solid var(--arancio-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------
   2. BOTTONI
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background-color: var(--arancio);
  color: var(--arancio-ink);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}

.btn-line {
  background-color: transparent;
  color: var(--arancio-ink);
  border: 1.5px solid var(--arancio);
}
@media (hover: hover) and (pointer: fine) {
  .btn-line:hover { background-color: var(--arancio-tint); }
}

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn-xl { padding: 1.15rem 2.5rem; font-size: 1.15rem; }
.btn-block { width: 100%; justify-content: center; }

/* ----------------------------------------------------------------
   3. INTRO ANIMATA: sbucciatura
---------------------------------------------------------------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  background-color: var(--arancio);
}

.peel-wedge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  clip-path: polygon(50% 50%, 29.3% 0%, 70.7% 0%);
  will-change: transform;
}
.peel-wedge:nth-child(3n+1) { background-color: #E8873A; }
.peel-wedge:nth-child(3n+2) { background-color: #DE7C2E; }
.peel-wedge:nth-child(3n+3) { background-color: #D97024; }

#intro-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.32), transparent 60%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

#intro-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  pointer-events: none;
}
#intro-mark svg { width: 60px; height: 60px; }
#intro-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--crema);
  letter-spacing: 0.01em;
}

#skip-intro {
  position: absolute;
  z-index: 4;
  right: 1.4rem;
  bottom: 1.4rem;
  background-color: rgba(58, 27, 12, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(251, 243, 231, 0.4);
  color: var(--crema);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  transition: background-color 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  #skip-intro:hover { background-color: rgba(58, 27, 12, 0.72); }
}
#skip-intro:active { transform: scale(0.96); }

/* ----------------------------------------------------------------
   4. NAVBAR
---------------------------------------------------------------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(251, 243, 231, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  min-height: var(--nav-h);
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo-mark { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--terracotta);
  letter-spacing: -0.01em;
}

/* ----------------------------------------------------------------
   5. HERO
---------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -18%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 135, 58, 0.28) 0%, rgba(232, 135, 58, 0.1) 45%, transparent 72%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--line);
  color: var(--verde-deep);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}
.hero-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

#hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 0.35rem;
}
#hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--arancio-ink);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: var(--verde-deep);
  max-width: 40ch;
  margin-bottom: 1.1rem;
}

.hero-text {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.9rem;
}

.hero-actions { margin-bottom: 1.7rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terracotta);
}
.hero-trust svg { width: 18px; height: 18px; color: var(--verde); flex-shrink: 0; }

.hero-visual { display: flex; justify-content: center; }
.hero-orange {
  width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 30px 46px rgba(122, 59, 30, 0.22));
}
.hero-orange-spin { transform-origin: 160px 160px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-orange-spin { animation: orange-float 6.5s ease-in-out infinite; }
}
@keyframes orange-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ----------------------------------------------------------------
   6. LA STORIA
---------------------------------------------------------------- */
#storia { background-color: var(--crema-soft); }

.storia-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.storia-copy h2 { max-width: 15ch; margin-bottom: 1.2rem; }
.storia-copy p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 50ch; }

.storia-timeline { position: relative; min-height: 420px; }
.storia-branch { position: absolute; left: 6%; top: 0; width: 56px; height: 100%; }
#branch-path { stroke-dasharray: 720; stroke-dashoffset: 720; }

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  padding-left: 4.6rem;
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -4.6rem;
  top: -0.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--arancio-deep);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.4);
}
.timeline-dot svg { width: 13px; height: 13px; }
.timeline-year {
  display: inline-block;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--verde-deep);
  margin-bottom: 0.3rem;
}
.timeline-item h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.timeline-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   7. IL PRODOTTO
---------------------------------------------------------------- */
.section-head {
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arancio-ink);
  margin-bottom: 0.8rem;
}
.section-head h2 { margin-bottom: 0.6rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; margin-inline: auto; }

.prodotto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.prodotto-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .prodotto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
}
.prodotto-icon { display: inline-grid; width: 76px; height: 76px; margin-bottom: 1.2rem; }
.prodotto-card h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.prodotto-card p { color: var(--ink-soft); }

.attributi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-top: clamp(1.8rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.attributi-row li { display: flex; align-items: flex-start; gap: 0.9rem; }
.attributi-row svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--verde-deep); margin-top: 0.15rem; }
.attributi-row h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--terracotta); margin-bottom: 0.2rem; }
.attributi-row p { font-size: 0.88rem; color: var(--ink-soft); }

/* ----------------------------------------------------------------
   8. COME FUNZIONA
---------------------------------------------------------------- */
#come-funziona { background-color: var(--crema-soft); }

.step-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.6rem;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
}
@media (min-width: 900px) {
  .step-list::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 12%;
    right: 12%;
    height: 2px;
    background-image: linear-gradient(to right, rgba(122, 59, 30, 0.28) 0 10px, transparent 10px 20px);
    background-size: 20px 2px;
    background-repeat: repeat-x;
    z-index: 0;
  }
}
.step-item { position: relative; z-index: 1; text-align: center; }
.step-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--arancio-ink);
  box-shadow: var(--shadow-sm);
}
.step-icon svg { width: 30px; height: 30px; }
.step-item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step-item p { font-size: 0.92rem; color: var(--ink-soft); max-width: 22ch; margin-inline: auto; }

/* Icone che percorrono la linea tratteggiata tra una tappa e la successiva.
   Visibili solo dove la linea stessa e' visibile (desktop, vedi .step-list::before). */
.step-track { position: relative; }
.step-travelers { display: none; }
@media (min-width: 900px) {
  .step-travelers { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
}
.step-traveler {
  position: absolute;
  top: 38px;
  left: 0;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  margin-left: -17px;
  border-radius: 50%;
  background-color: var(--arancio);
  color: var(--arancio-ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  will-change: transform;
}
.step-traveler svg { width: 16px; height: 16px; }

/* ----------------------------------------------------------------
   9. PER CHI
---------------------------------------------------------------- */
.perchi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
}
.perchi-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--verde);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.perchi-card:nth-child(2) { border-top-color: var(--arancio); }
.perchi-icon { width: 54px; height: 54px; color: var(--terracotta); }
.perchi-card h3 { font-size: 1.45rem; }
.perchi-card p { color: var(--ink-soft); margin-bottom: 0.3rem; }
.perchi-card .btn { margin-top: 0.3rem; }

/* ----------------------------------------------------------------
   10. CONTATTO
---------------------------------------------------------------- */
#contatti {
  position: relative;
  background-color: var(--arancio-tint);
  text-align: center;
  overflow: hidden;
}
.contatti-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(232, 135, 58, 0.35) 0, transparent 34%),
    radial-gradient(circle at 94% 18%, rgba(107, 142, 78, 0.28) 0, transparent 30%),
    radial-gradient(circle at 12% 92%, rgba(107, 142, 78, 0.24) 0, transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(232, 135, 58, 0.3) 0, transparent 32%);
  pointer-events: none;
}
.contatti-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
#contatti h2 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin-bottom: 0.9rem; }
#contatti p { color: var(--ink-soft); font-size: 1.06rem; margin: 0 auto 2rem; }

.contatti-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.contatti-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(122, 59, 30, 0.18);
  background-color: rgba(255, 255, 255, 0.55);
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contatti-ig:hover { border-color: var(--terracotta); background-color: var(--white); transform: translateY(-2px); }
}
.contatti-ig:active { transform: scale(0.96); }
.contatti-ig svg { width: 19px; height: 19px; flex-shrink: 0; }

/* ----------------------------------------------------------------
   11. FOOTER
---------------------------------------------------------------- */
#footer {
  background-color: var(--crema-soft);
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; margin-bottom: 0.6rem; }
.footer-brand .nav-logo-text { font-size: 1.1rem; }
.footer-brand p { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--ink-soft); }
.footer-copy, .footer-credit { font-size: 0.82rem; color: var(--ink-soft); }
.footer-copy a, .footer-credit a { color: var(--terracotta); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-credit-logo { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* ----------------------------------------------------------------
   12. WHATSAPP FLOTTANTE
---------------------------------------------------------------- */
#whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--arancio);
  color: var(--arancio-ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.6) translateY(10px);
  pointer-events: none;
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out), box-shadow 200ms ease;
}
#whatsapp-float svg { width: 27px; height: 27px; }
#whatsapp-float.is-visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  #whatsapp-float:hover { transform: scale(1.07); }
}
#whatsapp-float:active { transform: scale(0.92); }

/* ----------------------------------------------------------------
   12.B BADGE "SVILUPPATO DA FORMA STUDIO"
   Pillola fissa in basso a SINISTRA (il bottone WhatsApp e' fisso a
   destra, cosi' non si sovrappongono mai). Vetro scuro caldo (bruno
   di --arancio-ink, non crema/arancio) per restare nella stessa
   temperatura di colore del sito ma leggersi come elemento esterno.
   Appare con un fade 2.5s dopo il caricamento (classe .is-visible,
   vedi initFsBadge in js/main.js).
---------------------------------------------------------------- */
#fs-badge {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background-color: rgba(58, 27, 12, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  color: var(--crema);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease;
}

#fs-badge.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Nasconde il badge vicino a Contatti/Footer, che ha gia' il proprio
   credito esteso, per non sovrapporsi al testo del footer stesso. */
#fs-badge.is-visible.is-hidden-footer { opacity: 0; transform: translateY(10px); pointer-events: none; }

.fs-badge-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--white);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  #fs-badge:hover { background-color: rgba(58, 27, 12, 0.94); transform: translateY(-2px); }
}

@media (max-width: 480px) {
  #fs-badge { padding: 0.45rem 0.9rem 0.45rem 0.45rem; font-size: 0.72rem; }
  .fs-badge-logo { width: 20px; height: 20px; }
}

/* ----------------------------------------------------------------
   13. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto 1rem; }
  .storia-inner { grid-template-columns: 1fr; }
  .storia-timeline { min-height: auto; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(3.2rem, 10vw, 4.5rem); }

  .prodotto-grid { grid-template-columns: 1fr; }
  .attributi-row { grid-template-columns: 1fr; gap: 1.3rem; }
  .step-list { grid-template-columns: 1fr 1fr; }
  .perchi-grid { grid-template-columns: 1fr; }

  .hero-trust { gap: 0.7rem 1.2rem; }
  #hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
}

@media (max-width: 480px) {
  .nav-logo-text { display: none; }
  .nav-inner .btn-sm span { display: none; }
  .nav-inner .btn-sm { padding: 0.65rem; }
  .nav-inner .btn-sm svg { width: 22px; height: 22px; }

  .step-list { grid-template-columns: 1fr; }
  .timeline-list { padding-left: 3.8rem; }
  .storia-branch { left: 4%; }
  .timeline-dot { left: -3.8rem; }
}

/* ----------------------------------------------------------------
   14. PAGINA LEGALE (privacy) / PAGINA 404
---------------------------------------------------------------- */
.legal-hero, .notfound-hero {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.legal-hero h1, .notfound-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 0.7rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--arancio-deep);
  margin-bottom: 1.1rem;
}
.legal-back svg { width: 18px; height: 18px; }

.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-width: 74ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: 1.1rem 1.3rem;
  background-color: #FFF6E5;
  border: 1px solid #F3D48E;
  border-radius: var(--radius);
  color: #8A5A00;
  font-size: 0.95rem;
  line-height: 1.55;
}
.legal-notice svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 0.1rem; }

.legal-block { max-width: 74ch; }
.legal-block + .legal-block { margin-top: clamp(1.8rem, 4vw, 2.4rem); }
.legal-block h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.legal-block p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 0.5rem; }
.legal-block ul { padding-left: 1.3rem; margin-block: 0.5rem; display: grid; gap: 0.4rem; list-style: disc; }
.legal-block li { color: var(--ink-soft); font-size: 1rem; }
.legal-block a { color: var(--arancio-deep); font-weight: 600; }

.notfound-wrap {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound-wrap svg { width: 84px; height: 84px; color: var(--arancio); margin-bottom: 1.3rem; }
.notfound-wrap p { color: var(--ink-soft); max-width: 46ch; margin: 0.6rem auto 1.8rem; }

/* ----------------------------------------------------------------
   15. PAGINA BIO-LINK (link in bio per Instagram)
---------------------------------------------------------------- */
.bio-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(2.2rem, 9vw, 3.5rem) 1.4rem;
}

.bio-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.bio-glow-1 {
  width: 460px; height: 460px;
  top: -160px; right: -140px;
  background: radial-gradient(circle, rgba(232, 135, 58, 0.30) 0%, rgba(232, 135, 58, 0.1) 45%, transparent 72%);
}
.bio-glow-2 {
  width: 420px; height: 420px;
  bottom: -150px; left: -130px;
  background: radial-gradient(circle, rgba(107, 142, 78, 0.26) 0%, rgba(107, 142, 78, 0.08) 45%, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  .bio-glow-1 { animation: bio-glow-drift-1 9s ease-in-out infinite; }
  .bio-glow-2 { animation: bio-glow-drift-2 9s ease-in-out infinite; animation-delay: -4.5s; }
}
@keyframes bio-glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-16px, 16px) scale(1.08); }
}
@keyframes bio-glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(16px, -16px) scale(1.08); }
}

.bio-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bio-logo-wrap { margin-bottom: 1rem; }

.bio-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(122, 59, 30, 0.22));
}
@media (prefers-reduced-motion: no-preference) {
  .bio-logo { animation: bio-logo-float 5s ease-in-out infinite; }
}
@keyframes bio-logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

.bio-card h1 {
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.bio-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 5.5vw, 1.6rem);
  color: var(--arancio-ink);
  margin-bottom: 0.6rem;
}

.bio-subtitle {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 30ch;
  margin-bottom: clamp(2rem, 6vw, 2.6rem);
}

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  margin-bottom: clamp(2.2rem, 7vw, 3rem);
}

.bio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 58px;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1.5px solid transparent;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.bio-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.bio-btn:active { transform: scale(0.96); }

.bio-btn-primary {
  background-color: var(--arancio);
  color: var(--arancio-ink);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .bio-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}
@media (prefers-reduced-motion: no-preference) {
  .bio-btn-primary { animation: bio-btn-pulse 2.6s ease-in-out infinite; }
}
@keyframes bio-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 135, 58, 0), var(--shadow-sm); }
  50%      { box-shadow: 0 0 0 12px rgba(232, 135, 58, 0.38), 0 16px 46px -4px rgba(232, 135, 58, 0.85), var(--shadow-sm); }
}

.bio-btn-site {
  background-color: var(--white);
  color: var(--terracotta);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .bio-btn-site:hover { border-color: var(--terracotta); transform: translateY(-2px); }
}

.bio-btn-ig {
  background-color: rgba(107, 142, 78, 0.1);
  color: var(--verde-deep);
  border-color: rgba(107, 142, 78, 0.25);
}
@media (hover: hover) and (pointer: fine) {
  .bio-btn-ig:hover { background-color: rgba(107, 142, 78, 0.18); transform: translateY(-2px); }
}

.bio-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 6vw, 2.6rem);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.bio-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bio-footer-logo { width: 15px; height: 15px; object-fit: contain; flex-shrink: 0; }

/* ----------------------------------------------------------------
   16. RIDUZIONE DEL MOVIMENTO
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #intro { display: none !important; }
  .reveal-hero, .reveal-up, .bio-reveal { opacity: 1 !important; transform: none !important; }
}
