/* --- Estilos Gerais e Tipografia --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: #0d6efd; /* Azul primário do Bootstrap */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Bloco Hero (Banner Principal Dinâmico) --- */
.bloco-hero {
    position: relative;
    padding: 12rem 1rem;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Efeito Parallax! */
    color: #fff;
    text-align: center;
}

.bloco-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Overlay em gradiente para melhor contraste e visual moderno */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.bloco-hero .container {
    position: relative;
    z-index: 2;
}

.bloco-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    animation: fadeInDown 1s ease-out;
}

.bloco-hero p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: both; /* Mantém o estado final da animação */
}

.bloco-hero .btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: both;
}

.bloco-hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Bloco de Cartões (Serviços, Notícias, Equipamentos) --- */
.card-link {
    text-decoration: none;
}

.card.h-100 {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Garante que a imagem respeite o border-radius */
}

.card.h-100:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3rem;
    color: #0d6efd;
}

/* Animações para os cards */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Bloco de Testemunhos --- */
.card-depoimento {
    border: 1px solid #e9ecef;
    background-color: #fff;
    border-radius: 15px;
}

.card-depoimento .blockquote-footer {
    color: #0d6efd;
    font-weight: 600;
}
/* --- Estilos para a Página de Detalhe da Máquina --- */
.product-detail-page {
    background-color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.gallery-main-img {
    width: 100%;
    height: 450px;
    object-fit: contain; /* Mostra a imagem completa sem cortar */
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #0d6efd; /* Azul primário */
}

.product-info h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.product-code {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background-color: #6c757d; /* Cinza secundário */
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
}

.specs-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.specs-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li strong {
    color: #495057;
    margin-right: 1rem;
}

.btn-reservar {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 10px;
}
/* --- Estilos para a Página de Catálogo --- */
.category-section {
    margin-bottom: 4rem;
}

.category-title-wrapper {
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 2rem;
}

.category-title a {
    color: #212529;
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 700;
}

.category-title a:hover {
    color: #0d6efd;
}
/* --- AJUSTES PARA DISPOSITIVOS MÓVEIS (RESPONSIVE) --- */
@media (max-width: 767px) {

    /* Hero mais compacto em telemóveis */
    .bloco-hero {
        padding: 7rem 1rem; /* Reduzimos a altura vertical (antes era 12rem) */
        background-attachment: scroll; /* Desativamos o efeito Parallax em telemóveis para melhor desempenho */
    }

    .bloco-hero h1 {
        font-size: 2.8rem; /* Reduzimos o tamanho do título principal */
    }

    .bloco-hero p {
        font-size: 1.3rem; /* Reduzimos o tamanho do subtítulo */
    }

    /* Títulos de secção mais pequenos em telemóveis */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Itens do carrossel de equipamentos em telemóveis */
    .scroll-item {
        width: 80vw; /* Cada item ocupa 80% da largura, mostrando um de cada vez */
    }
}