/* Stili Globali */
:root {
    --color-primary: #f76b1e;
    --color-dark: #212121;
    --color-light: #ffffff;
    --color-text: #333333;
    --color-text-light: #666;
    --color-background: #ffffff;
    --color-footer-bg: #1c1c1c;
    --font-heading: 'Petit Formal Script', cursive;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h2 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--color-dark); margin-bottom: 0.5rem; }
h4 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-primary); }

/* Header Fisso */
.site-header {
    background: var(--color-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 200px;
}
.site-header .logo img { height: 200px; display: block; }
.menu-toggle { cursor: pointer; }
.menu-toggle svg { fill: var(--color-primary); width: 30px; height: 30px; }
.header-placeholder { width: 30px; }
main { padding-top: 150px; /* Spazio per l'header fisso */ }

/* Menu Laterale */
.side-nav {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: -280px;
    background-color: var(--color-dark);
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
}
.side-nav a {
    padding: 10px 15px 10px 32px;
    text-decoration: none;
    font-size: 22px;
    color: #ccc;
    display: block;
    transition: 0.3s;
}
.side-nav a:hover { color: var(--color-primary); }
.side-nav .close-btn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px; }
.side-nav-content { margin-top: 2rem; }
.side-nav-social {
    padding: 20px 32px;
    margin-top: 2rem;
    border-top: 1px solid #444;
}
.side-nav-social a { display: inline-block; padding: 10px; }
.side-nav-social img { width: 24px; height: 24px; filter: invert(70%); }
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    transition: opacity 0.4s;
}

/* Sezione Sapori e Slider */
.content-section { padding: 100px 0; }
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-layout > div { flex: 1; }
.split-image-slider { position: relative; height: 450px; }
.slider-image {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 8px; position: absolute;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.slider-image.active { opacity: 1; }
.split-content p { margin: 1.5rem 0; color: var(--color-text-light); }
.button-group { margin-top: 20px; }
.button-group .btn { margin-right: 15px; }
.btn {
    display: inline-block; padding: 12px 25px;
    text-decoration: none; border-radius: 5px; font-weight: 700;
    transition: all 0.3s; text-align: center; border: 2px solid transparent;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-light); border-color: var(--color-primary); }
.btn-primary:hover { background-color: #d65c1a; border-color: #d65c1a; }
.btn-secondary { background-color: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background-color: var(--color-primary); color: var(--color-light); }

/* Sezione Status */
.status-section {
    text-align: center; padding: 40px 0;
    background-color: #f9f9f9; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
#store-status-text { font-size: 1.2rem; margin-bottom: 20px; }
#store-status-text .status-open { color: #28a745; font-weight: bold; }
#store-status-text .status-closed { color: #dc3545; font-weight: bold; }

/* Sezione Features */
.features-section { padding: 40px 10px 40px 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 40px; }
.feature-item { display: flex; align-items: center; gap: 20px; }
.feature-item p { margin: 0; color: var(--color-text-light); }
.feature-item p a { color: var(--color-primary); font-weight: bold; text-decoration: none; }
.feature-icon img {
    width: 50px;
    height: 50px;
}


/* Sezione CTA Hero */
#cta-hero {
    display: flex; justify-content: center; align-items: center;
    text-align: center; padding: 100px 20px; min-height: 70vh;
    color: var(--color-light);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/viareggio_1.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.cta-content h4 { color: var(--color-light); font-size: 2rem; }
.cta-content h2 { color: var(--color-light); font-size: 4rem; margin-bottom: 1.5rem; }
.cta-content p { max-width: 600px; margin: 0 auto 30px auto; font-size: 1rem; line-height: 1.7; }

/* Sezione Reviews */
.reviews-section { padding: 30px 0; text-align: center; }
.review-logos { display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap; }
.review-logos img { height: 150px; filter: grayscale(1); opacity: 0.6; transition: all 0.3s; }
.review-logos img:hover { filter: grayscale(0); opacity: 1; }

/* Footer */
.site-footer-main { background-color: var(--color-footer-bg); color: var(--color-light); padding: 50px 0 20px 0; }
.footer-social { text-align: center; margin-bottom: 30px; }
.footer-social h4 { font-family: var(--font-body); font-size: 1.1rem; margin-bottom: 15px; font-weight: 700; }
.social-icons a { display: inline-block; margin: 0 10px; }
.social-icons img { width: 24px; height: 24px; filter: invert(70%); transition: filter 0.3s; }
.social-icons img:hover { filter: invert(100%); }
.footer-divider { border: 0; height: 1px; background-color: #444; margin-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col { text-align: center; }
.footer-col h4 { font-family: var(--font-body); color: var(--color-primary); font-size: 1.1rem; margin-bottom: 15px; font-weight: 700; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; color: #ccc; }
.footer-col p span { display: block; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.8rem; color: #888; }
.footer-bottom a { color: #aaa; text-decoration: none; }

.font-poppins-bold {
    font-family: var(--font-body); /* Usa il font 'Poppins' */
    font-weight: 700;              /* Lo rendiamo grassetto */
    text-transform: uppercase;     /* Mantiene il testo maiuscolo */
    letter-spacing: 2px;           /* Aggiungiamo un po' di spazio tra le lettere */
}

/* Responsive */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }

    /* --- 1. Logo più piccolo --- */
    .site-header .container {
        height: 150px; /* Altezza ridotta per mobile */
    }
    .site-header .logo img {
        height: 140px; /* Dimensione del logo ridotta */
    }
    main {
        padding-top: 80px; /* Spazio per l'header ridotto */
    }
    /* --- Fine modifica logo --- */

    .split-layout {
        flex-direction: column;
    }

    /* --- 2. Prima sezione centrata --- */
    #sapori .split-content {
        text-align: center;
    }
    .button-group {
        display: flex;
        justify-content: center;
        gap: 15px; /* Aggiunto per spaziare i bottoni */
    }
    .button-group .btn {
        margin-right: 0; /* Rimuove il margine precedente */
    }
    /* --- Fine modifica prima sezione --- */
    
    .feature-grid { 
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-content h2 {
        font-size: 3rem;
    }
    .cta-content h4 {
        font-size: 1.5rem;
    }
    
    /* --- 3. Loghi recensioni più piccoli e in linea --- */
    .review-logos {
        gap: 40px; /* Riduce lo spazio tra i loghi per farli stare in linea */
    }
    .review-logos img {
        height: 80px; /* Rimpicciolisce i loghi */
    }
    /* --- Fine modifica loghi recensioni --- */

    h2.font-poppins-bold {
    font-size: 2.5rem; /* Puoi aggiustare questa dimensione se vuoi */
    display: block;    /* Assicura che sia sempre visibile */
    line-height: 1.2;  /* Migliora l'interlinea su mobile */
    }

    h1.font-poppins-bold {
    font-size: 2.5rem; /* Puoi aggiustare questa dimensione se vuoi */
    display: block;    /* Assicura che sia sempre visibile */
    line-height: 1.2;  /* Migliora l'interlinea su mobile */
    }
}

/* === STILI PER PAGINA "IL LOCALE" === */

/* Hero Section per Pagine Interne */
.page-hero {
    position: relative;
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-light);
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero h1 {
    font-size: 4rem;
    text-transform: uppercase;
    line-height: 1.2;
}
.page-hero h4 {
    font-size: 1.5rem;
    color: var(--color-light);
}

/* Sezione Introduttiva */
.intro-section {
    text-align: center;
    padding: 80px 20px;
}
.intro-section h2 {
    margin-bottom: 1.5rem;
}
.intro-section p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--color-text-light);
}

/* Sezione Orari */
.hours-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}
.hours-section h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.hours-content {
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 700px;
    margin: 0 auto;
}
.hours-icon {
    flex-shrink: 0;
}
.hours-icon img {
    width: 80px;
    height: 80px;
}
.hours-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px 20px;
    width: 100%;
}
.hours-grid .day {
    font-weight: 700;
}
.hours-grid .time {
    color: var(--color-primary);
    font-weight: 700;
}

/* Sezione Galleria */
.gallery-section {
    padding: 80px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Responsive per Pagina Locale */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 3rem;
    }
    .hours-content {
        flex-direction: column;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* === STILI PER PAGINA "PRENOTAZIONI" === */

.booking-info p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0.5rem auto;
}

.booking-info a {
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.booking-info a:hover {
    border-bottom: 2px solid var(--color-primary);
}

.intro-section .btn {
    margin-top: 2rem;
}

/* === STILI PER PAGINA "DOVE SIAMO" === */

.location-section {
    padding: 80px 20px;
    text-align: center;
}
.location-section h2 {
    margin-bottom: 1rem;
}
.location-subtitle {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    text-align: left;
}
.map-container iframe {
    border-radius: 8px;
    height: 100%;
    min-height: 400px;
}
.storefront-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <- MODIFICATA */
    border-radius: 8px;
}

.directions-button-container {
    margin-top: 40px;
}

/* Responsive per Pagina Dove Siamo */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* === STILI PER PAGINE LEGALI (PRIVACY, ETC) === */

.legal-page-content {
    padding: 80px 20px;
    max-width: 800px; /* Limita la larghezza per migliore leggibilità */
}

.legal-page-content h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.legal-page-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-page-content h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page-content h4 {
    font-size: 1.2rem;
    color: var(--color-dark);
    font-family: var(--font-body);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page-content h5 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-page-content p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.legal-page-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.legal-page-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.legal-page-content a {
    color: var(--color-primary);
    font-weight: bold;
}

.legal-page-content .last-update {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #999;
}
