/* =======================================
    Versão Desktop
   ======================================= */

    /* ===== Carrossel ===== */
        #introCarousel,
        .carousel-inner,
        .carousel-item,
        .carousel-item.active {
            height: 100vh;
            margin-bottom: 13vh;
        }

        .carousel-item{
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
        }

        /* ===== Imagens do banner ===== */
            .carousel-item:nth-child(1) {
                background-image: url('/assets/img/banner/museu-ipiranga.png');
            }
            
            .carousel-item:nth-child(2) {
                background-image: url('/assets/img/banner/ponte-estaiada.png');
            }

            .carousel-item:nth-child(3) {
                background-image: url('/assets/img/banner/estacao-luz.png');
            }

            .carousel-item:nth-child(4) {
                background-image: url('/assets/img/banner/viaduto-santa-ifigenia.png');
            }

            .carousel-item:nth-child(5) {
                background-image: url('/assets/img/banner/copan.png');
            }

            .carousel-item:nth-child(6) {
                background-image: url('/assets/img/banner/masp.png');
            }

            .carousel-item:nth-child(7) {
                background-image: url('/assets/img/banner/estacao-luz-VistaDedentro.png');
            }

            .carousel-item:nth-child(8) {
                background-image: url('/assets/img/banner/parqueIbirapuera.png');
            }

            .mask{
                background: linear-gradient(to right, rgba(0, 0, 0, 0.788) 0%, rgba(0, 0, 0, 0.185) 60%);
            }

        /* ===== Imagens decorativas de fundo  =====*/
            .section{
                position: relative;
            }

            .img-background{
                height: 25vh;
                position: absolute;
                left: 0;
                bottom: 0;
               
                z-index: 3; /* joga a imagem para trás */
                pointer-events: none; 
            }

        /* ===== Título IRIS  =====*/
            .custom-text {
                line-height: 1.2;
                margin-left: 9vw;
            }

            .custom-text div::first-letter {
                font-size: 1.9rem; /* letra inicial maior */
                font-weight: bold;
                margin-right: 0.2rem;
            }

        /* ===== Autor  =====*/
            .nome-autor {
                background-color: rgba(0, 0, 0, 0.432); 
                font-size: 0.79rem;
            }
    /* ===== Carrossel ===== */


    /* ===== Seção Cards ===== */
        .line{
            border: 2px solid var(--azul-escuro); 
        }

        .card {
            height: 24vh!important;
            position: relative;
            padding: 5rem;
            overflow: hidden;
            cursor: pointer;
            border-radius: 12px;
            transition: transform 0.3s ease;
            background-color: var(--azul-medio);
            box-shadow: 0 6px 18px rgba(1, 35, 80, 0.521);
            transform: translateZ(0);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            will-change: transform;
        }

        .card-content {
            height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 10px;
            transition: opacity 0.4s ease;
            z-index: 1;
        }

        .card-hover-text {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--azul-medio);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center; 
            padding: 1.2em;
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 2;
            box-shadow: 0 9px 20px rgba(1, 38, 87, 0.521);
        }

        .card:hover {
            transform: scale(1.03); 
        }

        .card:hover .card-content {
            opacity: 0;
        }

        .card:hover .card-hover-text {
            opacity: 1;
        }

        .card img {
            height: 20vh;
        }

        .card-hover-text p {
            font-size: 0.95rem;
            line-height: 1.9;
        }

    /* ===== Seção Cards ===== */

/* =======================================
    Versão Desktop
   ======================================= */

    @media (max-width: 767px) {
        #introCarousel,
            .carousel-inner,
            .carousel-item,
            .carousel-item.active {
                height: 73vh;
                border-radius: 0 0 8vw 8vw;
                border-bottom: 7px solid #FACB2E;
            }

            .custom-text{
                left: 50% !important;        
                transform: translate(-50%, -50%) !important;
                text-align: initial;          
                padding-left: 0 !important;   
                padding-right: 0 !important;
                margin: 0;
            }

            .nome-autor {
                left: 50% !important;        
                transform: translate(-50%, -50%) !important;
                text-align: center;          
                padding-left: 0 !important;   
                padding-right: 0 !important;
                bottom: -2vh;
            }
    }

    @media (min-width: 992px) {
        #introCarousel {
            margin-top: -58.59px;
        }

        #introCarousel,
        .carousel-inner,
        .carousel-item,
        .carousel-item.active {
            height: 80vh;
            border-radius: 0 0 5vw 5vw;
            border-bottom: 7px solid #FACB2E;
        }
    }
