/* 1. DEFINIZIONE VARIABILI GLOBALI */
:root {
    --babajola-red: #a92e3a;
    --dark-grey: #4a4a4a;
    --light-grey: #f4f4f4;
    --black: #1a1a1a;
    --white: #ffffff;
}

/* 2. STILI BASE */
body {
    font-family: sans-serif;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* 3. GRIGLIA E PASSAPORTO */
.radar-container {
    background: #fff;
    padding: 15px;
    margin: 15px;
    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);
}

.radar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

/* 4. LE GEMME (I TIMBRI) */
.gem {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    padding: 0;
}

.gem.active {
    background: var(--white);
    border-color: var(--babajola-red);
    transform: scale(1.05);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gem img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    opacity: 0.2;
    filter: grayscale(1);
    -webkit-user-drag: none;
    border-radius: 50%;
}

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

.stamp-overlay {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0;
    transform: scale(3);
    color: var(--babajola-red);
    z-index: 2;
    font-weight: 900;
    pointer-events: none;
}

.gem.active .stamp-overlay {
    opacity: 1;
    transform: scale(1) rotate(-15deg);
    transition: 0.5s;
}

/* 5. ACCORDION (LE TAPPE) */
.accordion-item {
    background: #fff;
    margin: 10px 15px;
    border-radius: 0px 0px 0px 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.accordion-header {
    font-style: normal;
    padding: 18px 15px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F6F6F6;
    transition: background 0.3s ease;
    cursor: pointer;
}

.accordion-header span:first-child {
    font-size: 0.95rem;
    color: var(--black) !important;
    letter-spacing: 0.3px;
}

.accordion-header .material-symbols-outlined {
    color: var(--babajola-red);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .material-symbols-outlined {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 15px 15px 15px;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* 6. BOTTONI AZIONE */
.btn-group-tour {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.btn-action-tour {
    aspect-ratio: 1;
    padding: 5px;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

.btn-action-tour .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--babajola-red);
}

.btn-label {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
    text-align: center;
}

/* 7. MODALI E AIUTO */
#help-overlay,
#map-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.help-card,
.modal-box {
    background: white;
    padding: 25px;
    border-radius: 0px 20px 0px 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.help-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

