﻿        :root {
            --cor-verde-sesi: #68b42d;
            --cor-azul-escuro: #0e4194;
            --cor-cinza-claro: #e7e7e7;
        }

        body, html {
            margin: 0; padding: 0; height: 100%; font-family: sans-serif; overflow: hidden;
        }

        #map {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        }

        .overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background-color: white;
            transition: opacity 0.5s ease, visibility 0.5s ease;
            z-index: 200;
        }

        .overlay.hidden, #ui-top-left.hidden {
            opacity: 0; visibility: hidden; pointer-events: none;
        }

        /* --- Estilos da Capa (`#overlay-capa`) --- */
        #overlay-capa { display: flex; align-items: center; justify-content: center; text-align: center; }
        .barra-lateral { position: absolute; left: 0; top: 0; height: 100%; width: 328px; background-color: var(--cor-azul-escuro); animation: slideInFromLeft 1.5s ease-out forwards; }
        
        .imagem-principal-capa {
            max-width: 90%;
            max-height: 80vh;
            height: auto;
            animation: fade-in 1s ease-out forwards;
        }

        /* --- Capa em HTML (substitui a imagem antiga) --- */
        .capa-texto-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            padding-left: 5%;
            animation: fade-in 1s ease-out forwards;
        }
        /* .capa-saudacao herdado pelo .capa-logo-wrapper (absolute) */
        .capa-logo-container {
            background-color: var(--cor-azul-escuro);
            border-radius: 18px;
            padding: 22px 44px;
            display: inline-block;
            box-shadow: 0 6px 20px rgba(14,65,148,0.30);
        }
        .capa-logo {
            max-width: 420px;
            width: 45vw;
            height: auto;
            display: block;
        }
        .capa-logo-wrapper {
            position: relative;
            display: inline-block;
        }
        .capa-logo-wrapper .capa-saudacao {
            position: absolute;
            top: 25%;
            left: 3%;
            z-index: 2;
            margin: 0;
            font-family: "Neo Sans Pro Italic", "Neo Sans Pro", sans-serif;
            font-style: italic;
            font-size: 2.2rem;
            color: var(--cor-verde-sesi);
        }
        .capa-logo-img {
            max-width: 676px;
            width: 71.5vw;
            height: auto;
            display: block;
            position: relative;
            z-index: 1;
        }
        .capa-subtitulo {
            font-family: "Neo Sans Pro", sans-serif;
            font-weight: 900;
            font-size: 1.8rem;
            color: var(--cor-azul-escuro);
            margin: 0;
            letter-spacing: 1px;
        }

        .menu-inferior-verde {
            position: fixed;
            bottom: 0px;
            right: 130px;
            z-index: 1000;
            background-color: #03748c;
            border-radius: 25px 25px 0px 0px;
            padding: 1% 2%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            gap: 10px;
            animation: slideInFromBottom 1.5s ease-out forwards;
        }

        .menu-botao-vertical {
            color: white; text-decoration: none; font-weight: bold; font-size: 0.9rem;
            padding: 15px 25px; border-radius: 15px; text-align: center;
            transition: background-color 0.2s ease;
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            background-color: transparent; border: none; cursor: pointer;
        }
        .menu-botao-vertical:hover { background-color: rgba(255, 255, 255, 0.15); }
        .menu-botao-vertical img { height: 40px; width: auto; }
        
        /* --- Estilos da Introdução (`#overlay-introducao`) --- */
        #overlay-introducao .fundo-imagem-intro { position: fixed; top: 0; right: 0; width: 50%; height: 100vh; background-image: url('images/fotosesi.jpg'); background-size: cover; background-position: center; }
        #overlay-introducao .painel-conteudo-intro { position: absolute; top: 0; left: 5%; width: 65%; height: 100vh; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(5px); padding: 0 0 2vw 0; box-sizing: border-box; }
        #overlay-introducao .cabecalho-introducao { display: flex; flex-direction: column; align-items: flex-start; }
        #overlay-introducao .container-logo-sesi { background-color: var(--cor-verde-sesi); border-radius: 0px 0px 82px 82px; padding: 2% 8%; max-width: 280px; opacity: 0; }
        .painel-conteudo-intro.animar { animation: slideInFromRight 1s ease-out forwards; }
        .painel-conteudo-intro.animar .container-logo-sesi { animation: slideDownFadeIn 0.8s ease-out forwards; }
        #overlay-introducao .container-logo-sesi img { width: 100%; display: block; }
        #overlay-introducao .container-menu-botoes-intro { background-color: var(--cor-cinza-claro); border-radius: 0px 0px 40px 40px; display: flex; gap: 8%; padding: 1.5% 5%; opacity: 0; margin-left: 80px; }
        .painel-conteudo-intro.animar .container-menu-botoes-intro { animation: fadeInDelayed 1.2s ease-out forwards; }
        #overlay-introducao .menu-botao { color: var(--cor-verde-sesi); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: bold; }
        #overlay-introducao .menu-botao img { height: 40px; }
        #overlay-introducao .conteudo-principal-intro { flex-grow: 1; display: flex; align-items: center; gap: 3vw; padding: 0 5%; }
        #overlay-introducao .coluna-texto { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            justify-content: center;
            padding-right: 20px; 
        }
        #overlay-introducao .coluna-texto h2 {
            font-family: "Neo Sans Pro Black Italic", "Neo Sans Pro", sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 2.2rem;
            color: var(--cor-verde-sesi);
            margin-bottom: 1.5rem;
            line-height: 1.2;
            text-transform: uppercase;
        }
        #overlay-introducao .coluna-texto p {
            font-family: "Neo Sans Pro Italic", "Neo Sans Pro", sans-serif;
            font-style: italic;
            font-size: 1.1rem;
            line-height: 1.5;
            margin-bottom: 1rem;
            color: #333;
            text-align: justify;
        }
        #overlay-introducao .coluna-mapa { flex: 1; text-align: center; }
        #overlay-introducao .coluna-mapa img { max-width: 100%; filter: drop-shadow(5px 10px 15px rgba(0,0,0,0.3)); }
        
        /* --- Estilos da Interface do Mapa --- */
        #ui-top-left {
            position: absolute; top: 0px; left: 60px;
            z-index: 320;
            display: flex; flex-direction: column; align-items: center;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        #sesi-banner-mapa {
            background-color: var(--cor-verde-sesi); padding: 25px 60px;
            border-radius: 0px 0px 30px 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            z-index: 2;
            position: relative;
            min-width: 250px;
            animation: fadeInDelayed 1.5s ease-out forwards; 
        }
        #sesi-banner-mapa img { height: 65px; width: auto; display: block; }
        #proof-button {
            background-color: white; color: var(--cor-verde-sesi);
            border: none; padding: 12px 20px;
            border-radius: 0 0 25px 25px;
            cursor: pointer; font-size: 1em; font-weight: bold;
            display: none; transition: all 0.2s ease;
            width: 60%;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            animation: fadeInDelayed 1.5s ease-out forwards;
        }
        #proof-button.visible { display: block; }
        #proof-button:hover { background-color: var(--cor-verde-sesi); color: white; }

        /* --- Estilos do Popup de Detalhes da Unidade --- */
        #info-popup-E {
            position: absolute; top: 50%; transform: translateY(-50%);
            right: -100%; width: 340px;
            z-index: 150; transition: right 0.6s ease-in-out;
            background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
            border-radius: 25px 0 0 25px; padding: 25px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        }
        #info-popup-E.aberto { right: 0px; }
        #fechar-popup-btn {
            position: absolute; top: 15px; right: 15px; z-index: 1;
            background-color: rgba(0,0,0,0.3); color: white;
            border: none; border-radius: 50%;
            width: 30px; height: 30px; font-size: 16px; cursor: pointer;
        }
        #info-popup-content img.popup-foto { width: 100%; height: 50%; object-fit: cover; border-radius: 0px; }
        #info-popup-content h2 { color: var(--cor-verde-sesi); margin-top: 15px; margin-bottom: 10px; }
        #info-popup-content p { color: #333; font-size: 1rem; line-height: 1.5; margin-top: 0; }
        .popup-botoes-tour { display: flex; gap: 10px; margin-top: 20px; }
        .popup-botoes-tour button {
            flex: 1; padding: 15px; font-size: 1rem; font-weight: bold;
            border: 2px solid var(--cor-verde-sesi); background-color: transparent;
            color: var(--cor-verde-sesi); border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
        }
        .popup-botoes-tour button:hover { background-color: var(--cor-verde-sesi); color: white; }

        /* --- Estilos do Botão Home --- */
        #home-button {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 1001;
            background-color: var(--cor-verde-sesi);
            border-radius: 50%;
            padding: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            border: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        #home-button.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        #home-button img {
            height: 30px;
            width: auto;
            display: block;
        }

        /* Painel do Tour Virtual */
        #info-panel {
            position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
            background: #000; z-index: 300; transition: left 0.5s ease;
        }
        #info-panel.aberto { left: 0; }
        #info-content { width: 100%; height: 100%; }
        #info-panel iframe { width: 100%; height: 100%; border: none; }
        #overlay-tutorial { display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.7); }
        #overlay-tutorial .video-container { width: 80%; max-width: 1280px; position: relative; }
        #fechar-tutorial-btn {
            position: absolute; top: -40px; right: 0; z-index: 1001;
            background-color: rgba(255, 255, 255, 0.3); color: white;
            border: none; border-radius: 50%;
            width: 30px; height: 30px; font-size: 16px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background-color 0.3s;
        }
        #fechar-tutorial-btn:hover { background-color: rgba(255, 255, 255, 0.5); }

        /* --- Galeria do popup (unidades em pré-inauguração) --- */
        .popup-galeria { position: relative; width: 100%; }
        .popup-galeria-principal {
            width: 100%; height: 200px; object-fit: cover; border-radius: 0; display: block;
        }
        .popup-badge-status {
            position: absolute; bottom: 10px; left: 10px;
            background-color: var(--cor-verde-sesi); color: white;
            padding: 6px 14px; border-radius: 20px;
            font-weight: bold; font-size: 0.9rem;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }
        .popup-thumbs {
            display: flex; gap: 6px; padding: 8px 0; margin-top: 4px; overflow-x: auto;
        }
        .popup-thumb {
            width: 60px; height: 45px; object-fit: cover;
            border-radius: 6px; cursor: pointer; opacity: 0.6;
            border: 2px solid transparent; transition: all 0.2s ease; flex-shrink: 0;
        }
        .popup-thumb:hover { opacity: 1; }
        .popup-thumb.ativa { opacity: 1; border-color: var(--cor-verde-sesi); }
        .popup-endereco {
            font-size: 0.9rem !important; color: #555 !important;
            margin-top: 10px !important; line-height: 1.4 !important;
        }

        /* =====================================================
           RESPONSIVIDADE — Escola
           ===================================================== */

        /* Tablet paisagem / notebook (768px – 1199px) */
        @media (min-width: 768px) and (max-width: 1199px) {
            .capa-logo-img { width: 55vw; max-width: 460px; }
            .capa-logo-wrapper .capa-saudacao { font-size: 1.6rem; }
            #info-popup-E { width: 390px; }
            #overlay-introducao .painel-conteudo-intro { width: 68%; left: 3%; }
            #overlay-introducao .fundo-imagem-intro { width: 46%; }
            #overlay-introducao .coluna-texto p { font-size: 0.95rem; line-height: 1.6; }
        }

        /* Mobile (≤ 767px) */
        @media (max-width: 767px) {
            /* Capa — texto acima da logo, sem sobreposição */
            .barra-lateral { display: none; }
            .capa-texto-wrapper {
                padding-left: 0;
                align-items: center;
                width: 100%;
                gap: 8px;
            }
            .capa-logo-wrapper {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 90vw;
            }
            .capa-logo-wrapper .capa-saudacao {
                position: static;
                font-size: 1.1rem;
                margin-bottom: 6px;
                text-align: center;
                width: 100%;
            }
            .capa-logo-img {
                width: 90vw;
                max-width: 100%;
            }

            /* Menu inferior — largura total */
            .menu-inferior-verde {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                border-radius: 16px 16px 0 0;
                padding: 8px 4%;
                justify-content: space-around;
                gap: 0;
            }
            .menu-botao-vertical {
                padding: 8px 10px;
                flex: 1;
            }
            .menu-botao-vertical img { height: 26px; }
            .menu-botao-vertical span { font-size: 0.7rem; }

            /* Banner SESI no mapa */
            #ui-top-left { left: 8px; top: 8px; }
            #sesi-banner-mapa { padding: 10px 20px; min-width: auto; }
            #sesi-banner-mapa img { height: 34px; }
            #proof-button { font-size: 0.8em; padding: 8px 12px; width: 90%; }
            #home-button { bottom: 75px; left: 12px; padding: 11px; }

            /* Popup info — bottom sheet */
            #info-popup-E {
                position: fixed;
                width: 100%;
                height: 78vh;
                top: auto;
                bottom: -100%;
                right: 0;
                transform: none;
                border-radius: 20px 20px 0 0;
                padding: 20px 16px 80px;
                box-sizing: border-box;
                overflow-y: auto;
                transition: bottom 0.4s ease-in-out;
            }
            #info-popup-E.aberto {
                bottom: 0;
            }
            #info-popup-content img.popup-foto { height: 170px; }
            .popup-galeria-principal { height: 155px; }
            .popup-thumb { width: 46px; height: 34px; }

            /* Introdução — coluna única */
            #overlay-introducao .painel-conteudo-intro {
                width: 100%;
                left: 0;
                padding: 0 4%;
                box-sizing: border-box;
                overflow-y: auto;
            }
            #overlay-introducao .fundo-imagem-intro { display: none; }
            #overlay-introducao .conteudo-principal-intro {
                flex-direction: column;
                padding: 4% 0 80px;
            }
            #overlay-introducao .coluna-mapa { display: none; }
            #overlay-introducao .container-menu-botoes-intro {
                margin-left: 0;
                justify-content: center;
                gap: 4%;
                padding: 1% 3%;
            }
            #overlay-introducao .container-logo-sesi {
                max-width: 160px;
                padding: 1.5% 6%;
            }
            #overlay-introducao .menu-botao img { height: 28px; }
            #overlay-introducao .menu-botao span { font-size: 0.78rem; }
            #overlay-introducao .coluna-texto h2 { font-size: 1.35rem; }
            #overlay-introducao .coluna-texto p { font-size: 0.87rem; line-height: 1.5; }
            /* ---- Introdução: header mobile (PRP-10) ---- */
            #overlay-introducao .cabecalho-introducao {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                background-color: #ffffff;
                padding: 8px 16px;
                box-sizing: border-box;
                position: sticky;
                top: 0;
                z-index: 50;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
            }
            #overlay-introducao .container-logo-sesi {
                border-radius: 8px;
                padding: 8px 16px;
                max-width: 130px;
                opacity: 1 !important;
                margin-left: 0;
            }
            #overlay-introducao .container-logo-sesi img {
                height: 32px;
                width: auto;
            }
            #overlay-introducao .container-menu-botoes-intro {
                background-color: transparent;
                border-radius: 0;
                padding: 0;
                margin-left: 0;
                gap: 16px;
                opacity: 1 !important;
            }
            #overlay-introducao .menu-botao {
                flex-direction: column;
                align-items: center;
                gap: 2px;
                color: inherit;
            }
            #overlay-introducao .menu-botao img {
                height: 24px;
            }
            #overlay-introducao .menu-botao span {
                font-size: 0.68rem;
                font-weight: bold;
            }
            #overlay-introducao .conteudo-principal-intro {
                flex-direction: column;
                padding: 12px 4% 80px;
            }
            #overlay-introducao .painel-conteudo-intro {
                width: 100%;
                left: 0;
                box-sizing: border-box;
                overflow-y: auto;
                padding: 0;
            }
            /* ---- Banner SESI no mapa (Unidades) — PRP-11 ---- */
            #ui-top-left {
                left: 0;
                top: 0;
                align-items: flex-start;
            }
            #sesi-banner-mapa {
                padding: 10px 20px;
                min-width: 0;
                border-radius: 0 0 16px 0;
            }
            #sesi-banner-mapa img {
                height: 36px;
                width: auto;
                display: block;
            }
            #proof-button {
                width: auto;
                min-width: 0;
                padding: 7px 16px;
                font-size: 0.8em;
                border-radius: 0 0 14px 14px;
                white-space: nowrap;
            }
        }

        /* Animações */
        @keyframes slide-right { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
        @keyframes slideInFromBottom { from { transform: translateY(100%); } to { transform: translateY(0%); } }
        @keyframes slideDownFadeIn { from { transform: translateY(-50%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        @keyframes fadeInDelayed { 0%, 50% { opacity: 0; } 100% { opacity: 1; } }
        @keyframes slideInFromLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
        @keyframes slideInFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
