/* VPNBox visual refresh: keeps the existing pages and workflows intact. */
:root {
  --bg: #0b1020;
  --bg-soft: #10182a;
  --card: #111a2c;
  --line: rgba(151, 174, 220, .14);
  --line-forte: rgba(151, 174, 220, .24);
  --superficie: rgba(255, 255, 255, .025);
  --superficie-alta: rgba(255, 255, 255, .055);
  --text: #eff4ff;
  --muted: #a1aec4;
  --debole: #71809a;
  --accent: #718cff;
  --accent-forte: #5e79eb;
  --accent-2: #48d9aa;
  --accent-2-tenue: rgba(72, 217, 170, .12);
  --campo: #0a1221;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(1, 6, 18, .36);
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 580px at 76% -9%, rgba(48, 66, 125, .25), transparent 68%),
    radial-gradient(760px 480px at 0% 10%, rgba(18, 77, 78, .12), transparent 64%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.62;
}

header.site {
  background: rgba(11, 16, 32, .91);
  border-bottom-color: rgba(151, 174, 220, .13);
  backdrop-filter: blur(16px);
}
header.site .wrap { height: 70px; }
.brand { letter-spacing: -.035em; font-size: 18px; }
header.site nav { gap: 9px; }
header.site nav .voci a,
header.site nav .nav-gruppo-testa { border-radius: 10px; }
header.site nav .voci a:hover,
header.site nav .nav-gruppo-testa:hover { background: rgba(255,255,255,.055); }

.hero { padding: 88px 0 66px; }
.hero-layout { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: clamp(30px, 6vw, 76px); }
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(39px, 6vw, 66px);
  line-height: 1.01;
  letter-spacing: -.06em;
  max-width: 14ch;
}
.hero h1 em { color: var(--accent-2); font-style: normal; }
.hero p.lead { color: #aab7cc; font-size: 17px; line-height: 1.75; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; color: #8e9cb3; font-size: 11px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: var(--accent-2); font-size: 14px; }
.pill {
  border: 1px solid rgba(72, 217, 170, .2);
  background: rgba(72, 217, 170, .07);
  color: #9cebd0;
  border-radius: 99px;
  padding: 7px 12px;
}
.ultima { border-color: var(--line); border-radius: 11px; }
.hero-visual { min-height: 390px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-glow { position: absolute; z-index: -1; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(ellipse, rgba(79, 109, 211, .19), transparent 67%); filter: blur(6px); }
.app-preview { width: min(100%, 440px); padding: 21px; border: 1px solid rgba(151,174,220,.23); border-radius: 21px; background: linear-gradient(145deg, rgba(20,31,52,.98), rgba(13,21,37,.98)); box-shadow: 0 28px 75px rgba(1,6,18,.48); transform: rotate(1deg); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.preview-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 730; letter-spacing: -.03em; }
.preview-ready { display: inline-flex; align-items: center; gap: 7px; color: #91a1ba; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.preview-ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px rgba(72,217,170,.7); }
.preview-connection { display: flex; align-items: center; gap: 15px; padding: 23px 0 19px; }
.preview-power { flex: none; width: 59px; height: 59px; display: grid; place-items: center; border: 1px solid rgba(72,217,170,.24); border-radius: 18px; background: rgba(72,217,170,.1); color: var(--accent-2); }
.preview-power svg { width: 26px; height: 26px; }
.preview-connection strong, .preview-profile b { display: block; font-size: 14px; }
.preview-connection small, .preview-profile small { display: block; margin-top: 4px; color: #8e9cb3; font-size: 10px; }
.preview-profile { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); padding: 12px; }
.preview-shield { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: rgba(72,217,170,.1); color: var(--accent-2); font-size: 23px; }
.preview-profile > span:nth-child(2) { min-width: 0; }
.preview-profile small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-arrow { margin-left: auto; color: #71809a; font-size: 24px; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 11px; }
.preview-stats > div { min-height: 69px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,14,27,.42); }
.preview-stats small { display: block; color: #7f91ad; font-size: 8px; letter-spacing: .1em; }
.preview-stats b { display: block; margin-top: 7px; font-size: 10px; font-weight: 580; }
.preview-note { position: absolute; right: -2px; bottom: 1px; display: grid; gap: 4px; width: min(235px, 61%); padding: 14px 16px; border: 1px solid rgba(113,140,255,.25); border-radius: 14px; background: #172342; box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.preview-note b { font-size: 10px; }
.preview-note span { color: #9aa9c2; font-size: 9px; line-height: 1.5; }
.preview-caption { position: absolute; top: 17px; right: 15px; color: #74839c; font-size: 8px; letter-spacing: .14em; }

.btn {
  border: 1px solid var(--line-forte);
  background: #121c30;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 650;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #7085ba; }
.btn.primary {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #071b19;
  box-shadow: 0 8px 28px rgba(72, 217, 170, .14);
}
.btn.ghost { background: transparent; }

section { padding: 54px 0; }
section > h1, section > h2 { letter-spacing: -.04em; }
section > h2 { font-size: clamp(25px, 3vw, 34px); }
.card, .faq, .due-riquadri > .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 31, 52, .92), rgba(16, 24, 42, .96));
  box-shadow: 0 12px 34px rgba(3, 8, 22, .13);
}
.card { padding: 21px; }
.card h3 { letter-spacing: -.02em; }
.card p { line-height: 1.7; }
input, textarea, select {
  border-radius: 10px !important;
  border-color: var(--line-forte) !important;
  background: var(--campo) !important;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(72, 217, 170, .34);
  outline-offset: 1px;
}
table { border-color: var(--line); }
th { color: #8797b2; }
td, th { border-bottom-color: var(--line); }
footer.site { border-top-color: var(--line); }

@media (max-width: 700px) {
  header.site .wrap { height: 62px; }
  .hero { padding: 58px 0 38px; }
  .hero-layout { grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero p.lead { font-size: 15px; }
  .hero-visual { min-height: 315px; }
  .app-preview { padding: 16px; transform: none; }
  .preview-note { right: 0; bottom: -2px; }
  .hero-trust { gap: 8px 13px; }
  section { padding: 38px 0; }
  .card { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Shared page system: not just the landing page.  Every existing public page
   keeps its copy and behavior, but now shares one readable editorial layout. */
body > .wrap { width: min(1160px, calc(100% - 44px)); margin-inline: auto; padding-inline: 0; }
body > .wrap > section:first-child { padding-top: clamp(42px, 7vw, 82px); }
body:not(:has(.hero)) > .wrap > section:first-child > h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.055em; }
body:not(:has(.hero)) > .wrap > section:first-child > h1 + .sub,
body:not(:has(.hero)) > .wrap > section:first-child > .sub {
  max-width: 72ch; color: var(--muted); font-size: 16px; line-height: 1.75;
}
body > .wrap > section { border-bottom: 1px solid var(--line); }
body > .wrap > section:last-child { border-bottom: 0; }
body > .wrap > section > h2 { margin-top: 0; }
.grid { gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.due-riquadri { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.due-riquadri > * { min-width: 0; }
body.area #entra { max-width: 1000px; margin-inline: auto; }
body.area #entra > h1 { font-size: clamp(36px, 5vw, 52px); }
body.area #dentro { max-width: 1000px; margin-inline: auto; }
body.area #dentro section { padding: 28px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(20,31,52,.92), rgba(16,24,42,.96)); }
body.area #dentro section h2 { margin: 0 0 10px; }
body.area #dentro .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
body.area #dentro table { min-width: 650px; margin: 0; }
body.area #dentro form.card { max-width: 760px; }
body.area .field { margin: 14px 0; }
body.area .field label { display: block; margin-bottom: 7px; color: #c9d4e8; font-size: 13px; font-weight: 650; }
body.area .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scarica { min-width: 0; }
.scarica h3 { font-size: 18px; }
.scarica.evidenziata { border-color: rgba(72,217,170,.42); box-shadow: inset 0 0 0 1px rgba(72,217,170,.12), 0 18px 44px rgba(1,6,18,.22); }
pre, code.inline { border: 1px solid var(--line); border-radius: 8px; background: rgba(4,9,20,.48); }
pre { overflow-x: auto; padding: 16px; }
.table-scroll { overflow-x: auto; }
body.pagina-404 .quattrozeroquattro { width: min(760px, calc(100% - 48px)); margin: 12vh auto; padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(20,31,52,.96), rgba(13,21,37,.98)); box-shadow: var(--shadow); }

/* The privileged console is its own product surface, not a continuation of
   the customer portal.  It retains the same VPNBox palette and all routes. */
body.admin { background: radial-gradient(900px 500px at 80% -15%, rgba(48,66,125,.2), transparent 65%), var(--bg); }
body.admin .admin-top { background: rgba(11,16,32,.96); border-bottom: 1px solid var(--line); }
body.admin .sidebar { background: rgba(13,20,35,.96); }
body.admin .contenuto { max-width: 1800px; padding: clamp(20px, 3vw, 42px) clamp(18px, 3vw, 44px) 72px; }
body.admin .testata { align-items: center; margin-bottom: 18px; }
body.admin .testata h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.04em; }
body.admin .scheda { border-radius: 16px; background: linear-gradient(145deg, rgba(20,31,52,.94), rgba(16,24,42,.98)); box-shadow: 0 14px 36px rgba(1,6,18,.18); transition: transform .18s ease, border-color .18s ease; }
body.admin .scheda:hover { transform: translateY(-2px); border-color: rgba(72,217,170,.38); }
body.admin .pagina > .card, body.admin .tabella-contenitore, body.admin .blocco { border-radius: 15px; }
body.admin .contenuto table { min-width: 680px; }
body.admin .contenuto .table-scroll, body.admin .contenuto .tabella-scroll { overflow-x: auto; }
body.admin .contenuto button, body.admin .contenuto .btn { min-height: 40px; }
body.admin .cerca-globale input { width: min(34vw, 430px); }

@media (max-width: 850px) {
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin .guscio { grid-template-columns: minmax(0, 1fr); }
  body.admin .sidebar { position: fixed; z-index: 30; top: 62px; bottom: 0; left: 0; width: min(320px, 86vw); height: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.admin.menu-aperto .sidebar { transform: translateX(0); }
  body.admin .apri-menu { display: inline-grid; place-items: center; }
  body.admin .contenuto { padding: 22px 18px 56px; }
  body.admin .admin-top .wrap { flex-wrap: wrap; }
  body.admin .cerca-globale { order: 3; flex-basis: 100%; }
  body.admin .cerca-globale input { width: 100%; }
}
@media (max-width: 620px) {
  body > .wrap { width: min(100% - 32px, 1120px); }
  body > .wrap > section:first-child { padding-top: 38px; }
  .grid.two, .grid.three, .due-riquadri { grid-template-columns: 1fr; }
  .piede-gruppi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  body.area #dentro section { padding: 18px; }
  body.area #dentro section > div[style*="display:flex"] { align-items: flex-start !important; }
  body.admin .brand { font-size: 15px; }
}
