/*
  PÁGINAS v 1.0 (partilhado por todas as páginas interiores);
  João Diogo Pereira;
*/

/* faixa de título com breadcrumb */
.page-header{
    padding: 3.5rem 0;
    background: color-mix(in srgb, var(--secondaryColor) 10%, #fff);
    border-bottom: 4px solid var(--secondaryColor);
}

.page-header h1{
    margin: 0;
    color: var(--terciaryColor);
    font-family: var(--primaryTextFont), sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.page-header .breadcrumb{
    margin-bottom: .75rem;
    padding: 0;
    font-family: var(--secondaryTextFont), sans-serif;
}

.page-header .breadcrumb a{
    color: var(--primaryColor);
    text-decoration: underline;
    text-underline-offset: .2em;
    transition: color .3s ease-in-out;
}

.page-header .breadcrumb a:hover{
    color: color-mix(in srgb, var(--primaryColor) 70%, #000);
}

.page-header .breadcrumb a:focus-visible{
    outline: 3px solid var(--terciaryColor);
    outline-offset: 3px;
}

.page-header .breadcrumb-item.active{
    color: var(--terciaryColor);
}

@media (max-width: 575px){
    .page-header{ padding: 2.5rem 0; }
}

/* elementos reutilizáveis */
.eyebrow{
    display: inline-block;
    margin-bottom: .5rem;
    font-family: var(--secondaryTextFont), sans-serif;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primaryColor);
}

.sobre-titulo{
    color: var(--terciaryColor);
    font-family: var(--primaryTextFont), sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.text-center .sobre-titulo{
    text-align: center;
}

/* título de apoio no cabeçalho da 404 (o h1 da página fica no corpo) */
.page-header .page-header__title{
    margin: 0;
    color: var(--terciaryColor);
    font-family: var(--primaryTextFont), sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
}

/* PÁGINA NORMAL (page.php) */
.page-texto{
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background: #fff;
}

.page-texto__content{
    max-width: 820px;
    margin: 0 auto;
    font-family: var(--secondaryTextFont), sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--primaryTextColor);
    overflow-wrap: break-word;
}

.page-texto__content h2,
.page-texto__content h3,
.page-texto__content h4{
    margin: 2rem 0 .75rem;
    color: var(--terciaryColor);
    font-family: var(--primaryTextFont), sans-serif;
    line-height: 1.25;
}

.page-texto__content h2{ font-size: clamp(1.5rem, 3vw, 1.9rem); }
.page-texto__content h3{ font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.page-texto__content h4{ font-size: 1.125rem; }

.page-texto__content > *:first-child{ margin-top: 0; }
.page-texto__content > *:last-child{ margin-bottom: 0; }

.page-texto__content p{ margin: 0 0 1rem; }

.page-texto__content ul,
.page-texto__content ol{
    margin: 0 0 1rem;
    padding-left: 1.5rem !important;
}

.page-texto__content ul{ list-style: disc; }
.page-texto__content ol{ list-style: decimal; }
.page-texto__content li{ margin-bottom: .35rem; }

.page-texto__content a{
    color: var(--primaryColor);
    text-decoration: underline;
    text-underline-offset: .2em;
    transition: color .3s ease-in-out;
}

.page-texto__content a:hover{
    color: color-mix(in srgb, var(--primaryColor) 70%, #000);
}

.page-texto__content a:focus-visible{
    outline: 3px solid var(--primaryTextColor);
    outline-offset: 3px;
}

.page-texto__content img{
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.page-texto__content table{
    display: block;
    max-width: 100%;
    margin-bottom: 1rem;
    overflow-x: auto;
    border-collapse: collapse;
}

.page-texto__content th,
.page-texto__content td{
    padding: .6rem .8rem;
    border: 1px solid color-mix(in srgb, var(--primaryTextColor) 25%, #fff);
}

.page-texto__content blockquote{
    margin: 0 0 1rem;
    padding: .5rem 0 .5rem 1.25rem;
    border-left: 4px solid var(--secondaryColor);
    font-style: italic;
}

.page-texto__content iframe,
.page-texto__content video{
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce){
    .page-texto__content a{ transition: none; }
}