/* =======================
   Stile Generale
   ======================= */
body {
    background-color: #020617; /* Blu notte profondo */
    color: #f0f4f8;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container principale */
.container {
    width: min(1200px, 90%);
    margin: 40px auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle, #0f172a 0%, #020617 100%);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;   /* già responsive con media queries */
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #eaeaea;
    font-feature-settings: "liga" 1, "kern" 1;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eaeaea;
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* =======================
   Box Contenuto
   ======================= */
.content-box {
    background: rgba(30, 41, 59, 0.6);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #334155;
    text-align: center;
    backdrop-filter: blur(5px);
}

/* Immagini responsive */
.content-box img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 0 30px rgba(165, 56, 248, 0.2);
}

/* Pulsante Iscriviti */
.btn-iscriviti {
    display: inline-block;
    background: linear-gradient(45deg, #0ea5e9, #2563eb);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-iscriviti:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.6);
    filter: brightness(1.1);
}

/* Gallery secondaria */
.gallery .side-img {
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
    opacity: 0.7;
}

/* =======================
   Stelle sullo sfondo
   ======================= */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* dietro tutto il contenuto */
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes twinkle {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    50%  { opacity: 0.2; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}

/* =======================
   Media Queries
   ======================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .content-box {
        padding: 20px;
    }

    .btn-iscriviti {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .content-box {
        padding: 15px;
    }

    .btn-iscriviti {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}
/* =======================
   Box sizing universale
   ======================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =======================
   Container principale
   ======================= */
.container {
    width: 90%;             /* mai più larga della viewport */
    max-width: 1200px;      /* larghezza massima desktop */
    margin: 40px auto;      /* centra il contenuto */
    padding: 2rem;          /* spazio interno */
}

/* Riduzione padding su mobile */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
}

/* =======================
   Box contenuto
   ======================= */
.content-box {
    background: rgba(30, 41, 59, 0.6);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #334155;
    text-align: center;
    backdrop-filter: blur(5px);
    margin: 0 auto; /* assicura centratura */
}

/* Padding ridotto su mobile per il box */
@media (max-width: 768px) {
    .content-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .content-box {
        padding: 15px;
    }
}
