/* ============================================================
   HOME REDESIGN — Câmara Municipal de Morro do Pilar
   Editorial cívico · paleta institucional preservada
   Escopo: .home-v2 (não impacta pref.css / style.css)
   ============================================================ */

.home-v2 {
    --c-navy:        #255572;
    --c-navy-deep:   #112957;
    --c-navy-ink:    #0c1f3a;
    --c-gold:        #f7d85b;
    --c-gold-soft:   #eccc4b;
    --c-gold-deep:   #b88a0c;
    --c-paper:       #faf7ef;
    --c-paper-warm:  #f1ece0;
    --c-rule:        #d9d3c2;
    --c-ink:         #181818;
    --c-ink-muted:   #5a5a5a;
    --c-white:       #ffffff;

    --f-display: "Fraunces", "Playfair Display", Georgia, serif;
    --f-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    font-family: var(--f-body);
    color: var(--c-ink);
    background: var(--c-paper);
}

/* defesa contra herança do pref.css ----------------------------- */
.home-v2 h1, .home-v2 h2, .home-v2 h3, .home-v2 h4, .home-v2 h5 {
    font-family: var(--f-display);
    color: var(--c-navy-deep);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}
.home-v2 p { margin: 0; }
.home-v2 a { color: inherit; text-decoration: none; }
.home-v2 ul { margin: 0; padding: 0; list-style: none; }
.home-v2 img { display: block; max-width: 100%; }

/* ============================================================
   1. SEÇÃO DE NOTÍCIAS — Magazine grid editorial
   ============================================================ */
.hv2-news {
    padding: 80px 0 64px;
    background:
        radial-gradient(ellipse at top right, rgba(247,216,91,0.08), transparent 55%),
        linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-warm) 100%);
    position: relative;
    overflow: hidden;
}
.hv2-news::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--c-navy) 20%, var(--c-gold) 50%, var(--c-navy) 80%, transparent);
    opacity: 0.5;
}

.hv2-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.hv2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--c-navy-deep);
    gap: 20px;
    flex-wrap: wrap;
}
.hv2-eyebrow {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.hv2-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--c-gold);
}
.hv2-section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600;
    font-style: italic;
    color: var(--c-navy-deep);
}
.hv2-section-meta {
    font-family: var(--f-body);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-navy);
    font-weight: 600;
}

/* Magazine grid -------------------------------------------------- */
.hv2-magazine {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 36px;
}

.hv2-feature {
    position: relative;
    background: var(--c-navy-deep);
    color: var(--c-white);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hv2-feature:hover { transform: translateY(-4px); }
.hv2-feature__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hv2-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) brightness(0.85);
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}
.hv2-feature:hover .hv2-feature__media img {
    transform: scale(1.04);
    filter: saturate(1.05) brightness(0.9);
}
.hv2-feature__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(12,31,58,0.05) 0%,
        rgba(12,31,58,0.55) 45%,
        rgba(12,31,58,0.92) 100%);
}

.hv2-feature__inner {
    position: relative;
    z-index: 2;
    padding: 48px 44px 44px;
}
.hv2-feature__tag {
    display: inline-block;
    background: var(--c-gold);
    color: var(--c-navy-deep);
    font-family: var(--f-body);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 8px 14px;
    margin-bottom: 22px;
}
.hv2-feature__title,
.home-v2 a.hv2-feature h3.hv2-feature__title {
    font-family: var(--f-display);
    font-size: clamp(2.4rem, 3.6vw, 3.8rem);
    font-weight: 500;
    color: #ffffff !important;
    line-height: 1.08;
    letter-spacing: -0.018em;
    margin-bottom: 22px;
    max-width: 32ch;
}
.hv2-feature__meta {
    font-family: var(--f-body);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 18px;
}
.hv2-feature__meta::after {
    content: "Leia a matéria →";
    margin-left: auto;
    font-weight: 700;
    color: var(--c-gold);
    letter-spacing: 0.18em;
}

/* Secondary stack ----------------------------------------------- */
.hv2-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hv2-stack__item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    background: var(--c-white);
    border: 1px solid var(--c-rule);
    padding: 16px;
    transition: border-color 0.25s ease, transform 0.25s ease;
    align-items: stretch;
}
.hv2-stack__item:hover {
    border-color: var(--c-navy);
    transform: translateX(3px);
}
.hv2-stack__media {
    position: relative;
    overflow: hidden;
    background: var(--c-navy-deep);
    min-height: 110px;
}
.hv2-stack__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hv2-stack__item:hover .hv2-stack__media img { transform: scale(1.06); }
.hv2-stack__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 4px 4px 0;
}
.hv2-stack__kicker {
    font-family: var(--f-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-gold-deep);
    margin-bottom: 6px;
}
.hv2-stack__title {
    font-family: var(--f-display);
    font-size: 1.75rem;
    line-height: 1.18;
    color: var(--c-navy-deep);
    font-weight: 500;
    letter-spacing: -0.014em;
}
.hv2-stack__readmore {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-navy);
    margin-top: 10px;
}

.hv2-news-empty {
    grid-column: 1 / -1;
    padding: 60px;
    text-align: center;
    background: var(--c-white);
    border: 1px dashed var(--c-rule);
    color: var(--c-ink-muted);
    font-family: var(--f-body);
}

/* ============================================================
   2. ACESSO RÁPIDO — Serviços ao Cidadão
   ============================================================ */
.hv2-services {
    padding: 80px 0;
    background: var(--c-white);
    position: relative;
}
.hv2-services::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 1px;
    height: 48px;
    background: var(--c-navy);
    transform: translateX(-50%);
    opacity: 0.4;
}

.hv2-services__head {
    text-align: center;
    margin-bottom: 56px;
}
.hv2-services__head .hv2-eyebrow {
    justify-content: center;
}
.hv2-services__head .hv2-eyebrow::before,
.hv2-services__head .hv2-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--c-gold);
}
.hv2-services__title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-style: italic;
    font-weight: 500;
    margin-top: 6px;
}
.hv2-services__sub {
    font-family: var(--f-body);
    color: var(--c-ink-muted);
    margin: 14px 0 0;
    font-size: 15px;
    width: 100%;
    line-height: 1.6;
    text-align: center;
}

.hv2-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.hv2-service {
    position: relative;
    background: var(--c-paper);
    border: 1px solid var(--c-rule);
    padding: 32px 28px 28px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}
.hv2-service::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--c-gold);
    transition: width 0.35s ease;
}
.hv2-service:hover {
    background: var(--c-navy-deep);
    color: var(--c-white);
    transform: translateY(-6px);
    border-color: var(--c-navy-deep);
    box-shadow: 0 18px 40px -20px rgba(17,41,87,0.55);
}
.hv2-service:hover::before { width: 100%; opacity: 0.08; background: var(--c-gold); }
.hv2-service__num {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--c-gold-deep);
    margin-bottom: 18px;
}
.hv2-service:hover .hv2-service__num { color: var(--c-gold); }
.hv2-service__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-white);
    border: 1px solid var(--c-rule);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.35s ease;
    color: var(--c-navy);
}
.hv2-service:hover .hv2-service__icon {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-navy-deep);
    transform: rotate(-6deg);
}
.hv2-service__icon i { font-size: 22px; }
.hv2-service__title {
    font-family: var(--f-display);
    font-size: 1.45rem;
    line-height: 1.15;
    color: var(--c-navy-deep);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}
.hv2-service:hover .hv2-service__title { color: var(--c-white); }
.hv2-service__desc {
    font-family: var(--f-body);
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-ink-muted);
    letter-spacing: 0.01em;
    flex-grow: 1;
    margin-bottom: 18px;
}
.hv2-service:hover .hv2-service__desc { color: rgba(255,255,255,0.78); }
.hv2-service__cta {
    font-family: var(--f-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-navy);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.25s ease;
}
.hv2-service:hover .hv2-service__cta { color: var(--c-gold); gap: 14px; }
.hv2-service__cta::after { content: "→"; font-size: 16px; }

/* dropdown serviço cidadão (preservado) */
.hv2-service-dropdown {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--c-rule);
    font-family: var(--f-body);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.hv2-service-dropdown a {
    display: block;
    color: var(--c-navy);
    padding: 4px 0;
    transition: color 0.2s ease;
}
.hv2-service:hover .hv2-service-dropdown {
    border-top-color: rgba(255,255,255,0.18);
}
.hv2-service:hover .hv2-service-dropdown a { color: var(--c-gold); }

/* ============================================================
   3. GALERIA — A Casa em imagens
   ============================================================ */
.hv2-gallery {
    padding: 0;
    background: var(--c-navy-deep);
    position: relative;
}
.hv2-gallery__strip {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: 4px;
}
.hv2-gallery__cell {
    position: relative;
    overflow: hidden;
    background: var(--c-navy);
}
.hv2-gallery__cell--1 { grid-column: span 3; grid-row: span 1; }
.hv2-gallery__cell--2 { grid-column: span 3; grid-row: span 1; }
.hv2-gallery__cell--3 { grid-column: span 6; grid-row: span 2; }
.hv2-gallery__cell--4 { grid-column: span 6; grid-row: span 1; }
.hv2-gallery__cell--5 { grid-column: span 3; grid-row: span 1; }
.hv2-gallery__cell--6 { grid-column: span 3; grid-row: span 1; }

.hv2-gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.78) saturate(0.92);
}
.hv2-gallery__cell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(17,41,87,0.4) 0%,
        rgba(17,41,87,0) 60%);
    pointer-events: none;
}
.hv2-gallery__cell:hover img {
    transform: scale(1.05);
    filter: brightness(0.95) saturate(1.05);
}

/* placeholder — célula sem imagem (estrutura preservada) */
.hv2-gallery__cell.is-empty {
    background:
        linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255,255,255,0.02) 0 14px,
            rgba(255,255,255,0)   14px 28px),
        linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hv2-gallery__cell.is-empty::before {
    content: "";
    width: 56px;
    height: 56px;
    border: 1px solid rgba(247,216,91,0.35);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(247,216,91,0.12) 0 40%, transparent 60%);
    transition: transform 0.5s ease, border-color 0.3s ease;
}
.hv2-gallery__cell.is-empty:hover::before {
    transform: scale(1.15);
    border-color: rgba(247,216,91,0.7);
}
.hv2-gallery__cell.is-empty::after {
    background: linear-gradient(135deg,
        rgba(17,41,87,0.15) 0%, rgba(17,41,87,0) 70%);
}
.hv2-gallery__label {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 2;
    color: var(--c-white);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 1.2rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
    letter-spacing: -0.01em;
}
.hv2-gallery__label small {
    display: block;
    font-family: var(--f-body);
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 4px;
    font-weight: 700;
}

.hv2-gallery__caption {
    text-align: center;
    padding: 50px 20px 40px;
    color: var(--c-white);
}
.hv2-gallery__caption .hv2-eyebrow {
    color: var(--c-gold);
    justify-content: center;
}
.hv2-gallery__caption .hv2-eyebrow::before {
    background: var(--c-gold);
}
.hv2-gallery__caption h2 {
    color: var(--c-white);
    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-top: 6px;
}

/* ============================================================
   4. VEREADORES — Composição da Casa
   ============================================================ */
.hv2-vereadores {
    padding: 96px 0 80px;
    background:
        linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-warm) 100%);
    position: relative;
}
.hv2-vereadores__intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--c-rule);
}
.hv2-vereadores__title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: var(--c-navy-deep);
}
.hv2-vereadores__title em {
    font-style: normal;
    font-weight: 300;
    color: var(--c-gold-deep);
    display: block;
    font-size: 0.55em;
    letter-spacing: 0.04em;
    margin-top: 8px;
}
.hv2-vereadores__lead {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-ink-muted);
    border-left: 3px solid var(--c-gold);
    padding-left: 22px;
}
.hv2-vereadores__lead strong {
    color: var(--c-navy-deep);
    font-weight: 700;
}

.hv2-vereadores__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}

.hv2-vereador {
    position: relative;
    background: var(--c-white);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--c-rule);
}
.hv2-vereador::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--c-navy-deep);
    z-index: 3;
    transition: background 0.3s ease;
}
.hv2-vereador:hover::before { background: var(--c-gold); }
.hv2-vereador:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -28px rgba(17,41,87,0.4);
}

.hv2-vereador__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--c-navy-deep);
}
.hv2-vereador__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
    filter: saturate(0.94) contrast(1.02);
}
.hv2-vereador:hover .hv2-vereador__photo img {
    transform: scale(1.05);
    filter: saturate(1.05) contrast(1.05);
}
.hv2-vereador__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 55%, rgba(12,31,58,0.55) 100%);
    pointer-events: none;
}
.hv2-vereador__num {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: var(--c-navy-deep);
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.hv2-vereador__caption {
    padding: 22px 24px 26px;
    text-align: left;
    border-top: 1px solid var(--c-rule);
}
.hv2-vereador__name {
    font-family: var(--f-display);
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--c-navy-deep);
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: -0.005em;
    min-height: 2.4em;
}
.hv2-vereador__party {
    display: inline-block;
    font-family: var(--f-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-navy);
    padding: 5px 10px;
    background: var(--c-paper-warm);
    border: 1px solid var(--c-rule);
}

/* ============================================================
   5. MAPA + CONTATO
   ============================================================ */
.hv2-locate {
    background: var(--c-white);
    padding: 0;
    overflow: hidden;
}
.hv2-locate__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    min-height: 520px;
}
.hv2-locate__info {
    padding: 64px 56px;
    background:
        linear-gradient(135deg, rgba(12,31,58,0.94) 0%, rgba(17,41,87,0.86) 100%),
        url('/img/hero/banner4.jpg') center / cover no-repeat;
    color: var(--c-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hv2-locate__info::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,216,91,0.22), transparent 65%);
}
.hv2-locate__info .hv2-eyebrow {
    color: var(--c-gold);
}
.hv2-locate__info .hv2-eyebrow::before {
    background: var(--c-gold);
}
.hv2-locate__info h2 {
    color: var(--c-white);
    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 8px 0 30px;
    max-width: 12ch;
}
.hv2-locate__list {
    font-family: var(--f-body);
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}
.hv2-locate__list li {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    line-height: 1.5;
}
.hv2-locate__list li:last-child { border-bottom: none; }
.hv2-locate__list li i {
    color: var(--c-gold);
    flex-shrink: 0;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}
.hv2-locate__list strong {
    display: block;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-weight: 700;
    margin-bottom: 2px;
}
.hv2-locate__map {
    position: relative;
    background: var(--c-navy);
    min-height: 520px;
}
.hv2-locate__map #map {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    inset: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hv2-magazine { grid-template-columns: 1fr; }
    .hv2-feature { min-height: 420px; }
    .hv2-service-grid { grid-template-columns: repeat(2, 1fr); }
    .hv2-vereadores__intro { grid-template-columns: 1fr; gap: 28px; }
    .hv2-locate__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .hv2-news, .hv2-services, .hv2-vereadores { padding: 56px 0; }
    .hv2-container { padding: 0 20px; }
    .hv2-section-head { flex-direction: column; align-items: flex-start; }
    .hv2-stack__item { grid-template-columns: 100px 1fr; }
    .hv2-service-grid { grid-template-columns: 1fr; }
    .hv2-vereadores__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .hv2-vereador__caption { padding: 16px 14px 18px; }
    .hv2-vereador__name { font-size: 0.95rem; }
    .hv2-gallery__strip { grid-auto-rows: 140px; gap: 3px; }
    .hv2-gallery__cell--3 { grid-row: span 1; }
    .hv2-locate__info { padding: 44px 28px; }
}
@media (max-width: 460px) {
    .hv2-vereadores__grid { grid-template-columns: 1fr; }
}

/* impressão e acessibilidade ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .home-v2 * { transition: none !important; animation: none !important; }
}
