/* =========================================================
   SGSA — ONDE ESTAMOS
   Página simples integrada ao layout global.
   ========================================================= */

.onde-page {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;

    padding: 30px 0 42px;
    overflow: hidden;
}

/* =========================================================
   SÍMBOLO DE LOCALIZAÇÃO
   ========================================================= */

.contato-symbol {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
}

.symbol-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(215, 163, 61, .45);
    border-radius: 50%;
}

.ring-outer {
    animation: rotateRing 15s linear infinite;
}

.ring-inner {
    inset: 8px;
    border-style: dashed;
    border-color: rgba(215, 163, 61, .35);
    animation: rotateRingReverse 11s linear infinite;
}

.symbol-icon {
    position: relative;
    z-index: 2;
    color: #f0cf7a;
    font-size: 27px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(215, 163, 61, .45);
}

.contato-eyebrow {
    margin: 0 0 11px;
    color: var(--sgsa-gold);
    font-family: Montserrat, Arial, sans-serif;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .23em;
    opacity: .9;
}

/* =========================================================
   CABEÇALHO DA PÁGINA
   ========================================================= */

.onde-header {
    position: relative;
    z-index: 2;

    text-align: center;
    margin-bottom: 28px;
}

.onde-header h1 {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 4vw, 3.4rem);
    font-weight: 400;

    line-height: 1;
    letter-spacing: -.025em;

    text-shadow: 0 4px 18px rgba(0, 0, 0, .6);
}

.onde-header h1 span {
    color: var(--sgsa-gold);
}

.onde-divider {
    width: 64px;
    height: 2px;

    margin: 14px auto 11px;

    background: var(--sgsa-gold);

    box-shadow: 0 0 10px rgba(215, 163, 61, .22);
}

.onde-schedule {
    margin: 0;

    color: rgba(255, 255, 255, .82);

    font-size: .88rem;
    line-height: 1.45;
}

.onde-schedule strong {
    color: #ffffff;
}

/* =========================================================
   LOCAIS
   ========================================================= */

.onde-locations {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    position: relative;
    z-index: 2;

    gap: 18px;
}

.onde-location {
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(114, 27, 32, .88),
            rgba(55, 14, 18, .92)
        );

    border: 1px solid rgba(215, 163, 61, .48);
    border-radius: 8px;

    box-shadow:
        0 18px 42px rgba(0, 0, 0, .38),
        0 0 0 1px rgba(255, 255, 255, .025);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.onde-location:hover {
    transform: translateY(-5px);

    border-color: rgba(240, 198, 107, .88);

    box-shadow:
        0 24px 50px rgba(0, 0, 0, .48),
        0 0 24px rgba(215, 163, 61, .08);
}

/* =========================================================
   IMAGENS
   ========================================================= */

.onde-image {
    position: relative;

    aspect-ratio: 4 / 1;

    overflow: hidden;

    background: #2a1013;
}

.onde-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(28, 7, 10, .52),
            transparent 60%
        );

    pointer-events: none;
}

.onde-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s cubic-bezier(.2, .8, .2, 1),
        filter .5s ease;
}

.onde-location:hover .onde-image img {
    transform: scale(1.035);
    filter: brightness(1.05);
}

/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.onde-info {
    min-height: 68px;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 12px 18px;
}

.onde-number {
    flex: 0 0 auto;

    color: var(--sgsa-gold);

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .12em;
}

.onde-state {
    display: block;

    margin-bottom: 3px;

    color: rgba(240, 198, 107, .82);

    font-size: .62rem;
    font-weight: 700;

    letter-spacing: .18em;
}

.onde-info h2 {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 400;

    line-height: 1.15;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */


/* =========================================================
   ANIMAÇÕES DO SÍMBOLO
   ========================================================= */

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateRingReverse {
    to {
        transform: rotate(-360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contato-symbol * {
        animation: none !important;
    }
}

@media (max-width: 760px) {

    .contato-symbol {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .symbol-icon {
        font-size: 24px;
    }

    .contato-eyebrow {
        font-size: .54rem;
        letter-spacing: .17em;
    }



    .onde-page {
        width: min(100% - 24px, 560px);

        padding: 38px 0 90px;

        /* Permite que o último conteúdo ultrapasse a área visual
           sem ser cortado no final da página em telas móveis. */
        overflow: visible;
    }

    .onde-header {
        margin-bottom: 26px;
    }

    .onde-header h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .onde-schedule {
        font-size: .86rem;
    }

    .onde-locations {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .onde-info {
        min-height: 76px;
        padding: 16px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onde-location,
    .onde-image img {
        transition: none;
    }
}


@media (max-width: 760px) {
    .onde-page .hero-ring-1 {
        width: 480px;
        height: 480px;
    }

    .onde-page .hero-ring-2 {
        width: 680px;
        height: 680px;
    }
}

/* =========================================================
   AJUSTE PARA NOTEBOOK — CARDS MAIS COMPACTOS
   ========================================================= */

@media (min-width: 761px) and (max-height: 850px) {

    .onde-page {
        padding-top: 24px;
        padding-bottom: 30px;
    }

    .onde-header {
        margin-bottom: 18px;
    }

    .contato-symbol {
        width: 44px;
        height: 44px;
        margin-bottom: 7px;
    }

    .ring-inner {
        inset: 6px;
    }

    .symbol-icon {
        font-size: 20px;
    }

    .contato-eyebrow {
        margin-bottom: 5px;
        font-size: .52rem;
    }

    .onde-header h1 {
        font-size: clamp(2rem, 3.6vw, 2.8rem);
    }

    .onde-divider {
        margin: 9px auto 7px;
        width: 48px;
    }

    .onde-schedule {
        font-size: .76rem;
        line-height: 1.25;
    }

    .onde-locations {
        gap: 12px;
    }

    /*
     * Redução principal:
     * os cards ficam significativamente menores na vertical.
     */
    .onde-image {
        aspect-ratio: 5 / 1;
    }

    .onde-info {
        min-height: 48px;
        height: 48px;
        padding: 7px 14px;
    }

    .onde-state {
        margin-bottom: 2px;
        font-size: .50rem;
        letter-spacing: .15em;
    }

    .onde-info h2 {
        font-size: 1.08rem;
        line-height: 1.05;
    }
}

