/*  Importação de Fontes */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* Estilos Gerais da Página */
body {
    color: white;
    margin: 0;
    padding: 0;
    background-color: black;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 40px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 30px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 40px),
        radial-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .1) 2px, transparent 30px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
}

html {
    scroll-behavior: smooth;
}

/* Estilos de Tipografia */
h1,
h2 {
    font-family: "Cinzel Decorative", serif;
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 20px;
}

p,
a,
li {
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: justify;
}

/* Seção Inicial (Cabeçalho e Fundo Hogwarts)  */
.header-e-hogwarts-fundo {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/jonathan-ikemura-RCmd5PyG85Q-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(179, 173, 173);
}

/* Estilos do Cabeçalho */
.cabecalho {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.cabecalho-scroll {
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cabecalho-menu {
    position: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 35px;
    cursor: pointer;
}

.cabecalho-menu-item {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cabecalho-menu-item:hover {
    color: white;
}

.cabecalho-menu-item.active {
    color: white;
}

/* Estilos do Submenu (Casas) */
.casas-dropdown {
    position: relative;
}

.dropdown-toggle {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    border-radius: 8px;
    z-index: 999;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.submenu li {
    padding: 10px 20px;
}

.submenu li a {
    color: white;
    text-decoration: none;
    font-size: 16px; /* Mantido para diferenciação de tamanho */
    display: block;
}

.submenu li a:hover {
    background-color: #333;
    border-radius: 4px;
}

.casas-dropdown.ativo .submenu {
    display: block;
}

/* Estilos da Seção "Sobre Hogwarts"*/
.conteudo-hogwarts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 150px 20px;
    color: white;
    text-align: justify;
    background: none;
}

.conteudo-hogwarts-imagem {
    width: 500px;
    height: auto;
}

.conteudo-hogwarts-titulo {
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 60px;
}

.conteudo-hogwarts-textos {
    max-width: 900px;
}

/* Estilos de Logos e Imagens (Genéricos) */
.house-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
    display: block;
}

.minha-ilustracao {
    width: 400px;
    height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Estilos das Seções das Casas */
.house-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 140px 20px;
    flex-wrap: wrap;
    text-align: left;
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
    background-image: repeating-linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 60px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px,
            transparent 60px
        ),
        linear-gradient(
            60deg,
            rgba(0, 0, 0, 0.1) 25%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.1) 75%,
            rgba(0, 0, 0, 0.1)
        ),
        linear-gradient(
            120deg,
            rgba(0, 0, 0, 0.1) 25%,
            transparent 25%,
            transparent 75%,
            rgba(0, 0, 0, 0.1) 75%,
            rgba(0, 0, 0, 0.1)
        );
    background-size: 70px 120px;
}

.house-content p {
    max-width: 1050px;
}

.layout-esquerda {
    flex-direction: row;
}

.layout-direita {
    flex-direction: row-reverse;
}

/* Cores das Casas */
.Grifinória {
    background-color: #7f0909;
}

.Sonserina {
    background-color: #1a472a;
}

.Corvinal {
    background-color: #0e1a40;
}

.Lufa-Lufa {
    background-color: #ecb939;
    color: black;
}

/* Seção "Sobre Este Projeto" */
.sobre-projeto {
    padding: 220px 20px;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/aditya-vyas-b7MUFydsU64-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sobre-projeto .conteudo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

.sobre-projeto .texto {
    flex: 1 1 400px;
    order: 1;
    background-color: rgba(0, 0, 0, 0.7); 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
}

.sobre-projeto .texto h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.sobre-projeto .texto p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.sobre-projeto .imagem {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.sobre-projeto .imagem img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Hamburgyer */
/* Botão hamburguer (invisível no desktop) */
.menu-hamburguer {
  display: none;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

/* Estilos mobile */
@media (max-width: 768px) {
  .menu-hamburguer {
    display: block;
    position: absolute;
    top: 25px;
    right: 30px;
  }

  .cabecalho-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 20px 0;
  }

  .cabecalho-menu.ativo {
    display: flex;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .cabecalho {
    padding: 20px 30px;
    flex-direction: column;
    gap: 15px;
  }

  .cabecalho-menu {
    position: static;
    flex-direction: column;
    gap: 15px;
  }

  .conteudo-hogwarts {
    padding: 100px 20px;
    flex-direction: column;
    text-align: center;
  }

  .conteudo-hogwarts-imagem {
    width: 90%;
  }

  .house-section {
    flex-direction: column !important; /* Força a coluna em qualquer layout */
    text-align: center;
  }

  .house-logo {
    width: 80%;
    margin-bottom: 20px;
  }

  .house-content {
    padding: 0 10px;
  }

  .sobre-projeto .conteudo {
    flex-direction: column;
    text-align: center;
  }

  .sobre-projeto .imagem img {
    width: 90%;
  }

  h1, h2 {
    font-size: 2rem;
  }

  p, li, a {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .cabecalho-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .house-section {
    padding: 60px 20px;
  }

  .sobre-projeto {
    padding: 100px 20px;
  }
}
