:root{
  --bg:#070a12;
  --panel:#0d1224;
  --panel2:#0a0f1f;
  --text:#eef2ff;
  --muted:#a7b0cf;
  --line:rgba(255,255,255,.10);
  --cyan:#22d3ee;
  --mag:#fb7185;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(700px 400px at 85% 20%, rgba(251,113,133,.14), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit}
img{max-width:100%; height:auto; display:block}

/* =========================
   NAV
========================= */
.nav{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.55);
  border-bottom:1px solid var(--line);
}
.nav__inner{
  max-width:1100px; margin:0 auto;
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}
.brand{
  display:flex; align-items:center;
  text-decoration:none;
  margin-right:auto;
}
.brand__logo{
  height: 48px;           /* <-- QUI REGOLI LA GRANDEZZA LOGO */
  width: auto;
  max-height: 56px;
  object-fit: contain;
}

/* Bottoni nav */
.nav__links{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:14px;
  background: linear-gradient(90deg, rgba(34,211,238,.22), rgba(251,113,133,.18));
  border:1px solid rgba(255,255,255,.14);
  color:var(--text); text-decoration:none; font-weight:800;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{filter:brightness(1.06); transform: translateY(-1px)}
.btn--ghost{background: rgba(13,18,36,.25)}
.btn--small{padding:9px 12px;border-radius:12px}

/* =========================
   HERO
========================= */
.hero{
  position:relative;
  min-height:72vh;
  display:grid;
  place-items:center;
  border-bottom:1px solid var(--line);
}

.hero__bg{
  position:absolute;
  inset:0;
  background: url("assets/sfondo.jpg") center/cover no-repeat;
  filter: blur(1.4px) saturate(1.05) contrast(1.08);
  transform: scale(1.06); /* evita bordi “sporchi” dovuti al blur */
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 500px at 25% 35%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(900px 500px at 70% 30%, rgba(251,113,133,.14), transparent 60%),
    linear-gradient(180deg, rgba(7,10,18,.62), rgba(7,10,18,.92));
}

.hero__content{
  position:relative;
  max-width:1100px;
  width:100%;
  padding:46px 16px 30px;
}

.kicker{
  margin:0 0 10px 0;
  color:var(--muted);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:.78rem;
}

h1{
  margin:0;
  font-size: clamp(2.0rem, 4vw, 3.2rem);
  line-height:1.05;
}

.lead{
  margin:14px 0 0 0;
  max-width:72ch;
  color:rgba(238,242,255,.86);
  font-size:1.05rem;
}

.hero__cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.hero__chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.chip{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background: rgba(13,18,36,.55);
  color:var(--muted);
  font-size:.9rem;
}

/* =========================
   SECTIONS
========================= */
.section{
  max-width:1100px;
  margin:0 auto;
  padding:44px 16px;
}
.section--alt{
  background: rgba(13,18,36,.45);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head{
  text-align:center;
  max-width: 900px;
  margin: 0 auto;
}
.section__head h2{margin:0;font-size:1.55rem}
.section__head p{margin:8px 0 0 0;color:var(--muted)}

/* Cards */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-top:18px;
  justify-items:center;
}
@media (max-width:900px){ .grid{grid-template-columns:1fr} }

.card{
  width:100%;
  max-width: 360px;
  padding:16px;
  border-radius:18px;
  background: rgba(13,18,36,.70);
  border:1px solid rgba(255,255,255,.10);
}
.card h3{margin:0 0 10px 0; text-align:center}
.card ul{margin:0;padding-left:18px;color:rgba(238,242,255,.86); text-align:left}
.card li{margin:8px 0}

.glow{position:relative}
.glow:before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:18px;
  background: linear-gradient(90deg, rgba(34,211,238,.35), rgba(251,113,133,.28));
  filter: blur(12px);
  opacity:.30;
  z-index:-1;
}

/* Pills */
.pillrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:16px;
}
.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,10,18,.35);
  color:rgba(238,242,255,.88);
  text-align:center;
  text-decoration:none;
}
.pill--link:hover{
  filter:brightness(1.06);
  border-color: rgba(34,211,238,.45);
}

/* Partner */
.logos{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:10px;
  margin-top:18px;
  justify-items:center;
}
@media (max-width:900px){ .logos{grid-template-columns:repeat(2,1fr)} }

.logo{
  width:100%;
  max-width: 200px;
  padding:14px 12px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.16);
  color:rgba(238,242,255,.85);
  text-align:center;
  background: rgba(13,18,36,.35);
  font-weight:800;
}

/* =========================
   FORM
========================= */
.form{
  margin-top:16px;
  display:grid;
  gap:12px;
  max-width: 780px;
  margin-left:auto;
  margin-right:auto;
}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:900px){ .row{grid-template-columns:1fr} }

label{display:grid;gap:6px;font-weight:700;color:rgba(238,242,255,.92)}
input,select,textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(7,10,18,.35);
  color:var(--text);
  padding:12px 12px;
  outline:none;
}
textarea{resize:vertical}
.consent{color:var(--muted);font-weight:600}
.honeypot{display:none !important}
.result{color:var(--muted)}
.result--ok{color: rgba(34,211,238,.95)}
.result--err{color: rgba(251,113,133,.95)}

/* =========================
   FOOTER
========================= */
.footer{
  border-top:1px solid var(--line);
  background: rgba(7,10,18,.65);
}
.footer__inner{
  max-width:1100px; margin:0 auto; padding:18px 16px;
  display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.footer__title{font-weight:900;margin-bottom:6px}
.footer__muted{color:var(--muted)}
.footer__link{
  text-decoration:none;        /* niente sottolineatura */
}
.footer__link:hover{
  text-decoration:underline;   /* solo al passaggio */
}
.brand__logo{
  height:90px;     /* prova 64 / 72 / 80 */
  width: auto;
  max-height: 90px; /* uguale a height */
  object-fit: contain;
}
.pill--link{
  display:inline-flex;
  text-decoration:none;
  cursor:pointer;
}

.pill--link:hover{
  border-color: rgba(255,255,255,.28);
  filter: brightness(1.06);
}
