/* =========================
   COLORI (presi dal logo)
   ========================= */
:root {
  --td-bg: #0b0f14;
  --td-surface: #141a22;
  --td-surface-2: #1c2430;
  --td-border: #273142;
  --td-orange: #ff6a13;
  --td-orange-dark: #e25500;
  --td-cream: #fbf3df;
  --td-text: #e9edf2;
  --td-muted: #a3adbb;
  --td-radius: 18px;
  --td-nav-h: 68px;
}

/* =========================
   GENERALE
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  background: var(--td-bg);
  color: var(--td-text);
  overflow-x: hidden;
}

h1, h2, h3, .display-font {
  font-family: 'Bebas Neue', 'Raleway', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--td-cream);
}

a {
  color: var(--td-orange);
}

a:hover {
  color: var(--td-cream);
}

::selection {
  background: var(--td-orange);
  color: var(--td-bg);
}

section {
  scroll-margin-top: calc(var(--td-nav-h) + 12px);
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--td-surface);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-title {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--td-orange);
  margin-bottom: 0.5rem;
}

.text-muted-td {
  color: var(--td-muted);
}

.hl {
  color: var(--td-orange);
  font-weight: 700;
}

/* =========================
   BOTTONI
   ========================= */
.btn-td {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--td-orange);
  background: var(--td-orange);
  color: var(--td-bg);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-td:hover,
.btn-td:focus-visible {
  background: var(--td-orange-dark);
  border-color: var(--td-orange-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-td-outline {
  background: transparent;
  color: var(--td-cream);
  border-color: var(--td-cream);
}

.btn-td-outline:hover,
.btn-td-outline:focus-visible {
  background: var(--td-cream);
  border-color: var(--td-cream);
  color: var(--td-bg);
}

.btn-td-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid var(--td-orange);
  outline-offset: 3px;
}

/* =========================
   NAVBAR
   ========================= */
.td-navbar {
  min-height: var(--td-nav-h);
  background: rgba(11, 15, 20, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--td-border);
}

.td-navbar .navbar-brand img {
  height: 38px;
  width: auto;
  display: block;
}

.td-navbar .nav-link {
  color: var(--td-text);
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
}

.td-navbar .nav-link:hover,
.td-navbar .nav-link.active {
  color: var(--td-orange);
}

@media (max-width: 991.98px) {
  .td-navbar .navbar-collapse {
    padding: 0.5rem 0 1rem;
  }

  .td-navbar .btn-td {
    margin-top: 0.5rem;
  }
}

/* =========================
   FOOTER
   ========================= */
.td-footer {
  background: #07090d;
  border-top: 1px solid var(--td-border);
  padding: 56px 0 28px;
  color: var(--td-muted);
}

.td-footer img {
  height: 44px;
  width: auto;
}

.td-footer h2 {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.td-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.td-footer li {
  margin-bottom: 0.45rem;
}

.td-footer a {
  color: var(--td-text);
  text-decoration: none;
}

.td-footer a:hover {
  color: var(--td-orange);
}

.td-footer .copyright {
  border-top: 1px solid var(--td-border);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--td-surface-2);
  color: var(--td-cream);
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--td-orange);
  color: var(--td-bg);
}

/* =========================
   COMPARSA ALLO SCROLL
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Senza JS il contenuto resta visibile */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 599px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }
}

/* Rispetta chi ha disattivato le animazioni nel sistema operativo */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   BANNER COOKIE
   ========================= */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 22px;
  border-radius: var(--td-radius);
  background: var(--td-surface-2);
  border: 1px solid var(--td-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.consent-banner p {
  font-size: 0.9rem;
  color: var(--td-muted);
  margin-bottom: 1rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.consent-actions .btn-td {
  flex: 1 1 140px;
  justify-content: center;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--td-text);
  text-align: left;
}

.link-button:hover {
  color: var(--td-orange);
}

/* =========================
   PAGINE DI TESTO
   ========================= */
.text-page {
  max-width: 780px;
  margin: 0 auto;
}

.text-page h2 {
  font-size: 2rem;
  margin: 2rem 0 0.6rem;
}

.text-page p,
.text-page li {
  color: var(--td-muted);
}

/* Riga legale nel footer */
.td-footer .legal strong {
  color: var(--td-cream);
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .td-footer .legal-sep {
    display: none;
  }

  .td-footer .legal .text-nowrap {
    display: block;
    margin-top: 0.2rem;
  }
}
