
:root{
  --brand:#b05ea6;
  --brand-deep:#8a2f9e;
  --brand-light:#cb75c5;
  --ink:#17151b;
  --muted:#716c77;
  --paper:#ffffff;
  --soft:#f8f4f8;
  --lavender:#f1eaf2;
  --line:#e8dfe8;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;overflow-x:hidden;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
h1,h2,h3,p{margin-top:0}
.section-shell{width:min(calc(100% - 40px),var(--max));margin:auto}

.site-header{position:fixed;inset:0 0 auto;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.05)}
.nav-shell{width:min(calc(100% - 40px),var(--max));margin:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto}
.brand-symbol{width:50px;height:50px;object-fit:contain;flex:0 0 auto}
.brand-wordmark{width:162px;height:auto;display:block}
.desktop-nav{display:flex;gap:22px;align-items:center;font-weight:720;font-size:.92rem}
.nav-cta{background:var(--brand);color:white;padding:12px 18px;border-radius:999px}
.menu-button{display:none;width:44px;height:44px;border:0;background:transparent;position:relative;flex:0 0 auto}
.menu-button span{position:absolute;left:8px;right:8px;height:2px;background:#222;transition:.25s}
.menu-button span:first-child{top:16px}.menu-button span:last-child{top:26px}
.mobile-nav{display:none;background:white;padding:8px 20px 20px;border-top:1px solid var(--line)}
.mobile-nav.open{display:block}
.mobile-nav a{display:block;padding:14px 0;border-bottom:1px solid var(--line);font-weight:750}
.mobile-nav .mobile-cta{margin-top:12px;padding:15px;text-align:center;border:0;border-radius:999px;background:var(--brand);color:white}

.hero{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
  min-height:100svh;
  padding:122px 0 58px;
  display:grid;
  grid-template-columns:.94fr 1.06fr;
  gap:48px;
  align-items:center;
}
.eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:900;margin-bottom:14px;color:#7a727f}
.purple{color:var(--brand)} .white{color:#fff}
.hero h1{font-size:clamp(4.1rem,7vw,7.3rem);line-height:.87;letter-spacing:-.065em;margin-bottom:22px}
.hero h1 span{color:var(--brand)}
.hero-text{max-width:620px;color:var(--muted);font-size:clamp(1.05rem,1.7vw,1.22rem);line-height:1.58;margin-bottom:28px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:58px;padding:0 24px;border-radius:999px;font-weight:900;letter-spacing:.035em}
.primary{background:linear-gradient(90deg,var(--brand),var(--brand-light));color:#fff;box-shadow:0 16px 34px rgba(176,94,166,.2)}
.secondary{border:1px solid var(--line);background:white;color:var(--ink)}
.hero-visual{position:relative}
.hero-image-card{border-radius:34px;overflow:hidden;box-shadow:0 28px 80px rgba(70,35,70,.13);background:var(--soft)}
.hero-image-card img{width:100%;height:auto;display:block}
.floating-symbol{position:absolute;width:88px;height:88px;object-fit:contain;right:-10px;top:-20px;filter:drop-shadow(0 12px 28px rgba(80,30,80,.18))}

.pillars{padding:0 0 34px}
.pillar-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:24px;overflow:hidden;background:white;box-shadow:0 14px 42px rgba(60,30,60,.05)}
.pillar{padding:28px;border-right:1px solid var(--line)}
.pillar:last-child{border-right:0}
.pillar span{display:block;color:var(--brand);font-size:.7rem;font-weight:900;letter-spacing:.16em;margin-bottom:22px}
.pillar h3{font-size:1.3rem;margin-bottom:8px}
.pillar p{color:var(--muted);font-size:.9rem;line-height:1.55;margin:0}

.section{padding:100px 0}
.split{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.image-block{border-radius:28px;overflow:hidden;box-shadow:0 24px 70px rgba(70,35,70,.12)}
.image-block img{width:100%;height:auto}
.copy-block h2,.section-heading h2,.digital-copy h2,.contact-card h2{font-size:clamp(2.4rem,5vw,4.8rem);line-height:.98;letter-spacing:-.05em;margin-bottom:20px}
.copy-block p,.section-heading p,.digital-copy p{color:var(--muted);font-size:1.05rem;line-height:1.7}
.text-link{display:inline-block;margin-top:10px;color:var(--brand);font-weight:850}

.digital-section{background:linear-gradient(180deg,#faf7fa,#f4edf5)}
.digital-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start}
.digital-copy{position:sticky;top:110px}
.steps{display:grid;gap:14px}
.step{padding:28px;border:1px solid var(--line);border-radius:22px;background:white;box-shadow:0 12px 36px rgba(70,35,70,.05)}
.step b{color:var(--brand);font-size:.72rem;letter-spacing:.16em}
.step h3{font-size:1.45rem;margin:20px 0 8px}
.step p{color:var(--muted);line-height:1.6;margin:0}

.section-heading{max-width:820px;margin-bottom:42px}
.team-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.person-card{min-height:650px;border-radius:28px;overflow:hidden;position:relative;background:#ddd;box-shadow:0 24px 70px rgba(0,0,0,.11)}
.person-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.person-card:first-child>img{object-position:center 20%}
.person-card:nth-child(2)>img{object-position:center 18%}
.person-card:after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(180deg,transparent,rgba(15,11,16,.9))}
.person-info{position:absolute;z-index:2;left:28px;right:28px;bottom:28px;color:white}
.role{color:#edbee8!important;font-size:.68rem!important;letter-spacing:.13em;font-weight:900}
.person-info h3{font-size:2rem;margin:7px 0 8px}
.person-info p{color:#eee8ef;margin:0;line-height:1.55}

.soft-section{background:var(--soft)}
.training-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.training-card{padding:28px;border:1px solid var(--line);background:white;border-radius:22px;min-height:250px}
.training-card span{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--lavender);color:var(--brand);font-weight:900;margin-bottom:34px}
.training-card h3{font-size:1.4rem}
.training-card p{color:var(--muted);line-height:1.6}

.contact-section{padding:0 0 90px;background:var(--soft)}
.contact-card{background:linear-gradient(135deg,var(--brand),#79139b);color:white;border-radius:30px;padding:56px;box-shadow:0 26px 70px rgba(102,27,105,.2)}
.contact-card p{color:#f3e8f2;font-size:1.08rem;line-height:1.6}
.contact-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.white-button{background:white;color:#421344}
.outline-button{border:1px solid rgba(255,255,255,.65);color:white}

footer{background:white;border-top:1px solid var(--line);padding:34px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-brand{display:flex;align-items:center;gap:10px}
.footer-brand img:first-child{width:48px}
.footer-brand img:last-child{width:140px}
footer p{color:#8a858f;font-size:.86rem;margin:0}

.reveal,.reveal-left,.reveal-right{opacity:0;transition:opacity .75s ease,transform .75s cubic-bezier(.2,.65,.25,1)}
.reveal{transform:translateY(28px)}
.reveal-left{transform:translateX(-36px)}
.reveal-right{transform:translateX(36px)}
.visible{opacity:1!important;transform:none!important}

@media(max-width:900px){
  .desktop-nav{display:none}
  .menu-button{display:block}
  .hero{grid-template-columns:1fr;gap:28px;padding-top:100px}
  .hero-copy{order:1}
  .hero-visual{order:2}
  .split,.digital-layout{grid-template-columns:1fr}
  .digital-copy{position:static}
  .pillar-grid{grid-template-columns:1fr 1fr}
  .pillar:nth-child(2){border-right:0}
  .pillar:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .team-grid{grid-template-columns:1fr}
  .training-grid{grid-template-columns:1fr}
}

@media(max-width:620px){
  .section-shell,.nav-shell,.hero{width:calc(100% - 24px)}
  .nav-shell{min-height:64px}
  .brand{gap:8px;max-width:calc(100% - 56px)}
  .brand-symbol{width:40px;height:40px}
  .brand-wordmark{width:min(150px,42vw)}
  .hero{min-height:auto;padding:92px 0 38px;gap:20px}
  .eyebrow{font-size:.61rem;letter-spacing:.13em;margin-bottom:10px}
  .hero h1{font-size:clamp(3.05rem,15.2vw,4.2rem);line-height:.9;margin-bottom:18px}
  .hero-text{font-size:.97rem;line-height:1.5;margin-bottom:22px}
  .hero-actions{display:grid;grid-template-columns:1fr;width:100%}
  .button{width:100%;min-height:64px;font-size:.91rem}
  .hero-image-card{border-radius:24px}
  .floating-symbol{width:72px;height:72px;right:8px;top:-14px}
  .pillars{padding:10px 0 22px}
  .pillar-grid{display:flex;overflow-x:auto;gap:10px;border:0;box-shadow:none;background:transparent;scroll-snap-type:x mandatory}
  .pillar{flex:0 0 78%;padding:20px;border:1px solid var(--line)!important;border-radius:18px;background:white;scroll-snap-align:start}
  .section{padding:68px 0}
  .split{gap:28px}
  .image-block{border-radius:20px}
  .copy-block h2,.section-heading h2,.digital-copy h2,.contact-card h2{font-size:clamp(2.2rem,11vw,3.2rem);line-height:.99}
  .copy-block p,.section-heading p,.digital-copy p{font-size:.97rem;line-height:1.6}
  .digital-layout{gap:30px}
  .step{padding:22px}
  .team-grid{gap:16px}
  .person-card{min-height:500px;border-radius:22px}
  .person-info{left:20px;right:20px;bottom:20px}
  .person-info h3{font-size:1.7rem}
  .contact-section{padding-bottom:48px}
  .contact-card{padding:34px 22px;border-radius:24px}
  .contact-actions{display:grid}
  .footer-inner{flex-direction:column;align-items:flex-start}
}
@media(max-width:380px){
  .brand-wordmark{width:132px}
  .hero h1{font-size:2.9rem}
}
@media(prefers-reduced-motion:reduce){
  *{transition:none!important;scroll-behavior:auto!important}
  .reveal,.reveal-left,.reveal-right{opacity:1!important;transform:none!important}
}


/* ===== V8 CLEAN HERO ===== */
.hero-clean{
  position:relative;
  grid-template-columns:1fr .95fr;
  gap:56px;
  overflow:visible;
}

.hero-art{
  min-height:560px;
  position:relative;
  border-radius:36px;
  overflow:hidden;
  background:
    linear-gradient(145deg, rgba(176,94,166,.08), rgba(255,255,255,.0) 56%),
    #fbf8fb;
  border:1px solid #eee6ee;
  box-shadow:0 28px 80px rgba(78,40,80,.08);
}

.hero-art:before{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(176,94,166,.12);
  border-radius:28px;
}

.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(.2px);
}
.orb-a{
  width:310px;height:310px;
  right:-70px;top:-70px;
  background:radial-gradient(circle at 35% 35%, rgba(196,90,213,.56), rgba(176,94,166,.15) 60%, transparent 72%);
}
.orb-b{
  width:210px;height:210px;
  left:-50px;bottom:-40px;
  background:radial-gradient(circle at 45% 45%, rgba(113,11,178,.18), rgba(176,94,166,.06) 62%, transparent 75%);
}
.ring{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(176,94,166,.34);
}
.ring-a{width:330px;height:330px;right:70px;top:80px}
.ring-b{width:210px;height:210px;right:130px;top:140px;border-color:rgba(176,94,166,.22)}

.grid-lines{
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(176,94,166,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,94,166,.06) 1px, transparent 1px);
  background-size:38px 38px;
  mask-image:linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.tooth-mark{
  position:absolute;
  width:180px;
  height:230px;
  left:50%;
  top:50%;
  transform:translate(-50%,-49%);
  border:3px solid rgba(176,94,166,.78);
  border-radius:48% 48% 42% 42% / 38% 38% 60% 60%;
  background:rgba(255,255,255,.55);
  box-shadow:0 18px 40px rgba(176,94,166,.09);
}
.tooth-mark:before,
.tooth-mark:after{
  content:"";
  position:absolute;
  bottom:-2px;
  width:74px;
  height:110px;
  background:#fbf8fb;
}
.tooth-mark:before{
  left:18px;
  transform:rotate(10deg);
  border-radius:50% 50% 0 0;
}
.tooth-mark:after{
  right:18px;
  transform:rotate(-10deg);
  border-radius:50% 50% 0 0;
}
.tooth-inner{
  position:absolute;
  inset:18px 26px 62px;
  border:1px solid rgba(176,94,166,.18);
  border-radius:50%;
}

.hero-art-caption{
  position:absolute;
  left:28px;right:28px;bottom:26px;
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:#8d7f8e;
  font-size:.68rem;
  letter-spacing:.15em;
  font-weight:900;
}

@media(max-width:900px){
  .hero-clean{
    grid-template-columns:1fr;
  }
  .hero-art{
    min-height:430px;
  }
}

@media(max-width:620px){
  .hero-clean{
    gap:18px;
  }
  .hero-art{
    min-height:330px;
    border-radius:24px;
  }
  .hero-art:before{
    inset:12px;
    border-radius:18px;
  }
  .orb-a{
    width:220px;height:220px;
    right:-55px;top:-50px;
  }
  .orb-b{
    width:150px;height:150px;
    left:-36px;bottom:-26px;
  }
  .ring-a{width:230px;height:230px;right:58px;top:48px}
  .ring-b{width:150px;height:150px;right:98px;top:88px}
  .tooth-mark{
    width:128px;
    height:166px;
    border-width:2px;
  }
  .tooth-mark:before,
  .tooth-mark:after{
    width:52px;
    height:80px;
  }
  .tooth-mark:before{left:13px}
  .tooth-mark:after{right:13px}
  .hero-art-caption{
    left:16px;right:16px;bottom:16px;
    font-size:.54rem;
    gap:8px;
  }
}


/* ===== V9 MINIMAL HERO ===== */
.hero-minimal{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:88svh;
  padding-top:126px;
  padding-bottom:72px;
  position:relative;
  grid-template-columns:none;
}

.hero-minimal .hero-copy{
  width:min(820px,100%);
}

.hero-minimal .hero-text{
  max-width:700px;
}

.hero-minimal .hero-actions{
  margin-top:30px;
}

@media(max-width:620px){
  .hero-minimal{
    min-height:auto;
    padding-top:104px;
    padding-bottom:54px;
  }
  .hero-minimal .hero-copy{
    width:100%;
  }
}


/* ===== MOBILE SNAP EXPERIENCE ===== */
@media (max-width:620px){
  html{scroll-snap-type:y mandatory;scroll-padding-top:64px}
  body{overflow-x:hidden}
  .mobile-screen{min-height:100svh;scroll-snap-align:start;scroll-snap-stop:always}
  .hero-minimal{min-height:100svh!important;padding-top:96px!important;padding-bottom:34px!important;display:flex!important;align-items:center!important}
  .pillars{min-height:100svh;padding:82px 0 26px!important;display:flex;align-items:center}
  .pillar-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;overflow:visible!important;border:0!important;box-shadow:none!important;background:transparent!important}
  .pillar{padding:16px 18px!important;min-height:0!important;border:1px solid var(--line)!important;border-radius:16px!important;display:grid;grid-template-columns:38px 1fr;grid-template-areas:"num title" "num text";column-gap:10px;background:#fff}
  .pillar span{grid-area:num;margin:3px 0 0!important}.pillar h3{grid-area:title;margin:0 0 3px!important;font-size:1.08rem!important}.pillar p{grid-area:text;margin:0!important;font-size:.81rem!important;line-height:1.35!important}
  #estetica{min-height:100svh;padding:78px 0 24px!important;display:flex;align-items:center}
  #estetica .split{gap:16px!important} #estetica .image-block{max-height:30svh} #estetica .image-block img{height:30svh;object-fit:cover}
  #estetica .copy-block h2{font-size:clamp(2rem,9.5vw,2.75rem)!important;margin-bottom:10px} #estetica .copy-block p{font-size:.88rem!important;line-height:1.42!important;margin-bottom:8px}
  #digitale{min-height:100svh;padding:78px 0 24px!important;display:flex;align-items:center}
  #digitale .digital-layout{gap:18px!important} #digitale .digital-copy h2{font-size:clamp(1.9rem,9vw,2.65rem)!important;margin-bottom:10px} #digitale .digital-copy p{font-size:.86rem!important;line-height:1.4!important;margin-bottom:0} #digitale .steps{gap:7px!important}
  #digitale .step{padding:12px 14px!important;border-radius:15px!important;display:grid;grid-template-columns:34px 1fr;grid-template-areas:"num title" "num text";column-gap:8px}
  #digitale .step b{grid-area:num;margin-top:2px} #digitale .step h3{grid-area:title;font-size:1rem!important;margin:0 0 2px!important} #digitale .step p{grid-area:text;font-size:.75rem!important;line-height:1.3!important}
  .team-section{min-height:auto!important;padding:78px 0 0!important}.team-section .section-heading{min-height:38svh;display:flex;flex-direction:column;justify-content:center;margin-bottom:14px}.team-section .section-heading h2{font-size:clamp(2rem,9.5vw,2.75rem)!important;margin-bottom:10px}.team-section .section-heading p{font-size:.88rem!important}.team-grid{display:block!important}
  .person-card{min-height:calc(100svh - 64px)!important;border-radius:0!important;scroll-snap-align:start;scroll-snap-stop:always;margin:0!important}
  #formazione{min-height:100svh;padding:78px 0 24px!important;display:flex;align-items:center} #formazione .section-heading{margin-bottom:16px} #formazione .section-heading h2{font-size:clamp(2rem,9.2vw,2.7rem)!important;margin-bottom:8px} #formazione .section-heading p{font-size:.85rem!important;line-height:1.4!important}
  .training-grid{gap:7px!important}.training-card{min-height:0!important;padding:12px 14px!important;display:grid;grid-template-columns:38px 1fr;grid-template-areas:"icon title" "icon text";column-gap:8px;border-radius:15px!important}.training-card span{grid-area:icon;width:34px!important;height:34px!important;margin:0!important}.training-card h3{grid-area:title;font-size:1rem!important;margin:0 0 2px!important}.training-card p{grid-area:text;font-size:.75rem!important;line-height:1.3!important;margin:0}
  .contact-section{min-height:100svh;padding:78px 12px 24px!important;display:flex;align-items:center}.contact-card{width:100%;padding:30px 20px!important;border-radius:22px!important}
  footer{scroll-snap-align:none}
}


/* ===== FOOTER COMPANY INFO ===== */
.site-footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding:38px 0 44px;
  scroll-snap-align:none;
}

.site-footer .footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:36px;
  flex-wrap:wrap;
}

.site-footer .footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.site-footer .footer-brand img:first-child{
  width:48px;
  height:48px;
  object-fit:contain;
}

.site-footer .footer-brand img:last-child{
  width:150px;
  height:auto;
}

.footer-info{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#7e7882;
  font-size:.9rem;
  line-height:1.45;
  text-align:right;
}

.footer-info strong{
  color:var(--ink);
  font-size:.98rem;
}

.footer-info a{
  color:inherit;
  text-decoration:none;
}

.footer-info a:hover{
  color:var(--brand);
}

.footer-sep{
  margin:0 5px;
}

@media(max-width:620px){
  .site-footer{
    padding:28px 0 34px;
  }

  .site-footer .footer-inner{
    flex-direction:column;
    gap:20px;
  }

  .footer-info{
    width:100%;
    text-align:left;
    font-size:.86rem;
  }

  .site-footer .footer-brand img:first-child{
    width:42px;
    height:42px;
  }

  .site-footer .footer-brand img:last-child{
    width:135px;
  }
}


/* ===== COMPACT FOOTER + MAP ===== */
.site-footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding:28px 0 26px;
  scroll-snap-align:none;
}

.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:28px;
  flex-wrap:wrap;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}

.footer-brand img:first-child{
  width:42px;
  height:42px;
  object-fit:contain;
}

.footer-brand img:last-child{
  width:138px;
  height:auto;
}

.footer-info{
  display:flex;
  flex-direction:column;
  gap:3px;
  text-align:right;
  color:#7f7983;
  font-size:.84rem;
  line-height:1.35;
}

.footer-info strong{
  color:var(--ink);
  font-size:.95rem;
}

.footer-info a{
  color:inherit;
  text-decoration:none;
}

.footer-info a:hover{
  color:var(--brand);
}

.footer-sites{
  display:flex;
  gap:5px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.footer-map-wrap{
  margin-top:20px;
}

.footer-map{
  width:100%;
  height:220px;
  border:0;
  border-radius:18px;
  display:block;
  filter:saturate(.85) contrast(.98);
}

@media(max-width:620px){
  .site-footer{
    padding:20px 0 22px;
  }

  .footer-top{
    gap:12px;
  }

  .footer-brand{
    width:100%;
  }

  .footer-brand img:first-child{
    width:36px;
    height:36px;
  }

  .footer-brand img:last-child{
    width:120px;
  }

  .footer-info{
    width:100%;
    text-align:left;
    font-size:.78rem;
    line-height:1.3;
    gap:2px;
  }

  .footer-info strong{
    font-size:.9rem;
  }

  .footer-sites{
    justify-content:flex-start;
  }

  .footer-map-wrap{
    margin-top:14px;
  }

  .footer-map{
    height:160px;
    border-radius:14px;
  }
}
