/*
Theme Name: HOTEL GERMANIA 
Version: 1.0
Description: HOTEL GERMANIA 
Author: Nuovola Web Desing
Author URI: https://www.nuvolawebdesign.com
Template: Divi
*/



@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Jost:wght@300;400&display=swap');




:root {
  --hg-font-titoli: "Cormorant Garamond", Georgia, serif;
  --hg-font-testi: "Jost", "Helvetica Neue", Arial, sans-serif;
  --hg-marrone: #3B2A22;   /* titoli e testi su fondo chiaro */
  --hg-tortora: #9C8B77;   /* bottone principale, fasce */
  --hg-grigio: #B8B3A9;    /* fasce secondarie */
  --hg-bianco: #FFFFFF;
}

/* ---------- TESTO BASE ---------- */
body,
body #page-container,
body #page-container p,
body #page-container li {
  font-family: var(--hg-font-testi);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(59, 42, 34, 0.8);
}

body #page-container .et_pb_text p {
  padding-bottom: 1em;
}
body #page-container .et_pb_text p:last-of-type {
  padding-bottom: 0;
}

/* ---------- TITOLI (base comune) ---------- */
body #page-container h1,
body #page-container h2,
body #page-container h3 {
  font-family: var(--hg-font-titoli);
  color: var(--hg-marrone);
  letter-spacing: 0.01em;
  text-transform: none;
  padding-bottom: 0;
  margin-bottom: 0.4em;
}

/* H1 – 34px mobile → 56px desktop · peso 300 */
body #page-container h1 {
  font-size: clamp(34px, 24.9px + 2.43vw, 56px);
  font-weight: 300;
  line-height: 1.1;
}

/* H2 – 30px mobile → 48px desktop · peso 300 */
body #page-container h2 {
  font-size: clamp(30px, 22.5px + 1.99vw, 48px);
  font-weight: 300;
  line-height: 1.12;
}

/* H3 – 19px mobile → 21px desktop · peso 400 */
body #page-container h3 {
  font-size: clamp(19px, 18.2px + 0.22vw, 21px);
  font-weight: 400;
  line-height: 1.25;
}

/* ---------- CLASSI DI SUPPORTO ----------
   Si assegnano al modulo in Divi > Avanzate > ID e classi CSS > Classe CSS */

/* Testo chiaro su foto / fasce scure: classe "testo-bianco" */
body #page-container .testo-bianco h1,
body #page-container .testo-bianco h2,
body #page-container .testo-bianco h3,
body #page-container .testo-bianco p,
body #page-container .testo-bianco li {
  color: var(--hg-bianco);
}

/* Sottotitolo hero: classe "sottotitolo-hero" – 16px → 18px */
body #page-container .sottotitolo-hero p {
  font-size: clamp(16px, 15.2px + 0.22vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Paragrafo introduttivo grande: classe "testo-intro" – 19px → 21px */
body #page-container .testo-intro p {
  font-size: clamp(19px, 18.2px + 0.22vw, 21px);
  line-height: 1.7;
}

/* Frase in evidenza in corsivo-serif: classe "citazione" – 24px → 36px */
body #page-container .citazione p {
  font-family: var(--hg-font-titoli);
  font-size: clamp(24px, 19px + 1.33vw, 36px);
  font-weight: 300;
  line-height: 1.25;
}

/* Testo piccolo delle card (es. sotto gli H3): classe "testo-card" – 13px */
body #page-container .testo-card p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(59, 42, 34, 0.65);
}

/* Link testuale "Scopri di più →": classe "link-scopri" sul modulo Testo */
body #page-container .link-scopri a {
  font-family: var(--hg-font-testi);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--hg-marrone);
  text-decoration: underline;
  text-decoration-color: rgba(59, 42, 34, 0.3);
  text-underline-offset: 8px;
  transition: text-decoration-color 0.3s;
}
body #page-container .link-scopri a:hover {
  text-decoration-color: var(--hg-marrone);
}

/* ---------- BOTTONI DIVI ---------- */
body #page-container .et_pb_button {
  font-family: var(--hg-font-testi) !important;
  font-size: 11px !important;
  font-weight: 300 !important;
  text-transform: uppercase;
  letter-spacing: 0.2em !important;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px !important;
  border-radius: 0 !important;
  border: 1px solid var(--hg-tortora) !important;
  background-color: var(--hg-tortora) !important;
  color: var(--hg-bianco) !important;
  transition: background-color 0.3s, color 0.3s;
}
body #page-container .et_pb_button:hover {
  background-color: #8A7A68 !important;
  border-color: #8A7A68 !important;
}
body #page-container .et_pb_button:after { display: none !important; } /* toglie la freccia Divi */

/* Bottone trasparente bordato bianco (es. "Prenota"): classe "btn-outline" sul modulo Pulsante */
body #page-container .btn-outline.et_pb_button {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}
body #page-container .btn-outline.et_pb_button:hover {
  background-color: var(--hg-bianco) !important;
  color: var(--hg-marrone) !important;
}



/* =========================================================
   HOTEL GERMANIA – Header trasparente + menu hamburger
   Da aggiungere in fondo a style.css del child theme.
   Funziona sull'header del Theme Builder Divi, non servono classi.
   ========================================================= */

:root {
  --hg-marrone-header: #3f3128;
  --hg-crema: #f5efe8;
}

/* ---------- HEADER FISSO E TRASPARENTE ---------- */
body.hg-has-header .et-l--header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: 9990;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

body.hg-has-header .et-l--header .et_pb_section,
body.hg-has-header .et-l--header .et_pb_row,
body.hg-has-header .et-l--header .et_pb_column,
body.hg-has-header .et-l--header .et_pb_menu,
body.hg-has-header .et-l--header .et_pb_menu__menu {
  background-color: transparent !important;
  background-image: none !important;
}

body.hg-has-header .et-l--header .hg-mainbar {
  padding: 22px 0 !important;
  transition: padding 0.4s ease;
}
body.hg-has-header .et-l--header .et_pb_row {
  padding: 0 !important;
}

/* ---------- ALLO SCROLL: SFONDO MARRONE ---------- */
body.hg-scrolled .et-l--header {
  background-color: var(--hg-marrone-header);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
body.hg-scrolled .et-l--header .hg-mainbar {
  padding: 12px 0 !important;
}

/* ---------- TOP BAR (telefono · email · lingue) ----------
   Visibile solo in cima alla pagina, sparisce con lo scroll */
body.hg-has-header .et-l--header .hg-topbar {
  padding: 12px 0 !important;
  max-height: 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease, border-color 0.4s ease;
}
body.hg-scrolled .et-l--header .hg-topbar {
  max-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  border-bottom-color: transparent;
  pointer-events: none;
}

/* Colonne: telefono ed email a sinistra, lingue a destra */
body.hg-has-header .hg-topbar .et_pb_row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 36px;
}
body.hg-has-header .hg-topbar .et_pb_column {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
body.hg-has-header .hg-topbar .et_pb_column:last-child {
  margin-left: auto !important;
  text-align: right;
}

/* Testi della top bar */
body.hg-has-header .hg-topbar .et_pb_module_header,
body.hg-has-header .hg-topbar .et_pb_module_header a,
body.hg-has-header .hg-topbar p,
body.hg-has-header .hg-topbar a {
  font-family: "Jost", sans-serif !important;
  font-weight: 300 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none;
  transition: color 0.3s ease;
}
body.hg-has-header .hg-topbar a:hover {
  color: #fff !important;
}
body.hg-has-header .hg-topbar .et_pb_module {
  margin: 0 !important;
}

/* Icone telefono / email */
.hg-topbar .hg-ico {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hg-topbar .hg-ico::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background-color: currentColor;
  -webkit-mask: var(--hg-ico) no-repeat center / contain;
          mask: var(--hg-ico) no-repeat center / contain;
}
.hg-topbar .hg-ico--tel {
  --hg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
.hg-topbar .hg-ico--mail {
  --hg-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}

/* Lingue (ultima colonna) – pronto per WPML / Polylang / link semplici */
.hg-topbar .et_pb_column:last-child ul {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.hg-topbar .et_pb_column:last-child li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.hg-topbar .et_pb_column:last-child a {
  display: inline-block;
  padding-bottom: 3px !important;
  border-bottom: 1px solid transparent;
}
.hg-topbar .et_pb_column:last-child .current-lang a,
.hg-topbar .et_pb_column:last-child .wpml-ls-current-language a,
.hg-topbar .et_pb_column:last-child a.is-active {
  color: #fff !important;
  border-bottom-color: #fff;
}

/* Mobile: nascondo l'email per stare su una riga */
@media (max-width: 767px) {
  body.hg-has-header .hg-topbar .et_pb_row { gap: 20px; width: 90% !important; }
  body.hg-has-header .hg-topbar .et_pb_column:nth-child(2) { display: none !important; }
  body.hg-has-header .hg-topbar .et_pb_module_header,
  body.hg-has-header .hg-topbar a { font-size: 10px !important; letter-spacing: 0.15em !important; }
}

/* Logo: più piccolo quando l'header si restringe */
.et-l--header .et_pb_menu__logo img {
  max-height: 70px;
  width: auto;
  transition: max-height 0.4s ease;
}
body.hg-scrolled .et-l--header .et_pb_menu__logo img {
  max-height: 50px;
}

/* ---------- NASCONDO IL MENU DIVI (restano logo + hamburger) ---------- */
body.hg-has-header .et-l--header .et_pb_menu__menu,
body.hg-has-header .et-l--header .et_mobile_nav_menu,
body.hg-has-header .et-l--header .et_pb_menu__icon {
  display: none !important;
}

/* Se vuoi il menu orizzontale su desktop e l'hamburger solo sotto i 980px,
   cancella il blocco sopra e togli i commenti da questo:

@media (min-width: 981px) {
  body.hg-has-header .et-l--header .et_pb_menu__menu { display: flex !important; }
  body.hg-has-header .et-l--header .et_mobile_nav_menu { display: none !important; }
  .hg-burger { display: none !important; }
  .et-l--header .et-menu > li > a { color: #fff !important; font-family: "Jost", sans-serif; font-weight: 300; }
}
@media (max-width: 980px) {
  body.hg-has-header .et-l--header .et_pb_menu__menu,
  body.hg-has-header .et-l--header .et_mobile_nav_menu { display: none !important; }
}
*/

/* ---------- BOTTONE HAMBURGER ---------- */
.hg-burger {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  z-index: 2;
}
.hg-burger span {
  display: block;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}
.hg-burger span:nth-child(1) { width: 30px; }
.hg-burger span:nth-child(2) { width: 22px; }
.hg-burger span:nth-child(3) { width: 30px; }
.hg-burger:hover span:nth-child(2) { width: 30px; }

/* ---------- OVERLAY FULLSCREEN ---------- */
.hg-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--hg-marrone-header);
  color: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
body.admin-bar .hg-overlay { top: var(--wp-admin--admin-bar--height, 32px); }
body.hg-menu-open { overflow: hidden; }
body.hg-menu-open .hg-overlay {
  opacity: 1;
  visibility: visible;
}

.hg-overlay__inner {
  width: 80%;
  max-width: 1110px;
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 0 32px;
  display: flex;
  flex-direction: column;
}

/* Barra in alto: nome + X */
.hg-overlay__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hg-overlay__brand { text-decoration: none; color: #fff; }
.hg-overlay__logo {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 72px;
}
.hg-overlay__close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hg-overlay__close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.3;
  transition: transform 0.3s ease;
}
.hg-overlay__close:hover svg { transform: rotate(90deg); }

/* Voci del menu */
.hg-overlay__nav { margin: 60px 0 50px; }
.hg-overlay__nav ul { list-style: none; margin: 0; padding: 0 !important; }
.hg-overlay__nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.hg-menu-open .hg-overlay__nav li { opacity: 1; transform: none; }
body.hg-menu-open .hg-overlay__nav li:nth-child(1) { transition-delay: 0.10s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(2) { transition-delay: 0.15s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(3) { transition-delay: 0.20s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(4) { transition-delay: 0.25s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(5) { transition-delay: 0.30s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(6) { transition-delay: 0.35s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(7) { transition-delay: 0.40s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(8) { transition-delay: 0.45s; }
body.hg-menu-open .hg-overlay__nav li:nth-child(9) { transition-delay: 0.50s; }

.hg-overlay__nav a {
  display: block;
  padding: 18px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 22px + 1.6vw, 40px);
  line-height: 1.2;
  color: var(--hg-crema) !important;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.hg-overlay__nav a:hover {
  color: #c9b8a3 !important;
  padding-left: 10px;
}

/* Contatti in basso */
.hg-overlay__bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.hg-overlay__contatti {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.4;
}
.hg-overlay__contatti a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}
.hg-overlay__contatti a:hover { color: #fff !important; }
.hg-overlay__contatti span { color: rgba(255, 255, 255, 0.55); }
.hg-overlay__contatti svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
  .hg-overlay__inner { width: 88%; padding-top: 20px; }
  .hg-overlay__logo { max-height: 56px; }
  .hg-overlay__nav { margin: 40px 0; }
  .hg-overlay__nav a { padding: 14px 0; }
  .hg-overlay__bottom { flex-direction: column; align-items: flex-start; }
}


/* ---------- PULSANTE "RICHIESTA DI PRENOTAZIONE" NELLA TOP BAR ---------- */

/* Colonna del pulsante spinta a destra, lingue subito dopo */
body.hg-has-header .hg-topbar .et_pb_column:has(.et_pb_button) {
  margin-left: auto !important;
}
body.hg-has-header .hg-topbar .et_pb_column:has(.et_pb_button) ~ .et_pb_column:last-child {
  margin-left: 0 !important;
}
body.hg-has-header .hg-topbar .et_pb_button_module_wrapper {
  margin: 0 !important;
}

body.hg-has-header .et-l--header .hg-topbar a.et_pb_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 24px !important;
  margin: 0 !important;
  font-family: "Jost", sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: #fff !important;
  background-color: #9C8B77 !important;
  border: 1px solid #9C8B77 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
body.hg-has-header .et-l--header .hg-topbar a.et_pb_button:hover {
  background-color: #fff !important;
  border-color: #fff !important;
  color: #3f3128 !important;
}
body.hg-has-header .et-l--header .hg-topbar a.et_pb_button::before,
body.hg-has-header .et-l--header .hg-topbar a.et_pb_button::after {
  display: none !important;   /* niente freccia Divi */
}

/* Mobile: telefono solo con icona, pulsante più compatto */
@media (max-width: 767px) {
  body.hg-has-header .hg-topbar .et_pb_module_header a.hg-ico--tel {
    font-size: 0 !important;
    letter-spacing: 0 !important;
  }
  body.hg-has-header .hg-topbar .hg-ico--tel::before {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  body.hg-has-header .et-l--header .hg-topbar a.et_pb_button {
    min-height: 32px;
    padding: 0 14px !important;
    font-size: 9px !important;
    letter-spacing: 0.15em !important;
  }
  body.hg-has-header .hg-topbar .et_pb_row { gap: 14px !important; }
  .hg-topbar .et_pb_column:last-child ul { gap: 10px; }
}



/* =========================================================
   HOTEL GERMANIA – HERO con immagine animata
   Prima sezione della pagina con un modulo Immagine.
   Il JS le aggiunge da solo la classe "hg-hero"
   (oppure scrivila tu in Sezione > Avanzate > Classe CSS).
   ========================================================= */

/* Sezione a tutto schermo, parte da sotto l'header trasparente */
body #page-container .hg-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background-color: #3f3128;
}

body #page-container .hg-hero .et_pb_row,
body #page-container .hg-hero .et_pb_column,
body #page-container .hg-hero .et_pb_image,
body #page-container .hg-hero .et_pb_image_wrap {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

/* Contenitore dell'immagine: qui lavora il parallax (JS) */
body #page-container .hg-hero .et_pb_image_wrap {
  position: absolute !important;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

/* Immagine: copre tutto + effetto "video" lento (Ken Burns) */
body #page-container .hg-hero .et_pb_image_wrap img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center 60%;
  transform-origin: 60% 45%;
  animation:
    hgHeroIn 2.2s cubic-bezier(.2,.6,.2,1) both,
    hgKenBurns 28s ease-in-out 2.2s infinite alternate;
  will-change: transform;
}

@keyframes hgHeroIn {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1.04); }
}

@keyframes hgKenBurns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.11) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1.16) translate3d(1%, -1.6%, 0); }
}

/* Ombra: scura sotto il menu, sempre più chiara verso il basso */
body #page-container .hg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(30, 20, 15, 0.92) 0%,
    rgba(30, 20, 15, 0.75) 12%,
    rgba(30, 20, 15, 0.50) 24%,
    rgba(30, 20, 15, 0.22) 38%,
    rgba(30, 20, 15, 0)    55%,
    rgba(30, 20, 15, 0)    78%,
    rgba(30, 20, 15, 0.25) 100%
  );
}
/* Luce morbida che si sposta piano: dà la sensazione di ripresa dal vivo */
body #page-container .hg-hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 244, 225, 0.35) 0%,
    rgba(255, 244, 225, 0) 45%
  );
  mix-blend-mode: soft-light;
  animation: hgLuce 16s ease-in-out infinite alternate;
}

@keyframes hgLuce {
  0%   { transform: translate3d(0, 0, 0);     opacity: 0.6; }
  50%  { transform: translate3d(8%, 4%, 0);   opacity: 1; }
  100% { transform: translate3d(14%, -2%, 0); opacity: 0.7; }
}

/* Eventuali testi/pulsanti aggiunti nella hero stanno sopra l'ombra */
body #page-container .hg-hero .et_pb_module:not(.et_pb_image) {
  position: relative;
  z-index: 3;
}

/* Mobile: altezza un po' ridotta */
@media (max-width: 767px) {
  body #page-container .hg-hero {
    height: 85svh;
    min-height: 480px;
  }
}

/* Chi ha attivato "riduci movimento" nel sistema vede l'immagine ferma */
@media (prefers-reduced-motion: reduce) {
  body #page-container .hg-hero .et_pb_image_wrap img,
  body #page-container .hg-hero::after {
    animation: none !important;
    transform: scale(1.04) !important;
  }
}

/* Top bar con sfondo marrone */
body.hg-has-header .et-l--header .et_pb_section.hg-topbar {
  background-color: #3f3128 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}