/* Autentica-Italia.com - Stili principali */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ===== VARIABILI CSS ===== */
:root {
  --primary-color: #8B4513; /* Terracotta */
  --secondary-color: #6B5B73; /* Olivastro */
  --accent-color: #228B22; /* Verde smeraldo */
  --accent-hover: #1a6b1a;
  --warm-beige: #F5E6D3;
  --warm-cream: #FAF0E6;
  --text-dark: #2C1810;
  --text-light: #5D4E37;
  --border-light: #E5D4C1;
  --shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
  --radius: 12px;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--warm-cream);
  line-height: 1.6;
  font-weight: 400;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p, li {
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ===== LAYOUT CONTENITORE ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  background: rgba(245, 230, 211, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "🏛️";
  font-size: 1.5rem;
}

/* ===== NAVIGAZIONE ===== */
.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== BOTTONI ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}

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

.btn-outline:hover {
  background: var(--accent-color);
  color: white;
}

/* ===== SEZIONI ===== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--warm-beige);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--warm-cream) 0%, var(--warm-beige) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23D4AF8C" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23D4AF8C" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23D4AF8C" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-weight: 300;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== GRIGLIA CARDS ===== */
.cards-grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card p {
  color: var(--text-light);
  max-width: none;
}

/* ===== STATISTICHE ===== */
.stats {
  display: grid;
  gap: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.stat-item {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
}

.stat-label {
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
  margin: 4rem 0;
  border-radius: var(--radius);
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  max-width: none;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: white;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVO ===== */

/* Mobile: 1 colonna */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Tablet: 2 colonne */
@media (min-width: 769px) and (max-width: 1199px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 colonne */
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== UTILITÁ ===== */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: white;
  padding: 1rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-btn:hover {
  background: var(--accent-hover);
}

.cookie-btn.decline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}