/* 1. VARIABILI E RESET */
:root {
    --primary: #000327;
    --gold-premium: linear-gradient(135deg, #a67c00 0%, #bf9b30 50%, #6b4f00 100%);
    --gold-text: #8e6d10;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.nombre,
.apellido {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2.3rem !important;
    background: var(--gold-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nombre {

    margin-right: 10px;

}

.tagline {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem !important;
    color: var(--gold-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.evidenza-nero {
    color: #040021;
    font-size: 1.8rem;
}

.logo-text {
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin-top: 1rem;
}

.nav-links a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-text);
}

/* 3. HERO SECTION */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-style: italic;
    font-size: 2.5rem !important;
    line-height: 1.1;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 1.5rem;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.btn-main {
    display: inline-block;
    font-family: 'Cinzel', serif;
    margin-top: 40px;
    padding: 1.1rem 2.8rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

/* 4. SERVICIOS */
.section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--gold-text);
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.btn-open {
    margin-top: 25px;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--gold-text);
    color: var(--gold-text);
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-open:hover {
    background: var(--gold-text);
    color: white;
}

/* 5. MODALES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 3, 39, 0.9);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.modal-title {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-body ul {
    list-style-position: inside;
    margin-top: 15px;
}

.modal-body li {
    margin-bottom: 10px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary);
}

/* 6. SOBRE MÍ (ESTRUCTURA DESKTOP) */
.about-grid-modern {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Il testo ha più respiro */
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text-block {
    max-width: 550px;
}

.about-text-block p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.highlight-text {
    color: var(--gold-text);
    font-weight: 700;
    font-size: 1.2rem;
}

.about-img-wrapper {
    width: 100%;
    max-width: 380px;
    justify-self: center;
}

.about-img-wrapper img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 15px 15px 0px var(--primary);
}

.img-caption {
    margin-top: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold-text);
    text-align: center;
    font-size: 0.85rem;
}

/* 7. FOOTER */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 10%;
}

.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1500;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 28px;
    /* Dimensione icona */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Effetto rimbalzo */
}

.whatsapp {
    background: #25d366;
}

.mail {
    background: var(--primary);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

a[href^="tel"],
a[href^="mailto"],
.footer-phone {
    color: inherit !important;
    text-decoration: none !important;
}

/* 8. MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .about-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Ordine Mobile */
    .block-1 {
        order: 1;
    }

    .img-laurea {
        order: 2;
        margin-bottom: 20px;
    }

    .block-2 {
        order: 3;
    }

    .img-haccp {
        order: 4;
    }

    .about-img-wrapper {
        max-width: 300px;
    }

    /* Tablet Breakpoint (MD) */
    @media (max-width: 1024px) {
        .section {
            padding: 60px 5%;
        }

        .nombre,
        .apellido {
            font-size: 1.8rem;
        }

        .tagline {
            font-size: 1.1rem;
        }
    }

    /* Mobile Breakpoint (SM/XS) */
    @media (max-width: 480px) {
        .hero-content h1 {
            font-size: 2.2rem !important;
        }

        .btn-main {
            padding: 0.9rem 2rem;
            width: 100%;
        }

        .nombre,
        .apellido {
            font-size: 1.4rem;
        }

        .tagline {
            font-size: 0.9rem;
        }

        .floating-contact {
            bottom: 15px;
            right: 15px;
        }
    }
}