body {
    font-family: Roboto, sans-serif;
    background: #f9f9f9;
    color: #222;
    display: flex;
    flex-direction: column;
    display: flex;
    height: 100vh;
    justify-content: center;
}
section {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* header / logo */
.top-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100px; /* altezza fascia */
    background: linear-gradient(90deg, #ff0000, #b22222, #8b0000); 
  }

header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none; /* così non blocca click sul carosello */
  }
  
  .logo {
    width: 150px;   /* dimensione base mobile */
    height: auto;
    margin-top: 10px;
  }
  
/* CAROSELLO */
.carousel-container {
    width: 100%;
    height: 50vh; /* metà viewport come vuoi */
    max-height: 500px;
    overflow: hidden;
    position: relative;
    margin-top: 100px; /* spostiamo il carosello sotto la top-bar */
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}
.slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;      /* crop intelligente */
  background-position: center;
  background-repeat: no-repeat;
}

/* contenuto sottostante */
.content-block {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra orizzontalmente */
    height: calc(50vh - 100px);           /* metà dello schermo */
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  /* Titolo */
  .content-block h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .highlight {
    color: #ff0000; 
  }
  /* Sottotesto elegante */
  .content-block .subtitle {
    font-size: 1rem;
    font-style: italic;
    font-family: "Georgia", "Times New Roman", serif; /* più elegante */
    color: #444;
    width: 100%;              /* prende tutta la larghezza disponibile */
    max-width: 800px;         /* limite leggibilità su desktop */
    margin: 0 auto 20px auto; /* spaziatura e centratura */
    line-height: 1.2;
  }
  
  /* Pulsanti */
  .button-group {
    display: flex;
    flex-direction: column; /* mobile: pulsanti in colonna */
    gap: 10px;
    align-items: center;
    width: 100%; /* necessario per flex:1 */
  }
  
  .button-group .btn {
    flex: 1; /* prendono tutta la larghezza disponibile */
    max-width: 200px; /* opzionale, per non diventare troppo larghi */
    text-align: center;
  }
  
  
  .btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    
    width: 150px; /* tutti uguali */
    box-sizing: border-box;
  }
  
  /* Pulsante rosso pieno */
  .btn-red {
    background-color: #ff0000;
    color: #fff;
    border: 2px solid #ff0000;
  }
  
  .btn-red:hover {
    background-color: #b22222;
    border-color: #b22222;
  }
  
  /* Pulsante bianco con bordo rosso */
  .btn-white {
    background-color: #fff;
    color: #ff0000;
    border: 2px solid #ff0000;
  }
  
  .btn-white:hover {
    background-color: #ff0000;
    color: #fff;
  }
  
  /* Su desktop: pulsanti affiancati */
  @media (min-width: 768px) {
    .button-group {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
      }
  
    .content-block h1 {
      font-size: 2.2rem;
    }
  
    .content-block .subtitle {
      font-size: 1.3rem;
    }
  }
  
/* desktop: bottoni affiancati */
@media (min-width: 768px) {
  .content h1 { font-size: 2rem; }
  .buttons { flex-direction: row; gap: 1rem; max-width: none; }
  .btn { width: auto; padding: 0.9rem 1.6rem; }
  .carousel-container {
        height: 50vh; /* 50% viewport meno altezza top-bar */
        max-height: 600px;
    }
    .logo {
        width: 200px;
        margin-top: 0px;
      }
}
