/* =====================================================
   SERRANA 360 — DESIGN TOKENS
===================================================== */
:root {
    --primary-color: #FFC700;
    --primary-dark: #E0B200;
    --ink: #14161A;
    --text-color: #333;
    --muted: #6B7280;
    --line: #ECECEC;
    --card-bg: #fff;
    --page-bg: #fff;
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --light-bg: #f8f8f8;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-sm: 0 2px 10px rgba(20, 22, 26, 0.06);
    --shadow-md: 0 10px 30px rgba(20, 22, 26, 0.10);
    --font-display: 'Sora', 'Arial', sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

/* Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--page-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
}

/*------ 01  NAVBAR --------- */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-center {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-center a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    position: relative;
}

.nav-center a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: #ffc700;
    position: absolute;
    bottom: -6px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-center a:hover::after {
    width: 100%;
}

.btn-anuncie {
    padding: 5px 22px;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-anuncie:hover {
    background: linear-gradient(135deg, #f5c400, #ffde59);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.4);
}

.menu-toggle {
    display: none;
    margin-left: 14px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    padding: 30px;
    transition: right 0.3s ease;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 40px;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.mobile-anuncie a {
    background-color: var(--primary-color);
}

.close-menu {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.mobile-anuncie {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* =====================================================
   HERO CURTO
===================================================== */
.hero-intro {
    padding: 40px 0 28px;
    text-align: left;
    max-width: 640px;
}

.hero-intro .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--light-bg);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.hero-intro h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-intro p {
    color: var(--muted);
    font-size: 16px;
}

/* =====================================================
   CARROSSEL DE DESTAQUES (formato card)
===================================================== */
.featured-carousel {
    margin-top: 8px;
    position: relative;
}

.carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.carousel-head h2 {
    font-size: 22px;
    font-weight: 800;
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    background: #fff;
    border-color: var(--line);
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Card de notícia (estilo "magazine") */
.news-card {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.06);
}

.news-card .category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
}

.save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.save-btn:hover {
    background: var(--primary-color);
}

.news-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.35;
    color: var(--ink);
    text-decoration: none;
}

.news-card-title:hover {
    color: var(--primary-dark);
}

.news-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--muted);
    margin-top: auto;
}

.news-card-meta i {
    margin-right: 4px;
}

.category-tag {
    background-color: var(--primary-color);
    color: var(--ink);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 30px;
    display: inline-block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.carousel-dots button.active {
    background: var(--primary-color);
    width: 22px;
    border-radius: 6px;
}

.empty-state {
    color: var(--muted);
    padding: 30px 0;
}

/* =====================================================
   LAYOUT PRINCIPAL (Explorar + Agenda)
===================================================== */
.main-layout {
    display: flex;
    gap: 30px;
    margin-top: 48px;
}

.main-column {
    flex: 3;
}

.sidebar-column {
    flex: 1;
}

/* Agenda */
.agenda-section h2 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 20px;
}

.agenda-list {
    list-style: none;
}

.agenda-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.agenda-item p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.date-info {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.agenda-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    margin-top: 4px;
}

.agenda-link:hover {
    color: var(--primary-dark);
}

/* Explorar Serrana */
.explore-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.explore-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.card-info {
    padding: 12px 14px;
}

.card-info h4 {
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.card-info span {
    font-size: 0.8rem;
    color: var(--muted);
}

.explore-section h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.explore-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
}

/* =====================================================
   MÍDIA KIT / SOBRE
===================================================== */
.about-serrana {
    background-color: #f9f9f9;
    padding: 70px 20px;
    margin-top: 60px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-container h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-container p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.btn-midia-kit {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 36px;
    background-color: var(--primary-color);
    color: #111;
    font-weight: 700;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.35);
}

.btn-midia-kit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(245, 196, 0, 0.45);
}

/* =====================================================
   FOOTER
===================================================== */
.footer-serrana {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    padding: 40px 20px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo img {
    max-width: 160px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-copy p {
    font-size: 13px;
    color: #888;
    margin: 4px 0;
}

.footer-dev a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.footer-dev a:hover {
    color: var(--primary-dark);
}

/* =====================================================
   REDES SOCIAIS
===================================================== */
.social-section {
    margin-top: 32px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 12px;
}

.social-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn i {
    font-size: 18px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-btn.youtube { background-color: #ff0000; }
.social-btn.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social-btn.tiktok { background-color: #000000; }
.social-btn.facebook { background-color: #1877f2; }

/* =====================================================
   MATÉRIA MAIS RECENTE
===================================================== */
.featured-article {
    background-color: #ffffff;
    padding: 60px 0 0;
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 32px;
}

.featured-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.featured-image, .featured-text {
    flex: 1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.featured-text .category-tag {
    margin-bottom: 14px;
}

.featured-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.featured-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 28px;
}

.btn-featured {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: #111;
    font-weight: 700;
    font-size: 15px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(245, 196, 0, 0.35);
}

.btn-featured:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(245, 196, 0, 0.45);
}

/* =====================================================
   FORMULÁRIO DA COMUNIDADE
===================================================== */
.community-section {
    margin: 60px 0;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.community-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.community-container h2 {
    font-size: 28px;
    margin-bottom: 16px;
    text-align: center;
}

.community-text {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.community-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.community-form label {
    font-weight: 600;
    font-size: 14px;
}

.community-form textarea,
.community-form select {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    resize: vertical;
    font-family: var(--font-body);
}

.community-form textarea:focus,
.community-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.community-form button {
    margin-top: 10px;
    padding: 14px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.community-form button:hover {
    background-color: var(--primary-dark);
}

.community-note {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
    text-align: center;
}

/* =====================================================
   ÚLTIMAS NOTÍCIAS (grade)
===================================================== */
.news-section {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.news-header h2 {
    font-size: 26px;
    margin-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-grid-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: #000;
    text-decoration: none;
    height: 260px;
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.35) 55%,
        transparent
    );
}

.news-overlay .category-tag {
    margin-bottom: 10px;
}

.news-overlay h3 {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-btn {
    align-self: flex-start;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: #000;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.news-grid-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.news-grid-card:hover img {
    transform: scale(1.1);
}

.news-grid-card:hover .news-btn {
    background-color: #ffdd55;
}

.news-footer {
    margin-top: 30px;
    text-align: center;
}

.btn-all-news {
    display: inline-block;
    padding: 14px 26px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-all-news:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Voltar ao topo */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: #000;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#backToTop:hover {
    transform: translateY(-4px);
}

/* =====================================================
   RESPONSIVIDADE
===================================================== */

/* ATÉ 992px (Tablet) */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar-column {
        order: 2;
        margin-top: 30px;
    }

    .news-card {
        width: calc(33.333% - 14px);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-title {
        font-size: 26px;
        text-align: center;
    }

    .featured-content {
        flex-direction: column;
    }

    .featured-image img {
        max-height: 300px;
    }

    .featured-text h3 {
        font-size: 22px;
    }
}

/* ATÉ 768px (Celular grande) */
@media (max-width: 768px) {
    .logo img {
        height: 34px;
    }

    .hero-intro {
        padding: 28px 0 20px;
    }

    .news-card {
        width: calc(58% - 10px);
    }

    .about-container h2 {
        font-size: 26px;
    }

    .about-container p {
        font-size: 15px;
    }

    .explore-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .explore-card {
        border-radius: 8px;
    }

    .explore-card img {
        width: 100%;
        height: 50px;
        object-fit: cover;
    }

    .card-info {
        padding: 6px 7px 10px;
    }

    .card-info h4 {
        font-size: 9px;
        margin: 0 0 4px;
    }

    .card-info span {
        display: none;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .nav-center {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .btn-anuncie {
        display: none;
    }

    .news-section {
        margin: 40px auto 0;
        padding: 0 10px;
    }
}

/* ATÉ 600px (Celular pequeno) */
@media (max-width: 600px) {
    .news-card {
        width: 82%;
    }

    .footer-logo img {
        max-width: 130px;
    }

    .footer-links {
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-grid-card {
        height: 200px;
    }

    .news-overlay h3 {
        font-size: 14px;
    }

    .community-container {
        padding: 26px 20px;
    }
}