/* ===========================
   RESET GENERALE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    overflow-y: scroll; /* scrollbar sempre visibile */
}

body {
    color: white;
    background-color: #000;
}

/* ===========================
   HEADER / MENU
=========================== */
header {
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #00bfff;
    text-decoration: underline;
}

/* ===========================
   PAGINA CON SFONDO E OVERLAY
=========================== */
.pagina-bg {
    position: relative;
    min-height: 100vh;
    background-image: url("immagini/1300.jpg");
    background-size: cover;
    background-position: center;
}

/* Overlay modificato: non centrato verticalmente */
.pagina-bg .overlay {
    position: relative;
    width: 100%;
    height: auto; /* lascia l'altezza naturale */
    background-color: rgba(0,0,0,0.5);
    display: block; /* non flex */
    padding: 120px 20px 40px 20px; /* spazio in alto per menu fisso */
    box-sizing: border-box;
}

/* ===========================
   CONTENUTO
=========================== */
.contenuto {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.contenuto h1 {
    color: #4A90E2;
    margin-bottom: 25px;
    text-align: center;
}

.contenuto p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===========================
   STEP
=========================== */
.step {
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #4A90E2;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step h2 {
    color: #4A90E2;
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* ===========================
   GALLERIA
=========================== */
.galleria-diffusa {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.galleria-diffusa img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.galleria-diffusa img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===========================
   PULSANTE FINALE
=========================== */
.btn-cta {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px;
    background: #4A90E2;
    color: #fff;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-cta:hover {
    background: #357ABD;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: #000;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .contenuto { padding: 20px 10px; }
    .contenuto h1 { font-size: 2em; }
    .contenuto p { font-size: 1em; }

    .menu { flex-direction: column; }
    .menu li { margin: 5px 0; }

    .pagina-bg .overlay { padding-top: 140px; }
}

@media (max-width: 480px) {
    .contenuto { max-width: 95%; margin: 20px auto; }
    .pagina-bg .overlay { padding-top: 160px; }
}
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* sfondo */
    background-image: url("immagini/1300.jpg");
    background-size: cover;       /* copre tutto lo spazio */
    background-position: center;  /* centrata */
    background-repeat: no-repeat; /* evita ripetizioni */
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 0;
}

.hero h1,
.hero p,
.hero .copyright,
.hero .foto-hst {
    position: relative;
    z-index: 1; /* sopra l'overlay */
}
.hero h1,
.hero p,
.hero .copyright,
.hero .foto-hst {
    color: #FFD700; /* giallo oro */
    margin: 0 0 10px 0;

    /* bordo nero */
    text-shadow:
        2px 2px 2px #000,  /* ombra in basso a destra */
        -2px -2px 2px #000, /* ombra in alto a sinistra */
        2px -2px 2px #000,
        -2px 2px 2px #000;
}
.step {
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #4A90E2;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;

    text-align: center; /* <-- aggiungi questa riga */
}
