/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ===== Root & Base Setup ===== */
html {
  font-size: 100%; /* Default 16px */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* ===== Headings (Bebas Neue) ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* H1 Fluido: Ottimo per le Hero - da ~40px a ~64px */
h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.06em;
}

/* H2 Fluido: Ottimo per i titoli di sezione - da ~32px a ~48px */
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-size: 1.5rem; /* 24px */
}

h5 {
  font-size: 1.25rem; /* 20px */
  color: #19a64d; /* Colore Brand Verde */
}

h6 {
  font-size: 1.1rem; /* ~17.6px */
  opacity: 0.8;
}

/* ===== Typography Utilities (Barlow Condensed) ===== */
p, .text-p {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.125rem; /* 18px per compensare il font condensato */
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.text-small {
  font-size: 0.875rem; /* 14px */
}

.text-lead {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.5;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.35rem; }
  
  p, .text-p {
    font-size: 1.05rem; /* Leggermente più piccolo su mobile per densità */
  }
}

/* Supporto per corsivo Barlow */
.italic {
  font-style: italic;
}

/* Supporto pesi Barlow per enfasi */
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
