/* 
 * LA PERLA DEL MARE - STILE PRINCIPALE
 * =================================
 * Questo file contiene tutti gli stili del sito web.
 * Puoi modificare i colori e i font nella sezione :root qui sotto.
 */

:root {
    /* --- COLORI (Modifica qui per cambiare il tema) --- */
    --primary-color: #0a192f;
    /* Blu Notte Profondo - Per l'eleganza */
    --accent-color: #d4af37;
    /* Oro/Ottone - Per i dettagli di lusso */
    --text-color: #333333;
    /* Grigio Scuro - Per il testo leggibile */
    --bg-color: #f8f5f2;
    /* Crema Chiaro - Per lo sfondo caldo */
    --white: #ffffff;
    --light-gray: #e0e0e0;

    /* --- FONT (Assicurati che siano importati o disponibili) --- */
    --font-heading: 'Playfair Display', serif;
    /* Font elegante per titoli */
    --font-body: 'Lato', sans-serif;
    /* Font pulito per testi */

    /* --- SPAZIATURA --- */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset Semplice */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    /* Spazio per l'header fisso */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- COMPONENTI UTILI --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* --- HEADER & NAVIGAZIONE --- */
header {
    background-color: var(--primary-color);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION (Intro) --- */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.6)), url('https://images.unsplash.com/photo-1550966871-3ed3cdb5ed0c?q=80&w=1920&auto=format&fit=crop');
    /* Immagine di sfondo modificabile */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Effetto Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* --- ABOUT SECTION --- */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 10px 10px 0 var(--accent-color);
}

/* --- MENU ANTEPRIMA --- */
.menu-preview {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item-card {
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-5px);
}

.menu-item-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.menu-item-card .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
}

.menu-item-card p {
    color: #666;
    font-style: italic;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    color: #cccccc;
    margin-bottom: 10px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        /* Nascondi menu desktop */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px;
        text-align: center;
    }

    nav ul.active {
        display: flex;
        /* Mostra menu mobile se attivo */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}