/* 
 * Correção para o espaçamento excessivo entre seções no site heraldlond.com
 * Este arquivo contém as regras CSS necessárias para reduzir pela metade
 * o espaçamento vertical entre as seções.
 */

/* Reduz pela metade a margem vertical (my-5) quando aplicada a seções */
section.section.my-5 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

/* Ajuste adicional para garantir consistência em todas as páginas com estrutura semelhante */
section.section-default.my-5 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

/* Ajuste para o padding interno do container dentro da seção, caso necessário */
section.section-default .container.py-4 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Reduz o padding vertical da seção cinza para 1/4 do tamanho original (de 50px para 12.5px) */
section.section.section-default {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Ajuste adicional para garantir consistência em todas as páginas com estrutura semelhante */
.section.section-default .container.py-4 {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Caso seja necessário ajustar também as margens */
section.section.section-default.my-5 {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* Regras adicionais específicas para dispositivos móveis */
@media (max-width: 991px) {
  section.section.section-default {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  
  .section.section-default .container.py-4 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 767px) {
  section.section.section-default {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  
  .section.section-default .container.py-4 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  
  /* Reduzir também o espaçamento entre elementos dentro da seção */
  .section.section-default .row {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }
}

@media (max-width: 575px) {
  section.section.section-default {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  
  .section.section-default .container.py-4 {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  
  /* Reduzir ainda mais o espaçamento entre elementos em telas muito pequenas */
  .section.section-default .row {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
  }
  
  /* Ajustar margens verticais para telas muito pequenas */
  section.section.section-default.my-5 {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }
}

/* Estilos para o novo layout Alberi */
.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.side-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.side-image:hover {
    transform: scale(1.05);
}

.image-container {
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
}

.text-block {
    margin-bottom: 30px;
}

.highlight-text {
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Responsividade */
@media (max-width: 991px) {
    .hero-image {
        height: 350px;
    }
    
    .side-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .hero-image {
        height: 300px;
    }
    
    .side-image {
        height: 180px;
    }
    
    .text-block {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .hero-image {
        height: 250px;
    }
    
    .side-image {
        height: 200px;
    }
}

/* Estilos para o novo layout da Galeria 5 Ecken */

/* Imagem principal */
.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Imagens laterais */
.side-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.side-image:hover {
    transform: scale(1.05);
}

.image-container {
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Blocos de texto */
.text-block {
    margin-bottom: 30px;
}

.highlight-text {
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: 1.8em;
    margin-bottom: 20px;
}

/* Elementos de destaque */
.highlight-box {
    background-color: #0088cc;
    color: white;
    padding: 5px 15px;
    display: inline-block;
}

.quote {
    font-style: italic;
    font-size: 1.2em;
    color: #555;
    border-left: 3px solid #0088cc;
    padding-left: 15px;
    margin: 20px 0;
}

/* Conectores visuais */
.connector {
    position: relative;
}

.connector::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,136,204,0) 0%, rgba(0,136,204,1) 50%, rgba(0,136,204,0) 100%);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Palavras destacadas */
.highlight-word {
    font-weight: 600;
}

.highlight-blue {
    color: #0088cc;
}

.highlight-yellow {
    color: #e3a909;
}

.highlight-green {
    color: #28a745;
}

.highlight-red {
    color: #dc3545;
}

/* Responsividade */
@media (max-width: 991px) {
    .hero-image {
        max-height: 500px;
    }
    
    .section-title {
        font-size: 2.2em;
    }
    
    .section-subtitle {
        font-size: 1.6em;
    }
}

@media (max-width: 767px) {
    .hero-image {
        max-height: 400px;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .section-subtitle {
        font-size: 1.4em;
    }
    
    .text-block {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .hero-image {
        max-height: 300px;
    }
}

/* Estilos para o novo layout da página Affective Design */

/* Seção de cabeçalho */
.header-section {
    background-color: #222;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* Títulos e subtítulos */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #0088cc;
    bottom: -10px;
    left: 0;
}

/* Destaques de texto */
.highlight-box {
    background-color: #0088cc;
    color: white;
    padding: 5px 15px;
    display: inline-block;
    margin: 0 5px;
}

.highlight-word {
    color: #0088cc;
    font-weight: 600;
}

.accent-word {
    color: #e3a909;
    font-weight: 600;
}

/* Texto introdutório */
.intro-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Contêineres de imagem */
.image-container {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Imagens */
.design-image {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    display: block;
}

.design-image:hover {
    transform: scale(1.03);
}

/* Blocos de texto */
.text-block {
    margin-bottom: 2rem;
}

/* Conectores visuais */
.connector {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,136,204,0) 0%, rgba(0,136,204,1) 50%, rgba(0,136,204,0) 100%);
    margin: 2rem 0;
}

/* Espaçamento entre seções */
.section-spacing {
    margin: 4rem 0;
}

/* Responsividade */
@media (max-width: 991px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
    }
    
    .section-spacing {
        margin: 3rem 0;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .section-spacing {
        margin: 2.5rem 0;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .section-spacing {
        margin: 2rem 0;
    }
}
