:root{
  --navy-900:#052c4d;
  --navy-800:#0a3a63;
  --navy-700:#0d4a80;
  --navy:#004071;
  --red:#b3121b;
  --red-dark:#8c0e15;
  --sky:#eaf1f7;
  --sky-deep:#d8e6f4;
  --ink:#152234;
  --muted:#54687e;
  --white:#ffffff;

  --c-planner:#2f6fad;
  --c-catalogue:#3f7d4a;
  --c-esse3:#14315c;
  --c-dico:#5b3b8c;
  --c-vos:#1c8686;
  --c-booking:#c8720f;

  --radius-lg:26px;
  --radius-md:18px;
  --radius-sm:12px;

  --shadow-soft: 0 18px 40px -18px rgba(5,44,77,0.35);
  --shadow-card: 0 10px 30px -14px rgba(5,44,77,0.28);

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-deep) 45%, var(--sky) 100%);
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

a{ color:inherit; }

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}


.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy);
  color:#fff; padding:10px 16px; border-radius:0 0 10px 0; z-index:100;
}
.skip-link:focus{ left:0; }

/* topbar */
.topbar{
  display:flex;
  align-items:center;
  justify-content:center !important;
  gap:16px;
  padding: 18px clamp(16px, 5vw, 56px) 0;
  max-width:1320px;
  margin:0 auto;
}
.topbar__brand{
  display:flex;
  align-items:center;
  justify-content:center !important;
  gap:12px;
}
.logo{
  max-width:200px;
  height:auto;
}
.topbar__unitext{
  font-family: var(--font-display);
  font-weight:600;
  font-size: 0.78rem;
  line-height:1.15;
  color: var(--navy-900);
  letter-spacing:0.01em;
}
.topbar__unitext strong{
  display:block;
  font-size:0.9rem;
  color: var(--red);
}

/* hero */
.hero{
  max-width:1320px;
  margin: clamp(18px, 4vw, 40px) auto 0;
  padding: 0 clamp(16px, 5vw, 56px);
}

.hero__grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2.1fr) minmax(0,1fr);
  align-items:center;
  gap: clamp(14px, 3vw, 36px);
}

.hero__photo{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 500 / 670;
}
.hero__photo img{
  width:100%; height:100%; object-fit:cover;
  object-position: center 20%;
}
.hero__photo::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(5,44,77,0) 55%, rgba(5,44,77,0.45) 100%);
}
.hero__photo-tag{
  position:absolute;
  left:14px; bottom:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 14px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.78rem;
  letter-spacing:0.03em;
  color:#fff;
  backdrop-filter: blur(2px);
}
.hero__photo--students .hero__photo-tag{ background: rgba(0,64,113,0.85); }
.hero__photo--staff .hero__photo-tag{ background: rgba(179,18,27,0.85); }
.hero__photo-tag svg{ width:15px; height:15px; }

.hero__copy{
  text-align:center;
  padding: 4px 0;
}
.hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-size:0.74rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--navy-700);
  background: rgba(0,64,113,0.08);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:18px;
}
.hero__eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background: var(--red);
}

.hero__title{
  font-family: var(--font-display);
  font-weight:700;
  line-height:1.02;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 14px;
  color: var(--navy-900);
  letter-spacing:-0.01em;
}
.hero__title em{
  font-style:normal;
  color: var(--red);
}

.hero__subtitle{
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 26px;
  line-height:1.55;
}

.hero__pills{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 18px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.85rem;
  color:#fff;
}
.pill svg{ width:16px; height:16px; }
.pill--navy{ background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.pill--red{ background: linear-gradient(135deg, var(--red), var(--red-dark)); }

/* sezione apps */
.apps{
  max-width:1180px;
  margin: clamp(50px, 8vw, 96px) auto 0;
  padding: 0 clamp(16px, 5vw, 56px);
}

.apps__header{
  text-align:center;
  margin-bottom: clamp(30px, 5vw, 54px);
}
.apps__kicker{
  font-family: var(--font-display);
  font-weight:600;
  font-size:0.76rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--red);
  margin:0 0 10px;
}
.apps__title{
  font-family: var(--font-display);
  font-weight:700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--navy-900);
  margin:0 0 12px;
}
.apps__desc{
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height:1.6;
}

/* link desktop */
.constellation{
  position:relative;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-template-areas:
    "a1  .   a2"
    "a3  hub a4"
    "a5  .   a6";
  gap: 28px 22px;
  align-items:center;
}

.card{
  position:relative;
  z-index:2;
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding: 20px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-decoration:none;
  color:inherit;
  border: 1px solid rgba(5,44,77,0.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover, .card:focus-visible{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(5,44,77,0.35);
  outline:none;
}
.card:focus-visible{
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,64,113,0.35), 0 20px 40px -16px rgba(5,44,77,0.35);
}

.card__icon{
  flex:0 0 auto;
  width:48px; height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
}
.card__icon svg{ width:24px; height:24px; }

.card__title{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.02rem;
  margin:2px 0 4px;
  color: var(--navy-900);
}
.card__desc{
  font-size:0.88rem;
  color: var(--muted);
  line-height:1.4;
  margin:0;
}
.card__go{
  position:absolute;
  top:16px; right:16px;
  width:26px; height:26px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--sky-deep);
  color: var(--navy-800);
  opacity:0;
  transform: translate(-4px,4px);
  transition: opacity .2s ease, transform .2s ease;
}
.card__go svg{ width:14px; height:14px; }
.card:hover .card__go, .card:focus-visible .card__go{
  opacity:1;
  transform: translate(0,0);
}

.card--planner  .card__icon{ background: var(--c-planner); }
.card--catalogue .card__icon{ background: var(--c-catalogue); }
.card--esse3 .card__icon{ background: var(--c-esse3); }
.card--dico  .card__icon{ background: var(--c-dico); }
.card--vos   .card__icon{ background: var(--c-vos); }
.card--booking .card__icon{ background: var(--c-booking); }

.card--a1{ grid-area:a1; }
.card--a2{ grid-area:a2; }
.card--a3{ grid-area:a3; }
.card--a4{ grid-area:a4; }
.card--a5{ grid-area:a5; }
.card--a6{ grid-area:a6; }

.hub{
  grid-area:hub;
  position:relative;
  z-index:3;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color:#fff;
  border-radius:50%;
  width: 190px; height:190px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 18px;
  box-shadow: 0 22px 46px -16px rgba(5,44,77,0.55);
}
.hub__num{
  font-family: var(--font-display);
  font-weight:700;
  font-size:2rem;
  line-height:1;
}
.hub__label{
  font-size:0.72rem;
  letter-spacing:0.04em;
  margin-top:6px;
  color: rgba(255,255,255,0.8);
}

.connectors{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  pointer-events:none;
}
.connectors path{
  fill:none;
  stroke: rgba(0,64,113,0.28);
  stroke-width:2;
  stroke-dasharray: 4 7;
}
.connectors circle{
  fill: var(--navy-700);
}

/* link mobile (sono nascosti di default, visibili solo su mobile) */
.apps__mobile-list{ display:none; }

/* features */
.features{
  max-width:1180px;
  margin: clamp(56px, 8vw, 100px) auto 0;
  padding: 0 clamp(16px, 5vw, 56px) clamp(50px, 7vw, 84px);
}
.features__strip{
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 34px) clamp(20px, 4vw, 40px);
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-soft);
}
.feature{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:#fff;
}
.feature__icon{
  flex:0 0 auto;
  width:40px; height:40px;
  border-radius:12px;
  background: rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
}
.feature__icon svg{ width:20px; height:20px; }
.feature__title{
  font-family: var(--font-display);
  font-weight:600;
  font-size:0.92rem;
  margin:0 0 3px;
}
.feature__desc{
  font-size:0.8rem;
  color: rgba(255,255,255,0.75);
  margin:0;
  line-height:1.4;
}

/* footer */
.site-footer{
  text-align:center;
  padding: 0 20px 40px;
  font-size:0.82rem;
  color: var(--muted);
}

/* breakpoints */

@media (max-width: 980px){
  .hero__grid{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "copy copy"
      "students staff";
  }
  .hero__copy{ grid-area:copy; }
  .hero__photo--students{ grid-area:students; aspect-ratio: 4/3; }
  .hero__photo--staff{ grid-area:staff; aspect-ratio: 4/3; }
  .hero__photo img{ object-position: center 30%; }

  .constellation{ display:none; }
  .apps__mobile-list{
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .apps__mobile-list .hub{
    width:100%; height:auto; border-radius: var(--radius-lg);
    flex-direction:row; justify-content:center; gap:14px; padding:22px;
  }
  .apps__mobile-list .card{ width:100%; }
}

@media (max-width: 640px){
  .topbar{ padding-top:14px; }
  .topbar__crest{ width:38px; height:38px; }
  .topbar__unitext{ font-size:0.68rem; }
  .topbar__unitext strong{ font-size:0.78rem; }

  .hero__grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "students"
      "staff";
    gap:18px;
  }
  .hero__photo--students, .hero__photo--staff{
    aspect-ratio: 16/9;
  }
  .hero__title{ font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__subtitle{ max-width: 34ch; }

  .features__strip{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px){
  .features__strip{ grid-template-columns: 1fr; }
  .hero__pills{ flex-direction:column; align-items:center; }
}


@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .card, .card__go{ transition:none; }
}
