@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: rgba(27, 30, 34, .94);
  --line: #2b2f34;
  --text: #f7f8f9;
  --muted: #adb3bb;
  --accent: #5bb5e2;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.6 Manrope, 'Avenir Next', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { color: #111315; background: var(--accent); }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 5; padding: 12px 20px; border-radius: 8px; background: white; color: #111315; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.law-pattern { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.law-pattern use { fill: none; vector-effect: non-scaling-stroke; }
.law-pattern-base { opacity: .05; }
.law-pattern-wave {
  opacity: .25;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, #000 50%, transparent 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 20%, #000 50%, transparent 80%, transparent 100%);
  -webkit-mask-position: 200% 0;
  mask-position: 200% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 50% 100%;
  mask-size: 50% 100%;
  animation: polo-pattern-wave 5.8s linear infinite;
}
.page { position: relative; width: min(1080px, calc(100% - 64px)); min-height: 100svh; margin: 0 auto; padding: clamp(48px, 7.5vh, 88px) 0 30px; display: flex; flex-direction: column; justify-content: center; }
.page-header { text-align: center; margin-bottom: 42px; }
.eyebrow { margin: 0 0 14px; color: #b6bdc4; font-size: 11px; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow span { display: inline-block; opacity: 0; transform: translateY(7px); animation: dashboard-letter-in .38s cubic-bezier(.2, .75, .3, 1) forwards; }
.eyebrow span:nth-child(2) { animation-delay: .06s; }
.eyebrow span:nth-child(3) { animation-delay: .12s; }
.eyebrow span:nth-child(4) { animation-delay: .18s; }
.eyebrow span:nth-child(5) { animation-delay: .24s; }
.eyebrow span:nth-child(6) { animation-delay: .30s; }
.eyebrow span:nth-child(7) { animation-delay: .36s; }
.eyebrow span:nth-child(8) { animation-delay: .42s; }
.eyebrow span:nth-child(9) { animation-delay: .48s; }
.eyebrow span:nth-child(10) { animation-delay: .54s; }
.eyebrow span:nth-child(11) { animation-delay: .60s; }
.eyebrow span:nth-child(12) { animation-delay: .66s; }
.eyebrow span:nth-child(13) { animation-delay: .72s; }
.eyebrow span:nth-child(14) { animation-delay: .78s; }
.eyebrow span:nth-child(15) { animation-delay: .84s; }
.eyebrow span:nth-child(16) { animation-delay: .90s; }
.eyebrow span:nth-child(17) { animation-delay: .96s; }
.eyebrow span:nth-child(18) { animation-delay: 1.02s; }
.eyebrow span:nth-child(19) { animation-delay: 1.08s; }
.eyebrow span:nth-child(20) { animation-delay: 1.14s; }
.heading-lockup { display: flex; justify-content: center; align-items: center; gap: 16px; }
.heading-lockup img { width: 60px; height: 60px; flex-shrink: 0; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .28)); }
h1 { margin: 0; color: var(--accent); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.045em; font-weight: 800; }
.university { margin: 14px 0 0; color: #a2a9b1; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sos-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 36px; min-height: 312px; padding: 40px 44px; background: #101a16; border-radius: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: polo-feature-in .55s cubic-bezier(.2, .75, .3, 1) both; }
.banner-art { position: absolute; z-index: -1; inset: 0; }
.banner-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.band { transform-box: fill-box; animation: polo-wave-flow 3.6s cubic-bezier(.45, 0, .55, 1) infinite both; }
.band-0 { transform-origin: 104px 240px; animation-delay: 0s; }
.band-1 { transform-origin: 208px 144px; animation-delay: .55s; }
.band-2 { transform-origin: 520px 150px; animation-delay: 1.1s; }
.band-3 { transform-origin: 832px 156px; animation-delay: 1.65s; }
.band-4 { transform-origin: 936px 60px; animation-delay: 2.2s; }
.sos-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #e3f1f7; }
.sos-eyebrow .icon { width: 19px; height: 19px; }
.sos-copy h2 { margin: 0 0 13px; font-size: clamp(32px, 3.5vw, 43px); letter-spacing: -.045em; line-height: 1.13; font-weight: 800; animation: polo-title-glow 3.6s ease-in-out infinite; }
.sos-description { margin: 0 0 25px; max-width: 540px; font-size: 14px; line-height: 1.8; color: #eff7fb; }
.sos-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; background: #fff; color: #14232d; border-radius: 10px; font-weight: 800; font-size: 13px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.sos-button .icon { width: 20px; height: 20px; }
.sos-button .button-arrow { width: 17px; height: 17px; margin-left: 4px; }
.sos-button:focus-visible, .sos-qr:focus-visible { outline-color: #fff; }
.sos-qr { display: flex; flex-direction: column; align-items: center; justify-self: end; width: 196px; padding: 8px 8px 15px; background: rgba(255, 255, 255, .96); color: #1b2933; border-radius: 15px; text-decoration: none; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.sos-qr img { display: block; width: 172px; height: 172px; }
.sos-qr > span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.qr-detail { display: block; margin-top: 2px; color: #53616a; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.services { margin-top: 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 2px 16px; }
.section-heading h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.section-heading > span { font-size: 11px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.service-card { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 22px 70px rgba(0, 0, 0, .18); animation: polo-card-in .5s ease both; }
.service-card:nth-child(2) { animation-delay: .06s; }
.service-card:nth-child(3) { animation-delay: .12s; }
.service-card:nth-child(4) { animation-delay: .18s; }
.service-icon { width: 30px; height: 30px; margin-bottom: 16px; color: var(--accent); }
.service-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.service-card > p { margin: 0 0 22px; max-width: 240px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.service-action { width: 100%; display: flex; justify-content: center; margin-top: auto; }
.service-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; width: 100%; padding: 10px; border-radius: 9px; background: var(--accent); color: #0e2733; font-size: 11px; font-weight: 800; text-decoration: none; transition: transform .16s ease, filter .16s ease; }
.service-link .icon { width: 16px; height: 16px; }
.service-pending { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #b3bbc4; font-size: 11px; font-weight: 600; }
.service-pending > span { width: 5px; height: 5px; border-radius: 50%; background: #838e99; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding: 20px 2px 0; border-top: 1px solid #2c3238; color: #a3abb4; font-size: 10px; }
.footer-divider { padding: 0 6px; color: #758795; }

@media (hover: hover) {
  .sos-button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
  .sos-qr:hover { transform: translateY(-3px) rotate(1deg); box-shadow: 0 16px 34px rgba(0, 0, 0, .25); }
  .service-link:hover { transform: translateY(-2px); filter: brightness(1.04); }
}

/* Animazioni originali di poli.ausapienza.it/celeste (polo.css, versione 11). */
@keyframes polo-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes polo-feature-in {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes polo-wave-flow {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1) brightness(1) drop-shadow(0 0 0 rgba(255, 205, 110, 0));
  }
  50% {
    transform: scale(1.06);
    filter: saturate(1.35) brightness(1.2) drop-shadow(0 0 22px rgba(255, 205, 110, .5));
  }
}
@keyframes polo-title-glow {
  0%, 100% { text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
  50% { text-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 26px rgba(255, 205, 110, .55); }
}
@keyframes dashboard-letter-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes polo-pattern-wave {
  from { -webkit-mask-position: 200% 0; mask-position: 200% 0; }
  to { -webkit-mask-position: -100% 0; mask-position: -100% 0; }
}

@media (max-width: 900px) {
  .page { width: min(700px, calc(100% - 40px)); }
  .sos-banner { padding: 32px; gap: 24px; }
  .sos-qr { width: 168px; padding-bottom: 12px; }
  .sos-qr img { width: 148px; height: 148px; }
  .desktop-break { display: none; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-link { max-width: 210px; }
}
@media (max-width: 580px) {
  .page { width: min(460px, calc(100% - 32px)); padding: 36px 0 24px; justify-content: flex-start; }
  .page-header { margin-bottom: 28px; }
  .eyebrow { font-size: 9px; margin-bottom: 14px; letter-spacing: .22em; }
  .heading-lockup { gap: 10px; }
  .heading-lockup img { width: 42px; height: 42px; }
  h1 { font-size: clamp(26px, 7vw, 36px); }
  .university { font-size: 8px; margin-top: 12px; letter-spacing: .16em; }
  .sos-banner { grid-template-columns: 1fr; min-height: 0; padding: 26px 24px; gap: 26px; border-radius: 16px; }
  .sos-copy h2 { font-size: clamp(27px, 7.6vw, 37px); }
  .sos-eyebrow { font-size: 9px; margin-bottom: 14px; }
  .sos-description { font-size: 12px; margin-bottom: 22px; line-height: 1.8; }
  .sos-button { font-size: 12px; padding: 12px 14px; width: 100%; gap: 8px; }
  .sos-qr { flex-direction: row; justify-self: start; gap: 8px; width: auto; padding: 3px 16px 3px 3px; border-radius: 11px; text-align: left; }
  .sos-qr img { width: 112px; height: 112px; }
  .sos-qr > span { font-size: 8px; }
  .qr-detail { font-size: 9px; }
  .services { margin-top: 26px; }
  .section-heading { margin-bottom: 13px; }
  .section-heading h2 { font-size: 13px; }
  .section-heading > span { display: none; }
  .service-grid { gap: 12px; }
  .service-card { padding: 22px 13px 16px; border-radius: 13px; }
  .service-icon { width: 26px; height: 26px; margin-bottom: 12px; }
  .service-card h3 { font-size: 16px; }
  .service-card > p { font-size: 11px; line-height: 1.7; margin-bottom: 15px; }
  .service-link { font-size: 10px; gap: 4px; min-height: 44px; padding: 10px 6px; }
  .service-pending { min-height: 44px; font-size: 10px; }
  .page-footer { margin-top: 24px; padding-top: 18px; flex-direction: column; align-items: center; gap: 5px; font-size: 9px; }
}
@media (max-width: 350px) {
  .sos-banner { padding: 23px 18px; }
  .sos-button { gap: 6px; font-size: 11px; }
  .sos-button .button-arrow { display: none; }
  .service-link { font-size: 9px; }
  .service-link .icon { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .law-pattern-wave { display: none; }
  .eyebrow span { opacity: 1; transform: none; }
}
