/* ==========================================
   GUIDA STILE - PALETTE COLORI
   ========================================== */

:root {
  /* Colori Principali */
  --color-primary: #282828;      /* Primario/Sfondo */
  --color-secondary: #858482;    /* Secondario/Titoli e Sottotitoli/Pulsanti */
  --color-tertiary: #656160;     /* Terziario/Paragrafi */
  
  /* Varianti per accessibilità */
  --color-primary-light: #3a3a3a;
  --color-primary-dark: #1a1a1a;
  --color-secondary-light: #9a9795;
  --color-tertiary-light: #7a7570;
}

/* ==========================================
   RESET E BASE
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-primary);
  color: var(--color-tertiary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* ==========================================
   TIPOGRAFIA
   ========================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  color: var(--color-tertiary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ==========================================
   PULSANTI
   ========================================== */

.btn {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.cta {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.accept {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.accept:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
}

.decline {
  background-color: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.decline:hover {
  background-color: var(--color-primary-light);
}

/* ==========================================
   CARD E CONTENITORI
   ========================================== */

.card {
  background-color: var(--color-primary-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-tertiary);
  border-radius: 4px;
  color: var(--color-tertiary);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-secondary);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-secondary);
}

label {
  color: var(--color-secondary);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  cursor: pointer;
}

/* ==========================================
   LINK
   ========================================== */

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary-light);
  text-decoration: underline;
}

/* ==========================================
   HEADER
   ========================================== */

header {
  background-color: var(--color-primary-dark);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

header img {
  max-width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

header h1 {
  margin-bottom: 1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

nav a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  background-color: var(--color-primary-light);
  text-decoration: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--color-primary-light);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   SECTIONS
   ========================================== */

section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h3 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ==========================================
   FEATURES
   ========================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  background-color: var(--color-primary-light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature h4 {
  margin-bottom: 0.8rem;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background-color: var(--color-primary-dark);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* ==========================================
   DISCLAIMER MODAL
   ========================================== */

.disclaimer {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.disclaimer.hidden {
  display: none;
}

.disclaimer-content {
  background-color: var(--color-primary);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  margin: 1rem;
  border: 2px solid var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.disclaimer-content h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.disclaimer-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-tertiary {
  color: var(--color-tertiary);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-tertiary {
  background-color: var(--color-tertiary);
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .disclaimer-content {
    padding: 1.5rem;
  }
}