/* ============================================
   RESET E VARIÁVEIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2b2b2b;
    --primary-color-soft: #3d3d3d;
    --secondary-color: #7a5c3a;
    --accent-color: #b87333;
    --accent-color-deep: #9a5e20;
    --text-dark: #1e1e1e;
    --text-light: #f5f5f0;
    --bg-light: #f0ede8;
    --bg-cream: #e8e4de;
    --bg-white: #f8f6f2;
    --border-color: #ccc5bb;
    --shadow: 0 2px 8px rgba(30, 30, 30, 0.14);
    --shadow-lg: 0 8px 24px rgba(30, 30, 30, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVEGAÇÃO
   ============================================ */
.navbar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: Georgia, 'Times New Roman', Times, serif;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-menu a {
    color: rgba(240, 230, 210, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    font-size: 0.82rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 1050px) {
    .nav-menu {
        gap: 0.7rem;
    }
    .nav-menu a {
        font-size: 0.76rem;
    }
    .nav-brand {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background:
        linear-gradient(to right, rgba(30, 30, 30, 0.80) 0%, rgba(30, 30, 30, 0.50) 38%, rgba(30, 30, 30, 0.08) 65%),
        url('./img/hero.png');
    background-size: cover;
    background-position: center 25%;
    background-attachment: scroll;
    color: var(--text-light);
    padding: 0;
    min-height: clamp(420px, 45vw, 540px);
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    pointer-events: none;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    min-height: inherit;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    margin-bottom: 0.85rem;
    opacity: 0.9;
    display: block;
}

.hero-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
    line-height: 1.1;
    color: var(--text-light);
}

.hero-subtitle {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(240, 230, 210, 0.88);
    margin-bottom: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-dates {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ============================================
   SEÇÕES
   ============================================ */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section-alt {
    background-color: var(--bg-cream);
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* ============================================
   CONTEÚDO DE TEXTO
   ============================================ */
.content-text {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
    color: var(--text-dark);
}

.content-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.content-text h3:first-child {
    margin-top: 0;
}

.content-text em {
    color: var(--primary-color-soft);
    font-style: italic;
}

/* ============================================
   GRID DE EMPRESAS
   ============================================ */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.company-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.company-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.company-card p {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   ACORDEÃO — LINHA DO TEMPO
   ============================================ */
.accordion {
    max-width: 900px;
    margin: 2rem auto 0;
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.accordion-btn:hover {
    background: var(--bg-light);
    border-radius: 4px;
}

.accordion-year {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color-deep);
    min-width: 70px;
    line-height: 1;
}

.accordion-label {
    flex: 1;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-dark);
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.5rem 0 calc(70px + 1rem);
}

.accordion-body.is-open {
    max-height: 200px;
    padding-bottom: 1rem;
}

.accordion-body p {
    font-size: 0.92rem;
    color: var(--primary-color-soft);
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

@media (max-width: 480px) {
    .accordion-year {
        font-size: 1.1rem;
        min-width: 52px;
    }

    .accordion-label {
        font-size: 0.88rem;
    }
}

/* ============================================
   OBRAS PUBLICADAS
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.book-cover {
    width: 100%;
    max-width: 160px;
    height: 220px;
    margin: 0 auto 1rem;
    object-fit: cover;
    box-shadow: var(--shadow);
    border-radius: 2px;
    background: var(--bg-cream);
}

.book-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    font-weight: 600;
}

.book-year {
    color: var(--accent-color-deep);
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.book-desc {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   GALERIA
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-light);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-align: center;
    padding: 6px 8px 8px;
    background: rgba(248, 241, 224, 0.95);
    letter-spacing: 0.2px;
    font-style: italic;
    flex-shrink: 0;
    border-top: 1px solid rgba(61, 40, 23, 0.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.modal-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

#modal-img {
    max-width: 88%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.modal-caption {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
    line-height: 1.6;
    max-width: 700px;
    padding: 0 20px;
}

/* ============================================
   CRÉDITOS DISCRETOS
   ============================================ */
.hero-credit {
    margin-top: 0.75rem;
    font-size: 0.5rem;
    font-weight: 300;
    color: #4a2f1a;
    opacity: 1;
}

.content-text .section-credit {
    margin-top: 2rem;
    font-size: 0.5rem;
    color: var(--bg-white) !important;
}

.footer-credit-primary {
    font-size: 0.48rem;
    color: #6b4d2f;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.footer-credit-secondary {
    font-size: 0.44rem;
    color: #6b4d2f;
    opacity: 0.5;
    margin-top: 0.25rem;
}

.mt-lg {
    margin-top: 2.5rem;
}

.footer-collection {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(240, 230, 210, 0.15);
}

.footer-collection-label {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-collection-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer .footer-credit-primary,
.footer .footer-credit-secondary {
    color: #303030;
    opacity: 0.35;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .content-text p {
        text-align: left;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

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

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
[role="button"]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   CONDECORAÇÕES / INSÍGNIAS
   ============================================ */
.insignia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.insignia-card {
    background: var(--bg-light);
    border-radius: 8px;
    border: none;
    border-top: 3px solid var(--accent-color);
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    width: 100%;
    display: block;
}

.insignia-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.insignia-card h4 {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.insignia-card p {
    color: var(--secondary-color);
    font-size: 0.82rem;
    margin: 0;
    font-style: italic;
}

@media (max-width: 480px) {
    .insignia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   FOTOS CONTEXTUAIS (float)
   ============================================ */
.inline-photo {
    max-width: 280px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.inline-photo.float-right {
    float: right;
    margin: 0 0 1.5rem 2rem;
}

.inline-photo.float-left {
    float: left;
    margin: 0 2rem 1.5rem 0;
}

.inline-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.inline-photo img:hover {
    transform: scale(1.03);
}

.inline-photo figcaption {
    font-size: 0.72rem;
    color: var(--primary-color);
    text-align: center;
    padding: 6px 8px 8px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .inline-photo.float-right,
    .inline-photo.float-left {
        float: none;
        max-width: 100%;
        margin: 1.5rem auto;
    }
}

/* ============================================
   MOBILE — OTIMIZAÇÕES GERAIS
   ============================================ */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        font-size: 0.82rem;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(30, 30, 30, 0.85) 0%, rgba(30, 30, 30, 0.75) 100%),
            url('./img/hero.png');
        background-size: cover;
        background-position: center 20%;
        background-attachment: scroll;
        padding: 60px 20px;
        min-height: 0;
        display: block;
        text-align: left;
    }

    .hero-content {
        max-width: 100%;
        padding-left: 0;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-dates {
        font-size: 0.95rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .content-text p,
    .content-text h3 {
        text-align: left;
    }

    .content-text h3 {
        font-size: 1.2rem;
    }

    .companies-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .company-card {
        padding: 1.25rem;
    }

    .insignia-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .inline-photo.float-right,
    .inline-photo.float-left {
        float: none;
        max-width: 100%;
        margin: 1rem auto 1.5rem;
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-menu {
        font-size: 0.75rem;
        gap: 0.4rem 0.75rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .insignia-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-caption {
        font-size: 0.65rem;
        padding: 4px 6px 6px;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}

/* ============================================
   GRADE DE FOTOS EM ORIGENS (3 colunas)
   ============================================ */
.origens-foto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0 1.5rem;
}

.origens-foto-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-light);
    margin: 0;
}

.origens-foto-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.origens-foto-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.origens-foto-item figcaption {
    font-size: 0.78rem;
    color: var(--primary-color);
    text-align: center;
    padding: 8px 10px 10px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .origens-foto-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .origens-foto-item img {
        height: 200px;
    }
}

/* Grade de 4 fotos em Origens */
.origens-foto-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
    .origens-foto-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .origens-foto-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HONRAS COM FOTO PAREADA
   ============================================ */
.honras-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.honras-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.honras-item .company-card {
    flex: 1;
}

.honras-foto {
    width: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-light);
    margin: 0;
}

.honras-foto:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.honras-foto img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.honras-foto figcaption {
    font-size: 0.72rem;
    color: var(--primary-color);
    text-align: center;
    padding: 6px 8px 8px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .honras-item {
        flex-direction: column;
    }
    .honras-foto {
        width: 100%;
    }
    .honras-foto img {
        height: 200px;
    }
}

/* Foto de perfil menor */
.foto-perfil {
    max-width: 200px !important;
}

/* Foto inline dentro de company-card (Honras) */
.honra-foto-inline {
    float: right;
    width: 180px;
    margin: 0 0 1rem 1.5rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-light);
}

.honra-foto-inline:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.honra-foto-inline img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 160px;
}

.honra-foto-inline figcaption {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-align: center;
    padding: 5px 6px 7px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .honra-foto-inline {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    .honra-foto-inline img {
        height: 200px;
    }
}

/* ============================================
   HONRAS: CARD + FOTO LADO A LADO
   ============================================ */
.honras-par {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.honras-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.5rem 2rem;
    align-items: start;
}

.honras-layout .company-card,
.honras-layout .honras-foto-par {
    margin: 0;
}

.honras-foto-missa {
    grid-column: 2;
    grid-row: 1;
}

.honras-foto-portugal {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
}

.honras-foto-par {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-light);
    margin: 0;
}

.honras-foto-par:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.honras-foto-par img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.honras-foto-par figcaption {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-align: center;
    padding: 5px 6px 7px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .honras-par {
        grid-template-columns: 1fr;
    }
    .honras-foto-par img {
        height: 200px;
    }
}

@media (max-width: 800px) {
    .honras-layout {
        grid-template-columns: 1fr;
    }

    .honras-foto-missa,
    .honras-foto-portugal {
        grid-column: 1;
        grid-row: auto;
        width: min(100%, 360px);
        justify-self: center;
    }

    .honras-foto-missa {
        grid-row: 2;
    }

    .honras-foto-portugal {
        grid-row: 5;
    }
}
