/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/
/* fix header offset */
:root {
  --header-offset: 120px; /* adjust value */
}
/* fix service columsn on homepage */
@media (max-width:1024px) {
    .mobiles-cols_1.mobiles-cols_2 {
        width: auto !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1.3rem !important;
    }
    .mobiles-cols_1.mobiles-cols_2 > .wpb_column,
    .mobiles-cols_2 > .wpb_column {
        width: 48% !important;
    }
}
@media (max-width: 480px) {
   .mobiles-cols_1.mobiles-cols_2 > .wpb_column,
    .mobiles-cols_2 > .wpb_column {
        width: 100% !important;
    }
}
/* menu */
.menu-services > a {
    color: #5bbd2a!important;
}
.menu-promotions > a {
    color: #ff5e05!important;
}
/* brand on sliders */
.layout_345 .usg_post_taxonomy_1 {
    text-transform: uppercase;
    font-size: 80%;
    margin-bottom: 15px;
}
/* Bramd Grid container */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px); /* each column = 100px */
    justify-content: center;   /* center the whole grid */
    gap: 20px 25px;            /* vertical and horizontal spacing */
    list-style: none;          /* remove bullets */
    padding: 0;                /* remove ul padding */
    margin: 0;                 /* remove ul margin */
}

/* Each brand item */
.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;             /* box width */
    height: 70px;             /* box height for uniformity */
    transition: transform 0.2s ease;
}

/* Logo image */
.brand-item img {
    max-width: 100%;
    max-height: 60px;         /* logos fit nicely inside the box */
    object-fit: contain;
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Hover effect */
.brand-item:hover img {
    opacity: 1;
    transform: scale(1.15);
}

/* Pharmacy in service */
.farmacias-list {
    display: grid;
    gap: 15px;
}
/* Desktop → always 3 per row, wider cards */
@media (min-width: 1024px) {
    .farmacias-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px; /* increase container width */
        margin: 0 auto;
    }
}
/* Tablet */
@media (min-width: 600px) and (max-width: 1023px) {
    .farmacias-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Mobile */
@media (max-width: 599px) {
    .farmacias-list {
        grid-template-columns: 1fr;
        gap: 5px 10px;
    }
    .farmacia-item .badge {
        top: auto!important;
        bottom:10px;
    }
}
.farmacia-servico-updated {
    margin-bottom: 25px;
    text-align: center;
}
.farmacia-item {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.farmacia-item:hover {
    transform: translateY(-3px);
}
.farmacia-item .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: bold;
}
.farmacias-list .farmacia-item:first-of-type {
    grid-column: 1 / -1;
    padding: 20px;
    font-size: 1.1em;
}
.farmacia-item.today {
    border: 2px solid #28a745; /* destaque do dia atual */
    background-color: var(--color-chrome-toolbar);
    text-align: center;
}
.farmacia-item.v-botelho {
    border-left: 5px solid var(--color-header-middle-text);
    padding-left: 10px;
    background: #acde93;
    color: var(--color-header-middle-text);
}
.farmacia-item .date {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
}
.farmacia-item dd {
    font-size: 1em;
    margin: 0;
    padding: 0;
}
.farmacia-item.v-botelho .name {
    font-weight: bold;
}
.farmacia-item.v-botelho .name {
    font-weight: bold;
}
.farmacia-item.v-botelho a:hover {
    color: var(--color-header-middle-text);
    text-decoration: underline;
}
.farmacias-servico-last-updated {
    grid-column: 1 / -1; /* span full grid width */
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(auto-fit, 80px);
        gap: 15px 20px;
    }
    .brand-item { width: 80px; height: 60px; }
    .brand-item img { max-height: 50px; }
}

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: repeat(auto-fit, 60px);
        gap: 12px 10px;
    }
    .brand-item { width: 60px; height: 50px; }
    .brand-item img { max-height: 40px; }
}
