/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* BODY */
body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: #2b2b2b;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 243, 176, 0.9),
            rgba(255, 152, 0, 0.75),
            rgba(77, 208, 225, 0.75)
        ),
        url("imagens/background-praia.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* =========================
   LOGO
========================= */
.logo {
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to bottom, #ff9800, #ff5722);
}

.logo img {
    width: 90%;
    max-width: 420px;
    display: block;
    margin: auto;
}

/* =========================
   IDIOMAS
========================= */
.lang-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
}

.lang-btn {
    width: 36px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* HOVER */
.lang-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* FOCO ACESSIBILIDADE */
.lang-btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* IDIOMA ATIVO */
.lang-btn.active {
    box-shadow: 0 0 0 3px #00bcd4;
    transform: scale(1.12);
}

/* =========================
   MENU
========================= */
.menu-toggle {
    display: none;
    background: orangered;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    margin: 10px auto;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
}

.menu a {
    background: orangered;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .menu {
        display: none;
        flex-direction: column;
        background: linear-gradient(to bottom, #ff9800, #ff5722);
        padding: 20px 0;
    }
    .menu.active { display: flex; }
}

/* =========================
   TÍTULO
========================= */
main h1 {
    margin: 30px 0;
    font-size: 2rem;
}

/* =========================
   CARROSSEL (CORRIGIDO)
========================= */
.carousel-coverflow {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 360px;
    margin: 40px auto;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 🔥 AQUI ESTÁ A CORREÇÃO */
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    border-radius: 12px;
    cursor: pointer;
}

/* ESTADOS */
.carousel-item.is-center {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
}

.carousel-item.is-left {
    transform: translate(-170%, -50%) scale(0.75);
    opacity: 0.8;
    z-index: 2;
}

.carousel-item.is-right {
    transform: translate(70%, -50%) scale(0.75);
    opacity: 0.8;
    z-index: 2;
}

.carousel-item.is-hidden {
    opacity: 0;
}

/* =========================
   SETAS
========================= */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
}

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

/* =========================
   MODAL
========================= */
.photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.photo-modal.active {
    display: flex;
}

.photo-modal img {
    max-width: 95%;
    max-height: 95%;
}

.photo-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* PATROCÍNIO */
.Patrocinio img {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

footer {
    background: linear-gradient(
        to right,
        #00bcd4,
        #4dd0e1
    );
    color: #004d40;
    text-align: center;
    font-weight: bold;
    padding: 12px 8px;
    font-size: 14px;
    line-height: 1.3;

    width: 100%;
}

footer span {
    display: inline;
    margin: 0;
    padding: 0;
}

@media (max-width: 480px) {
    footer {
        padding: 8px 6px;
        font-size: 8px;
        line-height: 1.2;
    }
}

/* =========================
   COVERFLOW – TAMANHOS
========================= */
.carousel-coverflow {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    height: 420px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* BASE */
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    transition: 0.5s ease;
    max-width: 260px;
    cursor: pointer;
}

/* CENTRO (DESTAQUE GRANDE) */
.carousel-item.is-center {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
    z-index: 3;
    max-width: 420px;
}

/* ESQUERDA */
.carousel-item.is-left {
    transform: translate(-140%, -50%) scale(0.75);
    opacity: 0.7;
    z-index: 2;
}

/* DIREITA */
.carousel-item.is-right {
    transform: translate(40%, -50%) scale(0.75);
    opacity: 0.7;
    z-index: 2;
}

/* ESCONDIDOS */
.carousel-item.is-hidden {
    opacity: 0;
    pointer-events: none;
}