/* css/style.css */

/* --- Colori e Font --- */
:root {
    --brand-green: #008e4f; /* Un verde scuro ed elegante */
    --brand-light-grey: #f5f5f5;
    --brand-grey: #929292;
    --brand-slate-grey: #637285;
    --brand-slate-dark-grey: #293646;
    --brand-dark-grey: #4a4a4a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol";
}

/* --- Header --- */
.top-header {
    background-color: var(--brand-slate-dark-grey);
    padding: 0.5rem 1.5rem;
}

.top-header .icon-text a {
    color: var(--brand-light-grey);
    text-decoration: none;
}

.top-header .icon-text span {
    color: var(--brand-light-grey);
}

.top-header span {
    color: var(--brand-light-grey);
}

.top-header .icon-text .icon {
    color: var(--brand-light-grey);
}

.top-header a:hover {
    opacity: 0.8;
}

/* --- Navbar --- */
.navbar {
    border-bottom: 1px solid var(--brand-light-grey);
}

.navbar-item img {
    max-height: 3.5rem; /* Altezza del logo */
}

.navbar-item.has-dropdown:hover .navbar-link {
    background-color: var(--brand-light-grey);
}

.navbar .button.is-primary {
    background-color: var(--brand-green);
    color: var(--brand-light-grey);
}

.navbar .button.is-primary:hover {
    background-color: white;
    outline: 1px solid var(--brand-green);
    outline-offset: -1px;
    color: var(--brand-green);
}

/* --- Hero --- */
.hero.is-large {
    background-image: url("https://placehold.co/1920x1080/E8E8E8/4A4A4A?text=Immagine+Associazione");
    background-position: center center;
    background-size: cover;
}

.hero-body .title,
.hero-body .subtitle {
    color: white;
    text-shadow: 2px 2px 30px rgba(0, 0, 0);
}

.hero-body .title span,
.hero-body .subtitle span {
    padding: 0.15em 0.5em;
    background-color: var(--brand-green);
}

.hero-body .title span {
    text-transform: uppercase;
}

/* --- Sezioni --- */
.section {
    padding: 3rem 1.5rem;
}

.section-bg-gray {
    background-color: var(--brand-light-grey);
}

.content h3 {
    margin-bottom: 1.5rem;
    color: var(--brand-dark-grey);
}

.feature-icon .icon {
    font-size: 3rem; /* Dimensione delle icone nelle sezioni */
    color: var(--brand-green);
}

.box {
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1),
        0 0 0 1px rgba(10, 10, 10, 0.02);
    border-radius: 6px;
}

#chi-siamo .button.is-primary {
    background-color: var(--brand-green);
    color: var(--brand-light-grey);
}

#chi-siamo .button.is-primary:hover {
    background-color: white;
    outline: 1px solid var(--brand-green);
    outline-offset: -1px;
    color: var(--brand-green);
}

/* --- Masonry and Image Modal --- */

.masonry {
    column-count: 2;
    column-gap: 1rem;
}

@media screen and (max-width: 1024px) {
    .masonry {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {
    .masonry {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-height: 90vh;
    width: auto;
    height: auto;
}

/* --- Footer --- */
.footer {
    background-color: var(--brand-slate-dark-grey);
    color: var(--brand-light-grey);
    padding: 3rem 1.5rem 3rem;
}

.footer .title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.footer a {
    color: var(--brand-light-grey);
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-grey);
    font-size: 0.875rem;
}
