/* =========================================
   1. VARIABILI E RESET BASE
========================================= */
:root {
    --bg-color: #121212;
    --primary-color: #ffffff;
    --accent-color: #FCEEA7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    scroll-behavior: smooth;
}

/* =========================================
   2. SFONDO PARTICELLE DINAMICO
========================================= */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1;
}

/* =========================================
   3. NAVBAR (Fissa in alto, Logo Sx, Menu Dx)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    padding: 0 40px;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}


.brand-group {
    gap: 25px;
}


.brand-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.brand-link:hover {
    color: var(--accent-color);
}

#logo img {
    height: 26px;
    width: auto;
    display: block;
    margin-right: 10px;
}

#gelosi a {
    margin-left: -43px;
    color: var(--accent-color) !important;
}


.hamburger-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    padding: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    right: -20px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 0 4px;
    overflow: hidden;
    z-index: 1;
}

.dropdown-content a {
    color: var(--primary-color);
    padding: 15px 25px;
    text-decoration: none;
    display: block;
    text-align: right;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}


.dropdown-content a:hover {
    background-color: rgba(252, 238, 167, 0.1);
    color: var(--accent-color);
    padding-right: 35px;
}

.hamburger-menu-container:hover .dropdown-content {
    display: block;
}

.hamburger-menu-container:hover .hamburger-btn {
    color: var(--accent-color);
}

/* =========================================
   4. SOCIAL SIDEBAR (Configurazione Desktop)
========================================= */
.social-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}


.social-sidebar::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
}


.social-sidebar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-top: 25px;
}

.social-sidebar a {
    color: var(--primary-color);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    z-index: 1;
    border-radius: 50%;
}

.social-sidebar a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(252, 238, 167, 0.7);
}

/* =========================================
   5. SEZIONE HERO (HOME)
========================================= */
#hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 2rem 2rem;
    box-sizing: border-box;
}

#hero-image {
    flex: 0 0 auto;
    width: 38%;
    max-width: 420px;
    margin-right: 4rem;
    animation: fadeIn 1.5s ease-out;
}

#hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
}

#hero-text {
    flex: 1 1 auto;
    color: var(--primary-color);
    max-width: 600px;
    animation: slideInRight 1s ease-out;
}

#hero-text h1 {
    font-size: 3.8em;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.subtitle {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.25em;
    margin-bottom: 1.5rem;
    display: block;
}

.description {
    font-size: 1.15em;
    line-height: 1.7;
    opacity: 0.9;
}

/* =========================================
   6. SEZIONE CONTATTAMI
========================================= */
#contattami {
    position: relative;
    z-index: 10;
    padding: 150px 20px 100px;
    background: transparent;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#contattami h2 {
    font-size: 3.5em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.contact-subtitle {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-bottom: 50px;
}

.contact-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-family: 'Titillium Web', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(252, 238, 167, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .form-group {
    flex: 1;
}

.btn-submit {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(252, 238, 167, 0.5);
    transform: translateY(-3px);
}

/* =========================================
   7. MEDIA QUERIES (Responsività Mobile/Tablet)
========================================= */
@media (max-width: 992px) {
    #hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    #hero-image {
        width: 60%;
        max-width: 350px;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    #hero-text h1 {
        font-size: 3em;
    }

    #hero-text {
        max-width: 100%;
    }

    /* --- MODIFICA SOCIAL SIDEBAR PER MOBILE --- */
    /* DIVENTA ORIZZONTALE E SI INSERISCE NEL FLUSSO */
    .social-sidebar {
        position: static;
        /* Non è più fissa */
        transform: none;
        width: 100%;
        flex-direction: row;
        /* Icone in orizzontale */
        justify-content: center;
        /* Centrate */
        gap: 25px;
        margin: 1rem 0 2.5rem 0;
        /* Spazio sopra e sotto */
        left: auto;
        top: auto;
        z-index: 2;
    }

    /* Nasconde le linee verticali su mobile */
    .social-sidebar::before,
    .social-sidebar::after {
        display: none;
    }

    /* Icone leggermente più grandi e con sfondo su mobile */
    .social-sidebar a {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
        height: 50px;
    }

    #logo img {
        height: 22px;
    }

    .dropdown-content {
        top: 50px;
        right: -10px;
        min-width: 180px;
    }

    /* Hero Section: testi più piccoli */
    #hero-text h1 {
        font-size: 2.5em;
    }

    .subtitle,
    .description {
        font-size: 1rem;
    }

    #contattami {
        padding-top: 100px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    #contattami h2 {
        font-size: 2.5em;
    }
}

/* =========================================
   8. ANIMAZIONI
========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   9. FOOTER
========================================= */
footer {
    background-color: rgba(18, 18, 18, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(252, 238, 167, 0.3);
}

/* =========================================
   10. PRIVACY POLICY PAGE
========================================= */
.privacy-container {
    position: relative;
    z-index: 10;
    padding: 120px 20px 80px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.privacy-content {
    max-width: 800px;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--primary-color);
}

.privacy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.privacy-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.privacy-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}