@font-face {
    font-family: 'Sans Mateo';
    src: url("{% static 'gerenciamento/fonts/Sans-Mateo-2-Medium.ttf' %}") format('truetype'),
         url("{% static 'gerenciamento/fonts/Sans-Mateo-2-Regular.ttf' %}") format('truetype');
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

html, body {
    margin: 0;
    border: 0;
    padding: 0;
    font-family: 'Sans Mateo', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* NAVEGAÇÃO DE TÓPICOS */
.navbar-topicos {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    gap: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100vw;
    max-width: 100%;
}

.navbar-topicos a {
    text-decoration: none;
    color: #fc2d7b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-topicos a:hover {
    background: #fc2d7b;
    color: white;
}

.navbar-topicos a.active {
    background: #fc2d7b;
    color: white;
}

#hero {
    display: flex;
    min-height: 87vh;
    flex-direction: row-reverse;
    position: relative;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    display: flex;
    justify-content: center;
    padding: 0rem 0;
    background: #fff9f6;
}

.scroll-indicator-arrow {
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-down 2s infinite;
}

.scroll-indicator-arrow::after {
    content: '↓';
    color: #fc2d7b;
    font-size: 2.5rem;
    font-weight: bold;
}

#hero::after {
    display: none;
}

#hero::after::before {
    display: none;
}

.hero-imagem {
    width: 50%;
    min-height: 70vh !important;
}

.hero-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero-imagem-mobile {
    display: none;
    width: 100%;
    min-height: 40vh !important;
}

.hero-imagem-mobile img {
    width: 100%;
    height: 46vh;
    object-fit: cover;
    /* -webkit-mask-image: linear-gradient(to top, transparent 0%, black 40%); */
        mask-image: linear-gradient(to top, transparent 0%, black 40%);
}

.hero-fading {
    width: 15%;
    margin-right: -8%;
    background: linear-gradient(
        to left,
        rgba(252,45,123,0) 0%,
        rgba(252,45,123,0.25) 40%,
        rgba(252,45,123,0.7) 75%,
        #fc2d7b 100%
    );
}



.hero-texto {
    width: 43%;
    background: #fc2d7b;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 4rem 3rem;
    padding-left: 6vw;
}

.hero-cargo {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-texto h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
}

.hero-texto p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-botao {
    display: inline-block;
    background: rgb(255, 255, 255);
    color: #fc2d7b;

    padding: 12px 22px;
    border-radius: 4px;

    text-decoration: none;
    font-weight: 600;

    width: fit-content;
}

#sobre {
    padding: 4rem 8vw;
    background: #fff9f6;
}

.sobre-conteudo {
    display: flex;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.sobre-texto {
    flex: 1;
    max-width: 520px;
}

.sobre-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #900049;
    font-weight: 600;
}

.sobre-texto h2 {
    font-size: 2.2rem;
    margin: 0.8rem 0 1.5rem 0;
    color: #222;
}

.sobre-texto p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #444;
}

.sobre-imagem {
    flex: 1;
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border-radius: 12px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.seta {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 2rem;

    width: 45px;
    height: 45px;

    border-radius: 50%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.3s;
}

.seta:hover {
    background: rgba(0,0,0,0.7);
}

.seta-esquerda {
    left: 15px;
}

.seta-direita {
    right: 15px;
}

#galeria{
    padding: 5rem 8vw;
    background: #212121;
}

.galeria-container{
    max-width: 1200px;
    margin: auto;
}

.galeria-label{
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #fc2d7b;
    font-weight: 600;
}

#galeria h2{
    font-size: 2rem;
    margin: 0.5rem 0 2rem 0;
    color: #fff9f6;
}

.galeria-slider-wrapper{
    position: relative;
    display: flex;
    align-items: center;
}

.galeria-slider{
    display: flex;
    gap: 2rem;
    overflow: hidden;
    scroll-behavior: smooth;
}

.galeria-item{
    min-width: 400px;
}

.galeria-item img {
    width: 100%;
    height: 55vh;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.galeria-item img:hover {
    height: 57vh;
    transition: all 0.25s ease;
}

.galeria-item p{
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: #999999;
}

/* SETAS */

.galeria-seta{
    position: absolute;
    top: 35%;
    transform: translateY(-50%);

    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 2rem;

    width: 42px;
    height: 42px;
    border-radius: 50%;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-seta:hover{
    background: rgba(0,0,0,0.7);
}

.galeria-esquerda{
    left: -20px;
}

.galeria-direita{
    right: -20px;
}


#modal-imagem{
    display: none;
    position: fixed;
    z-index: 999;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.9);

    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-conteudo{
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

#modal-descricao{
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

.modal-fechar{
    position: absolute;
    top: 30px;
    right: 40px;

    font-size: 40px;
    color: white;
    cursor: pointer;
}

#noticias{
    padding: 5rem 8vw;
    background: #fff9f6;
}

.noticias-container{
    max-width: 1200px;
    margin: auto;
}

.noticias-label{
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #900049;
    font-weight: 600;
}

#noticias h2{
    font-size: 2rem;
    margin: 0.5rem 0 2rem 0;
}

.noticias-busca{
    margin-bottom: 2.5rem;
}

.noticias-busca input{
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;

    border-radius: 6px;
    border: 1px solid #ddd;

    font-family: 'Sans Mateo';
    font-size: 0.95rem;
}

.noticias-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.noticia-item{
    background: white;
    border-radius: 10px;

    box-shadow: 0 6px 20px rgba(0,0,0,0.05);

    overflow: hidden;

    transition: transform 0.25s ease;
}

.noticia-item:hover{
    transform: translateY(-5px);
}

.noticia-item img{
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.noticia-conteudo{
    padding: 1.4rem;
}

.noticia-conteudo h3{
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.noticia-data{
    font-size: 0.8rem;
    color: #999;
}

.noticia-conteudo p{
    font-size: 0.9rem;
    margin: 0.6rem 0 1rem 0;
    line-height: 1.5;
}

.noticia-conteudo a{
    text-decoration: none;
    color: #fc2d7b;
    font-weight: 600;
    font-size: 0.9rem;
}

#contato{
    padding: 10rem 8vw;
    color: white;

    background: linear-gradient(
        135deg,
        #fc2d7b 0%,
        #e0226b 40%,
        #b91854 100%
    );
}

.contato-container{
    position: relative;
    z-index: 1;
}

.contato-container{
    max-width: 900px;
    margin: auto;
}

.contato-label{
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

#contato h2{
    font-size: 2rem;
    margin: 0.6rem 0 1rem 0;
}

.contato-descricao{
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contato-form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grupo{
    display: flex;
    flex-direction: column;
}

.form-grupo label{
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea{
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-family: 'Sans Mateo';
}

.form-grupo textarea{
    resize: vertical;
}

.form-grupo:nth-child(5){
    grid-column: span 2;
}

.botao-enviar{
    grid-column: span 2;

    background: white;
    color: #fc2d7b;

    padding: 14px;
    border: none;
    border-radius: 6px;

    font-weight: 600;
    cursor: pointer;
}

.botao-enviar:hover{
    opacity: 0.9;
}

/* BOTÃO VOLTAR AO TOPO */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fc2d7b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 45, 123, 0.3);
}

.scroll-to-top:hover {
    background: #e0226b;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(252, 45, 123, 0.4);
}

.scroll-to-top.show {
    display: flex;
}

/* RESPONSIVIDADE - MOBILE */
@media (max-width: 768px) {
    /* NAVEGAÇÃO */
    .navbar-topicos {
        gap: 0.8rem;
        padding: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar-topicos a {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* SCROLL INDICATOR */
    .scroll-indicator {
        padding: 1rem 0;
    }

    .scroll-indicator-arrow {
        height: 50px;
    }

    .scroll-indicator-arrow::after {
        font-size: 2rem;
    }

    /* HERO */
    #hero {
        flex-direction: column;
        min-height: 90vh;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-imagem {
        width: 100%;
        min-height: 45vh !important;
        order: -1;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-fading {
        display: block;
        width: 100%;
        height: 72px;
        margin: 0;
        background: linear-gradient(
            to bottom,
            rgba(252,45,123,0) 0%,
            rgba(252,45,123,0.35) 45%,
            rgba(252,45,123,0.75) 80%,
            #fc2d7b 100%
        );
    }

    .hero-texto {
        width: 100%;
        padding: 2rem 1.2rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-cargo {
        font-size: 0.8rem;
    }

    .hero-texto h1 {
        font-size: 1.5rem;
    }

    .hero-texto p {
        font-size: 0.95rem;
    }

    /* SOBRE */
    #sobre {
        padding: 2.5rem 1.2rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sobre-conteudo {
        flex-direction: column;
        gap: 2rem;
    }

    .sobre-texto {
        max-width: 100%;
    }

    .sobre-texto h2 {
        font-size: 1.6rem;
    }

    .slider {
        display: flex;
        width: 90vw;
        height: 50vh;
    }

    .seta {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    /* GALERIA */
    #galeria {
        padding: 2.5rem 1.2rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    #galeria h2 {
        font-size: 1.5rem;
    }

    .galeria-slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
    }

    .galeria-item {
        min-width: 250px;
        scroll-snap-align: center;
    }

    .galeria-item img {
        height: 50vh;
    }

    .galeria-item img:hover {
        height: 50vh;
    }

    .galeria-seta {
        display: none;
    }

    #modal-descricao {
        text-align: center;
    }

    /* NOTÍCIAS */
    #noticias {
        padding: 2.5rem 1.2rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    #noticias h2 {
        font-size: 1.5rem;
    }

    .noticias-busca input {
        max-width: 100%;
        font-size: 1rem;
    }

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

    /* CONTATO */
    #contato {
        padding: 2.5rem 1.2rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    #contato h2 {
        font-size: 1.5rem;
    }

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

    .form-grupo:nth-child(5) {
        grid-column: span 1;
    }

    .botao-enviar {
        grid-column: span 1;
    }

    /* BOTÃO VOLTAR AO TOPO */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    /* NAVEGAÇÃO */
    .navbar-topicos {
        padding: 0.6rem;
        gap: 0.4rem;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100%;
    }

    .navbar-topicos a {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* SCROLL INDICATOR */
    .scroll-indicator {
        padding: 0;
    }

    .scroll-indicator-arrow::after {
        font-size: 1.8rem;
    }

    /* HERO */
    #hero {
        min-height: 85vh;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-imagem {
        min-height: 35vh !important;
        max-width: 100%;
        overflow: hidden;
    }

    .hero-fading {
        height: 56px;
    }

    .hero-texto {
        padding: 1.2rem 0.8rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-cargo {
        font-size: 0.7rem;
    }

    .hero-texto h1 {
        font-size: 1.1rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-texto p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-botao {
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    /* SOBRE */
    #sobre {
        padding: 1.8rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sobre-texto h2,
    #galeria h2,
    #noticias h2,
    #contato h2 {
        font-size: 1.2rem;
        margin: 0.5rem 0 1rem 0;
    }

    .sobre-label,
    .galeria-label,
    .noticias-label,
    .contato-label {
        font-size: 0.65rem;
    }

    .sobre-texto p,
    .noticia-conteudo p {
        font-size: 0.8rem;
    }

    /* SLIDER */
    .slider {
        position: relative;
        height: 40vh;
    }

    .seta {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    /* GALERIA */
    #galeria {
        padding: 2.8rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .galeria-slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
    }

    .galeria-item {
        min-width: 180px;
        scroll-snap-align: center;
    }

    .galeria-item img {
        height: 40vh;
    }

    .galeria-item img:hover {
        height: 40vh;
    }

    .galeria-item p {
        font-size: 0.8rem;
    }

    .galeria-seta {
        display: none;
    }

    /* NOTÍCIAS */
    #noticias {
        padding: 1.8rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .noticias-busca {
        margin-bottom: 1.5rem;
    }

    .noticias-busca input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .noticias-grid {
        gap: 1rem;
    }

    .noticia-item img {
        height: 130px;
    }

    .noticia-conteudo {
        padding: 1rem;
    }

    .noticia-conteudo h3 {
        font-size: 0.9rem;
    }

    .noticia-data {
        font-size: 0.75rem;
    }

    .noticia-conteudo a {
        font-size: 0.8rem;
    }

    /* CONTATO */
    #contato {
        padding: 3rem 3vw;
    }

    /* CONTATO */
    #contato {
        max-width: 100%;
        overflow-x: hidden;
    }

    .contato-label {
        font-size: 0.65rem;
    }

    .contato-descricao {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .contato-form {
        gap: 0.8rem;
    }

    .form-grupo label {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .form-grupo input,
    .form-grupo select,
    .form-grupo textarea {
        padding: 8px;
        font-size: 0.85rem;
    }

    .botao-enviar {
        padding: 12px;
        font-size: 0.85rem;
    }

    /* BOTÃO VOLTAR AO TOPO */
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}