/* Importiamo il font Quicksand */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500;700&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #F8FAFC;
  color: #1F2937;
}

/* Navbar */
.navbar {
  background-color: rgba(30, 58, 138, 0.9);
  transition: background 0.3s ease-in-out;
}

.navbar.scrolled {
  background-color: #1E3A8A !important;
}

.navbar-logo {
  height: 1.2em;  /* Altezza proporzionata al testo */
  width: auto;    /* Mantiene le proporzioni */
  max-height: 40px;  /* Evita che diventi troppo grande */
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 8px; /* Spazio tra logo e testo */
}

.navbar-nav .nav-link {
  color: #F8FAFC;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 15px;
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #F97316;
}

/* Hero Section */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.7)), 
    url('../img/hero.jpg') center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero .btn {
  font-size: 1.3rem;
  padding: 12px 35px;
  border-radius: 30px;
  background: #F97316;
  border: none;
  font-weight: 700;
  transition: background 0.3s ease-in-out;
}

.hero .btn:hover {
  background: #C2410C;
}

/* Sezioni */
section {
  padding: 100px 0;
}

.bg-light-blue {
  background-color: #93C5FD;
}

.bg-dark {
  background-color: #1E3A8A;
  color: white;
}

/* Titoli */
h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
}

/* Testo */
p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* Pulsanti */
.btn-primary {
  background-color: #F97316;
  border-color: #F97316;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #C2410C;
  border-color: #C2410C;
}

.btn-success {
  background-color: #4CAF50;
  border-color: #4CAF50;
  font-weight: 700;
}

.btn-success:hover {
  background-color: #388E3C;
  border-color: #388E3C;
}

/* Sezioni con effetti */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: #1F2937;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #F97316;
}

/* Carosello full-screen */
#heroCarousel {
  height: 90vh;
  position: relative;
}

#heroCarousel .carousel-inner {
  height: 90vh;
}

#heroCarousel .carousel-item {
  height: 90vh;
}

#heroCarousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 90vh;
}

/* Testo fisso sopra il carosello */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
  max-width: 800px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5); /* Sfondo nero con opacità al 50% */
  padding: 20px; /* Aggiunge spazio interno per migliorare la leggibilità */
  border-radius: 10px; /* Smussa leggermente i bordi */
}

.hero-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-text p {
  font-size: 1.2rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-text .btn {
  font-size: 1.3rem;
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: 700;
}

/* Migliora la leggibilità del modale */
.modal-body h6 {
  margin-top: 15px;
  font-weight: bold;
}

.modal-body p, .modal-body ul {
  text-align: left;
  margin-bottom: 10px;
}

.modal-body ul {
  padding-left: 20px;
}

/* Migliora il bottone di chiusura */
.modal-footer .btn {
  padding: 8px 20px;
}

.grecaptcha-badge{
  visibility: hidden !important;
  opacity:0 !important;
}

/* Contenitore del PDF */
.pdf-container {
  position: absolute;
  top: 0px; /* Altezza della navbar */
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100vh - 0px); /* Occupa tutta la pagina sotto la navbar */
  overflow: hidden;
}

/* Visualizzazione PDF a tutta pagina */
.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Pulsante di download */
.pdf-download {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.pdf-download .btn {
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}