/* Import del font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

:root{
  --text: #0b0c0f;
  --muted: #334155;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, system-ui, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout pagina */
.page{
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
}

/* Topbar */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom: 16px;
}
.brand{
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 20px;
}
.back{
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  font-weight: 600;
}

/* Tipografia */
h1{
  margin: 8px 0 8px;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
}
h2{
  margin: 28px 0 8px;
  font-size: clamp(18px, 2.4vw, 24px);
}
p, li{ color: var(--text); }
.muted{ color: var(--muted); }

/* Card / sezioni */
.card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: clamp(16px, 2.4vw, 20px);
  margin: 14px 0;
}
.list{
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

/* Footer centrato come pillola */
.footer {
  position: fixed;
  bottom: 14px;     
  width: auto;          /* si adatta al contenuto */
  left: 50%;            /* centrato */
  transform: translateX(-50%); /* centratura corretta */
  display: flex;
  justify-content: center;
}

/* Stile pillola link */
.links {
  display: flex;
  flex-wrap: nowrap;     /* evita che vadano a capo */
  white-space: nowrap;   /* forza il testo su una sola riga */
  gap: 18px;
  font-size: 14px;
  color: #0b0c0f;
  background: rgba(255,255,255,.45);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.links a{
  color:inherit;
  text-decoration:none;
  opacity:.9;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.links a:hover{
  background: rgba(0,0,0,0.08);
  opacity:1;
}
.links .nolink{
    padding: 4px 10px;
    border-radius:999px;
    opacity:.8;
    cursor: default;
    user-select: none;
}

/* Adattamento mobile */
@media (max-width: 600px) {
  .links {
    font-size: 11px;     /* testo ridotto del 25% */
    padding: 6px 10px;   /* pillola più compatta */
    gap: 12px;           /* meno spazio tra i link */
    max-width: 90vw;     /* margine minimo dai bordi */
  }
}

/* Wrapper responsivo per il form Tally */
.form-wrap {
  position: relative;
  width: 100%;
  min-height: 65vh;   /* fallback durante il caricamento */
}
.form-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;          /* spazio tra icona e testo */
}

.brand-row img {
  width: 35px;       /* piccola icona da topbar */
  height: auto;
}

.brand {
  font-family: 'Jua', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.01em;
}