*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.sitree {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.profilo { text-align: center; margin-bottom: 28px; }

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-vuoto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profilo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.social-riga {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.social-link:hover { transform: translateY(-2px); }
.social-link:active { transform: translateY(0); opacity: 0.85; }

.blocchi { display: flex; flex-direction: column; gap: 12px; }

.b-titolo {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.b-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.b-link:hover { transform: translateY(-2px); }
.b-link:active { transform: translateY(0); opacity: 0.85; }

.b-link-icona { display: flex; flex: 0 0 auto; opacity: 0.7; }

.b-link-testo {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.b-evidenza {
  display: block;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.12s ease;
}

.b-evidenza:hover { transform: translateY(-2px); }

.b-evidenza img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.b-evidenza-testo {
  display: block;
  padding: 16px;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.b-video { margin: 0; }

.b-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: #000000;
}

.b-video figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.badge { margin-top: 40px; text-align: center; }

.badge a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.badge-marchio {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .sitree { padding: 28px 14px 24px; }
  .b-link { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .b-link, .b-evidenza, .social-link { transition: none; }
  .b-link:hover, .b-evidenza:hover, .social-link:hover { transform: none; }
}
