/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

/* HEADER e NAV base */
.site-header {
  background: #111827;
  color: #fff;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo img {
  height: 45px;
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-menu .btn-menu {
  background: #FCD34D;
  color: #111827;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

/* MAIN */
main {
  flex: 1;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #4b0082 60%, #ff8c00 100%);
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-cta {
  background: #FCD34D;
  color: #111827;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 12px rgba(252, 211, 77, 0.4);
}

.btn-cta:hover {
  background-color: #b38f00;
  color: #fff;
}

/* CONTENT FLEX */
.content-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* centra le righe */
  padding: 20px;
}

.content-item {
  flex: 1 1 100%; /* smartphone: 1 per riga */
  max-width: 500px;
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tablet: 2 per riga */
@media (min-width: 768px) {
  .content-item {
    flex: 1 1 calc(50% - 10px); /* due blocchi per riga con gap */
    max-width: 45%; /* limita larghezza massima */
  }
}

/* Desktop: 2 per riga, centrati e occupano quasi tutta la riga */
@media (min-width: 1024px) {
  .content-flex {
    justify-content: center; /* centra i blocchi */
  }

  .content-item {
    flex: 1 1 calc(50% - 20px); /* due blocchi per riga */
    max-width: 48%; /* occupano quasi tutta la riga */
  }
}

/* FOOTER */
footer, .site-footer {
  background: #111827;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Testo principale del footer */
.footer-text {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Link aggiuntivi: Termini e Cookie */
.footer-links {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Logo del footer */
.footer-logo img {
  height: 60px; /* dimensione del logo */
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Link email principale */
.site-footer a {
  color: #ffcc00;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MENU MOBILE */
@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: 75px;
    right: 0;
    background: #111827;
    width: 100%;
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* BOTTONE CTA SPAZIO */
.content-item p {
  margin-bottom: 30px;
}

.btn-cta {
  margin-top: 20px;
}

/* GRAFICO RESPONSIVO */
.content-item canvas {
  width: 100% !important;
  height: auto !important;
}

/* CONTATORE */
#counter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

#counter {
  font-size: 8rem; /* grandezza contatore */
  font-weight: 700;
  color: #111827;
  text-align: center;
  line-height: 1;
}

.counter-label {
  font-size: 1.2rem;
  color: #111827;
  margin-top: 0;
  line-height: 1;
  text-align: center;
}

/* Blocco 4: immagine circolare */
.content-item img.circular {
  width: 100%;       /* occupa tutta la larghezza del blocco */
  max-width: 300px;  /* dimensione massima del cerchio */
  height: auto;
  border-radius: 50%; /* rende l'immagine circolare */
  object-fit: cover;  /* mantiene proporzioni e ritaglia se necessario */
  display: block;
  margin: 0 auto;    /* centra l'immagine */
}

/* ESTETICA CONTATORE */
.counter-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 20px 0;
}

.counter {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;  /* numero grande, adattabile */
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 0;
}

.unit {
    font-size: 1.2rem;
    font-weight: normal;
    color: #555;
    text-align: center;
    margin-top: 0;
    line-height: 1;
}

/* Link fonte piccolo e centrato sotto il titolo */
.counter-source {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    margin: 5px 0 15px 0;
}

.counter-source a {
    color: #FFD700; /* oro come nel vecchio sito */
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s;
}

.counter-source a:hover {
    color: #b38f00;
    text-decoration: underline;
}

/* van gogh */
.image-caption {
  text-align: center;
  font-style: italic;
  color: #666; /* colore discreto, non troppo forte */
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ragazza */
.content-item {
  display: flex;
  justify-content: center; /* orizzontalmente */
  align-items: center;    /* verticalmente, se il contenitore ha altezza definita */
  flex-direction: column; /* utile se aggiungi testo o didascalia sotto */
}

/* TITOLI GRANDI */
/* Titoli grandi blocchi 1, 3, 5 */
.big-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #111827;
}

/* TITOLI COLORATI */
/* Evidenziazione dei titoli dei punti elenco */
.highlight-giallo {
  background-color: #FFD700; /* oro chiaro */
  color: #111827;
  padding: 4px 8px;
  border-radius: 4px;
}

.highlight-verde {
  background-color: #28A745; /* verde chiaro */
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

.highlight-arancio {
  background-color: #FF8C00; /* arancio */
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

.highlight-viola {
  background-color: #9B59B6; /* viola */
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

/* --- ANIMAZIONI ELEGANTI ON SCROLL --- */

/* Stato iniziale (invisibile) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Stato visibile */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effetto circle grow elegante */
.circular {
  opacity: 0;
  transform: scale(0.4);   /* parte molto piccola */
  transition: transform 0.9s ease-out, opacity 0.8s ease-out;
  will-change: transform, opacity; /* performance */
}

.circular.visible {
  opacity: 1;
  transform: scale(1);     /* torna alla dimensione reale */
}

/* PADDING PAGINE */
/* =========================================================
   FIX PAGINE TESTUALI: Termini, Privacy, Risultato Test
   ========================================================= */

/* Contenitore principale delle pagine testuali */
.content-grid {
  max-width: 900px;        /* larghezza elegante e leggibile */
  margin: 0 auto;          /* centra la pagina */
  padding: 40px 20px;      /* spazio dai bordi (risolve il tuo problema) */
  display: block;          /* garantisce comportamento consistente */
}

/* Ogni sezione interna */
.grid-item {
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Spaziatura titoli e paragrafi */
.content-grid h2,
.content-grid h3,
.content-grid h4 {
  margin-bottom: 15px;
  margin-top: 25px;
  line-height: 1.3;
}

.content-grid p,
.content-grid ul,
.content-grid li {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Liste più eleganti */
.content-grid ul {
  padding-left: 20px;
}

/* Adattamento mobile */
@media (max-width: 600px) {
  .content-grid {
    padding: 30px 15px;
  }
  .grid-item {
    padding: 15px;
  }
}

/* --- FIX MENU MOBILE SU CONTATTAMI --- */
.site-header, #header {
  position: relative;
  z-index: 1000;
}

.nav-menu {
  z-index: 2000;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background: #111827;
  color: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.95rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner a {
  color: #FCD34D;
  text-decoration: underline;
}

#cookie-accept {
  align-self: flex-end;
  background: #FCD34D;
  color: #111827;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

#cookie-accept:hover {
  background: #b38f00;
  color: #fff;
}

/* GLOBO EN */
.lang-switch {
  font-weight: 600;
  color: #FCD34D;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.lang-switch:hover {
  background: #b38f00;
  color: #fff;
}

/* VIDEO CIRCOLARE */
video.circular {
  width: 300px;       /* dimensione quadrata */
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.9s ease-out, opacity 0.8s ease-out;
}
video.circular.visible {
  opacity: 1;
  transform: scale(1);
}








