/*
 Theme Name:     Divi Child
 Theme URI:      https://www.moonsafari.design
 Description:    Divi Child Theme - Customized
 Author:         Moon Safari 
 Author URI:     https://www.moonsafari.design
 Template:       Divi
 Version:        1.0.0
*/
 
 
/****** Theme customization starts here
------------------------------------------------------- */

/* HERO: rezerviraj prostor (sprječava skok dok se video pali) */
.hero-sec{
  min-height:100vh;            /* ili npr. 80vh / 70vh */
  position:relative;
  overflow:hidden;
  background-size:cover;       /* poster/fallback popuni kavez odmah */
  background-position:center;
}

/* Ako želiš točnu traku, koristi omjer umjesto vh (umjesto min-height): */
/* .hero-sec{ aspect-ratio:16/9; position:relative; overflow:hidden; } */

/* Svi Divi/MEJS wrapperi: izvan normalnog toka, neka samo prekrivaju */
.hero-sec .et-pb-background-video,
.hero-sec .et_pb_section_video_bg,
.hero-sec .et-pb-background-video_phone,
.hero-sec .mejs-container,
.hero-sec .mejs-mediaelement,
.hero-sec .mejs-embed {
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  pointer-events:none;
}

/* Sam <video>: popuni kavez bez mijenjanja layouta */
.hero-sec video{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Kontrole kod background videa ne trebaju — znaju dodati visinu */
.hero-sec .mejs-controls{ display:none !important; }

/* Za starije browsere bez aspect-ratio (fallback ako ne koristiš vh) */
@supports not (aspect-ratio: 1/1){
  .hero-sec[data-ar="16-9"]::before{
    content:"";
    display:block;
    padding-top:56.25%; /* 9/16 */
  }
}


@font-face {
  font-family: 'Aviano Sans Black';
  src: url('/wp-content/uploads/et-fonts/Aviano-Sans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap; /* ključno za CLS */
}

/* Primjena + smanjenje razlike metrika fallbacka */
h1, h2, .et_pb_menu__menu a { font-family: 'Aviano Sans Black', 'Segoe UI', Roboto, Arial, sans-serif; font-size-adjust: 0.5; }

@font-face {
  font-family: 'ETmodules';
  src: url('https://pizza-fiumana.com/wp-content/themes/Divi/core/admin/fonts/modules/base/modules.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

#sb_instagram .sbi_item img {
  aspect-ratio: 1 / 1;   /* ili 4/5 ovisno o omjeru Insta fotki */
  width: 100%;
  height: auto;
  display: block;
}

/* Rezerviraj prostor: desktop 16:9, mobile 9:16 (po želji promijeni) */

@media (max-width: 767px) {
  .hero-video.et_pb_section.et-pb-has-background-video { aspect-ratio: 9 / 16; }
}

/* Footer Bottom Bar edit */
#main-footer {
  position: fixed!important;
  bottom: 0!important;
  width: 100%!important;
  z-index: 9999!important;
}

#footer-info {
	float: none!important;
	text-align: center!important;
	font-family: 'Aviano Sans Black';
}

/* Slider Dot navigation styling */
.ms-pb-controllers a {
	width: 32px!important;
	height: 8px!important;
	border-radius: 0!important;
	margin-right: 24px;
}

@media (max-width: 767px) {
#footer-info {
	float: none!important;
	text-align: center!important;
	font-family: 'Aviano Sans Black';
	font-size: 0.7rem!important;
	line-height: 1rem;
}
	
.et_pb_slider .et_pb_slide {
		padding: 0px;
	}

}