html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Spinge il main al centro e il footer in fondo */
  align-items: center;
  background-color: #2E482A ;
  
  /* Mantieni la tua bellissima foto di sfondo */
 /* background-image: url('../foto/newsletter.png'); 
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  box-sizing: border-box;
  padding: 40px 20px; */
}
footer {
  width: 100%;
  display: flex;
  justify-content: center; /* Centra il bottone in orizzontale */
  padding-top: 30px;
}

header h1 {
    text-align: center;
    color: orange;
    font-family: serif;
    font-size: 5rem;    /* Ingrandisce il testo. Puoi aumentare o diminuire questo valore (es. 4rem o 50px) */
    margin-top: 0;
    margin-bottom: 0;     /* Azzera il margine inferiore per evitare di spingere in giù i box sottostanti */
    padding-top: 20px;
    line-height: 1;       /* Mantiene compatta l'altezza invisibile del testo */
}

footer .bottone {
	margin: 0 15px;
}

.bottone {
  position: relative;
  display: inline-block;
  padding: 15px 35px;
  border: 2px solid #FFA500;
  text-transform: uppercase;
  color: orange;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
}

.bottone::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% - 12px);
  background-color: #161616; /* Colore che si sposa con lo sfondo del footer */
  transition: 0.3s ease-in-out;
  transform: scaleY(1);
}

.bottone:hover::before {
  transform: scaleY(0);
}

.bottone::after {
  content: '';
  position: absolute;
  left: 6px;
  top: -2px;
  height: calc(100% + 4px);
  width: calc(100% - 12px);
  background-color: #161616;
  transition: 0.3s ease-in-out;
  transform: scaleX(1);
  transition-delay: 0.2s;
}

.bottone:hover::after {
  transform: scaleX(0);
}

.bottone span {
  position: relative;
  z-index: 3;
}
/* Il box esterno (cornice quadrata) - RIMANE INVARIATO */
.box-video {
    width: 90vw;                
    max-width: 500px;           
    aspect-ratio: 1 / 1;        
    margin: 5vh auto;
    background-color: transparent;
    border: 5px solid orange;   
    border-radius: 15px;        
    padding: 10px;              
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Il video all'interno del quadrato - CORRETTO */
.box-video video {
    width: 100%;                /* Usa tutto lo spazio interno disponibile */
    height: 100%;               /* Usa tutta l'altezza interna disponibile */
    object-fit: cover;          
    display: block;
    border-radius: 8px;
}