/* Estilos Gerais */
body {
    background-color: #333;
    /* font-family: Arial, sans-serif; */
    color: white;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Contêiner principal - MOBILE-FIRST */
.grid-container {
    display: grid;
    /* Por defeito (mobile), todos os itens ocupam 1 coluna de largura total */
    grid-template-columns: 1fr;
    gap: 20px;
    /* Espaço entre os retângulos */
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos Comuns para os Itens */
.grid-item {
    padding: 40px 20px;
    text-align: center;
    /* font-weight: bold; */
    font-size: 1.2em;
    border: none;
    /* Ajuste para garantir que padding e bordas não aumentem a largura */
    box-sizing: border-box;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color border classes removed — borders disabled globally */


/* Media Query para ecrãs maiores (Tablet/Desktop) */
@media (min-width: 768px) {

    .grid-container {
        /* Define o grid de 12 colunas com o mesmo espaçamento (gap) */
        grid-template-columns: repeat(12, 1fr);
    }

    /* Ocupa 8 das 12 colunas */
    .item-8-cols {
        grid-column: span 8;
    }

    /* Ocupa 4 das 12 colunas */
    .item-4-cols {
        /* Coloca este item ao lado do de 8 colunas (8 + 4 = 12, preenche a linha) */
        grid-column: span 4;
    }

    /* Ocupa 6 das 12 colunas */
    .item-6-cols {
        /* Os itens A e B vão ficar na próxima linha, 6 + 6 = 12, preenchendo a linha */
        grid-column: span 6;
    }
}

/* Left column: constrain and justify project text */
.item-8-cols .projeto-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: justify;
    text-align-last: center;
    box-sizing: border-box;
}

.item-8-cols .projeto-text p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.item-8-cols .projeto-title {
    text-align: center;
    margin-bottom: 8px;
}

/* Vertical slider dots (controls) */
.vertical-slider-container {
    position: relative;
    margin-top: 15px;
    border-radius: 12px;
    /* ensure children are clipped to the rounded corners */
    overflow: hidden;
}

.vertical-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.vertical-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}

.vertical-dot.active {
    background: #00FFFF;
    transform: scale(1.15);
}

.vertical-dot:focus {
    outline: 2px solid #00FFFF;
    outline-offset: 2px;
}

/* Make hero image truly full-bleed by compensating for body padding
   The body has `padding: 20px` which combined with Bootstrap row gutters
   can create a small leftover gap; this rule expands the hero to the
   viewport edge and ensures the image is block-level. */
.hero {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}