/* ============================================================
   Portal Institucional — Premium Editorial Design
   Pantanal-inspired: deep teals, golden ambers, warm earth
   ============================================================ */

:root {
    --ep-navy: #0C2D48;
    --ep-teal: #145369;
    --ep-teal-light: #1A6E8E;
    --ep-gold: #D4A843;
    --ep-gold-light: #E8C36A;
    --ep-gold-pale: #FBF4E4;
    --ep-terracotta: #C45D3E;
    --ep-cream: #FAF8F4;
    --ep-warm-white: #FFFEFA;
    --ep-card: #FFFFFF;
    --ep-text: #1A1A2E;
    --ep-text-soft: #4A5568;
    --ep-text-muted: #8896A6;
    --ep-border: #E8E4DC;
    --ep-border-light: #F0ECE4;
    --ep-shadow-sm: 0 1px 2px rgba(12,45,72,.04), 0 2px 8px rgba(12,45,72,.03);
    --ep-shadow: 0 2px 8px rgba(12,45,72,.05), 0 8px 32px rgba(12,45,72,.04);
    --ep-shadow-lg: 0 8px 40px rgba(12,45,72,.08), 0 2px 12px rgba(12,45,72,.04);
    --ep-shadow-xl: 0 16px 64px rgba(12,45,72,.12);
    --ep-radius: 20px;
    --ep-radius-sm: 12px;
    --ep-radius-xs: 8px;
    --ep-ease: cubic-bezier(.4, 0, .2, 1);
    --ep-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --ep-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --ep-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.escola-publica {
    font-family: var(--ep-font-body);
    background: var(--ep-cream);
    color: var(--ep-text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === REVEAL ANIMATIONS === */
@keyframes ep-reveal-up {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ep-reveal-scale {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ep-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ep-slide-right {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes ep-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes ep-spin {
    to { transform: rotate(360deg); }
}

@keyframes ep-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ep-pulse-ring {
    0%   { transform: scale(.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.ep-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--ep-ease), transform .7s var(--ep-ease);
}

.ep-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HERO === */
.ep-hero {
    position: relative;
    background: var(--ep-navy);
    color: #fff;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
}

/* Banner background image */
.ep-hero-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.ep-hero.has-banner::before,
.ep-hero.has-banner::after {
    display: none;
}

.ep-hero.has-banner .ep-hero-grain {
    background: rgba(0,0,0,.45);
    background-image: none;
}

.ep-hero.has-banner .ep-hero-stripe {
    display: none;
}

/* Semi-transparent background on text when banner is present */
.ep-hero.has-banner .ep-hero-text {
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
}

.ep-hero.has-banner .ep-hero-text h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.ep-hero.has-banner .ep-hero-subtitulo {
    opacity: .95;
}

/* Layered organic background shapes */
.ep-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ep-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20,83,105,.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ep-hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
    z-index: 1;
}

/* Diagonal accent stripe */
.ep-hero-stripe {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212,168,67,.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    pointer-events: none;
}

.ep-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 52px 40px 44px;
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.ep-hero-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.15);
    animation: ep-reveal-scale .8s var(--ep-ease) both;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.ep-hero-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}

.ep-hero-logo.has-custom-logo {
    overflow: hidden;
    padding: 0;
}

.ep-hero-logo.has-custom-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.ep-hero-text {
    flex: 1;
    animation: ep-reveal-up .8s var(--ep-ease) .1s both;
}

.ep-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(212,168,67,.2);
    border: 1px solid rgba(212,168,67,.3);
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ep-gold-light);
    margin-bottom: 20px;
}

.ep-hero-label svg {
    width: 14px;
    height: 14px;
}

.ep-hero-text h1 {
    font-family: var(--ep-font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.ep-hero-subtitulo {
    font-family: var(--ep-font-body);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    opacity: .8;
    margin-bottom: 12px;
    letter-spacing: .01em;
}

.ep-hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: .8;
    max-width: 560px;
}

.ep-hero-badges {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    transition: background .3s var(--ep-ease);
}

.ep-badge:hover {
    background: rgba(255,255,255,.14);
}

.ep-badge svg {
    width: 14px;
    height: 14px;
    opacity: .7;
}

/* Wave separator */
.ep-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.ep-hero-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* === NAVIGATION === */
.ep-nav {
    background: var(--ep-warm-white);
    border-bottom: 1px solid var(--ep-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .3s var(--ep-ease);
}

.ep-nav.scrolled {
    box-shadow: 0 4px 20px rgba(12,45,72,.06);
}

.ep-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ep-nav-inner::-webkit-scrollbar { display: none; }

.ep-nav-item {
    position: relative;
    padding: 18px 20px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ep-text-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s var(--ep-ease);
    cursor: pointer;
}

.ep-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2.5px;
    background: var(--ep-gold);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .3s var(--ep-ease-spring);
}

.ep-nav-item:hover { color: var(--ep-navy); }

.ep-nav-item.active {
    color: var(--ep-navy);
    font-weight: 600;
}

.ep-nav-item.active::after {
    transform: scaleX(1);
}

.ep-nav-portal {
    margin-left: auto;
    padding: 10px 24px;
    background: var(--ep-navy);
    color: #fff !important;
    border-radius: var(--ep-radius-xs);
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: all .3s var(--ep-ease);
    white-space: nowrap;
    border: none;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px rgba(12,45,72,.15);
}

.ep-nav-portal:hover {
    background: var(--ep-teal);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(12,45,72,.2);
}

/* === MAIN CONTAINER === */
.ep-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

/* === SECTIONS === */
.ep-section {
    margin-bottom: 72px;
}

.ep-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.ep-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.ep-section-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.ep-section-icon.noticias  { background: linear-gradient(135deg, var(--ep-navy) 0%, var(--ep-teal) 100%); }
.ep-section-icon.eventos     { background: linear-gradient(135deg, var(--ep-gold) 0%, #B8922F 100%); }
.ep-section-icon.avisos      { background: linear-gradient(135deg, var(--ep-terracotta) 0%, #A8482D 100%); }
.ep-section-icon.sobre       { background: linear-gradient(135deg, #2D8F6F 0%, #1E6B50 100%); }
.ep-section-icon.galeria     { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.ep-section-icon.documentos  { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }

.ep-section-title {
    font-family: var(--ep-font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--ep-text);
    letter-spacing: -.01em;
}

.ep-section-subtitle {
    font-size: .9rem;
    color: var(--ep-text-muted);
    margin-top: 2px;
}

/* Decorative line after section title */
.ep-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--ep-border) 0%, transparent 100%);
    margin-left: 12px;
}

/* === AVISOS BANNER === */
.ep-avisos-banner {
    background: linear-gradient(135deg, #FFF7E6 0%, #FFF0D1 100%);
    border: 1px solid rgba(212,168,67,.3);
    border-left: 4px solid var(--ep-gold);
    border-radius: var(--ep-radius-sm);
    padding: 24px 28px;
    margin-bottom: 40px;
    display: none;
    position: relative;
    overflow: hidden;
}

.ep-avisos-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,168,67,.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ep-avisos-banner.visible { display: block; }

.ep-avisos-label {
    font-family: var(--ep-font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ep-gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-avisos-label svg {
    width: 16px;
    height: 16px;
}

.ep-aviso-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.ep-aviso-item + .ep-aviso-item {
    border-top: 1px solid rgba(212,168,67,.15);
    margin-top: 10px;
    padding-top: 18px;
}

.ep-aviso-icon {
    width: 32px;
    height: 32px;
    background: var(--ep-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212,168,67,.3);
}

.ep-aviso-icon svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
}

.ep-aviso-titulo {
    font-weight: 700;
    font-size: .95rem;
    color: #78590A;
    line-height: 1.4;
}

.ep-aviso-texto {
    font-size: .87rem;
    color: #9E7B2A;
    margin-top: 4px;
    line-height: 1.5;
}

/* === NOTÍCIAS === */
.ep-noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.ep-noticia-card {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: var(--ep-shadow-sm);
    border: 1px solid var(--ep-border-light);
    cursor: pointer;
    transition: transform .4s var(--ep-ease), box-shadow .4s var(--ep-ease);
    position: relative;
}

.ep-noticia-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ep-shadow-lg);
}

.ep-noticia-card.destaque {
    border-color: var(--ep-gold);
    box-shadow: 0 0 0 1px var(--ep-gold), var(--ep-shadow);
}

.ep-noticia-card.destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ep-gold) 0%, var(--ep-gold-light) 100%);
    z-index: 2;
}

.ep-noticia-img-wrap {
    position: relative;
    overflow: hidden;
}

.ep-noticia-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .6s var(--ep-ease);
}

.ep-noticia-card:hover .ep-noticia-img {
    transform: scale(1.05);
}

.ep-noticia-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--ep-navy) 0%, var(--ep-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ep-noticia-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 30m-20 0a20 20 0 1 0 40 0a20 20 0 1 0-40 0' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px;
}

.ep-noticia-img-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: rgba(255,255,255,.25);
    position: relative;
    z-index: 1;
}

.ep-noticia-body {
    padding: 24px;
}

.ep-noticia-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.ep-noticia-tag.destaque {
    background: var(--ep-gold-pale);
    color: #8B6914;
}

.ep-noticia-tag.noticia {
    background: #EBF4FF;
    color: var(--ep-teal);
}

.ep-noticia-titulo {
    font-family: var(--ep-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.ep-noticia-resumo {
    font-size: .9rem;
    color: var(--ep-text-soft);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-noticia-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ep-border-light);
}

.ep-noticia-data {
    font-size: .78rem;
    color: var(--ep-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ep-noticia-data svg {
    width: 14px;
    height: 14px;
}

.ep-noticia-ler {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ep-teal-light);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .3s var(--ep-ease);
}

.ep-noticia-card:hover .ep-noticia-ler {
    gap: 8px;
}

.ep-noticia-ler svg {
    width: 14px;
    height: 14px;
}

/* === EVENTOS === */
.ep-eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ep-evento-card {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: var(--ep-shadow-sm);
    border: 1px solid var(--ep-border-light);
    transition: transform .35s var(--ep-ease), box-shadow .35s var(--ep-ease);
    position: relative;
    overflow: hidden;
}

.ep-evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--ep-gold) 0%, var(--ep-gold-light) 100%);
    opacity: 0;
    transition: opacity .3s var(--ep-ease);
}

.ep-evento-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ep-shadow);
}

.ep-evento-card:hover::before {
    opacity: 1;
}

.ep-evento-data-box {
    width: 72px;
    min-height: 80px;
    background: linear-gradient(135deg, var(--ep-gold) 0%, #C49A30 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 4px 16px rgba(212,168,67,.25);
    padding: 8px;
}

.ep-evento-dia {
    font-family: var(--ep-font-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.ep-evento-mes {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .9;
    margin-top: 2px;
}

.ep-evento-info {
    flex: 1;
    min-width: 0;
}

.ep-evento-info h3 {
    font-family: var(--ep-font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 6px;
    line-height: 1.35;
}

.ep-evento-info p {
    font-size: .88rem;
    color: var(--ep-text-soft);
    line-height: 1.55;
}

/* === SOBRE / CONTATO === */
.ep-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}

.ep-info-card {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    padding: 36px;
    box-shadow: var(--ep-shadow-sm);
    border: 1px solid var(--ep-border-light);
    position: relative;
    overflow: hidden;
}

.ep-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ep-teal) 0%, var(--ep-teal-light) 100%);
}

.ep-info-card.contato-card::before {
    background: linear-gradient(90deg, var(--ep-gold) 0%, var(--ep-gold-light) 100%);
}

.ep-info-card h3 {
    font-family: var(--ep-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ep-text);
}

.ep-info-card > p {
    font-size: .95rem;
    color: var(--ep-text-soft);
    line-height: 1.75;
}

.ep-contato-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.ep-contato-item + .ep-contato-item {
    border-top: 1px solid var(--ep-border-light);
}

.ep-contato-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ep-gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .3s var(--ep-ease-spring);
}

.ep-contato-item:hover .ep-contato-icon {
    transform: scale(1.08);
}

.ep-contato-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--ep-gold);
}

.ep-contato-label {
    font-size: .75rem;
    color: var(--ep-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ep-contato-valor {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ep-text);
    margin-top: 2px;
}

/* === GALERIA === */
.ep-galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ep-galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--ep-radius-sm);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.ep-galeria-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.ep-galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ep-ease);
}

.ep-galeria-item:hover .ep-galeria-img {
    transform: scale(1.08);
}

.ep-galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12,45,72,.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s var(--ep-ease);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.ep-galeria-item:hover .ep-galeria-overlay {
    opacity: 1;
}

.ep-galeria-overlay svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    flex-shrink: 0;
}

.ep-galeria-legenda {
    color: #fff;
    font-size: .82rem;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.ep-galeria-overlay {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

/* === LIGHTBOX === */
.ep-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.ep-lightbox.active { opacity: 1; }

.ep-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ep-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.ep-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.ep-lightbox-legenda {
    color: #fff;
    font-size: 1rem;
    margin-top: 14px;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    max-width: 70vw;
}

.ep-lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
    line-height: 1;
}

.ep-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* === EMPTY STATES === */
.ep-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--ep-text-muted);
}

.ep-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--ep-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ep-empty-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--ep-text-muted);
}

.ep-empty h3 {
    font-family: var(--ep-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 8px;
}

.ep-empty p {
    font-size: .9rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === FOOTER === */
.ep-footer {
    background: var(--ep-navy);
    color: rgba(255,255,255,.6);
    position: relative;
    overflow: hidden;
}

.ep-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,67,.3), transparent);
}

.ep-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ep-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-footer-brand-name {
    font-family: var(--ep-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.ep-footer-brand-sub {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}

.ep-footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .85rem;
    opacity: .85;
}

.ep-footer-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-footer-info-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: .7;
}

.ep-footer-copy {
    font-size: .82rem;
    text-align: right;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.ep-footer-copy a {
    color: var(--ep-gold-light);
    text-decoration: none;
    transition: color .2s;
}

.ep-footer-copy a:hover {
    color: var(--ep-gold);
}

/* === MODAL === */
.ep-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12,45,72,.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .3s var(--ep-ease);
}

.ep-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.ep-modal {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--ep-shadow-xl);
    animation: ep-reveal-scale .35s var(--ep-ease-spring) both;
}

.ep-modal-header {
    padding: 28px 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ep-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ep-border);
    background: var(--ep-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s var(--ep-ease);
    flex-shrink: 0;
}

.ep-modal-close:hover {
    background: var(--ep-border-light);
    transform: rotate(90deg);
}

.ep-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--ep-text-soft);
}

.ep-modal-body {
    padding: 24px 32px 36px;
}

.ep-modal-body img {
    width: 100%;
    border-radius: var(--ep-radius-sm);
    margin-bottom: 20px;
}

.ep-modal-body h2 {
    font-family: var(--ep-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.ep-modal-body .ep-noticia-data {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ep-border-light);
}

.ep-modal-conteudo {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--ep-text);
}

/* Document in modal */
.ep-modal-documento {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}
.ep-modal-doc-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    border-radius: 8px;
}
.ep-modal-doc-icon svg {
    width: 20px;
    height: 20px;
    stroke: #16a34a;
}
.ep-modal-doc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ep-modal-doc-nome {
    font-weight: 600;
    font-size: .88rem;
    color: var(--ep-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ep-modal-doc-ext {
    font-size: .72rem;
    font-weight: 600;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ep-modal-doc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ep-modal-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--ep-navy);
    color: #fff;
    transition: opacity .2s;
}
.ep-modal-doc-btn:hover { opacity: .85; }
.ep-modal-doc-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}
.ep-modal-doc-btn.baixar {
    background: #16a34a;
}

/* Document badge on noticia card */
.ep-noticia-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    margin-top: 4px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: #16a34a;
}
.ep-noticia-doc-badge svg {
    width: 14px;
    height: 14px;
    stroke: #16a34a;
}

@media (max-width: 600px) {
    .ep-modal-documento {
        flex-wrap: wrap;
        gap: 10px;
    }
    .ep-modal-doc-actions {
        width: 100%;
    }
    .ep-modal-doc-btn {
        flex: 1;
        justify-content: center;
    }
}

/* === LOADING === */
.ep-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 24px;
}

.ep-loading-spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.ep-loading-spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid var(--ep-border);
    border-top-color: var(--ep-gold);
    border-radius: 50%;
    animation: ep-spin .9s linear infinite;
}

.ep-loading-spinner::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 3px solid var(--ep-border-light);
    border-bottom-color: var(--ep-teal);
    border-radius: 50%;
    animation: ep-spin 1.4s linear infinite reverse;
}

.ep-loading p {
    font-size: .95rem;
    color: var(--ep-text-muted);
    font-weight: 500;
}

/* === ERROR === */
.ep-error {
    text-align: center;
    padding: 100px 24px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ep-error-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #FEF2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ep-error-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--ep-terracotta);
}

.ep-error h2 {
    font-family: var(--ep-font-display);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.ep-error p {
    color: var(--ep-text-soft);
    margin-bottom: 28px;
    max-width: 400px;
    line-height: 1.6;
}

.ep-error a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ep-navy);
    color: #fff;
    border-radius: var(--ep-radius-xs);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s var(--ep-ease);
    box-shadow: 0 4px 16px rgba(12,45,72,.15);
}

.ep-error a:hover {
    background: var(--ep-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(12,45,72,.2);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .ep-hero-content { padding: 44px 32px 40px; gap: 32px; }
    .ep-main { padding: 40px 32px 64px; }
    .ep-nav-inner { padding: 0 32px; }
    .ep-footer-inner { padding: 40px 32px; }
}

@media (max-width: 768px) {
    .ep-hero { min-height: auto; }

    .ep-hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 24px 36px;
        gap: 24px;
    }

    .ep-hero-logo { width: 88px; height: 88px; border-radius: 20px; }
    .ep-hero-logo img { width: 60px; height: 60px; }
    .ep-hero-logo.has-custom-logo img { width: 100%; height: 100%; border-radius: 18px; }

    .ep-hero-text h1 { font-size: 1.75rem; }
    .ep-hero-text p { font-size: 1rem; }

    .ep-hero-wave svg { height: 36px; }

    .ep-nav-inner { padding: 0 20px; }
    .ep-nav-item { padding: 14px 14px; font-size: .84rem; }

    .ep-main { padding: 32px 20px 56px; }

    .ep-section { margin-bottom: 56px; }
    .ep-section-title { font-size: 1.4rem; }

    .ep-noticias-grid { grid-template-columns: 1fr; gap: 20px; }
    .ep-eventos-grid { grid-template-columns: 1fr; }
    .ep-info-grid { grid-template-columns: 1fr; }

    .ep-galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ep-galeria-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }

    .ep-footer-inner {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
        gap: 16px;
    }

    .ep-footer-copy { text-align: center; }
    .ep-footer-info { text-align: center; align-items: center; }

    .ep-info-card { padding: 28px; }
}

@media (max-width: 480px) {
    .ep-hero-content { padding: 32px 18px 32px; }
    .ep-hero-text h1 { font-size: 1.5rem; }
    .ep-hero-badges { gap: 8px; }
    .ep-badge { font-size: .72rem; padding: 6px 12px; }

    .ep-main { padding: 24px 16px 48px; }

    .ep-section-header { gap: 12px; margin-bottom: 24px; }
    .ep-section-icon { width: 42px; height: 42px; }
    .ep-section-title { font-size: 1.25rem; }

    .ep-noticia-img, .ep-noticia-img-placeholder { height: 180px; }
    .ep-noticia-body { padding: 20px; }

    .ep-evento-card { padding: 20px; gap: 16px; }
    .ep-evento-data-box { width: 60px; min-height: 68px; }
    .ep-evento-dia { font-size: 1.5rem; }

    .ep-galeria-grid { gap: 8px; }
    .ep-galeria-item { border-radius: var(--ep-radius-xs); }

    .ep-modal { border-radius: 16px; }
    .ep-modal-header { padding: 20px 20px 0; }
    .ep-modal-body { padding: 16px 20px 28px; }
    .ep-modal-body h2 { font-size: 1.3rem; }
}

/* === SOCIAL LINKS === */
.ep-social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.ep-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: all .3s var(--ep-ease);
    text-decoration: none;
}

.ep-social-link:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    transform: translateY(-2px);
}

.ep-social-link svg {
    width: 18px;
    height: 18px;
}

/* === DOCUMENTOS === */
.ep-docs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-doc-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    padding: 20px 24px;
    border: 1px solid var(--ep-border-light);
    box-shadow: var(--ep-shadow-sm);
    transition: transform .35s var(--ep-ease), box-shadow .35s var(--ep-ease);
}

.ep-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ep-shadow);
}

.ep-doc-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-doc-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.ep-doc-body {
    flex: 1;
    min-width: 0;
}

.ep-doc-titulo {
    font-family: var(--ep-font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.ep-doc-resumo {
    font-size: .84rem;
    color: var(--ep-text-soft);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-doc-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-doc-ext {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(8, 145, 178, .1);
    color: #0891b2;
}

.ep-doc-data {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--ep-text-light);
}

.ep-doc-data svg {
    width: 13px;
    height: 13px;
}

.ep-doc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ep-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--ep-radius-xs);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s var(--ep-ease);
    white-space: nowrap;
}

.ep-doc-btn svg {
    width: 15px;
    height: 15px;
}

.ep-doc-btn.visualizar {
    background: var(--ep-navy);
    color: #fff;
}

.ep-doc-btn.visualizar:hover {
    background: var(--ep-teal);
    transform: translateY(-1px);
}

.ep-doc-btn.baixar {
    background: var(--ep-cream);
    color: var(--ep-text);
    border: 1px solid var(--ep-border);
}

.ep-doc-btn.baixar:hover {
    background: var(--ep-border-light);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .ep-doc-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .ep-doc-actions {
        width: 100%;
    }

    .ep-doc-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .ep-doc-btn span {
        display: none;
    }
    .ep-doc-btn {
        padding: 10px 14px;
    }
}

/* === INSTITUCIONAL (Missão/Visão/Valores) === */
.ep-institucional-item {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--ep-text-soft);
    padding: 12px 16px;
    background: var(--ep-cream);
    border-radius: var(--ep-radius-xs);
    border-left: 3px solid var(--ep-gold);
}

.ep-institucional-item strong {
    color: var(--ep-text);
    font-weight: 700;
}

/* Scroll-triggered animation stagger */
.ep-stagger-1 { transition-delay: .05s; }
.ep-stagger-2 { transition-delay: .1s; }
.ep-stagger-3 { transition-delay: .15s; }
.ep-stagger-4 { transition-delay: .2s; }
.ep-stagger-5 { transition-delay: .25s; }
.ep-stagger-6 { transition-delay: .3s; }

/* === BOTÃO "CONHEÇA NOSSA ESCOLA" (portal principal) === */
.ep-sobre-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 28px;
    background: var(--ep-navy);
    color: #fff;
    border-radius: var(--ep-radius-xs);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .3s var(--ep-ease);
    box-shadow: 0 4px 16px rgba(12,45,72,.15);
}

.ep-sobre-btn:hover {
    background: var(--ep-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(12,45,72,.2);
}

.ep-sobre-btn svg {
    width: 16px;
    height: 16px;
    transition: transform .3s var(--ep-ease);
}

.ep-sobre-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================================
   SOBRE NÓS — Página Institucional
   ============================================================ */

/* Top bar */
.ep-sobrenos-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ep-border-light);
}

.ep-sobrenos-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ep-sobrenos-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ep-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: all .25s var(--ep-ease);
}

.ep-sobrenos-back:hover {
    color: var(--ep-navy);
    gap: 12px;
}

.ep-sobrenos-back svg {
    width: 18px;
    height: 18px;
}

.ep-sobrenos-topbar-name {
    font-family: var(--ep-font-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--ep-text);
}

/* Hero */
.ep-sobrenos-hero {
    position: relative;
    background: var(--ep-navy);
    color: #fff;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}

.ep-sobrenos-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,168,67,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ep-sobrenos-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 40px 48px;
}

.ep-sobrenos-hero h1 {
    font-family: var(--ep-font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 8px;
    text-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.ep-sobrenos-hero-sub {
    font-size: 1.1rem;
    opacity: .75;
    font-weight: 400;
    margin-top: 4px;
}

/* Main content area */
.ep-sobrenos-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

/* Section cards */
.ep-sobrenos-section {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    padding: 36px;
    margin-bottom: 24px;
    box-shadow: var(--ep-shadow-sm);
    border: 1px solid var(--ep-border-light);
    position: relative;
    overflow: hidden;
}

.ep-sobrenos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ep-teal) 0%, var(--ep-teal-light) 100%);
}

.ep-sobrenos-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ep-teal), var(--ep-teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ep-sobrenos-section-icon.sobre {
    background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-light));
}

.ep-sobrenos-section-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.ep-sobrenos-section h2 {
    font-family: var(--ep-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 14px;
}

.ep-sobrenos-section > p {
    font-size: .95rem;
    color: var(--ep-text-soft);
    line-height: 1.8;
}

/* Missão / Visão / Valores pillars */
.ep-sobrenos-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.ep-sobrenos-pillar {
    background: var(--ep-card);
    border-radius: var(--ep-radius);
    padding: 32px;
    box-shadow: var(--ep-shadow-sm);
    border: 1px solid var(--ep-border-light);
    transition: transform .35s var(--ep-ease), box-shadow .35s var(--ep-ease);
    position: relative;
    overflow: hidden;
}

.ep-sobrenos-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--ep-shadow);
}

.ep-sobrenos-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.ep-sobrenos-pillar.missao::before {
    background: linear-gradient(90deg, var(--ep-teal), var(--ep-teal-light));
}

.ep-sobrenos-pillar.visao::before {
    background: linear-gradient(90deg, var(--ep-gold), var(--ep-gold-light));
}

.ep-sobrenos-pillar.valores::before {
    background: linear-gradient(90deg, var(--ep-terracotta), #E07A5F);
}

.ep-sobrenos-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ep-sobrenos-pillar.missao .ep-sobrenos-pillar-icon {
    background: rgba(20,83,105,.1);
}

.ep-sobrenos-pillar.visao .ep-sobrenos-pillar-icon {
    background: var(--ep-gold-pale);
}

.ep-sobrenos-pillar.valores .ep-sobrenos-pillar-icon {
    background: rgba(196,93,62,.1);
}

.ep-sobrenos-pillar-icon svg {
    width: 24px;
    height: 24px;
}

.ep-sobrenos-pillar.missao .ep-sobrenos-pillar-icon svg {
    stroke: var(--ep-teal);
}

.ep-sobrenos-pillar.visao .ep-sobrenos-pillar-icon svg {
    stroke: var(--ep-gold);
}

.ep-sobrenos-pillar.valores .ep-sobrenos-pillar-icon svg {
    stroke: var(--ep-terracotta);
}

.ep-sobrenos-pillar h3 {
    font-family: var(--ep-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 10px;
}

.ep-sobrenos-pillar p {
    font-size: .9rem;
    color: var(--ep-text-soft);
    line-height: 1.7;
}

/* Contact grid */
.ep-sobrenos-contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.ep-sobrenos-contato-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ep-cream);
    border-radius: var(--ep-radius-xs);
    font-size: .9rem;
    color: var(--ep-text-soft);
}

.ep-sobrenos-contato-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--ep-gold);
    flex-shrink: 0;
}

/* Social links inside sobrenos page */
.ep-sobrenos-section .ep-social-links {
    margin-top: 20px;
}

.ep-sobrenos-section .ep-social-link {
    background: var(--ep-cream);
    border-color: var(--ep-border);
    color: var(--ep-text-soft);
}

.ep-sobrenos-section .ep-social-link:hover {
    background: var(--ep-navy);
    color: #fff;
    border-color: var(--ep-navy);
}

/* === RESPONSIVE — Sobre Nós === */
@media (max-width: 1024px) {
    .ep-sobrenos-topbar-inner { padding: 14px 32px; }
    .ep-sobrenos-hero-content { padding: 52px 32px 40px; }
    .ep-sobrenos-content { padding: 40px 32px 64px; }
}

@media (max-width: 768px) {
    .ep-sobrenos-topbar-inner { padding: 12px 20px; }
    .ep-sobrenos-topbar-name { display: none; }
    .ep-sobrenos-hero { min-height: 220px; }
    .ep-sobrenos-hero-content { padding: 40px 24px 36px; }
    .ep-sobrenos-content { padding: 32px 20px 56px; }
    .ep-sobrenos-section { padding: 28px; }
    .ep-sobrenos-pillar { padding: 24px; }
    .ep-sobrenos-contato { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ep-sobrenos-hero-content { padding: 32px 18px 28px; }
    .ep-sobrenos-content { padding: 24px 16px 48px; }
    .ep-sobrenos-section { padding: 22px; }
    .ep-sobrenos-pillar { padding: 20px; }
    .ep-sobre-btn { width: 100%; justify-content: center; }
}

/* === SUBPAGE CONTENT (genérica) === */
.ep-subpage-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 48px 64px;
}

/* === "VER MAIS" LINKS === */
.ep-ver-mais-wrap {
    text-align: center;
    margin-top: 24px;
}
.ep-ver-mais-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ep-navy);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1.5px solid var(--ep-navy);
    transition: all .2s;
}
.ep-ver-mais-link:hover {
    background: var(--ep-navy);
    color: #fff;
}
.ep-ver-mais-link svg {
    width: 16px;
    height: 16px;
}

/* === ALBUM GROUPS (galeria page) === */
.ep-album-group {
    margin-bottom: 48px;
}
.ep-album-group:last-child {
    margin-bottom: 0;
}
.ep-album-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ep-cream, #faf8f3);
}
.ep-album-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ep-navy);
    margin: 0;
}
.ep-album-count {
    font-size: .82rem;
    color: var(--ep-text-light, #64748b);
}

/* === RESPONSIVE — Subpages === */
@media (max-width: 1024px) {
    .ep-subpage-content { padding: 36px 32px 56px; }
}
@media (max-width: 768px) {
    .ep-subpage-content { padding: 28px 20px 48px; }
    .ep-album-title { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .ep-subpage-content { padding: 20px 16px 40px; }
    .ep-ver-mais-link { width: 100%; justify-content: center; font-size: .85rem; }
}
