/*Reset*/
* {
  box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
}

body {
    margin:0;
    font-family: sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.section-separator {
    width:100%;
    max-width:100px;
    height:3px;
    margin:25px auto 50px;
    background-color: #CD1626;
}

.grey-separator {
    width:100%;
    max-width:40px;
    height:1px;
    margin:10px auto 20px;
    background-color: #ccc;
}

p a {
    color: #383838;
    text-decoration: underline;
}

section {
  scroll-margin-top: 80px;
}

/*ESTILOS MENÚ*/

.header {
  position: fixed;
  top: -85px;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #383838;
  border-bottom: 1px solid #CD1626;
  z-index: 999;
  transition: top 0.3s ease-in-out;
}

.main-nav {
  display: flex;
  width: 100%;
  max-width: 1280px;
  justify-content: space-between;
  align-items: center;
}

.header .logo-fabriano {
  width:100%;
  height:auto;
  max-width:250px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  column-gap:25px;
}

.main-nav ul li {
  width:100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height:50px;
}

.main-nav ul li a {
  color:#f7f7f7;
  text-decoration: none;
  font-family: "Bodoni Moda", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  width:100%;
  height:50px;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  transition:all 0.25s ease-in-out;
}

.main-nav ul li a:hover {
  color:#FFF;
  margin-top:-3px;
  font-size:19px;
  transition:all 0.25s ease-in-out;

}

.menu-toggle {
  display: none;
}

.header.sticky {
  top:0;
}

/*ESTILOS HERO*/

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/*Contenido Hero*/

.hero-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    row-gap:30px;
}

.logo-fabriano {
    width:100%;
    height: auto;
    max-width: 440px;
}

h1 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size:80px;
    font-weight:400;
    line-height: 80px;
    margin:0;
    color:#fff;
}

h2 {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size:25px;
    line-height:35px;
    font-weight:400;
    margin:0;
    color:#fff;
    width: 100%;
    min-height: 80px;
}

.fab-button {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin: 0;
    min-width: 150px;
    padding: 0;
    text-decoration: none;
}

.fab-button span {
    color:#fff;
    font-family: "Raleway", sans-serif;
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    top: 0;
    left: 0;
    width: 100%;
    transition: 0.3s;
    padding:20px 60px;
    color: #fff;
    border: 2px solid #CD1626;
    text-decoration: none;
    text-align: center;
}

.fab-button.dark span {
    color:#383838;
}

.fab-button span:hover {
    background-color: rgb(245, 245, 245);
    color:#CD1626;
}
.fab-button.dark span:hover {
    background-color: #CD1626;
    color:#FFF;
}

/*Efectos hover botón*/
.fab-button::before,
.fab-button::after {
  width: 100%;
  height: 2px;
  background-color: #fff;
  z-index: 2;
  transition: 0.35s;
}

.fab-button.dark::before,
.fab-button.dark::after {

  background-color: #383838;
}
.fab-button::before {
  top: 0;
  right: 0;
}
.fab-button::after {
  bottom: 0;
  left: 0;
}
.fab-button:hover::before,
.fab-button:hover::after {
  width: 0%;
  transition: 0.2s 0.2s ease-out;
}

.fab-button span::before,
.fab-button span::after {
  width: 2px;
  height: 100%;
  background-color: #fff;
  z-index: 2;
  transition: 0.25s;
}

.fab-button.dark span::before,
.fab-button.dark span::after {
    background-color: #383838;
}

.fab-button span::before {
  bottom: 0;
  right: -2px;
}
.fab-button span::after {
  top: 0;
  left: -2px;
}
.fab-button span:hover::before,
.fab-button span:hover::after {
  height: 0%;
}

:active,
:hover,
:focus {
  outline: 0 !important;
  outline-offset: 0;
}
.fab-button::before,
.fab-button::after,
.fab-button span::before,
.fab-button span::after {
  position: absolute;
  content: "";
}

/*Estilos images hero*/
.overlay {
    position:absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0,0,0,0.45);
    z-index:1;
}

.hero-images {
    position: absolute;
    inset: 0;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img.img1 {
    animation: zoomPanLeft 5s forwards;
}

.img2 {
    opacity: 0;
    animation: zoom2 10s 5s forwards;
}

@keyframes zoomPanLeft {

    0% {
        transform: scale(1.1);
        transform-origin: left center;
        opacity: 1;
    }

    99% {
        transform: scale(1.2);
        transform-origin: left center;
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        transform-origin: left center;
        opacity: 0;
    }

}

@keyframes zoom2 {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 1; }
}

.flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    animation: flash 0.08s linear 5s forwards;
}

@keyframes flash {
    0% { opacity: 0 }
    50% { opacity: 1 }
    100% { opacity: 0 }
}

/*ESTILOS SECCIÓN CONTENIDO*/

.fab-content {
    width:100%;
    min-height:100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fab-content-wrapper {
    width:100%;
    height: 100%;
    max-width:1280px;
    margin:0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
}

.laurel-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.laurel {
    width:100%;
    height: auto;
    max-width:150px;
}

.central-section-info,
.central-section-image {
    flex:1;
    height:100%;
}

.central-section-content {
    display: flex;
    flex-direction: column;
    height:100%;
    row-gap:20px;
    font-family: "Raleway", sans-serif;

}

.central-section-contenido {
    background-color: #f7f7f7;
    padding:40px;
    flex:2;
    display: flex;
    flex-direction: column;
    row-gap:30px;
    justify-content: center;
    align-items: flex-start;
}

.central-section-contenido p {
    margin:0;
}

.central-section-contenido-negro {
    background-color: #383838;
    padding:40px;
    flex:1;
    color:#f3eeea;
    display: flex;
    flex-direction: column;
    row-gap:20px;
    justify-content: center;
    align-items: flex-start;
}

.central-section-contenido-blanco {
    background-color: #FFF;
    padding:40px;
    flex:1;
    color:#f3eeea;
    display: flex;
    flex-direction: column;
    row-gap:20px;
    justify-content: center;
    align-items: flex-start;
}

.central-section-contenido-blanco p {
    color:#383838;
}

.entradilla {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size:60px;
    font-weight:400;
    line-height: 80px;
    color:#383838;
    text-align: center;
}

.central-section-contenido .entradilla {
    text-align: left;
    line-height:60px;
}

.central-section-image {
    overflow:hidden;
    position: relative;
}

.central-section-image img {
    width:100%;
    height:100%;
    object-fit: cover;
    animation: slow-zoom 18s;
}

.central-section-image .fab-button {
    position: absolute;
    width:286px;
    top:auto;
    bottom:35px;
    left:calc(50% - 143px);
    right:calc(50% - 143px);
}

@keyframes slow-zoom {
    0% { scale: 1 }
    50% {scale: 1.05}
    100% { scale: 1 }
}

/*Para la sección "Nuestra tienda"*/

#our-store-section {
    background-color: #383838;
    flex-direction: column;
}

#our-store-section > .entradilla {
    color:#fff;
}

/*Para la sección de la galería de imágenes*/
.gallery {
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    padding: 150px 0;
}

.gallery-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    padding:0 0 80px 0;
}

.gallery .laurel-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:50px 0;
}

.gallery .laurel {
    width: 100%;
    height: auto;
    max-width: 250px;
    opacity: 0.25;
}
  
  .gallery-item {
    overflow: hidden;
    cursor: zoom-in;
    margin: 0;
    aspect-ratio: 1/1;
    background-color: #000000;
  }
  
  .gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .6s ease-in-out;
    opacity:0.65;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
    transition: all .6s ease-in-out;
  }

  /*Lightbox*/

  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  
  .lightbox.active {
    opacity: 1;
    pointer-events: auto;
    z-index:2;
  }
  
  .lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    transition: transform .35s ease;
    cursor: zoom-in;
  }

  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .lightbox{
    cursor: url("../img/cursor-close.png") 25 25, crosshair;
  }

  /*Botones de navegación entre imágenes del lightbox*/
  .nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: #383838;
      border: none;
      color: white;
      font-size: 25px;
      cursor: pointer;
      opacity: .7;
      border-radius: 100%;
      aspect-ratio: 1/1;
      width: 50px;
      height: 50px;
      display: flex;
      justify-content: center;
      align-items: center;
      line-height: 25px;
      padding: 0;
  }
  
  .nav:hover {
    opacity: 1;
  }

  .prev,
  .next {
    z-index:1;
    border-radius:100%;
  }
  
  .prev {
    left: 40px;
  }
  .next {
    right: 40px;
  }



  /*Para la sección de contacto*/
  .contact {
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 150px 0 0 0;
  }

  .contact-wrapper {
    width: 100%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:30px 0 100px 0;
  }

  .contact-section-map {
    width:100%;
    min-height:550px;
  }

  .contact-section-info {
    width:100%;
  }

  .address {
    display: flex;
    column-gap: 30px;
    justify-content: space-between;
  }

  .street, .mail, .phone, .time {
    width:100%;
  }

  .street p,
  .mail p,
  .phone p,
  .time .timecontainer > span {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    margin: 0;
    color: #383838;
    text-align: center;
    width: 100%;
    display: flex;
    width: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .address h3 {
    font-family: "Bodoni Moda", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size:25px;
    font-weight:400;
    line-height: 50px;
    margin:0;
    color:#383838;
    text-align: center;
  }

  .contact-info {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    row-gap:20px;
  }

  .metro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 5px;
    width: 100%;
}

.metro-item {
    display: flex;
    column-gap: 10px;
}

.metro > img {
    width:30px;
    height: 18px;
}

.metro-item p {
    margin:0;
}

.minimal-footer {
    background-color:#383838;
    padding:25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minimal-footer p {
    color:#f7f7f7;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size:14px;
    line-height:24px;
    font-weight:400;
    margin:0;
}

.back-to-top {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    color: #fff;
    background-color: rgba(255,255,255,0.25);
    border-radius: 100%;
  }
  
  /* punta de la flecha */
  .back-to-top::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 15px;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
  }

  /*Estilos para el leaflet map*/
  #map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
  }

  .leaflet-popup-content-wrapper {
    background-color: transparent!important;
    padding:0;
    box-shadow:none!important;
  }

  .leaflet-popup-content {
    margin:0!important;
    min-width: 280px;
  }
  
  /* popup personalizado */
  .leaflet-popup-content-wrapper {
    background: #0f172a;
    color: white;
    border-radius: 8px;
  }
  
  .leaflet-popup-tip {
    display:none;
  }

  .leaflet-container a.leaflet-popup-close-button {
    top: 3px!important;
    right: 3px!important;
    color: #fff!important;
  }

  .leaflet-bottom.leaflet-right {
    display: none;
  }

  .map-popup {
    background-color:#383838;
    border:2px solid #CD1626;
    color:#fff;
    padding:20px;
    aspect-ratio: 2/1;
  }
  .popup-logo {
    width:100%;
    height:auto;
  }

  .map-popup p,
  .leaflet-popup-content p {
    margin:0!important;
  }

  .map-popup .metro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    row-gap: 5px;
    width: 100%;
    margin-top:15px;
    padding-top:15px;
    border-top:1px solid #ccc;
  }

  .main-nav ul li.language a {
    font-family: "Raleway", sans-serif;
    font-weight: 200;
    text-decoration: underline;
  }

  .main-nav ul li.language a:hover {
    margin-top: 0;
    font-size: 18px;
  }

/*|||||||||||||||||||||||||||||||||||*/
/*||||||||||||RESPONSIVE|||||||||||||*/
/*|||||||||||||||||||||||||||||||||||*/

@media (max-width:1280px){
  .hero-content {
    width:80%;
    margin: 0 auto;
  }

  .main-nav,
  .fab-content-wrapper,
  .gallery-wrapper,
  .contact-wrapper {
    max-width: 1024px;
  }
}

@media (max-width:1024px){
  .main-nav,
  .fab-content-wrapper,
  .gallery-wrapper,
  .contact-wrapper {
    max-width: 992px;
  }
  .fab-content-wrapper {
    display: flex;
    flex-direction: column;
    row-gap:20px;
  }
  .central-section-content {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
  }

  .central-section-contenido {
    row-gap:15px;
    flex: 1.5;
  }
  .central-section-contenido .entradilla {
    line-height: 40px;
    font-size: 40px;
    min-height: auto;
  }
  .central-section-content p {
    font-size:14px;
  }
}

@media (max-width:992px){
  .main-nav,
  .fab-content-wrapper,
  .gallery-wrapper,
  .contact-wrapper {
    max-width: 767px;
  }

  .address {
    flex-wrap: wrap;
    column-gap:0;
    row-gap:25px;
  }

  .address > div {
    width:50%;
  }

  .grey-separator {
    margin: 5px auto 15px;
  }
}
@media (max-width:767px){
  h1 {
    font-size: 60px;
    line-height: 60px;
  }

  h2 {
    font-size: 19px;
    line-height: 24px;
  }

  .main-nav,
  .fab-content-wrapper,
  .gallery-wrapper,
  .contact-wrapper {
    max-width: 90%;
    margin:0 5%;
  }
  /*Menú responsive*/
  .main-nav {
    padding: 0 20px;
  }

  .menu {
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    height: 0;
    background: #383838;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap:0;
    column-gap: 25px;
    transition: height 0.35s ease;
    overflow: hidden;
    left: 0;
    margin: 0;
  }

  .menu.active {
    height:350px;
    padding: 50px 0;
    transition: height 0.35s ease;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    padding:25px 0 25px 25px
  }

  .menu-toggle span {
    width: 28px;
    height: 1px;
    background: white;
    transition: all 0.3s ease;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width:667px){
  .central-section-content {
    flex-direction: column;
    column-gap: 20px;
    row-gap: 0;
  }
  .laurel-wrapper {
    margin-top:25px;
  }

  .fab-content, .gallery, .contact {
    min-height:auto;
    padding:25px;
    margin:0;
  }

  .fab-content-wrapper{
    row-gap:0;
    margin:0;
    max-width: 100%;
  }

  .gallery-wrapper {
    margin:0;
    max-width: 100%;
  }

  .entradilla {
    font-size:40px;
  }

  .section-separator {
    margin:10px auto 40px;
  }

  .gallery-wrapper {
    padding:0 0 25px 0;
  }
  .contact-section-map {
    min-height:auto;
  }
  #map {
    height: 350px;
  }

  .minimal-footer {
    padding:25px;
  }

  #our-store-section .fab-button,
  #info-section .fab-button {
    background-color: rgba(0,0,0,0.5);
  }

}

@media (max-width:550px){

  .contact-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0 0 25px 0;
  }
  .contact-info {
    row-gap:5px;
  }

  .address {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .grey-separator {
    margin: 0px auto 10px;
  }

  .address > div {
    width:100%;
  }
  
  .minimal-footer {
    flex-direction: column-reverse;
    justify-content: center;
    row-gap: 15px;
  }

  .minimal-footer p {
    font-size:13px;
  } 
}

@media (max-width:480px){
  h1 {
    font-size: 50px;
    line-height: 50px;
  }

  h2 {
    font-size: 17px;
    line-height: 19px;
  }
  .fab-button span {
    padding:20px 40px;
  }

  .fab-content, .gallery, .contact {
    padding:50px 25px 25px 25px;
  }

  .main-nav, .fab-content-wrapper, .gallery-wrapper, .contact-wrapper {
    width:100%;
    max-width: 100%;
    margin: 0;
  }

  .entradilla {
    font-size: 50px;
    font-weight: 400;
    line-height: 60px;
  }

  .gallery-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}