/* Reset e Stile Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #333;
}

.text-link {
    text-decoration: underline;
    color: #0066cc;
}

.text-link:hover {
    color: #004499;
}

ul {
    list-style: none;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #e53935;
    color: white;
}

.btn-primary:hover {
    background-color: #c62828;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #424242;
    color: white;
}

.btn-secondary:hover {
    background-color: #212121;
    transform: translateY(-2px);
}

.btn-regolamento {
    border: 2px solid #e53935;
    padding: 8px 16px;
    border-radius: 4px;
    color: #e53935;
    font-weight: 600;
}

.btn-regolamento:hover {
    background-color: #e53935;
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px; /* Ridotto il padding per diminuire l'altezza */
}

.logo {
    font-size: 20px; /* Ridotto da 24px a 20px */
    font-weight: 800;
    letter-spacing: 1px;
    color: #e53935;
    display: flex;
    align-items: center;
}

.logo img {
    height: 28px; /* Ridotto da 32px a 28px */
    margin-right: 10px;
}

/* Menu toggle button (hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #e53935;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    padding: 5px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: #e53935;
}

/* Mobile Logo - visibile solo su mobile */
.mobile-logo {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('../assets/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 100px 0 50px;
    overflow: hidden; /* Evita che gli elementi escano dalla sezione */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo-container {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.hero-logo {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.underground-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.presenta {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #e53935;
    display: block;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Info Section */
.info-section {
    padding: 80px 0;
    text-align: center;
    background-image: url('../assets/img/audience.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.info-section .container {
    position: relative;
    z-index: 1;
}

.info-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.info-section h2:after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #e53935;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

.info-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.info-card {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    margin: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.info-card i {
    font-size: 3rem;
    color: #e53935;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Come Partecipare Section */
.partecipare-section {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.partecipare-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.partecipare-section h2:after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #e53935;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

.requisiti {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    background-image: url('../assets/img/singer.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.requisiti::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.requisiti .content {
    position: relative;
    z-index: 1;
}

.requisiti h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #e53935;
}

.requisiti ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.requisiti ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.requisiti ul li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: #4CAF50;
}

.iscrizione-steps h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #e53935;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    margin: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e53935;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Premi Section */
.premi-section {
    padding: 80px 0;
    text-align: center;
    background-image: url('../assets/img/band-playing.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.premi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.premi-section .container {
    position: relative;
    z-index: 1;
}

.premi-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.premi-section h2:after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #e53935;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

.premi-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.premio {
    flex: 1;
    min-width: 250px;
    padding: 40px 30px;
    margin: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.premio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.premio i {
    font-size: 3.5rem;
    color: #e53935;
    margin-bottom: 20px;
}

.premio h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Form di Iscrizione Section */
.iscrizione-section {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
    background-image: url('../assets/img/studio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.iscrizione-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.iscrizione-section .container {
    position: relative;
    z-index: 1;
    color: white;
}

.iscrizione-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.iscrizione-section h2:after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #e53935;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.privacy-check {
    display: flex;
    align-items: center;
}

.privacy-check input {
    width: auto;
    margin-right: 10px;
}

.privacy-check label {
    margin: 0;
}

/* Contatti Section */
.contatti-section {
    padding: 80px 0;
    text-align: center;
}

.contatti-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.contatti-section h2:after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #e53935;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

.contatti-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contatto {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    margin: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contatto i {
    font-size: 2.5rem;
    color: #e53935;
    margin-bottom: 20px;
}

.contatto h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #212121;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo, .footer-partner, .social-links {
    flex: 1;
    text-align: center;
}

.footer-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 20px;
}

.footer-partner p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #999;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.partner-logos a {
    display: block;
    transition: opacity 0.3s ease;
}

.partner-logos a:hover {
    opacity: 0.8;
}

/* Stile base per il logo MSP */
.partner-logos a:first-child img {
    max-width: 120px;
    height: auto;
}

/* Stile specifico per il logo Studio Sette (50% più grande) */
.partner-logos a:last-child img {
    max-width: 180px; /* 120px + 50% */
    height: auto;
}

@media (max-width: 768px) {
    .partner-logos {
        flex-direction: column;
        gap: 15px;
    }

    /* Versione mobile per il logo MSP */
    .partner-logos a:first-child img {
        max-width: 150px;
    }

    /* Versione mobile per il logo Studio Sette */
    .partner-logos a:last-child img {
        max-width: 225px; /* 150px + 50% */
    }
}

.footer-partner img {
    max-width: 150px;
    height: auto;
}

.social-links a {
    display: inline-block;
    margin-left: 15px;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-links a:hover {
    color: #e53935;
    transform: translateY(-3px);
}

.social-links .coming-soon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e53935;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-links a:hover .coming-soon {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.copyright a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #e53935;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

/* Regolamento Page */
.regolamento-section {
    padding: 120px 0 60px;
    position: relative;
}

/* Logo mobile per pagina regolamento - visibile solo su mobile */
.mobile-logo-regolamento {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.regolamento-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.regolamento-section h1:after {
    content: '';
    width: 50%;
    height: 3px;
    background-color: #e53935;
    position: absolute;
    bottom: -10px;
    left: 25%;
}

.regolamento-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.regolamento-article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.regolamento-article h2 {
    color: #e53935;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.regolamento-article ol,
.regolamento-article ul {
    padding-left: 20px;
}

.regolamento-article ol li,
.regolamento-article ul li {
    margin-bottom: 10px;
}

.regolamento-article ol {
    list-style-type: decimal;
}

.regolamento-article ul {
    list-style-type: disc;
}

.regolamento-download {
    text-align: center;
    margin-bottom: 30px;
}

.back-home {
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header e menu per mobile */
    header {
        padding: 5px 0; /* Ridotto ulteriormente il padding */
    }
    
    /* Stili specifici per la pagina del regolamento su mobile */
    .regolamento-section {
        padding-top: 60px; /* Ridotto il padding superiore */
    }
    
    .mobile-logo-regolamento {
        display: block;
        padding-top: 60px;
    }
    
    .mobile-logo-regolamento .underground-logo-mobile {
        width: 70%;
        max-width: 250px;
        margin: 0 auto 10px;
        object-fit: contain;
    }
    
    .mobile-logo-regolamento .presenta-mobile {
        font-size: 1.5rem;
        font-weight: bold;
        letter-spacing: 2px;
        color: #e53935;
        margin-bottom: 25px;
    }
    
    .regolamento-section h1 {
        font-size: 2rem; /* Ridotto per mobile */
        margin-top: 20px;
    }
    
    .regolamento-content {
        padding: 25px 20px; /* Ridotto il padding */
    }
    
    .regolamento-article h2 {
        font-size: 1.3rem; /* Ridotto per mobile */
    }
    
    header .container {
        flex-direction: row;
    }
    
    .logo {
        font-size: 18px; /* Ridotto ulteriormente per mobile */
    }
    
    .logo img {
        height: 24px; /* Ridotto ulteriormente per mobile */
    }
    
    .menu-toggle {
        display: block;
        padding: 5px; /* Ridotto il padding */
    }
    
    .main-nav {
        position: fixed;
        top: 50px; /* Ridotto da 70px a 50px per l'header più compatto */
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 50px); /* Aggiornato per l'header più compatto */
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: left;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .btn-regolamento {
        display: inline-block;
        margin-top: 10px;
    }
    
    /* Hero section per mobile */
    .hero {
        padding-top: 60px; /* Ridotto da 70px a 60px per l'header più sottile */
        padding-bottom: 50px;
        min-height: 100vh;
    }
    
    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 30px; /* Aggiunto padding extra in alto */
    }
    
    /* Nascondiamo il contenuto desktop */
    .desktop-content {
        display: none;
    }
    
    /* Mostriamo il logo mobile in grande */
    .mobile-logo {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 20px; /* Spostato più in basso */
        margin-bottom: 30px;
    }
    
    .underground-logo-mobile {
        width: 70%;
        max-width: 250px;
        margin: 0 auto 10px;
        /* Assicuriamoci che l'immagine sia completamente visibile */
        object-fit: contain;
    }
    
    .presenta-mobile {
        font-size: 1.5rem;
        font-weight: bold;
        letter-spacing: 2px;
        color: #e53935;
        margin-bottom: 25px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .info-card, .step, .premio, .contatto {
        min-width: 100%;
    }
}
