/* monumenti.css
   Styles for the monument pages: make the collapsible menu look like a site button
   and style the vertical list so links are clearly readable on expand.
*/


/* Use the site's accent color variables from tooplate: primary accent is #99CC99 */
.monumenti-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    display: block;
}

.mon-toggle {
    background: #99CC99; /* site primary accent */
    color: #183233; /* dark text on light accent */
    border: 1px solid rgba(0,0,0,0.08);
    padding: 10px 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.mon-toggle:focus {
    outline: 3px solid rgba(0,102,162,0.25);
}


.monumenti-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px 0;
    display: block;
    background: rgba(255,255,255,0.98);
    color: #183233;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    /* show full list by default (no internal scrolling) */
    max-height: none;
    overflow: visible;
    min-width: 220px;
}

/* Honor the hidden attribute explicitly to keep the menu closed by default */
.monumenti-list[hidden] {
    display: none !important;
}

.monumenti-list .nav-item {
    padding: 0; /* compact vertical stack */
}

.monumenti-list .nav-link {
    color: #183233; /* dark text */
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}


.monumenti-list .nav-link:hover,
.monumenti-list .nav-link:focus {
    background: #f0fbf3; /* subtle greenish hover */
    text-decoration: none;
}

/* rotate arrow indicator on open */
.mon-toggle.open { transform: rotate(180deg); }

/* small screens: let the menu take full width */
@media (max-width: 768px) {
    .monumenti-nav { right: 8px; top: 12px; }
    .mon-toggle { padding: 8px 10px; }
    .monumenti-list { min-width: 180px;}
}
