/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #1a1a1a;
    --blue: #1A56DB;
    --blue-dark: #1340a3;
    --orange: #FF8C00;
    --orange-dark: #e07800;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.header__logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo-guia { color: var(--black); }
.logo-lp { color: var(--orange); }

.header__nav {
    display: flex;
    gap: 24px;
}
.header__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition);
    white-space: nowrap;
}
.header__nav a:hover { color: var(--blue); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.header__search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 0 12px;
    transition: box-shadow var(--transition);
}
.header__search:focus-within {
    box-shadow: 0 0 0 2px var(--blue);
}
.header__search input {
    border: none;
    background: transparent;
    padding: 8px 4px;
    font-size: 0.875rem;
    font-family: inherit;
    width: 180px;
    outline: none;
    color: var(--black);
}
.header__search input::placeholder { color: var(--gray-400); }
.header__search button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.875rem;
    padding: 4px;
}

.header__toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--black);
    padding: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--orange);
    color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--blue {
    background: var(--blue);
    color: var(--white);
}
.btn--blue:hover { background: var(--blue-dark); }
.btn--outline {
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--blue);
}
.btn--outline:hover {
    background: var(--blue);
    color: var(--white);
}

/* ===== SECTION HEADERS ===== */
.section {
    margin-bottom: 40px;
}
.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.section__title {
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section__title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--orange);
    border-radius: 2px;
}
.section__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section__link:hover { color: var(--orange-dark); }

/* ===== TAG/BADGE ===== */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
}
.tag--orange { background: var(--orange); }
.tag--blue { background: var(--blue); }

/* ===== FEATURED / EM DESTAQUE ===== */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    margin-bottom: 40px;
}
.featured__main {
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
}
.featured__main img,
.featured__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured__side {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 200px;
}
.featured__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white);
}
.featured__main .featured__overlay { padding: 32px; }
.featured__overlay .tag { margin-bottom: 10px; }
.featured__overlay h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.featured__side .featured__overlay h2 {
    font-size: 1.1rem;
}
.featured__overlay p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}
.featured__meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}
.featured__meta i { font-size: 0.75rem; }

/* ===== CARD GENÉRICO ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.card__body {
    padding: 16px;
}
.card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== COBERTURAS (horizontal scroll) ===== */
.cobertura-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.cobertura-scroll::-webkit-scrollbar { height: 4px; }
.cobertura-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}
.cobertura-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
}
.cobertura-card__img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
}
.cobertura-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.3;
}
.cobertura-card__meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
}
.cobertura-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    margin-left: 4px;
}
.cobertura-card__link:hover { color: var(--orange-dark); }

/* ===== EVENTOS ===== */
.evento-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.evento-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.evento-date {
    text-align: center;
    flex-shrink: 0;
    min-width: 48px;
}
.evento-date__month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    background: var(--orange);
    border-radius: 4px 4px 0 0;
    padding: 2px 8px;
}
.evento-date__day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 4px 8px;
    line-height: 1.2;
}
.evento-info__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.evento-info__detail {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* ===== LUGARES ===== */
.lugar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.lugar-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.lugar-card:hover { box-shadow: var(--shadow-md); }
.lugar-card__img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}
.lugar-card__body { padding: 12px; }
.lugar-card__name {
    font-size: 0.9375rem;
    font-weight: 600;
}
.lugar-card__info {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}
.lugar-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange);
    margin-top: 4px;
}
.lugar-card__rating i { font-size: 0.7rem; }

/* ===== SINGLE PAGE ===== */
.article { max-width: 1200px; margin: 0 auto; }
.article__header { margin-bottom: 24px; }
.article__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}
.article__meta {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    gap: 16px;
}
.article__img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.article__content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}
.article__content p { margin-bottom: 16px; }
.article__content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 32px 0 12px;
}

/* ===== SEARCH PAGE ===== */
.search-header {
    margin-bottom: 24px;
}
.search-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.search-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}
.search-form--large {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.search-form--large input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}
.search-form--large input:focus { border-color: var(--blue); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}
.pagination a:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.pagination .active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer__brand p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 12px;
    line-height: 1.5;
}
.footer__col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    margin-bottom: 12px;
}
.footer__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer__links a {
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--blue); }
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1rem;
    transition: all var(--transition);
}
.footer__social a:hover {
    background: var(--blue);
    color: var(--white);
}
.footer__bottom {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ===== RELATED CONTENT ===== */
.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

/* ===== MAIN SPACING ===== */
.main { padding: 32px 0 0; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .header__search input { width: 140px; }
}

@media (max-width: 768px) {
    .header__nav,
    .header__search { display: none; }
    .header__toggle { display: block; }
    .header__actions { margin-left: auto; }

    .header__nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }

    .featured {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .featured__main {
        grid-row: auto;
        min-height: 280px;
    }
    .featured__side { min-height: 200px; }
    .featured__overlay h2 { font-size: 1.2rem; }

    .news-grid { grid-template-columns: 1fr; }

    .evento-list { grid-template-columns: 1fr 1fr; }

    .lugar-grid { grid-template-columns: 1fr 1fr; }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .article__title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .header__inner { gap: 12px; }

    .featured__main { min-height: 220px; }
    .featured__overlay { padding: 16px; }
    .featured__overlay h2 { font-size: 1.05rem; }

    .cobertura-card { flex: 0 0 150px; }
    .cobertura-card__img { width: 150px; height: 100px; }

    .evento-list { grid-template-columns: 1fr; }

    .lugar-grid { grid-template-columns: 1fr; }

    .news-list-item__img { width: 90px; height: 64px; }

    .footer__grid { grid-template-columns: 1fr; }
}

/* ===== PAGE LIST LAYOUT ===== */
.page-header {
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
}

/* ===== GALERIA (coberturas) ===== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.galeria-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity var(--transition);
}
.galeria-img:hover { opacity: 0.9; }

/* ===== LISTA NOTÍCIAS COM MINIATURA ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-list-item {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.news-list-item__img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.news-list-item__body {
    flex: 1;
    min-width: 0;
}
.news-list-item__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-item__meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== BANNERS ===== */
.banners {
    margin-bottom: 24px;
}
.banners--topo {
    margin-bottom: 32px;
}
.banners--meio {
    margin: 32px 0;
}
.banners--lateral {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.banner-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    transition: opacity var(--transition);
}
.banner-item:hover { opacity: 0.92; }
.banner-item__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox__img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition);
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity var(--transition), background var(--transition);
}
.lightbox__nav:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* ===== GDRIVE GALLERY ===== */
.gdrive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.gdrive-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
}
.gdrive-thumb:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .gdrive-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lightbox__nav { width: 36px; height: 36px; font-size: 1.5rem; }
}

/* ===== ANUNCIE PAGE ===== */
.anuncie-hero {
    text-align: center;
    padding: 48px 0;
}
.anuncie-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.anuncie-hero p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 24px;
}
