:root {
    --color-sabbia: #F5EFE6;
    --color-blu: #2C3E50;
    --color-agave: #8DA399;
    --color-white: #FFFFFF;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); color: var(--color-blu); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.main-header { height: 80px; display: flex; align-items: center; position: fixed; width: 100%; top: 0; z-index: 1000; transition: 0.3s; background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); }
.main-header.scrolled { background: var(--color-white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.main-header.scrolled .logo, .main-header.scrolled nav a { color: var(--color-blu); text-shadow: none; }
.logo { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.nav-desktop a { color: white; text-decoration: none; margin-left: 30px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; text-align: center; color: white; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.35); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2.2rem, 7vw, 4rem); margin-bottom: 1rem; position: relative; }
.hero p { font-size: 1.1rem; margin-bottom: 2rem; position: relative; }

/* Buttons */
.btn { padding: 15px 30px; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn-primary { background: var(--color-blu); color: white; }
.hero .btn-primary { background: white; color: var(--color-blu); }
.btn-outline { border: 1px solid var(--color-blu); color: var(--color-blu); background: transparent; }

/* --- Bottone Torna Su --- */
.back-to-top {
    position: fixed;
    bottom: 80px; /* Sopra la mobile bar */
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--color-blu);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0; /* Inizialmente invisibile */
    visibility: hidden;
    z-index: 1500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-agave);
    transform: translateY(-3px);
}

.back-to-top .arrow {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Regolazione per mobile per non sovrapporsi alle azioni rapide */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
/* Sezioni */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--color-sabbia); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-serif); font-size: 2.2rem; }

/* Bio Grid */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.bio-image img { width: 100%; box-shadow: 15px 15px 0px var(--color-agave); border-radius: 2px; }

/* Menu Verticale */
.menu-vertical { max-width: 650px; margin: 0 auto; }
.menu-category { margin-bottom: 50px; }
.menu-category h3 { font-family: var(--font-serif); font-size: 1.7rem; color: var(--color-agave); text-align: center; margin-bottom: 25px; }
.item-header { display: flex; justify-content: space-between; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 5px; }
.menu-item { margin-bottom: 20px; }
.menu-item p { font-size: 0.85rem; font-style: italic; color: #666; margin-top: 5px; }

/* Booking Card */
.booking-card { max-width: 550px; margin: 0 auto; background: var(--color-sabbia); padding: 35px; border-radius: 4px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
input, select { width: 100%; padding: 12px; border: 1px solid #ddd; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.counter { display: flex; background: white; border: 1px solid #ddd; }
.counter button { flex: 1; background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 10px; }
.counter input { flex: 1; border: none; text-align: center; font-weight: 700; background: transparent; }
.btn-full { width: 100%; margin-top: 10px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.review-card { background: white; padding: 30px; border-radius: 2px; text-align: center; }
.review-text { font-family: var(--font-serif); font-style: italic; margin-bottom: 15px; }
.review-author { font-size: 0.7rem; letter-spacing: 1px; font-weight: 600; color: var(--color-agave); }
.stars {
    color: #FFD700; /* Colore Oro per le stelle */
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.more-reviews {
    text-align: center;
    margin-top: 40px;
}

.btn-link {
    color: var(--color-blu);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border-bottom: 1px solid var(--color-agave);
    padding-bottom: 5px;
}

.btn-link:hover {
    color: var(--color-agave);
    border-bottom-color: var(--color-blu);
}

/* Contatti & Mappa */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; background: var(--color-sabbia); overflow: hidden; border-radius: 4px; }
.contact-info { padding: 40px; }
.map-container { height: 350px; }

/* Popup */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 5000; padding: 20px; }
.popup-content { background: white; padding: 40px; text-align: center; max-width: 400px; }
#close-popup { display: block; margin: 20px auto 0; background: none; border: none; text-decoration: underline; cursor: pointer; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .bio-grid, .reviews-grid, .contact-wrapper, .form-row { grid-template-columns: 1fr; }
    .mobile-actions { display: flex; position: fixed; bottom: 0; width: 100%; z-index: 2000; background: white; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
    .action-btn { flex: 1; text-align: center; padding: 15px; text-decoration: none; color: var(--color-blu); font-size: 0.75rem; font-weight: 600; }
    .action-btn.primary { background: var(--color-blu); color: white; }
    body { padding-bottom: 60px; }
    .section-padding { padding: 50px 0; }
}

.footer-minimal { background: var(--color-blu); color: white; padding: 30px 0; text-align: center; font-size: 0.7rem; }
