/*
   style.css - NetPitch Contest
   Colori principali: arancione e sabbia
*/

:root {
    --orange: #FF7F00;
    --sand: #F5DEB3;
    --dark-orange: #E67300;
    --light-sand: #FFF3E0;
    --text-dark: #333333;
    --producer-blue: #5B97CE;
    --producer-blue-dark: #4A86BD;
    --producer-light: #E8EEF2;
    --producer-sand: #DDE7EE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--sand);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Usa l'altezza completa del viewport */
    padding-bottom: 0; /* Elimina il padding interno inferiore */
    margin: 0; /* Assicurati che non ci siano margini esterni */
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
}

nav li {
    position: relative;
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--orange);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: var(--text-dark);
}

.dropdown-content a:hover {
    background-color: var(--light-sand);
}

nav li:hover .dropdown-content {
    display: block;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* Hero Section with Carousel */
.hero {
    min-height: calc(100vh - 250px); /* Altezza minima rivista per garantire spazio al footer */
    position: relative;
    overflow: hidden;
    margin-top: 90px;
    margin-bottom: 40px; /* Maggiore margine inferiore */
    padding-bottom: 20px; /* Aggiunto padding inferiore */
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Assicura che il carosello rimanga dietro il contenuto */
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--orange);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--orange);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--dark-orange);
}

/* Footer */
footer {
    background-color: white;
    padding: 0px 0;
    text-align: center;
    width: 100%;
    margin-top: auto; /* Spingerà il footer a fondo pagina */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); /* Ombra superiore per enfatizzare il footer */
}

.associations {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Aggiunto padding orizzontale per evitare problemi ai bordi */
}

.associations img {
    height: 80px;
    width: auto;
}

.copyright {
    margin-top: 15px;
    padding-bottom: 5px; /* Padding per garantire spazio al fondo */
    font-size: 0.9rem;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .logo img {
        height: 50px;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        margin: 0;
        width: 100%;
    }

    nav a {
        padding: 15px;
        border-bottom: 1px solid var(--light-sand);
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        background-color: var(--light-sand);
    }

    nav li:hover .dropdown-content {
        display: none;
    }

    nav li.active .dropdown-content {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .associations img {
        height: 60px;
    }

    /* Fix per il footer su mobile */
    .hero {
        min-height: calc(100vh - 300px);
        margin-bottom: 30px;
    }

    footer {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .associations img {
        height: 50px;
    }
}

/* menù hamburger */
@media (max-width: 768px) {
    #nav-menu.show {
        display: flex;
    }

    #nav-menu .dropdown.active .dropdown-content {
        display: block;
    }
}

/* stile immagine sfondo */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-size: cover;
    background-position: center;

    opacity: 0.08;

    z-index: -1;
}
/* BOTTONE PRODUTTORI IN INDEX.PHP */
.btn-produttore {
    background-color: #5B97CE;
    color: white;
}

.btn-produttore:hover {
    background-color: #4A86BD;
}
/* CLASSI PALETTE DISTINTE AUTORI/PRODUTTORI */
/* TEMA PRODUTTORI */
.theme-produttore {
    background-color: var(--producer-light);
}

.theme-produttore .auth-box h1 {
    color: var(--producer-blue);
}

.theme-produttore .btn-primary {
    background-color: var(--producer-blue);
}

.theme-produttore .btn-primary:hover {
    background-color: var(--producer-blue-dark);
}

.theme-produttore .form-group input,
.theme-produttore .form-group select {
    border-color: #B7D2EC;
}

.theme-produttore .form-group input:focus,
.theme-produttore .form-group select:focus {
    border-color: var(--producer-blue);
}
/* FORZO IL BLU */
.theme-produttore .auth-container {
    background-color: var(--producer-light);
}

.theme-produttore .auth-box {
    border-top: 5px solid var(--producer-blue);
}
