:root {
    --cor-branca: #fff;
    --cor-azul: #003478;
    --cor-azul-escuro: #00234a;
    --cor-botao-hover: #0057c2;
    --transition-rapida: 0.2s ease;
    --transition: 0.3s ease;
    --border-radius: 0.75rem;
    --container-gap: clamp(1rem, 2.5vw, 2.5rem);
    --surface-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: "Inter", sans-serif;
}

.carousel__viewport {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
}

#carousel {
    position: relative;
    width: 90%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
}

#carousel .carousel__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

#carousel .carousel__slide.carousel__slide--active {
    opacity: 1;
}

#carousel .carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.carousel__button--prev { left: 10px; }
.carousel__button--next { right: 10px; }

.carousel__button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

div#carousel-title {
    text-align: center;
    margin: 2rem 0 2rem;
    font-size: 0.9rem;
    width: 60%;
    padding-bottom: 15px;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--cor-branca);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
svg,
iframe {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cor-azul);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background: var(--cor-branca);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.header__logo {
    display: flex;
    align-items: center;
    justify-self: start;
    padding: 0 2rem 0 1rem;
    text-decoration: none;
}

.header__logo-image {
    width: 6rem;
    flex-shrink: 0;
}

#menu-hamburguer {
    display: none;
}

.header__nav-toggle {
    display: none;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 3.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.header__nav-link {
    position: relative;
    display: inline-block;
    color: var(--cor-azul-escuro);
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--transition);
}

.header__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 100%;
    height: 2px;
    background: var(--cor-azul);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.header__nav-link:hover {
    color: var(--cor-azul);
}

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.page {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.page__video {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #000;
}

.page__video-player {
    width: 55%;
    aspect-ratio: 16 / 9;
}

.page__video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.page__text {
    width: 55%;
    margin: 2rem 0;
    font-size: 0.8rem;
    line-height: 1.8;
    text-align: center;
}

.btn--hero,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    margin-bottom: 4rem;
    background: var(--cor-azul);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 52, 120, 0.3);
    color: var(--cor-branca);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition-rapida),
        transform var(--transition-rapida),
        box-shadow var(--transition-rapida);
}

.btn--hero {
    margin-bottom: 3rem;
}

.btn--hero:hover,
.btn:hover {
    background: var(--cor-azul-escuro);
    box-shadow: 0 6px 18px rgba(0, 52, 120, 0.45);
    transform: translateY(-3px);
}

.btn--hero:active,
.btn:active {
    box-shadow: 0 3px 8px rgba(0, 52, 120, 0.4);
    transform: translateY(-1px);
}

body:has(#menu-hamburguer:checked) :is(.page, .footer) {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    padding: 0 0 3rem 0;
}

.gallery__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.gallery__image {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.gallery__caption-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130%;
    padding-top: 1rem;
}

.gallery__checkbox {
    flex: 0 0 auto;
    width: 1.4rem;
    height: 1.4rem;
    accent-color: var(--cor-azul);
    cursor: pointer;
}

.gallery__caption {
    flex: 0 1 auto;
    margin: 0 0.7rem;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
}

.gallery__caption--highlight {
    font-weight: 600;
    color: var(--cor-azul);
}

.gallery__info {
    width: 1.5rem;
    flex-shrink: 0;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 5rem;
}

.contact__image {
    width: 40%;
}

.contact__image img {
    width: 100%;
}

.contact__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    margin-top: auto;
    background: var(--cor-azul);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-self: start;
}

.footer__text {
    margin: 0;
    color: var(--cor-branca);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer__links-logo {
    display: flex;
    justify-content: center;
}

.footer__links-logo img {
    width: 2.5rem;
}

.footer__copyright {
    margin: 0;
    color: var(--cor-branca);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    justify-self: center;
}

.footer__logo {
    width: 4.375rem;
    justify-self: end;
}

.footer a:focus-visible {
    outline-color: var(--cor-branca);
}

@media (max-width: 1200px) {
    .page {
        gap: 0rem;
    }

    .header__nav {
        gap: 2rem;
    }

    .gallery__item {
        width: 20%;
    }

    div#carousel {
        width: 100%;
    }

    #carousel {
        border-radius: 0;
        aspect-ratio: 16 / 9;
    }

    .page__text {
        width: 80%;
        font-size: 0.8rem;
    }

    .page__video {
        width: 100%;
        aspect-ratio: 4 / 2;
        overflow: hidden;
    }

    .page__video iframe {
        width: 100%;
        height: 100%;
        transform: scale(1.9);
        transform-origin: center;
        border: 0;
    }

    .btn--hero {
        margin-bottom: 5rem;
    }

    .contact {
        flex-direction: column;
        width: 70%;
        gap: 0;
    }

    .contact__image {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .contact__image img {
        width: 80%;
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .footer__social {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer__logo {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        display: flex;
        justify-content: space-between;
        height: 4rem;
    }

    .header__nav {
        gap: 0;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background: var(--cor-branca);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition:
            max-height var(--transition),
            opacity var(--transition),
            transform var(--transition),
            visibility 0s linear 0.35s;
    }

    .header__logo-image {
        width: 4.5rem;
    }

    .header__nav-toggle {
        display: flex;
        font-size: 1.5rem;
        cursor: pointer;
        flex-direction: column;
        gap: 0.3rem;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%) scaleX(1.2);
    }

    .header__nav-toggle span {
        display: flex;
        width: 2rem;
        height: 0.3rem;
        background: var(--cor-azul);
        border-radius: 0.2rem;
        flex-direction: column;
        transition:
            transform var(--transition),
            opacity var(--transition);
    }

    #menu-hamburguer:checked + .header__nav-toggle + .header__nav {
        max-height: 350px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        gap: 0;
        transition-delay: 0s;
    }

    #menu-hamburguer:checked + .header__nav-toggle span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    #menu-hamburguer:checked + .header__nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    #menu-hamburguer:checked + .header__nav-toggle span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .header__nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        width: 100%;
        border-bottom: 2px solid #f0f4f8;
    }

    .page {
        gap: 1rem;
    }

    .carousel__viewport {
        display: flex;
        justify-content: center;
    }

    #carousel {
        aspect-ratio: 4 / 3;
    }

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

    div#carousel-title {
        font-size: 0.9rem;
        width: 90%;
        margin: 1.5rem 0;
    }

    .page__video-link {
        width: 100%;
        border-radius: 0;
    }

    .page__video {
        width: 95%;
        aspect-ratio: 9 / 16;
        overflow: hidden;
    }

    .page__video iframe {
        width: 100%;
        height: 100%;
        transform: scale(5.8);
        transform-origin: center;
        border: 0;
    }

    .page__text {
        width: 85%;
        margin: 0;
    }

    .contact {
        width: 90%;
    }

    .contact__image img {
        width: 80%;
    }

    .btn--hero,
    .btn {
        display: block;
        width: 80%;
        margin-bottom: 6rem;
        padding: 1.5rem;
        text-align: center;
    }

    .gallery__caption {
        font-size: 0.8rem;
    }

    .gallery__info {
        width: 8%;
    }

    .gallery__item {
        width: 60%;
    }

    .footer__text,
    .footer__copyright {
        font-size: 0.8rem;
    }
}
