/* ==========================================================================
   Sito Dott.ssa Maria Chiara Catella — Biologa Nutrizionista
   --------------------------------------------------------------------------
   Direzione visiva: base bianca e luminosa con accenti pastello
   (rosa cipria, salvia, oro caldo) ripresi dai materiali reali della
   dottoressa (biglietto da visita, volantino, logo a forma di frutto).
   Indice:
     1.  Variabili (colori, ombre)
     2.  Reset e tipografia di base
     3.  Elementi ricorrenti (eyebrow, bottoni, animazione reveal)
     4.  Header e navigazione
     5.  Hero
     6.  Striscia tag scorrevole
     7.  Sezioni generiche
     8.  Chi sono
     9.  Percorsi (card servizi)
     10. Come funziona (step)
     11. Testimonianze
     12. Banda CTA
     13. Contatti
     14. Footer
   ========================================================================== */


/* ==========================================================================
   1. VARIABILI — cambia qui i colori per cambiarli in tutto il sito
   ========================================================================== */
:root{
  --paper:#FFFFFF;        /* bianco base */
  --cream:#FFFAF6;        /* panna, per le sezioni alternate */
  --blush:#F8DAD5;        /* rosa cipria pastello */
  --blush-deep:#E39387;   /* rosa più intenso: bottoni */
  --blush-ink:#B85C50;    /* rosa scuro: testi in evidenza, icone */
  --sage:#DCE7C9;         /* verde salvia pastello */
  --sage-deep:#8FAD6E;    /* salvia più intenso */
  --gold:#EFD4A6;         /* oro caldo pastello */
  --gold-deep:#C08A3E;    /* oro scuro: occhielli, logo */
  --ink:#392F2C;          /* testo principale (marrone scuro, non nero) */
  --ink-soft:#8A7E78;     /* testo secondario */
  --line:rgba(57,47,44,0.10);

  --shadow:0 20px 44px -24px rgba(184,92,80,0.28);
  --shadow-soft:0 14px 30px -20px rgba(57,47,44,0.18);
}


/* ==========================================================================
   2. RESET E TIPOGRAFIA DI BASE
   ========================================================================== */
*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

/* Rispetta chi ha disattivato le animazioni nelle impostazioni di sistema */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  overflow-x:hidden; /* rete di sicurezza: niente scroll laterale anche se qualche decorazione sborda dal suo box */
  background:var(--paper);
  color:var(--ink);
  font-family:"Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3{
  font-family:"Cormorant Garamond", "Georgia", serif;
  font-weight:500;
  margin:0;
  text-wrap:balance;
}

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

.container{ max-width:1120px; margin:0 auto; padding:0 28px; }
section{ position:relative; }

/* Link "salta al contenuto" per la navigazione da tastiera */
.skip-link{ position:absolute; left:-999px; top:auto; }
.skip-link:focus{
  left:12px; top:12px; background:var(--paper);
  padding:10px 14px; border-radius:8px; z-index:100;
}


/* ==========================================================================
   3. ELEMENTI RICORRENTI
   ========================================================================== */

/* Occhiello: la piccola etichetta maiuscola sopra i titoli */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:"Work Sans", sans-serif; font-weight:600; font-size:12.5px;
  letter-spacing:0.16em; text-transform:uppercase; color:var(--gold-deep);
}
.eyebrow::before{
  content:""; width:22px; height:1px;
  background:var(--gold-deep); display:inline-block;
}

/* Animazione di comparsa allo scroll (attivata da js/main.js) */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform:none; }
.service-grid .reveal:nth-child(2){ transition-delay:.08s; }
.service-grid .reveal:nth-child(3){ transition-delay:.16s; }
.service-grid .reveal:nth-child(4){ transition-delay:.24s; }
.process .reveal:nth-child(2){ transition-delay:.1s; }
.process .reveal:nth-child(3){ transition-delay:.2s; }
.quote-wrap .reveal:nth-child(2){ transition-delay:.12s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
}

/* Bottoni */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:"Work Sans", sans-serif; font-weight:600; font-size:14.5px;
  padding:12px 24px; border-radius:999px; text-decoration:none;
  border:1px solid transparent; white-space:nowrap; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:focus-visible{ outline:2px solid var(--blush-ink); outline-offset:2px; }
.btn-primary{ background:var(--blush-deep); color:#fff; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow); background:var(--blush-ink); }
.btn-ghost{ border-color:var(--line); color:var(--ink); background:var(--paper); }
.btn-ghost:hover{ border-color:var(--blush-deep); color:var(--blush-ink); transform:translateY(-2px); }

/* Logo testuale con simbolo */
.logomark{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); }
.logomark svg{ width:28px; height:28px; flex:none; }
.logomark .word{
  font-family:"Cormorant Garamond", serif; font-style:italic;
  font-weight:600; font-size:19px; letter-spacing:0.01em;
}


/* ==========================================================================
   4. HEADER E NAVIGAZIONE
   ========================================================================== */
header.site{
  position:sticky; top:0; z-index:40;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
header.site.scrolled{ box-shadow:0 8px 24px -18px rgba(57,47,44,0.25); }

.navwrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px; max-width:1120px; margin:0 auto;
}

nav.links{ display:flex; gap:30px; font-size:14.5px; font-weight:500; }
nav.links a{ text-decoration:none; color:var(--ink-soft); padding:2px 0; }
nav.links a:hover{ color:var(--blush-ink); }

.nav-cta{ display:none; }
.mobile-cta{ display:none; }

/* Hamburger (solo mobile) */
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; padding:0 10px;
  background:var(--paper); border:1px solid var(--line); border-radius:12px; cursor:pointer;
}
.nav-toggle span{
  display:block; height:1.8px; width:100%; background:var(--ink); border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.8px) rotate(-45deg); }
.nav-toggle:focus-visible{ outline:2px solid var(--blush-ink); outline-offset:2px; }

@media (min-width:860px){
  .nav-cta{ display:inline-flex; }
}

@media (max-width:859px){
  .nav-toggle{ display:flex; }
  nav.links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:4px; align-items:stretch;
    background:var(--paper); border-bottom:1px solid var(--line);
    padding:14px 24px 22px;
    box-shadow:0 18px 30px -22px rgba(57,47,44,0.4);
    display:none;
  }
  nav.links.open{ display:flex; }
  nav.links a{ padding:11px 0; border-bottom:1px solid var(--line); color:var(--ink); }
  nav.links a:last-child{ border-bottom:none; }
  .mobile-cta{
    display:inline-flex; justify-content:center;
    margin-top:12px; color:#fff;
  }
  .mobile-cta:hover{ color:#fff; }
}


/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero{ position:relative; padding:60px 0 110px; background:var(--cream); }
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 0.86fr; gap:40px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; gap:52px; } }

.hero h1{
  font-size:clamp(2.5rem, 5vw, 3.7rem); font-style:italic;
  line-height:1.1; color:var(--ink); margin-bottom:22px;
}
.hero p.lede{ font-size:18px; color:var(--ink-soft); max-width:46ch; margin-bottom:30px; }
.hero .ctas{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; }
.hero .credentials{ display:flex; flex-wrap:wrap; gap:18px 26px; font-size:13.5px; color:var(--ink-soft); }
.hero .credentials span{ display:flex; align-items:center; gap:8px; }
.hero .credentials svg{ width:16px; height:16px; color:var(--gold-deep); flex:none; }

/* Foto con cornice e macchie di colore pastello dietro */
.hero-photo{ position:relative; max-width:400px; margin:0 auto; }
.hero-photo .blob{ position:absolute; z-index:0; border-radius:50%; filter:blur(2px); }
.hero-photo .blob-1{ width:82%; height:82%; top:-8%; right:-14%; background:var(--blush); opacity:.9; }
.hero-photo .blob-2{ width:46%; height:46%; bottom:-10%; left:-12%; background:var(--sage); opacity:.85; }

/* Piccole illustrazioni originali (dal materiale grafico della dottoressa) sparse intorno alla foto */
.photo-texture{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.photo-texture .tex{ position:absolute; opacity:.7; }
.tex-carrot{ width:72px; top:-9%; left:-17%; transform:rotate(-6deg); }
.tex-tomatoes{ width:64px; top:-11%; right:6%; transform:rotate(8deg); }
.tex-wheat{ width:70px; top:40%; right:-15%; transform:rotate(-4deg); }
.tex-leaves{ width:80px; bottom:-7%; left:-14%; transform:rotate(10deg); }
.tex-apple{ width:54px; top:58%; left:-17%; transform:rotate(6deg); }
@media (max-width:520px){
  .tex-carrot{ left:-8%; } .tex-tomatoes{ right:1%; }
  .tex-wheat{ right:-7%; } .tex-leaves{ left:-6%; }
}
.hero-photo .frame{
  position:relative; z-index:1; border-radius:26px; overflow:hidden;
  box-shadow:var(--shadow); transform:rotate(-2deg); background:var(--paper);
  padding:10px 10px 46px; margin:0;
}
.hero-photo .frame img{ border-radius:18px; aspect-ratio:3/4; object-fit:cover; width:100%; }
.hero-photo .frame figcaption{
  position:absolute; left:0; right:0; bottom:14px; text-align:center;
  font-family:"Cormorant Garamond", serif; font-style:italic;
  font-size:15px; color:var(--ink-soft);
}

/* Etichette fluttuanti sopra la foto */
.sticker{
  position:absolute; z-index:2; background:var(--paper); border-radius:16px;
  box-shadow:var(--shadow-soft); padding:11px 16px; font-size:13px; font-weight:600;
  display:flex; align-items:center; gap:8px; color:var(--ink);
  animation:float 6s ease-in-out infinite;
}
.sticker svg{ width:18px; height:18px; flex:none; color:var(--blush-ink); }
.sticker-1{ top:6%; left:-13%; --r:-7deg; transform:rotate(-7deg); animation-delay:.2s; }
.sticker-2{ bottom:8%; right:-11%; --r:6deg; transform:rotate(6deg); animation-delay:1.1s; }
.sticker-2 svg{ color:var(--sage-deep); }
@media (max-width:520px){
  .sticker{ font-size:11.5px; padding:8px 12px; }
  .sticker-1{ left:-4%; }
  .sticker-2{ right:-4%; }
}
@keyframes float{
  0%,100%{ transform:translateY(0) rotate(var(--r,0)); }
  50%{ transform:translateY(-8px) rotate(var(--r,0)); }
}


/* ==========================================================================
   6. STRISCIA TAG SCORREVOLE
   I tag sono duplicati nell'HTML: il track scorre del 50% e riparte,
   così il movimento sembra infinito.
   ========================================================================== */
.pill-strip{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:var(--paper); overflow:hidden; padding:16px 0;
}
.pill-track{ display:flex; gap:14px; width:max-content; animation:scroll-left 32s linear infinite; }
.pill-strip:hover .pill-track{ animation-play-state:paused; }
@media (prefers-reduced-motion: reduce){ .pill-track{ animation:none; } }
@keyframes scroll-left{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.pill{
  flex:none; display:flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:600; color:var(--ink-soft);
  background:var(--cream); border:1px solid var(--line);
  border-radius:999px; padding:9px 18px;
}
.pill svg{ width:15px; height:15px; color:var(--gold-deep); }


/* ==========================================================================
   7. SEZIONI GENERICHE
   ========================================================================== */
.section{ padding:96px 0; }
.section-alt{ background:var(--cream); }
.section-head{ max-width:640px; margin:0 0 48px; }
.section-head h2{
  font-size:clamp(1.9rem, 3.4vw, 2.5rem); font-style:italic;
  margin:14px 0 16px; color:var(--ink);
}
.section-head p{ color:var(--ink-soft); font-size:16.5px; }


/* ==========================================================================
   8. CHI SONO
   ========================================================================== */
.about-grid{ display:grid; grid-template-columns:0.78fr 1.22fr; gap:56px; align-items:start; }
@media (max-width:860px){ .about-grid{ grid-template-columns:1fr; } }

.about-photo{ position:relative; }
.about-photo .blob{
  position:absolute; z-index:0; border-radius:50%; background:var(--gold);
  opacity:.55; width:60%; height:60%; top:-8%; left:-10%; filter:blur(2px);
}
.about-photo img{
  position:relative; z-index:1; border-radius:24px; box-shadow:var(--shadow-soft);
  width:100%; object-fit:cover; aspect-ratio:4/5; transform:rotate(1.5deg);
}

.about-copy p{ font-size:16.5px; color:var(--ink-soft); max-width:62ch; margin:0 0 18px; }
.about-copy p strong{ color:var(--ink); font-weight:600; }

.cred-list{
  list-style:none; margin:28px 0 0; padding:22px 0 0;
  border-top:1px solid var(--line); display:grid; gap:14px;
}
.cred-list li{ display:flex; gap:12px; font-size:14.5px; color:var(--ink-soft); }
.cred-list svg{ width:19px; height:19px; color:var(--blush-ink); flex:none; margin-top:2px; }
.cred-list b{ color:var(--ink); font-weight:600; }


/* ==========================================================================
   9. PERCORSI (card servizi)
   ========================================================================== */
.service-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:22px; }
@media (max-width:700px){ .service-grid{ grid-template-columns:1fr; } }

.service-card{
  background:var(--paper); border:1px solid var(--line); border-radius:22px;
  padding:30px 28px; display:flex; flex-direction:column; gap:14px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-soft); }
.service-card .icon{
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.service-card:nth-child(1) .icon{ background:var(--blush); color:var(--blush-ink); }
.service-card:nth-child(2) .icon{ background:var(--sage);  color:var(--sage-deep); }
.service-card:nth-child(3) .icon{ background:var(--gold);  color:var(--gold-deep); }
.service-card:nth-child(4) .icon{ background:var(--blush); color:var(--blush-ink); }
.service-card .icon svg{ width:24px; height:24px; }
.service-card h3{ font-size:20px; font-style:italic; color:var(--ink); }
.service-card p{ margin:0; color:var(--ink-soft); font-size:15px; }


/* ==========================================================================
   10. COME FUNZIONA (step numerati)
   ========================================================================== */
.process{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
@media (max-width:760px){ .process{ grid-template-columns:1fr; } }

.step{
  background:var(--paper); border:1px solid var(--line);
  border-radius:22px; padding:32px 28px; position:relative;
}
.step .num{
  font-family:"Cormorant Garamond", serif; font-style:italic; font-weight:600;
  font-size:17px; color:var(--blush-ink);
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%; background:var(--blush); margin-bottom:16px;
}
.step h3{ font-size:21px; font-style:italic; margin-bottom:10px; color:var(--ink); }
.step p{ margin:0; color:var(--ink-soft); font-size:15px; }


/* ==========================================================================
   11. TESTIMONIANZE
   ========================================================================== */
.quote-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
@media (max-width:760px){ .quote-wrap{ grid-template-columns:1fr; } }

.quote-card{
  background:var(--paper); border:1px solid var(--line);
  border-radius:22px; padding:34px 32px; position:relative;
}
.quote-card svg.mark{ width:30px; height:24px; color:var(--blush-deep); margin-bottom:14px; }
.quote-card p.q{
  font-family:"Cormorant Garamond", serif; font-style:italic;
  font-size:21px; line-height:1.5; color:var(--ink); margin:0 0 18px;
}
.quote-card .who{ font-size:13.5px; color:var(--ink-soft); font-weight:600; letter-spacing:.02em; }


/* ==========================================================================
   12. BANDA CTA
   ========================================================================== */
.cta-band{
  max-width:1064px; margin:0 auto;
  background:linear-gradient(135deg, var(--blush) 0%, var(--gold) 100%);
  border-radius:28px; padding:52px 44px; text-align:center;
}
.cta-band h2{ font-size:clamp(1.7rem,3.4vw,2.3rem); font-style:italic; color:var(--ink); margin-bottom:14px; }
.cta-band p{ color:#5a4c46; margin:0 0 26px; font-size:16px; }
.cta-band .ctas{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }


/* ==========================================================================
   13. CONTATTI
   ========================================================================== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-intro{ color:var(--ink-soft); max-width:46ch; margin-top:14px; }

.contact-list{ list-style:none; margin:26px 0 0; padding:0; display:grid; gap:16px; }
.contact-list a, .contact-list .row{
  display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--ink);
  font-size:15.5px; padding:15px 18px; border:1px solid var(--line); border-radius:16px;
  background:var(--cream);
  transition:border-color .18s ease, transform .18s ease, background .18s ease;
}
.contact-list a:hover{ border-color:var(--blush-deep); transform:translateX(4px); background:var(--paper); }
.contact-list svg{ width:19px; height:19px; color:var(--blush-ink); flex:none; }

.studio-photo{ position:relative; }
.studio-photo .blob{
  position:absolute; z-index:0; border-radius:50%; background:var(--sage);
  opacity:.6; width:55%; height:40%; bottom:-8%; right:-8%; filter:blur(2px);
}
.studio-photo img{
  position:relative; z-index:1; border-radius:22px; box-shadow:var(--shadow-soft);
  aspect-ratio:4/3; object-fit:cover; width:100%;
}
.studio-cap{
  margin-top:14px; font-size:13.5px; color:var(--ink-soft);
  font-style:italic; font-family:"Cormorant Garamond", serif;
}


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
footer{ padding:44px 0; border-top:1px solid var(--line); background:var(--cream); }
.foot-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; align-items:center; }
.foot-meta{ font-size:13px; color:var(--ink-soft); line-height:1.7; text-align:right; }
.foot-meta b{ color:var(--ink); }
@media (max-width:600px){ .foot-meta{ text-align:left; } }
