/*
Theme Name: Tema Child Divi
Version: 1.0
Description: Tema child per personalizzare Divi.
Author: Elegant Themes
Author URI: https://elegantthemes.com/
Template: Divi
*/

/* =========================================================
   AIRONE - HEADER: hamburger a sinistra, logo centrato,
   drawer che scivola da sinistra
   ========================================================= */

/* --- Header fisso, trasparente in cima --- */
.et-l--header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: transparent !important;
  transition: background-color 0.45s ease, box-shadow 0.35s ease;
}

.et-l--header.scrolled {
  background-color: #a1998a !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Compensa lo spazio dell'header fisso - regola il valore
   guardando quanto è alto il tuo header reale */
body.et-tb-has-header #page-container {
  padding-top: 110px;
}

/* --- Contenitore del menu: serve relative per poter
   posizionare hamburger e logo in modo assoluto --- */
.et_pb_menu_inner_container {
  position: relative;
  min-height: 90px;
}

/* --- Nascondi il menu con i link testuali orizzontali --- */
.et_pb_menu__menu {
  display: none !important;
}

/* --- Hamburger: fissato a sinistra, sfondo tortora tipo "pillola" --- */
.et_mobile_nav_menu {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  z-index: 10;
  background-color: #a1998a;
  border-radius: 4px;
  padding: 12px 16px;
}

.mobile_menu_bar:before {
  color: #ffffff !important;
  text-shadow: none !important;
  font-size: 24px;
}

/* --- Bottone "Prenota": stile outline, stessa famiglia colore --- */
.et_pb_row_0_tb_header {
  position: relative;
}
.et_pb_row_0_tb_header .et_pb_button_module_wrapper {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.et_pb_button_module_wrapper .et_pb_button {
  border: 1px solid #a1998a;
  color: #a1998a;
  background-color: transparent;
  padding: 10px 26px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.et_pb_button_module_wrapper .et_pb_button:hover {
  background-color: #a1998a;
  color: #ffffff;
}

/* --- Logo: centrato nell'header --- */
.et_pb_menu__logo-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.et_pb_menu__logo img {
  transition: opacity 0.2s ease, max-height 0.4s ease;
  max-height: 130px;
  width: auto;
  display: block;
}
.scrolled .et_pb_menu__logo img {
  max-height: 55px;
}

/* =========================================================
   DRAWER: pannello che scivola da sinistra
   ========================================================= */

/* Sfondo scuro dietro al drawer, per chiudere cliccandolo */
.airone-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 199998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.airone-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Il pannello vero e proprio: ora copre tutto lo schermo */
.airone-drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #a1998a;
  z-index: 199999;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.airone-drawer.is-open {
  transform: translateX(0);
}

.airone-drawer__close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.airone-drawer__close:hover {
  transform: rotate(90deg);
  opacity: 0.7;
}

.airone-drawer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.airone-drawer__nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}
.airone-drawer__nav a:hover {
  opacity: 0.8;
  letter-spacing: 2px;
}

/* Blocca lo scroll della pagina quando il drawer è aperto */
body.airone-menu-open {
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .et_pb_menu__logo img { max-height: 90px; }
  .scrolled .et_pb_menu__logo img { max-height: 42px; }
}
@media (max-width: 767px) {
  .et_pb_menu__logo img { max-height: 65px; }
  .scrolled .et_pb_menu__logo img { max-height: 34px; }
  .mobile_menu_bar:before { font-size: 26px; }
  .et_mobile_nav_menu { left: 20px; }
  .airone-drawer__nav a { font-size: 30px; }
  .airone-drawer__nav { gap: 20px; }
  .airone-drawer__close { top: 20px; right: 25px; font-size: 32px; }
}