/* Valentina Fioretti, pediatra
   Palette derived from the logo: plum #67527E, lavender #907BA9 / #C4AFD5, cream ground. */

:root{
  --cream:        #faf6f0;
  --cream-deep:   #f4ede3;
  --paper:        #fffdfa;

  --lav-50:       #f7f3fa;
  --lav-100:      #efe8f5;
  --lav-200:      #e0d4ec;
  --lav-300:      #c4afd5;
  --lav-500:      #907ba9;
  --plum:         #67527e;
  --plum-deep:    #4c3b60;

  --ink:          #39313f;
  --ink-soft:     #6d6477;
  --line:         rgba(103,82,126,.16);

  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 18px;
  --shadow: 0 24px 60px -32px rgba(76,59,96,.45);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

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

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }
.wrap.narrow{ max-width:820px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--plum); color:#fff; padding:12px 20px; border-radius:0 0 10px 0;
}
.skip:focus{ left:0; }

:focus-visible{ outline:2px solid var(--plum); outline-offset:3px; border-radius:4px; }

/* ---------- header ---------- */

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,240,.82);
  backdrop-filter:saturate(1.4) blur(12px);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, background .3s ease;
}
.site-header.is-stuck{ border-bottom-color:var(--line); }

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; min-height:76px;
}

.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand-mark{ width:34px; height:auto; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{
  font-family:var(--serif); font-size:1.18rem; font-weight:500;
  letter-spacing:.055em; color:var(--plum-deep);
}
.brand-role{
  font-size:.62rem; letter-spacing:.32em; text-transform:uppercase;
  color:var(--lav-500); font-weight:500; padding-left:.1em;
}

.nav{ display:flex; align-items:center; gap:34px; }
.nav a{
  text-decoration:none; font-size:.86rem; letter-spacing:.06em;
  color:var(--ink-soft); position:relative; padding:6px 0;
  transition:color .2s ease;
}
.nav a:hover{ color:var(--plum); }
.nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--lav-500); transition:width .28s ease;
}
.nav a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{
  border:1px solid var(--lav-300); border-radius:999px;
  padding:9px 22px !important; color:var(--plum) !important;
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.nav-cta:hover{ background:var(--plum); border-color:var(--plum); color:#fff !important; }

.nav-toggle{
  display:none; width:44px; height:44px; border:0; background:none;
  cursor:pointer; padding:10px; flex-direction:column; justify-content:space-between;
}
.nav-toggle span{
  display:block; height:1.5px; background:var(--plum); border-radius:2px;
  transition:transform .3s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(10.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-10.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero{ position:relative; padding:clamp(48px,7vw,96px) 0 clamp(60px,8vw,110px); overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:auto -10% -40% 30%;
  height:120%; border-radius:50%;
  background:radial-gradient(closest-side, var(--lav-100), transparent 72%);
  pointer-events:none;
}

.hero-inner{
  position:relative;
  display:grid; grid-template-columns:1.05fr .95fr;
  gap:clamp(32px,5vw,72px); align-items:center;
}

.eyebrow{
  margin:0 0 18px; font-size:.7rem; letter-spacing:.3em; text-transform:uppercase;
  color:var(--lav-500); font-weight:500;
}
.eyebrow::before{
  content:""; display:inline-block; width:34px; height:1px;
  background:var(--lav-300); vertical-align:middle; margin-right:14px;
}

h1{
  font-family:var(--serif); font-weight:300;
  font-size:clamp(3.1rem,8.5vw,5.6rem); line-height:.97;
  letter-spacing:-.005em; margin:0 0 26px; color:var(--plum-deep);
}
h1 em{ font-style:normal; color:var(--lav-500); }

.lede{
  font-size:clamp(1.02rem,1.5vw,1.14rem); color:var(--ink-soft);
  max-width:40ch; margin:0 0 34px;
}

.actions{ display:flex; flex-wrap:wrap; gap:14px; }
.btn{
  display:inline-block; text-decoration:none; border-radius:999px;
  padding:14px 30px; font-size:.88rem; letter-spacing:.05em;
  transition:transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn-primary{ background:var(--plum); color:#fff; box-shadow:0 14px 28px -18px rgba(76,59,96,.9); }
.btn-primary:hover{ background:var(--plum-deep); transform:translateY(-2px); }
.btn-ghost{ border:1px solid var(--lav-300); color:var(--plum); }
.btn-ghost:hover{ background:var(--lav-100); transform:translateY(-2px); }

.hero-figure{ display:flex; justify-content:center; }
.portrait{ position:relative; width:min(430px,100%); }
.portrait::before{
  content:""; position:absolute; left:50%; top:5%;
  transform:translateX(-50%); width:94%; height:88%;
  border-radius:50% 50% 38% 38% / 44% 44% 10% 10%;
  background:linear-gradient(168deg, var(--lav-200) 0%, var(--lav-100) 52%, rgba(247,243,250,0) 100%);
}
.portrait img{
  position:relative; width:100%;
}

/* ---------- sections ---------- */

.section{ padding:clamp(64px,9vw,118px) 0; }
.section-tint{ background:linear-gradient(180deg, var(--lav-50), var(--cream)); }

.label{
  margin:0 0 14px; font-size:.68rem; letter-spacing:.3em; text-transform:uppercase;
  color:var(--lav-500); font-weight:500;
}

h2{
  font-family:var(--serif); font-weight:300;
  font-size:clamp(2.1rem,4.4vw,3.1rem); line-height:1.1;
  margin:0 0 40px; color:var(--plum-deep);
}

.prose p{ margin:0 0 20px; }
.prose p:last-child{ margin-bottom:0; }
.prose .big{
  font-family:var(--serif); font-size:clamp(1.45rem,2.9vw,1.95rem);
  line-height:1.4; font-weight:300; color:var(--plum-deep); margin-bottom:28px;
}
.prose p:not(.big){ color:var(--ink-soft); }

.facts{
  list-style:none; margin:48px 0 0; padding:34px 0 0;
  border-top:1px solid var(--line);
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.facts li{ display:flex; flex-direction:column; gap:4px; }
.facts strong{
  font-family:var(--serif); font-size:1.22rem; font-weight:500; color:var(--plum);
}
.facts span{ font-size:.85rem; color:var(--ink-soft); }

/* ---------- cards ---------- */

.cards{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(272px,1fr)); gap:20px;
}
.card{
  background:var(--paper); border:1px solid var(--line);
  border-radius:var(--radius); padding:32px 30px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 28px 50px -34px rgba(76,59,96,.55);
  border-color:var(--lav-300);
}
.card svg{
  width:30px; height:30px; margin-bottom:20px;
  fill:none; stroke:var(--lav-500); stroke-width:1.4;
  stroke-linecap:round; stroke-linejoin:round;
}
.card h3{
  font-family:var(--serif); font-weight:500; font-size:1.3rem;
  margin:0 0 10px; color:var(--plum-deep);
}
.card p{ margin:0; font-size:.93rem; color:var(--ink-soft); }

/* ---------- timeline ---------- */

.timeline{ list-style:none; margin:0; padding:0; position:relative; }
.timeline::before{
  content:""; position:absolute; left:5px; top:10px; bottom:10px;
  width:1px; background:linear-gradient(var(--lav-300), transparent);
}
.timeline li{ position:relative; padding:0 0 38px 38px; }
.timeline li:last-child{ padding-bottom:0; }
.timeline li::before{
  content:""; position:absolute; left:0; top:9px;
  width:11px; height:11px; border-radius:50%;
  background:var(--cream); border:1.5px solid var(--lav-500);
}
.timeline h3{
  font-family:var(--serif); font-weight:500; font-size:1.34rem;
  margin:0 0 6px; color:var(--plum-deep);
}
.timeline p{ margin:0; color:var(--ink-soft); font-size:.95rem; }
.timeline em{ color:var(--plum); }

/* ---------- contact ---------- */

.section-contact{ background:linear-gradient(180deg, var(--cream), var(--lav-100)); }
.section-contact .lede{ margin-bottom:38px; }

.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }
.contact-card{
  display:flex; flex-direction:column; gap:6px; text-decoration:none;
  background:var(--paper); border:1px solid var(--line);
  border-radius:14px; padding:24px 26px;
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.contact-card:hover{
  transform:translateY(-3px); border-color:var(--lav-300);
  box-shadow:0 22px 40px -30px rgba(76,59,96,.6);
}
.contact-k{ font-size:.66rem; letter-spacing:.26em; text-transform:uppercase; color:var(--lav-500); }
.contact-v{ font-family:var(--serif); font-size:1.2rem; color:var(--plum-deep); word-break:break-word; }

.note{
  margin:36px 0 0; font-size:.82rem; line-height:1.6; color:var(--ink-soft);
  border-left:2px solid var(--lav-300); padding-left:16px; max-width:58ch;
}

/* ---------- footer ---------- */

.site-footer{ background:var(--lav-100); padding:52px 0 44px; }
.footer-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:28px; flex-wrap:wrap;
}
.footer-logo{ width:190px; opacity:.9; }
.footer-meta{ text-align:right; }
.footer-meta p{ margin:0 0 4px; font-size:.78rem; color:var(--ink-soft); }

/* ---------- reveal ---------- */

.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.js .reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
  .btn:hover, .card:hover, a.contact-card:hover{ transform:none; }
}

/* ---------- responsive ---------- */

@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-copy{ order:2; }
  .hero-figure{ order:1; }
  .eyebrow::before{ display:none; }
  .lede{ margin-inline:auto; }
  .actions{ justify-content:center; }
  .portrait{ width:min(330px,74vw); }
  .hero::before{ inset:auto -30% 20% -30%; }
}

@media (max-width:760px){
  body{ font-size:16px; }
  .nav-toggle{ display:flex; }
  .nav{
    position:fixed; inset:76px 0 auto; flex-direction:column; gap:0;
    background:var(--cream); border-bottom:1px solid var(--line);
    padding:8px 24px 28px; transform:translateY(-120%);
    transition:transform .35s cubic-bezier(.4,0,.2,1); align-items:stretch;
  }
  .nav.is-open{ transform:translateY(0); }
  .nav a{ padding:16px 0; border-bottom:1px solid var(--line); font-size:1rem; }
  .nav a:last-child{ border-bottom:0; }
  .nav-cta{ margin-top:18px; text-align:center; }
  .facts{ grid-template-columns:1fr; gap:20px; }
  .footer-inner{ flex-direction:column; text-align:center; }
  .footer-meta{ text-align:center; }
}

.section .lede{ max-width:62ch; }

.nav-ext{ display:inline-block; font-size:.78em; opacity:.55; transform:translateY(-1px); margin-left:1px; }
.nav a:hover .nav-ext{ opacity:.9; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
