/* ==========================================================================
   ACP-SG
   ASSOCIAÇÃO CIDADE PRAIA SALTO GRANDE

   HEADER PRINCIPAL
   ========================================================================== */


/* ==========================================================================
   VARIÁVEIS
   ========================================================================== */

.site-header {

    --header-white: #ffffff;

    --blue-dark: #073f52;
    --blue: #0b5870;
    --blue-soft: #176b80;

    --turquoise: #269eae;
    --turquoise-light: #bce7eb;

    --text: #104d60;

    --border: rgba(16, 77, 96, 0.14);

    --radius: 9px;

    /*
     * O header acompanha a página.
     * Ele permanece visível durante a rolagem.
     */
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: var(--header-white);

    box-shadow:
        0 4px 18px rgba(7, 62, 82, 0.08);
}


/* ==========================================================================
   RESET LOCAL
   ========================================================================== */

.site-header *,
.site-header *::before,
.site-header *::after {

    box-sizing: border-box;

}


/* ==========================================================================
   ÁREA PRINCIPAL
   ========================================================================== */

.site-header__main {

    position: relative;
    z-index: 20;

    width: 100%;
    height: 155px;

    background: #ffffff;

}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.site-header__inner {

    position: relative;
    z-index: 30;

    width: min(1380px, calc(100% - 60px));
    height: 155px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 35px;

}


/* ==========================================================================
   LOGO
   ========================================================================== */

.site-header__logo {

    position: relative;
    z-index: 50;

    flex: 0 0 205px;

    width: 205px;
    height: 205px;

    display: flex;

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

    text-decoration: none;

}


.site-header__logo img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

}


/* ==========================================================================
   NAVEGAÇÃO
   ========================================================================== */

.site-header__nav {

    position: relative;
    z-index: 50;

    flex: 1;

    min-width: 0;

    display: flex;

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

    gap: 14px;

}


/* ==========================================================================
   MENU
   ========================================================================== */

.site-header__menu {

    display: flex;

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

    gap: 3px;

    margin: 0;
    padding: 0;

    list-style: none;

}


/* ==========================================================================
   ITEM
   ========================================================================== */

.site-header__item {

    position: relative;

}


/* ==========================================================================
   LINKS E BOTÕES
   ========================================================================== */

.site-header__nav a,
.site-header__nav button {

    font-family: inherit;

    color: var(--text);

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    border: 0;
    outline: none;

    background: transparent;

    cursor: pointer;

}


/* ==========================================================================
   LINKS PRINCIPAIS
   ========================================================================== */

.site-header__menu > .site-header__item > a,
.site-header__dropdown-button {

    min-height: 46px;

    padding: 0 11px;

    display: inline-flex;

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

    gap: 8px;

    border-radius: var(--radius);

    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;

}


/* ==========================================================================
   HOVER
   ========================================================================== */

.site-header__menu > .site-header__item > a:hover,
.site-header__dropdown-button:hover {

    color: var(--blue);

    background: rgba(38, 158, 174, 0.09);

}


/* ==========================================================================
   MENU ATIVO
   ========================================================================== */

.site-header__menu > .site-header__item > a.is-active {

    color: var(--blue);

    background:
        linear-gradient(
            135deg,
            rgba(38, 158, 174, 0.13),
            rgba(188, 231, 235, 0.20)
        );

}


/*
 * Grupo ativo.
 * Usado pelas páginas agrupadas, como:
 *
 * A Associação
 * Meio Ambiente
 *
 * O PHP adiciona "is-active" ao <li>.
 */

.site-header__menu > .site-header__item.is-active
.site-header__dropdown-button {

    color: var(--blue);

    background:
        linear-gradient(
            135deg,
            rgba(38, 158, 174, 0.13),
            rgba(188, 231, 235, 0.20)
        );

}


/* ==========================================================================
   ÍCONES
   ========================================================================== */

.site-header__menu > .site-header__item > a > i,
.site-header__dropdown-button > i:first-child {

    width: 17px;

    flex: 0 0 17px;

    color: var(--blue);

    font-size: 14px;

    text-align: center;

}


/* ==========================================================================
   SETA
   ========================================================================== */

.site-header__arrow {

    width: auto !important;

    margin-left: 3px;

    color: var(--blue) !important;

    font-size: 9px !important;

    transition: transform 0.22s ease;

}


.site-header__item--dropdown:hover
.site-header__arrow,

.site-header__item--dropdown:focus-within
.site-header__arrow,

.site-header__dropdown-button[aria-expanded="true"]
.site-header__arrow {

    transform: rotate(180deg);

}


/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.site-header__dropdown {

    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    z-index: 500;

    width: 270px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow:
        0 18px 45px rgba(7, 62, 82, 0.15);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
        translate(-50%, 8px);

    transition:
        opacity 0.20s ease,
        visibility 0.20s ease,
        transform 0.20s ease;

}


/* ==========================================================================
   TRIÂNGULO
   ========================================================================== */

.site-header__dropdown::before {

    content: "";

    position: absolute;

    top: -7px;
    left: 50%;

    width: 13px;
    height: 13px;

    background: #ffffff;

    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);

    transform:
        translateX(-50%)
        rotate(45deg);

}


/* ==========================================================================
   DROPDOWN ABERTO
   ========================================================================== */

.site-header__item--dropdown:hover
.site-header__dropdown,

.site-header__item--dropdown:focus-within
.site-header__dropdown,

.site-header__dropdown-button[aria-expanded="true"]
+ .site-header__dropdown {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translate(-50%, 0);

}


/* ==========================================================================
   LINKS DO DROPDOWN
   ========================================================================== */

.site-header__dropdown li {

    width: 100%;

}


.site-header__dropdown li a {

    width: 100%;

    min-height: 44px;

    padding: 0 13px;

    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--text);

    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    transition:
        color 0.20s ease,
        background-color 0.20s ease;

}


.site-header__dropdown li a:hover {

    color: var(--blue);

    background:
        linear-gradient(
            90deg,
            rgba(38, 158, 174, 0.09),
            rgba(188, 231, 235, 0.16)
        );

}


.site-header__dropdown li a i {

    width: 18px;

    color: var(--turquoise);

    font-size: 13px;

    text-align: center;

}


/* ==========================================================================
   MENU MOBILE
   ========================================================================== */

.site-header__mobile-toggle {

    display: none;

    position: relative;
    z-index: 100;

    width: 47px;
    height: 47px;

    padding: 0;

    border: 0;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--turquoise),
            var(--blue)
        );

    cursor: pointer;

}


.site-header__mobile-toggle span {

    display: block;

    width: 22px;
    height: 2px;

    margin: 4px auto;

    background: #ffffff;

    border-radius: 2px;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease;

}


.site-header__mobile-toggle.is-active
span:nth-child(1) {

    transform:
        translateY(6px)
        rotate(45deg);

}


.site-header__mobile-toggle.is-active
span:nth-child(2) {

    opacity: 0;

}


.site-header__mobile-toggle.is-active
span:nth-child(3) {

    transform:
        translateY(-6px)
        rotate(-45deg);

}


/* ==========================================================================
   MENU MOBILE ABERTO
   ========================================================================== */

.site-header__mobile-menu {

    display: none;

    position: relative;
    z-index: 800;

    width: 100%;

    padding: 15px 20px 30px;

    background: #ffffff;

    border-top: 1px solid var(--border);

    box-shadow:
        0 15px 35px rgba(7, 62, 82, 0.12);

}


.site-header__mobile-menu.is-open {

    display: block;

}


.site-header__mobile-menu > ul {

    margin: 0;
    padding: 0;

    list-style: none;

}


/* ==========================================================================
   LINKS MOBILE
   ========================================================================== */

.site-header__mobile-menu a,
.site-header__mobile-menu button {

    width: 100%;
    min-height: 50px;

    padding: 0 13px;

    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--text);

    background: transparent;

    border: 0;
    border-radius: 8px;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

}


.site-header__mobile-menu a:hover,
.site-header__mobile-menu button:hover {

    background: rgba(38, 158, 174, 0.08);

}


.site-header__mobile-menu i {

    width: 20px;

    flex: 0 0 20px;

    color: var(--turquoise);

    text-align: center;

}


/* ==========================================================================
   SUBMENU MOBILE
   ========================================================================== */

.site-header__mobile-menu .submenu {

    display: none;

    margin: 0 0 5px 20px;

    padding: 4px 0 8px;

    border-left: 2px solid var(--turquoise-light);

}


.site-header__mobile-menu .submenu.is-open {

    display: block;

}


.site-header__mobile-menu .submenu a {

    min-height: 43px;

    font-size: 14px;
    font-weight: 600;

}


/* ==========================================================================
   SETA MOBILE
   ========================================================================== */

.site-header__mobile-menu
.mobile-has-submenu
> button
> i:last-child {

    margin-left: auto;

    width: auto;

    font-size: 10px;

    transition:
        transform 0.22s ease;

}


.site-header__mobile-menu
.mobile-has-submenu
> button[aria-expanded="true"]
> i:last-child {

    transform: rotate(180deg);

}


/* ==========================================================================
   CTA MOBILE
   ========================================================================== */

.site-header__mobile-cta {

    margin-top: 10px;

    justify-content: center;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            var(--turquoise),
            var(--blue)
        ) !important;

}


/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */


/* ==========================================================================
   ATÉ 1250px
   ========================================================================== */

@media (max-width: 1250px) {

    .site-header__main {

        height: 140px;

    }


    .site-header__inner {

        width: calc(100% - 45px);

        height: 140px;

        gap: 20px;

    }


    .site-header__logo {

        flex-basis: 185px;

        width: 185px;
        height: 185px;

    }


    .site-header__menu > .site-header__item > a,
    .site-header__dropdown-button {

        padding: 0 8px;

        font-size: 12px;

    }


}


/* ==========================================================================
   ATÉ 1050px
   ========================================================================== */

@media (max-width: 1050px) {

    .site-header__main {

        height: 100px;

    }


    .site-header__inner {

        width: calc(100% - 35px);

        height: 100px;

    }


    .site-header__logo {

        flex-basis: 150px;

        width: 150px;
        height: 150px;

    }


    .site-header__nav {

        display: none;

    }


    .site-header__mobile-toggle {

        display: block;

    }


}


/* ==========================================================================
   ATÉ 600px
   ========================================================================== */

@media (max-width: 600px) {

    .site-header__main {

        height: 82px;

    }


    .site-header__inner {

        width: calc(100% - 25px);

        height: 82px;

    }


    .site-header__logo {

        flex-basis: 135px;

        width: 135px;
        height: 135px;

    }


    .site-header__mobile-toggle {

        width: 44px;
        height: 44px;

    }


}


/* ==========================================================================
   ATÉ 400px
   ========================================================================== */

@media (max-width: 400px) {

    .site-header__logo {

        flex-basis: 125px;

        width: 125px;
        height: 125px;

    }


    .site-header__mobile-toggle {

        width: 42px;
        height: 42px;

    }

}