@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* 1. RESET E BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #4a4a4a;
    line-height: 1.6;
    overflow-x: hidden;
}

.baba-header,
.baba-nav,
.baba-container {
    max-width: 480px;
    margin: 0 auto;
}

/* 2. HEADER */
.baba-header {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.logo {
    max-height: 80px;
    width: auto;
}

/* 3. MENU NAVIGAZIONE - FIX PUNTINI IPHONE */
.baba-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #8da399;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.main-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none !important;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Forza la sparizione dei pallini su Safari/Chrome iOS */
.main-menu>li,
.submenu li,
.lang-item {
    list-style: none !important;
    list-style-type: none !important;
    display: block !important;
    /* Uccide il bullet-point alla radice */
    position: relative;
    -webkit-appearance: none;
}

.main-menu>li {
    padding: 12px 0;
}

/* Rimuove i marker specifici dei browser moderni */
.main-menu li::marker,
.submenu li::marker,
.lang-item::marker {
    content: none !important;
    display: none !important;
}

.baba-nav a {
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px;
}

/* 4. SUBMENU (Gestito da classe .is-open) */
.submenu {
    display: none !important;
    /* Nascondi di default */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7a8e84;
    min-width: 150px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    z-index: 2000;
}

/* Mostra il sottomenu quando il JS aggiunge la classe al LI padre */
.has-submenu.is-open .submenu {
    display: block !important;
}

.submenu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li a {
    border: none !important;
    /* Corretto errore !important! */
    padding: 15px 10px !important;
    display: block;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
}

/* 5. SEZIONI CONTENUTO */
.baba-container {
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 50px;
}

.baba-section {
    padding: 45px 25px;
    margin: 20px 15px;
    background-color: #fdfaf5;
    border: 1px solid #e2dcd3;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.section-img {
    width: calc(100% + 50px) !important;
    margin: -45px -25px 25px -25px !important;
    height: 160px;
    object-fit: cover;
    display: block;
    filter: sepia(0.2) contrast(1.1);
    border-bottom: 1px solid #e2dcd3;
}

.baba-section h2 {
    display: inline-block;
    background-color: #8da399;
    color: #ffffff;
    padding: 10px 30px 10px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0 50px 50px 0;
    margin-left: -26px;
    margin-bottom: 25px;
}

/* BOX INTERNI */
.check-times,
.wifi-card,
.address-box,
.review-box {
    background-color: #ffffff;
    border: 1px solid #e2dcd3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* 6. PULSANTI E LINK */
a {
    color: #8da399;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

a:hover,
a:active {
    opacity: 0.6 !important;
}

.btn-maps,
.btn-contact,
.btn-review-final {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

.whatsapp {
    background-color: #6b8e7e;
    color: white !important;
}

.phone {
    background-color: #e2dcd3;
    color: #4a4a4a !important;
}

.btn-review-final {
    background-color: #5d6d65;
    color: white !important;
    margin: 25px auto;
    width: fit-content;
}

.welcome-text {
    font-style: italic;
    color: #7a7a7a;
    margin-bottom: 20px;
}

/* 7. CREDITI / FOOTER */
.baba-credits {
    padding: 20px 15px 80px 15px;
    background-color: transparent;
    display: flex;
    justify-content: center;
}

.credits-box {
    background-color: #f4f4f4;
    border: 1px solid #e0e0e0;
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.copyright {
    font-size: 0.7rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    margin-top: 10px !important;
    display: block;
}

/* 8. LINGUA */
.lang-selector {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.flag-icon {
    width: 28px;
    height: auto;
    border-radius: 3px;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    min-width: 140px;
    margin-top: 10px;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
}

/* 9. ACCORDION */
.accordion-item {
    border: 1px solid #8da399;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.accordion-header {
    width: 100%;
    padding: 15px;
    background-color: #f4f7f5;
    color: #8da399;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.accordion-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 10. COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px 20px 25px 20px;
    z-index: 10000;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(141, 163, 153, 0.2);
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cookie {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-cookie.accept {
    background-color: #8da399;
    color: white;
}

.btn-cookie.decline {
    background-color: #f4f7f5;
    color: #8da399;
    border: 1px solid #8da399;
}

@media (min-width: 400px) {
    .cookie-buttons {
        flex-direction: row;
    }
}


.cookie-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    left: auto;
    transform: none;
}

.cookie-close:hover {
    color: #8da399;
}
