
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white !important;
}
.submenu {
  position: absolute;
  background-color: #f9f9f9;
  width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  margin-top: -50px;
  transition: all ease 0.5s;
  text-align: center;
  opacity: 0; 
  z-index: -999;
}

ul li:hover .submenu {
  display: block;
  z-index: 99; 
  opacity: 1; 
  margin-top: 0;
}

ul .submenu{
  padding-left: 0 !important;
}
ul li:hover .submenu li a {
  display: block;
  width: 100%;
  padding: 10px 0; 
  text-align: center; 
  padding-left: 0 !important;
  text-decoration: none; 
}

a:visited, a:hover, a:active {
  text-decoration: none; 
  color: inherit; 

}

a{
  text-decoration: none !important;
  color: inherit !important;
}

h2{
  border-bottom: 3px solid navy ;
  padding: 50px 0 10px 0;
  margin-bottom: 20px !important;
}


.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
}

.container .logo {
    margin: 20px 10px 1px 10px; 
}

.container .heading h1{
  font-size: 40px; 
  border-bottom: 3px solid navy ;
  padding: 10px 50px; 
  margin: 30px;
}

.line {
    height: 1px;
    background-color: navy;
    margin: 20px 10% 8px 10%;
}


.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.navbar-nav ul li {
    list-style: none;
    display: inline-block;
    position: relative;
    margin: 0 20px;
 
}

.navbar-nav ul li a {
   text-decoration: none;
   color:navy;
   text-transform: uppercase;
}

.navbar-nav ul li::after {
    content: '';
    height: 3px;
    width: 0;
    background-color: navy;
    position: absolute;
    bottom: -5px;
    left: 0px;
    transition: 0.5s;
}

.navbar-nav ul li:hover::after {
    width: 100%;
  
}


@media (max-width: 768px) {
  /* menu principal em coluna */
  .navbar-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;     /* podes trocar para flex-start se preferires à esquerda */
    gap: 10px;
    padding-left: 0 !important;
    margin: 12px 0;
  }

  .navbar-nav ul li {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 360px;        /* largura confortável no telemóvel */
    text-align: center;
  }

  .navbar-nav ul li a {
    display: block;
    padding: 10px 12px;
  }

  /* desativar underline hover animado (opcional) */
  .navbar-nav ul li::after {
    display: none;
  }

  /* em mobile NÃO abrir por hover */
  ul li:hover .submenu {
    opacity: 1;
    z-index: auto;
    margin-top: 0;
    /* não mexer no max-height aqui */
  }


  /* itens do submenu */
  .submenu li a {
    padding: 10px 0;
  }
}


.col{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container .box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
 
}

.container .box .dream{
  display: flex;
  flex-direction: column;
  width: 32.5%;

}

.container .box .dream img{
  width: 100%;
  border-radius: 5px;
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay color */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;


}

.image-container:hover .overlay {
  opacity: 1;
}



.image-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  cursor: pointer;
}

.image-container-filler {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  pointer-events: none;
  user-select: none;
}

.overlay p {
  color: #fff; /* Text color */
  font-size: 18px;
  text-align: center;
  display: none; /* Initially hidden */
}

.image-container:hover .overlay p {
  display: block;
}

.filler {   
  height: 200%; 
  background-color: rgba(0, 0, 0,0);  
}

.filler2 {   
  height: 6.9%; 
  background-color: rgba(0, 0, 0,0);  
}

.u-modal {
  display: none;              /* JS toggles to flex */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.9);

  justify-content: center;
  align-items: center;

  padding: 5vh 5vw;           /* breathing room so it never touches edges */
}

.u-modal-content {
  position: relative;       

  display: flex;
  flex-direction: row;
  justify-content: space-evenly;

  align-items: flex-end;   

  width: fit-content;
  height: fit-content;

  max-width: 90vw;
  max-height: 90vh;

  padding: 18px 18px 14px;    /* leave room for the X */
  background: rgba(255,255,255,.67);
  overflow: auto;             /* if needed */
}



.u-close {
  position: absolute;
  top: 8px;
  right: 12px;

  font-size: 30px;
  line-height: 1;
  cursor: pointer;

  z-index: 10;
}


.u-modal-content img {
  display: block;

  width: auto;
  height: auto;

  max-width: 65vw;
  max-height: 85vh;

  object-fit: contain;
}

.u-modal-description {
  width: 100%;
  max-height: 100%;
  padding: 2% 0 0 2%;
}


.thumbnail {
  cursor: pointer;
  width: 200px;
}

/* Mobile */
@media (max-width: 768px) {
  .u-modal {
    padding: 4vh 4vw;
  }

  .u-modal-content {
    flex-direction: column;
    align-items: center;   /* in column layout, flex-end usually looks weird */
    max-width: 92vw;
    max-height: 92vh;
  }


  .u-modal-description {
    max-width: 92vw;
    min-width: 0;
  }

  .u-close {
    top: 8px;
    right: 10px;
  }
}

/* ============ Vertical videos ============ */

.container .box .dream video,
.video-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 5px;
  background: #000;
  display: block;
}

.video-play-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 24px;
  pointer-events: none;
}

.u-modal-content video {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.u-modal-content.is-video {
  align-items: center;
}

@media (max-width: 768px) {
  .u-modal-content video {
    width: 100%;
    height: auto;
    max-height: 75vh;
  }
}



.footer-basic {
    padding:20px 0;
    color:navy;
  }
  
  .footer-basic ul {
    padding:0;
    list-style:none;
    text-align:center;
    font-size:18px;
    line-height:1.6;
    margin-bottom:0;
  }
  
  .footer-basic li {
    padding:0 10px;
  }
  
  .footer-basic ul a {
    color:inherit;
    text-decoration:none;
    opacity:0.8;
  }
  
  .footer-basic ul a:hover {
    opacity:1;
  }
  
  .footer-basic .social {
    text-align:center;
    padding-bottom:25px;
  }
  
  .footer-basic .social > a {
    font-size:24px;
    width:40px;
    height:40px;
    line-height:40px;
    display:inline-block;
    text-align:center;
    border-radius:50%;
    border:1px solid #ccc;
    margin:0 8px;
    color:inherit;
    opacity:0.75;
  }
  
  .footer-basic .social > a:hover {
    opacity:0.9;
  }
  
  .footer-basic .copyright {
    margin-top:15px;
    text-align:center;
    font-size:13px;
    color:#aaa;
    margin-bottom:0;
  }


