
:root{
  --polytech-blue:#005788;
  --polytech-blue-2:#086b9e;
  --polytech-blue-deep:#003955;
  --sand:#c09d7f;
  --sand-soft:#e8dcd1;
  --ink:#15202a;
  --muted:#67737d;
  --white:#ffffff;
  --off:#f6f7f7;
  --line:rgba(21,32,42,.16);
  --page:1360px;
}

/*
  POLYTECH 40 — v3.0
  TT Commons resta il font principale. Se il webfont autorizzato viene aggiunto
  nella cartella /fonts, la famiglia può essere attivata senza modificare il layout.
*/
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:74px}
body{
  margin:0;
  color:var(--ink);
  background:var(--white);
  font-family:"TT Commons","TT Commons Pro","Helvetica Neue",Arial,sans-serif;
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.gate-open{overflow:hidden}
a{color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid var(--sand);outline-offset:4px}
img{display:block;max-width:100%}

.scroll-progress{
  position:fixed;
  top:0;left:0;right:0;
  height:3px;
  z-index:1100;
  pointer-events:none;
}
.scroll-progress span{
  display:block;
  width:0;
  height:100%;
  background:var(--sand);
  transform-origin:left center;
}

/* ACCESS GATE */
.medical-gate{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(0,29,45,.76);
  backdrop-filter:blur(16px);
  transition:opacity .45s ease,visibility .45s ease;
}
.medical-gate.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.gate-shell{
  width:min(1060px,96vw);
  max-height:90vh;
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  overflow:auto;
  background:white;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.gate-panel{min-height:580px}
.gate-panel--brand{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:48px;
  color:white;
  background:
    linear-gradient(145deg,rgba(255,255,255,.08),transparent 45%),
    var(--polytech-blue);
  overflow:hidden;
}
.gate-panel--brand::after{
  content:"";
  position:absolute;
  width:360px;height:360px;
  right:-180px;bottom:-130px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
}
.gate-logo{width:230px;height:auto}
.gate-anniversary{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:end;
  position:relative;
  z-index:2;
}
.gate-anniversary strong{
  font-size:150px;
  line-height:.72;
  font-weight:300;
  letter-spacing:-.09em;
}
.gate-anniversary span{
  padding-bottom:6px;
  font-size:11px;
  letter-spacing:.14em;
}
.gate-brandline{
  position:relative;
  z-index:2;
  margin:0;
  font-size:14px;
  letter-spacing:.06em;
}
.gate-panel--content{
  padding:58px clamp(34px,5vw,74px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.kicker{
  margin:0 0 18px;
  font-size:11px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--polytech-blue);
}
.gate-panel--content h1{
  margin:0 0 28px;
  max-width:570px;
  font-size:clamp(34px,4vw,52px);
  line-height:1.02;
  font-weight:400;
  letter-spacing:-.035em;
  color:var(--polytech-blue);
}
.gate-panel--content p{
  max-width:610px;
  margin:0 0 16px;
  font-size:14px;
  line-height:1.6;
  color:#4c5963;
}
.button{
  width:max-content;
  min-width:196px;
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:center;
  margin-top:20px;
  padding:17px 20px;
  border:1px solid var(--polytech-blue);
  background:var(--polytech-blue);
  color:white;
  font:inherit;
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  cursor:pointer;
  transition:background .25s ease,color .25s ease,transform .25s ease;
}
.button:hover{background:white;color:var(--polytech-blue);transform:translateY(-2px)}

.gate-consent{
  max-width:610px;
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin:8px 0 2px;
  color:#4c5963;
  font-size:13px;
  line-height:1.5;
  cursor:pointer;
}
.gate-consent input{
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin:2px 0 0;
  accent-color:var(--polytech-blue);
}
.gate-consent a{
  color:var(--polytech-blue);
  text-decoration:underline;
  text-underline-offset:2px;
}
.gate-consent a:hover{text-decoration-thickness:2px}
.button:disabled,
.button[aria-disabled="true"]{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.button:disabled:hover,
.button[aria-disabled="true"]:hover{
  background:var(--polytech-blue);
  color:white;
  transform:none;
}
.gate-small{margin-top:18px!important;font-size:11px!important;color:#8a949c!important}

/* HEADER */
.site-header{
  position:fixed;
  z-index:100;
  top:3px;left:0;right:0;
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(24px,4vw,64px);
  transition:background .35s ease,box-shadow .35s ease,height .35s ease;
}
.site-header.is-scrolled{
  height:70px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 rgba(0,87,136,.12);
}
.logo-link img{width:205px;height:auto}
.header-meta{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:10px;
  letter-spacing:.18em;
  color:var(--polytech-blue);
}
.header-divider{width:42px;height:1px;background:var(--sand)}

/* SIDE RAIL */
.chapter-rail{
  position:fixed;
  z-index:90;
  right:22px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
  mix-blend-mode:multiply;
}
.rail-year{
  margin-bottom:8px;
  font-size:10px;
  letter-spacing:.2em;
  color:var(--polytech-blue);
}
.chapter-rail a{
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  gap:7px;
  text-decoration:none;
  color:var(--polytech-blue);
  font-size:9px;
  opacity:.44;
  transition:opacity .25s ease,transform .25s ease;
}
.chapter-rail a i{
  display:block;
  width:6px;height:6px;
  border:1px solid currentColor;
  border-radius:50%;
}
.chapter-rail a.is-active{opacity:1;transform:translateX(-4px)}
.chapter-rail a.is-active i{background:currentColor}

/* HERO */
.hero{
  position:relative;
  min-height:100svh;
  background:
    linear-gradient(125deg,#f3f8fa 0%,#ffffff 50%,#f3ece7 100%);
  overflow:hidden;
}
.hero-background{position:absolute;inset:0;pointer-events:none}
.hero-ghost{
  position:absolute;
  right:-4vw;
  bottom:-16vh;
  font-size:clamp(360px,48vw,720px);
  line-height:.72;
  font-weight:300;
  letter-spacing:-.11em;
  color:transparent;
  -webkit-text-stroke:1px rgba(0,87,136,.11);
  user-select:none;
  will-change:transform;
}
.hero-line{
  position:absolute;
  width:1px;
  height:54vh;
  background:linear-gradient(to bottom,transparent,var(--sand),transparent);
  opacity:.55;
  transform-origin:top;
  animation:lineBreath 5.5s ease-in-out infinite;
}
.hero-line--one{right:25%;top:0}
.hero-line--two{left:14%;bottom:-10%;animation-delay:1.6s}
@keyframes lineBreath{0%,100%{transform:scaleY(.72);opacity:.25}50%{transform:scaleY(1);opacity:.72}}

.hero-inner{
  position:relative;
  z-index:2;
  min-height:100svh;
  width:min(var(--page),100%);
  margin:0 auto;
  padding:150px clamp(24px,6vw,94px) 70px;
  display:flex;
  flex-direction:column;
}
.hero-topline{
  display:grid;
  grid-template-columns:auto minmax(80px,240px) auto;
  align-items:center;
  gap:17px;
  width:min(440px,100%);
  color:var(--polytech-blue);
  font-size:11px;
  letter-spacing:.16em;
}
.topline-rule{
  height:1px;
  background:linear-gradient(to right,var(--polytech-blue),var(--sand));
}
.hero-title-wrap{
  margin:auto 0;
  padding:6vh 0;
}
.hero-title-wrap .kicker{margin-bottom:22px}
.hero h1{
  margin:0;
  max-width:1060px;
  font-size:clamp(68px,9.5vw,152px);
  line-height:.82;
  letter-spacing:-.065em;
  font-weight:300;
  color:var(--ink);
}
.hero h1 span{
  color:var(--polytech-blue);
  font-weight:300;
}
.hero-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:40px;
}
.hero-intro{
  max-width:510px;
  margin:0;
  font-size:clamp(18px,1.7vw,24px);
  line-height:1.35;
  color:#50616d;
}
.scroll-cue{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  font-size:10px;
  letter-spacing:.15em;
  color:var(--polytech-blue);
}
.scroll-circle{
  width:45px;height:45px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:50%;
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
.scroll-cue:hover .scroll-circle{
  transform:translateY(4px);
  background:var(--polytech-blue);
  color:white;
}

/* STRIP */
.chapter-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border-top:1px solid rgba(0,87,136,.16);
  border-bottom:1px solid rgba(0,87,136,.16);
  background:white;
}
.chapter-strip a{
  min-height:145px;
  display:flex;
  align-items:flex-start;
  gap:18px;
  padding:34px clamp(20px,3vw,44px);
  border-right:1px solid rgba(0,87,136,.16);
  text-decoration:none;
  color:var(--polytech-blue);
  transition:background .3s ease,color .3s ease;
}
.chapter-strip a:last-child{border-right:0}
.chapter-strip a:hover{background:var(--polytech-blue);color:white}
.chapter-strip span{
  margin-top:5px;
  font-size:10px;
  letter-spacing:.16em;
  color:var(--sand);
}
.chapter-strip strong{
  font-size:19px;
  line-height:1.12;
  font-weight:400;
}

/* CHAPTERS */
.chapter{
  position:relative;
  min-height:94vh;
  scroll-margin-top:70px;
  overflow:hidden;
}
.chapter-layout{
  position:relative;
  z-index:2;
  width:min(var(--page),100%);
  min-height:94vh;
  margin:0 auto;
  padding:clamp(100px,11vw,172px) clamp(24px,6vw,94px);
  display:grid;
  grid-template-columns:minmax(350px,.95fr) minmax(420px,1.05fr);
  gap:clamp(62px,9vw,145px);
  align-items:center;
}
.chapter-number{
  position:absolute;
  top:46px;
  right:clamp(52px,8vw,126px);
  z-index:2;
  font-size:11px;
  letter-spacing:.18em;
  opacity:.75;
}
.chapter-label{
  margin:0 0 20px;
  font-size:10px;
  letter-spacing:.2em;
  font-weight:600;
}
.chapter-heading h2{
  margin:0;
  font-size:clamp(54px,6vw,92px);
  line-height:.91;
  letter-spacing:-.055em;
  font-weight:300;
}
.heading-line{
  width:82px;height:2px;
  margin-top:38px;
  background:var(--sand);
  transform-origin:left;
}
.chapter-body{max-width:660px}
.chapter-body p{
  margin:0 0 22px;
  font-size:17px;
  line-height:1.62;
}
.chapter-body .chapter-lead{
  margin-bottom:34px;
  font-size:clamp(24px,2.3vw,34px);
  line-height:1.28;
  font-weight:300;
}
.chapter-signature{
  position:absolute;
  z-index:1;
  left:-1.3vw;
  bottom:-5.8vw;
  font-size:clamp(150px,21vw,330px);
  line-height:.72;
  font-weight:300;
  letter-spacing:-.07em;
  opacity:.055;
  pointer-events:none;
  white-space:nowrap;
}

.chapter--blue{
  color:white;
  background:
    radial-gradient(circle at 88% 18%,rgba(255,255,255,.08),transparent 20%),
    linear-gradient(135deg,var(--polytech-blue) 0%,#00699c 55%,#004b73 100%);
}
.chapter--blue .chapter-label{color:#bddbea}
.chapter--blue .chapter-body .chapter-lead{color:white}
.chapter--blue .heading-line{background:var(--sand)}

.metric-grid{
  margin-top:52px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid rgba(255,255,255,.25);
  border-bottom:1px solid rgba(255,255,255,.25);
}
.metric{padding:24px 18px 24px 0}
.metric strong{
  display:block;
  font-size:27px;
  line-height:1;
  font-weight:400;
}
.metric span{
  display:block;
  margin-top:9px;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  opacity:.72;
}

.chapter--light{
  background:
    linear-gradient(120deg,rgba(0,87,136,.04),transparent 44%),
    #f7f8f8;
  color:var(--ink);
}
.chapter--light .chapter-heading h2,
.chapter--light .chapter-lead{color:var(--polytech-blue)}
.chapter--light .chapter-label{color:var(--sand)}
.chapter-signature--outline{
  color:transparent;
  -webkit-text-stroke:1px rgba(0,87,136,.16);
  opacity:1;
}
.statement-card{
  margin-top:45px;
  padding:30px 0;
  border-top:1px solid rgba(0,87,136,.24);
  border-bottom:1px solid rgba(0,87,136,.24);
}
.statement-card span{
  display:block;
  margin-bottom:9px;
  font-size:10px;
  font-weight:600;
  letter-spacing:.18em;
  color:var(--sand);
}
.statement-card strong{
  font-size:24px;
  line-height:1.35;
  font-weight:400;
  color:var(--polytech-blue);
}

.chapter--sand{
  color:#17212a;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.28),transparent 22%),
    linear-gradient(135deg,#d1b197 0%,var(--sand) 70%,#b98e6d 100%);
}
.chapter--sand .chapter-label{color:#684a36}
.chapter--sand .chapter-heading h2{color:#102a3a}
.chapter--sand .heading-line{background:var(--polytech-blue)}
.chapter--sand .chapter-lead{color:#183a50}
.chapter-signature--sand{color:white;opacity:.11}

.stat-line{
  margin-top:50px;
  padding-top:30px;
  display:flex;
  align-items:flex-end;
  gap:28px;
  border-top:1px solid rgba(21,32,42,.22);
}
.stat-value{
  font-size:clamp(88px,11vw,160px);
  line-height:.68;
  letter-spacing:-.08em;
  font-weight:300;
  color:var(--polytech-blue);
}
.stat-value span{font-size:.36em;margin-left:4px}
.stat-copy{
  padding-bottom:2px;
  font-size:13px;
  line-height:1.25;
  letter-spacing:.11em;
}
.stat-copy small{font-size:10px;letter-spacing:.05em;opacity:.72}

.chapter--deep{
  color:white;
  background:
    linear-gradient(120deg,rgba(255,255,255,.035),transparent 45%),
    #022f47;
}
.chapter--deep .chapter-label{color:#9fc9dc}
.chapter--deep .chapter-lead{color:white}
.patent{
  margin-top:48px;
  padding:28px 0;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:end;
  border-top:1px solid rgba(255,255,255,.22);
  border-bottom:1px solid rgba(255,255,255,.22);
}
.patent span,.patent small{
  font-size:9px;
  letter-spacing:.15em;
  opacity:.7;
}
.patent strong{
  font-size:28px;
  line-height:1;
  font-weight:400;
  letter-spacing:.02em;
}

/* CLOSING */
.closing{
  position:relative;
  min-height:76vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:white;
}
.closing-40{
  position:absolute;
  right:-4vw;
  bottom:-10vw;
  font-size:clamp(360px,48vw,720px);
  line-height:.68;
  letter-spacing:-.1em;
  font-weight:300;
  color:transparent;
  -webkit-text-stroke:1px rgba(0,87,136,.12);
}
.closing-inner{
  position:relative;
  z-index:2;
  width:min(var(--page),100%);
  margin:auto;
  padding:110px clamp(24px,6vw,94px);
}
.closing h2{
  max-width:1070px;
  margin:0;
  font-size:clamp(58px,7.6vw,116px);
  line-height:.91;
  letter-spacing:-.058em;
  font-weight:300;
  color:var(--polytech-blue);
}
.return-top{
  width:max-content;
  margin-top:54px;
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  font-size:10px;
  letter-spacing:.14em;
  color:var(--polytech-blue);
}
.return-top i{
  width:42px;height:42px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:50%;
  font-style:normal;
  transition:transform .25s ease,background .25s ease,color .25s ease;
}
.return-top:hover i{transform:translateY(-4px);background:var(--polytech-blue);color:white}

/* FOOTER */
.site-footer{
  min-height:150px;
  padding:45px clamp(24px,4vw,64px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  border-top:1px solid rgba(0,87,136,.14);
  background:#f8f9f9;
}
.footer-logo{width:200px}
.footer-copy{
  display:flex;
  gap:24px;
  font-size:9px;
  letter-spacing:.17em;
  color:var(--polytech-blue);
}
.footer-copy span+span{
  padding-left:24px;
  border-left:1px solid var(--sand);
}

/* SCROLL REVEALS */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:
    opacity .85s cubic-bezier(.22,.61,.36,1),
    transform .85s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
.chapter-heading.is-visible .heading-line{
  animation:lineReveal .9s .35s both cubic-bezier(.22,.61,.36,1);
}
@keyframes lineReveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* RESPONSIVE */
@media(max-width:1020px){
  .chapter-rail{display:none}
  .chapter-strip{grid-template-columns:1fr 1fr}
  .chapter-strip a:nth-child(2){border-right:0}
  .chapter-strip a:nth-child(-n+2){border-bottom:1px solid rgba(0,87,136,.16)}
  .chapter-layout{
    grid-template-columns:1fr;
    gap:56px;
    align-items:start;
  }
  .chapter-body{max-width:780px}
  .gate-shell{grid-template-columns:1fr}
  .gate-panel--brand{display:none}
}
@media(max-width:700px){
  .site-header{
    height:70px;
    padding:0 20px;
  }
  .site-header.is-scrolled{height:62px}
  .logo-link img{width:157px}
  .header-meta span:first-child,.header-divider{display:none}
  .header-meta{font-size:9px}
  .hero-inner{
    padding:120px 22px 46px;
  }
  .hero-topline{width:270px}
  .hero h1{
    font-size:clamp(58px,16vw,82px);
    line-height:.87;
  }
  .hero-title-wrap{margin:auto 0 6vh}
  .hero-bottom{
    align-items:flex-start;
    flex-direction:column;
  }
  .hero-intro{font-size:18px}
  .hero-ghost{
    right:-26vw;
    bottom:-6vh;
    font-size:105vw;
  }
  .chapter-strip{grid-template-columns:1fr}
  .chapter-strip a{
    min-height:88px;
    align-items:center;
    padding:22px;
    border-right:0!important;
    border-bottom:1px solid rgba(0,87,136,.16);
  }
  .chapter-strip strong br{display:none}
  .chapter-layout{
    min-height:auto;
    padding:95px 22px 110px;
    gap:44px;
  }
  .chapter-number{
    top:26px;
    right:22px;
  }
  .chapter-heading h2{
    font-size:clamp(46px,14vw,66px);
    line-height:.94;
  }
  .chapter-body p{font-size:16px}
  .chapter-body .chapter-lead{font-size:25px}
  .metric-grid{grid-template-columns:1fr}
  .metric{border-bottom:1px solid rgba(255,255,255,.22)}
  .metric:last-child{border-bottom:0}
  .stat-line{align-items:flex-start;flex-direction:column}
  .stat-value{font-size:110px}
  .patent{grid-template-columns:1fr}
  .patent strong{font-size:25px}
  .chapter-signature{
    bottom:-2vw;
    font-size:42vw;
  }
  .closing{min-height:68vh}
  .closing-inner{padding:95px 22px}
  .closing h2{font-size:clamp(48px,14vw,70px)}
  .closing-40{font-size:110vw;right:-28vw;bottom:-8vw}
  .site-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .footer-copy{
    flex-direction:column;
    gap:10px;
  }
  .footer-copy span+span{
    padding-left:0;
    border-left:0;
  }
  .gate-panel--content{padding:38px 25px}
  .gate-panel--content h1{font-size:36px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1!important;transform:none!important}
}


/* V3.0 — publication hardening */
@supports (height:100dvh){
  .hero,.hero-inner{min-height:100dvh}
}
@media(max-width:700px){
  .medical-gate{padding:12px}
  .gate-shell{max-height:calc(100dvh - 24px)}
  .gate-panel--content{min-height:auto}
  .button{min-height:48px}
}
