/* ========================================= */
/* === 1. RESET, VARIABILI E BASE === */
/* ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

/* Variabili Colori */
:root {
    --primary-color: #b6291f;
    /* Rosso Tomato */
    --secondary-color: #E2B27E;
    /* Oro/Beige */
    --dark-bg: #222;
    --white: #fff;
    --transition: 0.3s ease;
}

/* Tipografia */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: 2.8em;
}

p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

/* Bottoni */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================= */
/* === 2. NAVBAR E HEADER === */
/* ========================================= */
.navbar {
    background-color: transparent;
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar .logo img.logo-light {
    display: inline-block;
}

.navbar .logo img.logo-dark {
    display: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar .nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
    text-decoration: none;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

.navbar .nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.close-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2.5em;
    color: #333;
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

/* Navbar Scrolled (Sfondo Bianco quando scorri) */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar.scrolled .nav-links a {
    color: #333;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.navbar.scrolled .hamburger .bar {
    background-color: #333;
}

.navbar.scrolled img.logo-light {
    display: none;
}

.navbar.scrolled img.logo-dark {
    display: inline-block;
}

/* ========================================= */
/* === 3. HERO SECTION (HOME) === */
/* ========================================= */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('public/Sfondo1.jpg') center center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 180px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================= */
/* === 4. OFFERTE (VOLANTINO) === */
/* ========================================= */
.flyer-section {
    background-color: #fff;
    padding: 80px 0;
}

.flyer-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.flyer-image-wrapper {
    flex: 1;
    padding: 20px;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.flyer-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flyer-content {
    flex: 1;
    padding: 40px;
    text-align: center;
    align-self: center;
}

.flyer-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.flyer-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}

/* ========================================= */
/* === 5. RECENSIONI SCORREVOLI === */
/* ========================================= */
.reviews-section {
    background-color: #fcfcfc;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
}

.reviews-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.reviews-wrapper {
    width: 100%;
    overflow: hidden;
    /* Effetto sfumato ai lati */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 30px;
    margin-bottom: 30px;
}

.review-group {
    display: flex;
    gap: 30px;
}

/* Animazioni infinite */
.scroll-left {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.review-card-modern {
    background-color: #f0f0f0;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    padding: 35px;
    width: 400px;
    min-height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    
}

.quote-icon {
    font-family: serif;
    font-size: 5rem;
    line-height: 0.6;
    color: var(--primary-color);
    margin-top: 5px;
}

.review-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
}

.review-content .author {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    margin-top: auto;
    
}

/* ========================================= */
/* === 6. CONTATTI (STILE PULITO) === */
/* ========================================= */
.contacts-simple {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.contact-card {
    background: #ffffff;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 50px;
}

.contact-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-subtitle {
    font-family: 'Helvetica Neue';
    font-weight: 600;
    font-size: 0.85rem;
    color: #7a7a7a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 6px;
}

.contact-text {
    font-family: 'Helvetica Neue';
    font-size: 1.35rem;
    color: #222;
    line-height: 1.25;
}

.contact-link {
    font-family: 'Helvetica Neue';
    font-size: 1.35rem;
    color: #111;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-divider {
    width: 1px;
    height: 120px;
    background-color: #eee;
    margin: 0 40px;
}

.social-block {
    margin-top: 10px;
    padding-left: 50px;
}

.social-row-simple {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-row-simple a img {
    width: 40px;
    height: 40px;
    transition: 0.2s;
    opacity: 0.8;
}

.social-row-simple a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================= */
/* === 7. DOVE SIAMO & FOOTER === */
/* ========================================= */
.section {
    padding: 80px 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    font-size: 0.95em;
}

.footer-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================= */
/* === 8. STILI DEL MENU PAGE (Importati) === */
/* ========================================= */
/* Hero Menu */
.menu-page .menu-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('public/Sfondo1.jpg') center center/cover no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.menu-page .menu-hero-section h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.menu-page .menu-hero-section p {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Accordion Box */
.menu-box {
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu-box-header {
    padding: 25px 35px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid transparent;
}

.menu-box-header:hover {
    background-color: #fafafa;
}

.menu-box h3 {
    font-size: 1.6rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #2c3e50;
}

.toggle-icon {
    font-size: 1.4rem;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0ef;
    transition: 0.3s;
}

/* Contenuto Menu */
.menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #fff;
}

.menu-box.open {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.menu-box.open .menu-box-header {
    border-bottom: 1px solid #f0f0f0;
}

.menu-box.open .toggle-icon {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: #fff;
}

.menu-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #e74c3c;
    margin: 30px 35px 15px 35px;
    border-bottom: 2px solid #fff0ef;
    padding-bottom: 8px;
}

.menu-grid {
    padding: 10px 35px 40px;
    display: flex;
    flex-direction: column;
}

.menu-item-card {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
    background: none;
    padding: 20px 5px;
    border-bottom: 1px dashed #e0e0e0;
}

.menu-item-card:last-child {
    border-bottom: none;
}

.name {
    grid-column: 1/2;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2c3e50;
    padding: 15px;
    line-height: 1.3;
}

.price {
    grid-column: 2/3;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
    padding: 15px;
}

.ingredients {
    grid-column: 1/3;
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
    padding: 15px;
    padding-top: 0;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ========================================= */
/* === RESPONSIVE (MOBILE OPTIMIZATION) === */
/* ========================================= */

/* Tablet e Desktop Piccolo */
@media (max-width: 992px) {
    .navbar .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transform: translateX(-100%);
        transition: var(--transition);
        padding: 100px 20px 60px;
    }

    .navbar .nav-links.active {
        transform: translateX(0);
    }

    .navbar .nav-links a {
        font-size: 2em;
        color: #333 !important;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .close-menu {
        display: block;
        opacity: 0;
        pointer-events: none;
    }

    .navbar .nav-links.active~.close-menu {
        opacity: 1;
        pointer-events: all;
    }

    .hero {
        padding: 120px 0;
        min-height: auto;
    }
}

/* PC Desktop (Per affiancare il volantino) */
@media (min-width: 768px) {
    .flyer-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Smartphone (Tutto ciò che serve per mobile) */
@media (max-width: 768px) {

    /* Hero */
    .hero h1 {
        font-size: 2.8em;
    }

    .reviews-section h2 {
        font-size: 2.5rem;
    }

    /* Recensioni */
    .review-card-modern {
        width: 260px;
        padding: 20px;
        border-radius: 15px;
    }

    .quote-icon {
        font-size: 3rem;
    }

    .review-content p {
        font-size: 0.9rem;
    }

    /* Volantino */
    .flyer-content h2 {
        font-size: 2rem;
    }

    .flyer-image img {
        min-height: auto;
    }

    /* MENU Accordion Mobile */
    .menu-box {
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .container {
        padding: 0 15px;
        width: auto;
    }

    .menu-box-header {
        padding: 20px 20px;
    }

    .menu-box h3 {
        font-size: 1.3rem;
    }

    .toggle-icon {
        width: 25px;
        height: 25px;
        font-size: 1.1rem;
    }

    .menu-grid {
        padding: 10px 20px 30px 20px;
    }

    .menu-item-card {
        padding: 18px 0;
    }

    .name,
    .price {
        font-size: 1.05rem;
    }

    /* --- CONTATTI MOBILE (Fix Definitivo) --- */
    .contacts-simple {
        padding: 40px 0;
    }

    .contact-card {
        padding: 30px 20px;
        margin: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .contact-card-content {
        flex-direction: column;
        text-align: left;
    }

    .contact-col {
        width: 100%;
        gap: 25px;
    }

    .contact-divider {
        width: 100%;
        height: 1px;
        margin: 30px 0;
    }

    .contact-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .contact-text,
    .contact-link {
        font-size: 1.2rem;
    }

    .social-block {
        padding-left: 0;
        margin-top: 10px;
    }

    .social-row-simple {
        justify-content: flex-start;
        gap: 20px;
        margin-left: 55px;
    }

    .social-row-simple a img {
        width: 45px;
        height: 45px;
    }
}