body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
}

main {
  margin-top: 80px !important;
}

.titolo {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10vh;
  font-weight: bolder;
  text-align: center; 
  color: #cc0000;
}

.riquadro {
  padding: 30px;
  width: 100% !important; /* Make the section take full width */
  box-sizing: border-box; /* Ensure padding doesn't affect the width */
}

.hero {
  position: relative;
  width: 100%;
  height: 60vh; 
  min-height: 300px; 
  background: url('./../content/unisciti.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px 0;
  margin: 0;
}

.hero h1 {
  font-size: 2.5rem; 
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  padding: 0 15px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero::before {
  background: rgba(255, 0, 0, 0.25);
  backdrop-filter: blur(3px); 
}

.hero::after {
  background-color: rgba(255, 0, 0, 0.151);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.custom_bold{
  font-weight: bold;
  color: #cc0000;
}

.custom_link{
  color: #cc0000;
  font-weight: bold;
}

.rosso {
  background-color: #cc0000;
}

/* Bottone unisciti  */
@keyframes movimento {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.bottone_unisciti {
  padding: 17px 17px;
  width: fit-content;
  border-radius: 7px;
  cursor: pointer;
  border: 0;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.612) 0px 5px 40px !important;
  text-transform: uppercase;
  font-size: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  transition: all 0.5s ease;
  animation: movimento 2s infinite ease-in-out;
  color: #cc0000 !important;
}
  

.bottone_unisciti:hover {
  letter-spacing: 3px;
  background-color: hsl(0, 0%, 100%);
  color: #cc0000;
  box-shadow: rgba(255, 255, 255, 0.26) 0px 7px 29px 0px;
}

.bottone_unisciti:active {
  letter-spacing: 4px;
  background-color: hsl(0, 0%, 100%);
  color: #cc0000;
  box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px;
  animation: none;
  transition: transform 0.3s ease !important;
  transform: translateY(2px) !important;
}

.bottone-piccolo {
  padding: 16px 16px !important;
  font-size: 1rem !important;
}


.titolo_nero {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3vh;
  font-weight: bolder;
  text-align: justify; 
  color: black;
}

.titolo_bianco {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: bolder; 
  color: rgb(255, 255, 255) !important;
  text-align: justify; 
}

.paragrafo_nero {
  font-family: 'Work Sans Font';
  font-size: 2.3vh !important;
  text-align: justify; 
  color: black;
  font-weight: bold;
}

.paragrafo_nero_2 {
  font-family: 'Work Sans Font';
  font-size: 2.3vh !important;
  text-align: justify;
  font-weight: 600;
  color: black;
  font-weight: bold;
  transition: all 0.7s ease;
}

.paragrafo_bianco {
  font-family: 'Work Sans Font';
  font-size: 2.3vh !important;
  text-align: justify;
  font-weight: bold;
  color: rgb(255, 255, 255) !important;
}

.paragrafo_bianco_2 {
  font-family: 'Work Sans Font';
  font-size: 2.3vh !important;
  text-align: justify;
  font-weight: bold;
  font-weight: 600;
  color: rgb(255, 255, 255);
}

.background-text {
  position: absolute;
  letter-spacing: 2vw;
  font-size: 20vw;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.075); /* Semitrasparenza */
  user-select: none; /* Evita la selezione del testo */
}

@media screen and (max-width: 1000px) {
  .riquadro {
    width: 100% !important;
  }
}
    
@media (min-width: 768px) {
  .hero {
    height: 400px;
    padding: 50px 0;
  }

  .hero h1 {
      font-size: 4rem;
  }
  
  .section-title {
      font-size: 2.5rem;
  }
  
  .custom-image {
      max-width: 350px;
      margin-bottom: 0;
  }
}

.bordi {
  border: 2px solid #cc0000 !important;
  border-left: 0px !important;
  border-right: 0px !important;
  padding: 20px;
}

.responsive-section-image {
  max-height: 300px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .responsive-section-image {
      max-height: 600px;
  }
}

.section-title {
  color: #cc0000;
  font-weight: bold;
  margin-bottom: 20px;
  font-size: 2rem;
}


.btn_custom {
  background-color: #cc0000;
  color: white;
  padding: 12px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  
    border-radius: 5px; 
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.btn_custom:hover {
  background-color: #a30000; 
  transform: translateY(-2px);
}

.btn_custom:active {
  transform: translateY(2px);
}