/* Importazione Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;700&display=swap');

:root {
    --babajola-red: #a92e3a;
    --dark-grey: #4a4a4a;
    --light-grey: #f4f4f4;
    --black: #1a1a1a;
    --white: #ffffff;
    --max-width: 450px;

}

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

html,
 body {
    margin: 0;
    padding: 0;
    background-color: #cacaca; 
    min-height: 100%;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
    display: block; 
}

.app-container {
    width: 100%;

    max-width: var(--max-width); 
    margin: 0 auto; 
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: none; 
}

h1,
h2,
h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--babajola-red);
    margin-bottom: 1rem;
}

p {
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--black);
}

.secondary-text,
blockquote,
.caption {
    font-family: 'Geneva', Tahoma, sans-serif;
    font-style: italic;
    color: var(--dark-grey);
    font-size: 0.9rem;
}


header {
    background-color: var(--babajola-red);
    padding: 1.5rem;
    text-align: center;
    color: var(--white);
}

nav {
    background: var(--babajola-red);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-top: 1px solid var(--white);
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}


main {

    flex: 1;
    padding: 20px;
}

.main-content {
    flex: 1;
}

.btn {
    display: block;
    width: 100%;
    background-color: var(--babajola-red);
    color: var(--white);
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0px 10px 0px 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

.btn:active {
    background-color: var(--black);
}


.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--light-grey);
    border: 1px solid #ccc;
    margin-right: 8px;
    vertical-align: middle;
}

footer {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.btn-action-tour {
    aspect-ratio: 1 / 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 0px 5px 0px 5px;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-action-tour .material-symbols-outlined {
    font-size: 1.4rem;
    color: var(--babajola-red);
    margin-bottom: 2px;
}

.btn-action-tour span.btn-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
}

.btn-stamp .material-symbols-outlined {
    color: #999 !important;
    font-size: 1.8rem;
}


.btn-stamp.completed .material-symbols-outlined {
    color: white !important;
}


.btn-stamp.completed {
    background: var(--babajola-red);
    color: white !important;
    border: none;
}

.btn-stamp.completed .material-symbols-outlined,
.btn-stamp.completed .btn-label {
    color: white !important;
}

.gem img {
    filter: grayscale(1);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.gem.active img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}


.accordion-header span:first-child {
    font-size: 1rem;
    color: var(--babajola-red);
}

.mission strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 4px;
    text-transform: uppercase;
    line-height: 1.2;
}


img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* --- AGGIUNTE PER GESTIONE STORIA E SCROLL --- */

#modal-text {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    text-align: left;
    -webkit-overflow-scrolling: touch;
}


#modal-text::-webkit-scrollbar {
    width: 4px;
}

#modal-text::-webkit-scrollbar-thumb {
    background: var(--babajola-red);
    border-radius: 10px;
}

#modal-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-family: 'Roboto Condensed', sans-serif;
}


#modal-text strong {
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
}

.highlight {
    color: var(--babajola-red) !important;
    font-style: italic;
    font-weight: 700;
    display: inline;
}

.home-footer {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.75rem;
    opacity: 0.5;
    line-height: 1.4;
    color: white;
}

#position-slider {
    -webkit-appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

#position-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--babajola-red);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.baba-promo-container {
    margin-top: 30px;
    padding: 20px;
    border-top: 2px dashed #ddd;
    width: 100%;
}

.promo-card {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 0px 20px 0px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    text-align: center;
}

.promo-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.promo-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.btn-promo {
    margin-bottom: 0;
}

.btn-dark {
    background-color: var(--black) !important;
}

.promo-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.stamp-overlay {
    display: none !important;
}

.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-current {
    cursor: pointer;
    display: flex;
    align-items: center;
}

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

.lang-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px;
    z-index: 5000;
}

.lang-dropdown.show {
    display: flex !important;
    flex-direction: column;
}

.lang-option {
    padding: 8px;
    cursor: pointer;
}

.lang-option:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

.info-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .material-symbols-outlined {
    color: var(--babajola-red);
    font-size: 1.4rem;
    line-height: 1;
}


.baba-footer {
    margin-top: auto;
        flex-shrink: 0;
       background-color: #a92e3a;
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
}

.baba-footer a {
    color: white;
    text-decoration: underline;
}

.baba-footer p {
    color: white;
}

/* Stile Banner Cookie */
#cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    background: #222;
    color: #ffffff !important;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }

    to {
        bottom: 10px;
        opacity: 1;
    }
}

#cookie-banner p {
    color: white !important;
}

