:root{
  /* Palette + contrasto migliorato */
  --bg:#030013;
  --panel:#101826;
  --ink:#f1f5f9;
  --muted:#c0c9d6;
  --line:#253146;
  --accent:#8F45FF;
  --glow: rgba(162, 0, 255, 0.25);

  --sb-track:#0b1220;
  --sb-thumb:#2e3a4d;
  --sb-thumb-hover:#3b475b;

  --measure: 68ch;
}

*{ box-sizing:border-box }
html,body{ height:100% }

body{
  margin:0;
  color:var(--ink);
  /*background: radial-gradient(1200px 800px at 20% 0%, #0b1220 0%, #0f172a 55%, #0b1220 100%);*/
  background-color: var(--bg);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(16px, 0.9vw + 12px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  overflow:auto;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
  scrollbar-width: thin;
}
body::-webkit-scrollbar{ width:10px }
body::-webkit-scrollbar-track{ background:var(--sb-track); border-radius:8px }
body::-webkit-scrollbar-thumb{ background:var(--sb-thumb); border-radius:8px; border:2px solid var(--sb-track) }
body::-webkit-scrollbar-thumb:hover{ background:var(--sb-thumb-hover) }

/* Wrapper */
.shell{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  max-width: min(1240px, 94vw);
  width:100%;
  margin: 0 auto;
  padding-inline: 12px;
}

/* Header */
header{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 3;
}
header .lang-switch {
  position: absolute;
  right: 2rem;
  top: 1rem;
}
header .container {
  max-width: min(1240px, 94vw);
  margin: auto;
  background: var(--bg);
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 2rem;
  gap:12px;
  padding-top: 3rem;
  position: relative;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.2px;
}
.logo {
    width: fit-content;
    max-width: calc(100% - 60px);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img.logo-w {
    width: 88px;
}
/*
.logo{
  width:34px; height:34px; border-radius:10px;
  background: conic-gradient(from 200deg,#16a34a, #22c55e, #16a34a);
  box-shadow: 0 0 0 6px rgba(34,197,94,.08), 0 6px 30px var(--glow);
}*/
.brand b{ font-weight:800 }
.brand small{ display:block; color:var(--muted); font-weight:500; margin-top:2px }


/*Main*/
main {
    padding-top: 6rem;
}
/* Hero */
.hero{
  display:grid; place-items:center; text-align:center;
  padding:56px 12px 28px;
}
.title{
  font-size: clamp(28px, 4.2vw, 48px);
  line-height:1.15; margin:10px 0 8px; letter-spacing:.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.subtitle{
  color:var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  max-width: 880px; margin:0 auto 10px;
}
.credit{
  color:var(--muted);
  font-size:12.5px; margin:8px 0 26px; opacity:.95;
}

.cta{
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  padding: 1.5rem 2.5rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(0);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  
}
header .cta {
  padding: 5px 14px !important;
  border-radius: 12px;
  font-size: 15px !important;
}
.cta:hover{ filter:saturate(1.06) brightness(1.03); box-shadow: 0 8px 34px var(--glow); }
.cta:active{ transform: translateY(1px) }
.cta:focus-visible{ outline: 2px solid #bbf7d0; outline-offset: 3px; border-radius: 14px; }

/* Griglia sezioni */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding:30px 0 70px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 880px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Card */
.card{
  background: rgba(16,24,38,.78);
  border: 1px solid var(--line);
  border-radius:16px; padding:22px;
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, transform .08s ease;
  height:100%;
}
.card .cta {
  margin: 1rem 0;
  width: 100%;
}
.card:hover{ border-color:#334155; transform: translateY(-1px) }
.card h3{
  margin:0 0 10px;
  font-size: clamp(18px, 1.1vw + 14px, 22px);
  line-height:1.3;
  letter-spacing:.2px;
}
.card p{
  margin:0;
  color:var(--ink);
  opacity:.92;
  font-size: clamp(15px, 0.6vw + 12px, 17px);
  line-height:1.7;
  max-width: var(--measure);
}

/* CARD “WIDE” (2 colonne) */
.card--wide{
  grid-column: 1 / -1; /* occupa tutta la riga */
}
.card--wide p,
.card--wide li{
  max-width: none; /* il testo usa tutta la larghezza della card */
}

/* Badge */
.badge{
  display:inline-block; margin-top:10px; font-size:11px; color:#052e16; background:var(--accent);
  padding:4px 8px; border-radius:999px; font-weight:700;
}

/* Liste con check */
.list{ list-style:none; padding-left:0; margin:8px 0 0 }
.list li{
  position:relative; padding-left:22px; margin:8px 0;
  color:var(--ink); line-height:1.7; opacity:.92;
  max-width: var(--measure);
}
.list li::before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:800;
}

/* Glow sottile per il titolo */
.glow{ position:relative; display:inline-block; }
.glow::after{
  content:""; position:absolute; inset:-16px -22px -10px; z-index:-1;
  background: radial-gradient(600px 220px at 50% 50%, rgba(34,197,94,.18), transparent 60%);
  filter: blur(20px);
}

/* Footer */
footer{
  border-top:1px solid var(--line);
  color:var(--muted); font-size:12.5px;
  padding:14px 4px; display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:8px;
}

/* Language switch */
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:10px;
  background: rgba(16,24,38,.55);
  backdrop-filter: blur(6px);
}
.lang-btn{
  appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 3px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
    line-height: 1;
    font-size: 12px;
}
.lang-btn:hover{ color: var(--ink); border-color: #334155; }
.lang-btn:active{ transform: translateY(1px); }
.lang-btn[aria-pressed="true"]{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px var(--glow);
}
.lang-sep{
  width:1px;
  height:18px;
  background: var(--line);
  opacity:.9;
}

/* Form minimal */
.form-wrap{
  /*max-width: 520px;*/
  margin: 24px auto 70px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin: 14px 0;
}
.input{
  background: rgba(16,24,38,.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--ink);
  outline: none;
}
.input:focus{
  border-color:#334155;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.helper{
  color: var(--muted);
  font-size: 13px;
}
.link{
  color: #8F45FF;
  text-decoration: none;
}
.link:hover{ text-decoration: underline; }
