/*ESTILO PARA PÁGINA HTML home.html (home) */

@font-face {
  font-family: 'Adobe Garamond';
  src: url(FONTES/adobe-garamond.otf);
}

@font-face {
  font-family: 'Avenue';
  src: url(FONTES/Avenue-de-Madison.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VIDEO*/
.video{
    margin-top: 10px;
    height: 50vh;
    overflow: hidden;
    justify-content: center;
  }

  video{
    object-fit: cover;
    margin-top: 10px;
    height: 100%;
    width: 100%;
  }

/****************** CARROUSSEL *****************************/
  .container-slider {
    display: flex;
    flex-direction: column;    
    align-items: flex-end;     
    overflow: hidden;
    position: relative;
    width: 100%;              
    gap: 10px;                
}

  .container-images {
    margin-top: 20px;
    position: relative;
    width: 100%;           
    height: 580px;             
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;   
}

.container-images img.slider {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;               
  transition: opacity 0.25s ease;
  z-index: 0;
}

/* anchors preenchem o espaço, são clicáveis */
.container-images a {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: auto; 
}

/* imagem ativa */
.container-images img.slider.on {
  opacity: 1;
  z-index: 1;
}

/*botões*/
#prev-button{
  width: 40px;
  height: 40px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  margin-right: -5px;
} 

#next-button {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin-right: 20px;
}

#next-button img, #prev-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.buttons-below {
    display: flex;
    justify-content: flex-end;                
    width: 100%;
    margin-top: -30px;
    z-index: 10;
  }

/******************** NOSSOS PRODUTOS **************/
   .title{
    font-family: 'Avenue';
    text-align: center;
    margin: 10px 0px -5px 0px;
    font-size: 70px;
    color: #5c3325;
  }
  
  /*container e boxs */
  .container {
    margin: auto;
    display: flex;
    height: 40vh; 
    width: 99.9%;  
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: row;
    border-radius: 5px;
    margin-top: 5px;
  }
  
  .box {
    display: flex;
    flex-direction: column;     
    justify-content: flex-end; 
    height: 100%;
    background-size: cover;
    background-position: center;
    justify-content: flex-end;
  }

  .box p {
    position: relative;
    font-family: 'Adobe Garamond';
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.15); /* fundo com transparência para melhor legibilidade */
    padding: 5px 5px;
    border-radius: 5px;
    display: inline-block;
    max-width: max-content;
  }

  .box a{
    text-align: left;
    margin-left: 10px;
  }

  /* Proporção 1:2:1 - bolinhos, bolos e biscoitos */
  .box-1 { 
    flex: 1; 
    background-image: url('SlidesPrincipais/Bolinhos-SlidePrincipal.png');
    margin-right: 1px;
    border-radius: 1px;
  }

  .box-2 { 
    flex: 2; 
    background-image: url('SlidesPrincipais/Bolos-SlidePrincipal.png'); 
    margin-right: 1px;
    border-radius: 1px;
  }

  .box-2 p{
    font-size: 30px;
  }

  .box-3 { 
    flex: 1; 
    background-image: url('SlidesPrincipais/Bolachinhas-SlidePrincipal.png');
    border-radius: 1px;
  }

  /*imagem final */
.final-image {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      margin: 30px auto;
      max-width: 1180px;
      transition: transform 0.3s ease, box-shadow 0.3s ease; 
  }
  
  .final-image:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .final-image img {
      width: 100%;
      height: 550px;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
      filter: blur(2px);
  }
  
  .final-image:hover img {
      transform: scale(1.03);
  }

  .center-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80%;
      max-width: 800px;
      color: white;
      font-family: 'Adobe Garamond', serif;
      text-align: center;
      padding: 40px 30px;
      border-radius: 10px;
      backdrop-filter: blur(3.5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  #titulo-final-img {
      font-size: 42px;
      margin-bottom: 15px;
      font-weight: 700;
      letter-spacing: 1px;
      position: relative;
      padding-bottom: 3px;
  }
  
  #titulo-final-img::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 450px;
      height: 2px;
      background: #f7f1ec;
  }

  .text-final-img {
      font-size: 23px;
      line-height: 1.4;
      margin-bottom: 15px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  }

  .final-image button {
      font-family: 'Adobe Garamond', serif;
      font-size: 22px;
      font-weight: 600;
      background-color: #f7f1ec;
      color: #5c3325;
      padding: 12px 35px;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      letter-spacing: 0.5px;
  }
  
  .final-image button:hover {
      background-color: #e2d9bd;
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  }
  
  .final-image button:active {
      transform: translateY(-1px);
  }
  
 @media (max-width: 500px) {
  .video{
    overflow: hidden;
    height: 27vh;
    margin-bottom: 10px;
  }

  .video video {
    width: 100%;
    object-fit: cover;
  }

  .container-images {
    height: 250px;
    width: 100%;
    margin-top: 0px;
  }

  .container-images img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  #prev-button,
  #next-button {
    width: 30px;
    height: 30px;
  }

  .title {
    font-size: 35px;
  }

  /* boxes — empilha os produtos */
  .container {
    flex-direction: row;
    height: auto;
  }

  .box {
    width: 100%;
    height: 180px;
  }

  .box p {
    font-size: 18px;
  }

  .final-image {
    margin: 10px auto;
    max-width: 100%;
    border-radius: 0%;
  }

  .final-image img {
    height: 350px;
  }

  .center-text {
    width: 90%;
    padding: 25px 15px;
  }

  #titulo-final-img {
    font-size: 28px;
  }

  #titulo-final-img::after {
    width: 200px;
  }

  .text-final-img {
    font-size: 14px;
  }

  .final-image button {
    font-size: 15px;
    padding: 10px 18px;
  }
}


/* ==============================
   💻 TABLETS (481px–760px)
============================== */
@media (min-width: 501px) and (max-width: 760px) {
  .video{
    height: 40vh;
  }

  .container-images{
    width: 100%;
    height: 450px;
  }

  #prev-button,
  #next-button {
    width: 35px;
    height: 35px;
  }

  .title {
    font-size: 55px;
  }

  .container {
    flex-direction: row;
    height: 30vh;
  }

  .box p {
    font-size: 20px;
  }

  .final-image img {
    height: 450px;
  }

  .center-text {
    width: 85%;
    padding: 35px 25px;
  }

  #titulo-final-img {
    font-size: 35px;
  }

  #titulo-final-img::after {
    width: 300px;
  }

  .text-final-img {
    font-size: 19px;
  }

  .final-image button {
    font-size: 20px;
    padding: 12px 28px;
  }
}
