﻿
/* =========================
   STILI PAGINA
========================= */

.page-hero {
    padding: 36px 20px;
    border-radius: 0 0 12px 12px;
    background: #f5f5f5;
    text-align: center;
}

.page-hero__title {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    color: #111;
}


.page-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

    .page-content #map-canvas {
        max-width: 100%;
    }
/* =========================
   TABLET
========================= */

@media (min-width: 768px) {


    .page-content-hero {
        padding: 48px 36px;
    }

    .page-content-hero__title {
        font-size: 2.6em;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1200px) {

    .page-content-hero {
        padding: 60px 48px;
    }

    .page-content-hero__title {
        font-size: 3.2em;
    }
}
/* =========================
   PAGE GALLERY BASE
========================= */

.page-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.page-gallery__item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

    .page-gallery__item img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        transition: transform 0.25s ease;
    }

    .page-gallery__item:hover img {
        transform: scale(1.04);
    }

/* =========================
   TABLET
========================= */

@media (min-width: 768px) {

    .page-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1101px) {

    .page-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* =========================
   INSIGHT LAYOUT BASE
========================= */

.insight-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.insight-main {
    min-width: 0;
}

.insight-sidebar {
    width: 100%;
}


.insight-mobile-toggle__btn {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    cursor: pointer;
}
    .insight-mobile-toggle__btn i {
        transition: transform 0.25s ease;
    }
    .insight-mobile-toggle__btn[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
.insight-sidebar {
    display: none;
}

    .insight-sidebar.is-open {
        display: block;
    }
.insight-filter-box {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
}

    .insight-filter-box h3 {
        margin: 0 0 12px;
        font-size: 1.1rem;
    }

.insight-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

    .insight-filter:last-child {
        border-bottom: 0;
    }

    .insight-filter:hover,
    .insight-filter.is-active {
        color: #000;
        font-weight: 600;
    }
.insight-filter__count {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #666;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 400;
}

.insight-filter.is-active .insight-filter__count {
    background: #2f2f2f;
    color: #fff;
}

/* =========================
   INSIGHT LIST BASE
========================= */

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.insight-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
}

.insight-card__image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

    .insight-card__image img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

.insight-card__category {
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
}

.insight-card__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

    .insight-card__title a {
        color: inherit;
        text-decoration: none;
    }

.insight-card__excerpt {
    margin-bottom: 12px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.insight-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #777;
    font-size: 0.85rem;
}

.insight-card__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* =========================
   TABLET
========================= */

@media (min-width: 768px) {

    .insight-card {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1101px) {

    .insight-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .insight-main {
        flex: 1;
        order: 1;
    }

    .insight-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: var(--header-height-real);
        order: 2;
        display: block !important;
    }
    .insight-mobile-toggle {
        display: none;
    }

}
