/*
 Theme Name: Astra Child (Fix)
 Theme URI: https://wpastra.com/
 Description: Tema child di Astra. Correzione header e file index richiesti da WordPress.
 Author: zeropare
 Template: astra
 Version: 1.0.0
 Text Domain: astra-child
*/

/* HEADER */
.custom-header {
  background: #000;
  color: #000;
  border-bottom: 10px solid #cab26a;
}
/* HEADER */
.custom-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
/* HEADER */
.custom-header .logo img {
  max-height: 210px;
  height: auto;
}
/* HEADER – MENU / navigazione */
.custom-header .main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
/* HEADER – MENU / navigazione */
.custom-header .main-nav .nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}
/* HEADER – MENU / navigazione */
.custom-header .nav-menu li a {
  font-family: 'Yesteryear', cursive;
  font-size: 32px;
  color: #cab26a;
  text-decoration: none;
}
/* HEADER – MENU / navigazione */
.custom-header .nav-menu li a:hover {
  color: #ccc;
}
/* HEADER */
.custom-header .header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  right: 40px;
  top: -20px;
  font-size: 30px;
}
/* HEADER */
.custom-header .social-icons a {
  color: #cab26a;
  transition: color 0.3s ease;
}
/* HEADER */
.custom-header .social-icons a:hover {
  color: #ffffff;
}
/* HEADER – MENU / navigazione */
.custom-header .burger-menu {
  display: none;
  cursor: pointer;
}
.custom-burger-icon {
  width: 50px;
  height: auto;
}
.subtitle-container {
  width: 100%;
  text-align: center;
  color: #cab26a;
  font-family: 'Yesteryear', cursive;
  font-size: 62px;
  margin-top: -40px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.slider-bg {
  width: 100%;
  display: block;
}
.slider-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 60%;
  z-index: 2;
  pointer-events: none;
}
.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
/* Variabili globali */
:root {
  --subtitle-top-size: 20px;
  --subtitle-bottom-size: 42px;
  --subtitle-weight: 700;
  --subtitle-letterspacing: 0.5px;
  --subtitle-text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.subtitle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.1;
  text-transform: none;
  margin: 10px auto 0;
  color: #fff;
  text-align: center;
}
.subtitle-container .subtitle-top {
  font-size: var(--subtitle-top-size);
  font-weight: calc(var(--subtitle-weight) - 100);
  opacity: 0.95;
  text-shadow: var(--subtitle-text-shadow);
}
.subtitle-container .subtitle-bottom {
  font-size: var(--subtitle-bottom-size);
  font-weight: var(--subtitle-weight);
  letter-spacing: var(--subtitle-letterspacing);
  text-shadow: var(--subtitle-text-shadow);
}
/* HEADER */
header.custom-header .subtitle-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: #fff !important;
  text-transform: none !important;
  letter-spacing: normal;
}
/* HEADER */
header.custom-header .subtitle-container .subtitle-top,header.custom-header .subtitle-container .subtitle-bottom {
  display: block !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}
/* HEADER */
header.custom-header .subtitle-container .subtitle-bottom {
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* Variabili globali */
:root {
  --subtitle-scale: 1;
  --subtitle-top-base: 20px;
  --subtitle-bottom-base: 42px;
  --subtitle-top-base-sm: 16px;
  --subtitle-bottom-base-sm: 30px;
}
/* HEADER */
header.custom-header .subtitle-container {
  color: #cab26a !important;
  align-items: flex-start !important;
  text-align: left !important;
  max-width: min(92vw, 1100px);
}
/* HEADER */
header.custom-header .subtitle-container .subtitle-top {
  font-size: calc(var(--subtitle-top-base) * var(--subtitle-scale)) !important;
  margin-left: 0 !important;
}
/* HEADER */
header.custom-header .subtitle-container .subtitle-bottom {
  font-size: calc(var(--subtitle-bottom-base) * var(--subtitle-scale)) !important;
  margin-left: 0 !important;
}
/* Variabili globali */
:root {
  --subtitle-size-base: 42px;
  --subtitle-size-base-sm: 30px;
}
/* HEADER */
header.custom-header .subtitle-container {
  color: #cab26a !important;
  align-items: flex-start !important;
  text-align: left !important;
}
/* HEADER */
header.custom-header .subtitle-container .subtitle-top,header.custom-header .subtitle-container .subtitle-bottom {
  font-size: calc(var(--subtitle-size-base) * var(--subtitle-scale)) !important;
  font-weight: var(--subtitle-weight);
  line-height: 1.1 !important;
}
/* HEADER */
header.custom-header .subtitle-container {
  color: #cab26a !important;
  align-items: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
/* HEADER */
header.custom-header .subtitle-container .subtitle-top,header.custom-header .subtitle-container .subtitle-bottom {
  display: block !important;
  white-space: normal !important;
}
/* Regole globali */
html {
  -webkit-text-size-adjust: 95%;
}
/* HEADER */
header.custom-header .subtitle-wrap {
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--sa-left, 16px);
  padding-right: var(--sa-right, 16px);
  overflow: visible;
  margin: 0 auto;
}
/* HEADER */
header.custom-header .subtitle-container {
  max-width: 1100px;
  margin: 0 auto;
}
/* HEADER */
header.custom-header .subtitle-sep {
  display: block;
  height: 6px;
  background: #cab26a;
  border-radius: 3px;
  width: 100%;
  margin-top: 8px;
}
/* HEADER */
header.custom-header .subtitle-container::after,header.custom-header hr.subtitle-sep-old {
  content: none !important;
  display: none !important;
}
/* HEADER */
header.custom-header,header.custom-header .header-container {
  overflow: visible;
}
/* Regole globali */
html {
  -webkit-text-size-adjust: 100%;
}
/* HEADER */
header.custom-header .subtitle-wrap {
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--sa-left, 16px);
  padding-right: var(--sa-right, 16px);
  overflow: visible;
  margin: 0 auto;
}
/* HEADER */
header.custom-header .subtitle-sep {
  display: block;
  height: 6px;
  background: #cab26a;
  border-radius: 3px;
  width: 100%;
  margin-top: 8px;
}
/* HEADER */
header.custom-header .subtitle-container::after,header.custom-header hr.subtitle-sep-old {
  content: none !important;
  display: none !important;
}
/* HEADER */
header.custom-header .subtitle-sep {
  display: none !important;
}
#primary {
  position: relative;
}
/* Removed unused rule: .extra-text */

/* Removed unused rule: .extra-text p */

#primary {
  position: relative;
}
/*  DESKTOP ≥ 1025px) */
:root {
  --ex1-top: 5250px;
  --ex1-left: 40px;
  --ex1-width: 860px;
  --ex2-top: 6340px;
  --ex2-left: 40px;
  --ex2-width: 860px;
  --ex3-top: 7250px;
  --ex3-left: 40px;
  --ex3-width: 860px;
  --ex4-top: 8820px;
  --ex4-left: 40px;
  --ex4-width: 730px;
}
/* Removed unused rule: .extra-text */

/* Removed unused rule: .extra-text p */

#extra-block,#extra-block2,#extra-block3,#extra-block4 {
  position: absolute;
  z-index: 9999;
}
/* === Mobile/Tablet – max-width: 768px === */
@media (max-width: 768px) {
/* HEADER – MENU / navigazione */
  body:not(.menu-open) .custom-header .header-container {
    display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  }
/* HEADER – MENU / navigazione */
  body:not(.menu-open) .custom-header .logo {
    grid-column: 1 / 2;
  justify-self: start;
  }
/* HEADER – MENU / navigazione */
  body:not(.menu-open) .custom-header .header-icons {
    grid-column: 2 / 3;
  justify-self: center;
  position: static;
  right: auto;
  top: auto;
  transform: none;
  gap: 14px;
  font-size: 30px;
  }
/* HEADER – MENU / navigazione */
  body:not(.menu-open) .custom-header .burger-menu {
    grid-column: 3 / 4;
  justify-self: end;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .header-icons {
    display: none !important;
  }
/* HEADER */
  .custom-header .header-container {
    display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  }
/* HEADER – MENU / navigazione */
  .custom-header .burger-menu {
    display: block;
  position: relative;
  z-index: 1000;
  }
/* HEADER */
  .custom-header .logo {
    order: 1;
  }
/* HEADER */
  .custom-header .header-icons {
    order: 2;
  position: absolute;
  left: 30%;
  top: 77px;
  transform: translateX(-50%);
  }
/* HEADER – MENU / navigazione */
  .custom-header .burger-menu {
    order: 3;
  }
/* HEADER – MENU / navigazione */
  .custom-header .main-nav {
    display: none;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .header-container {
    display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  text-align: center;
  width: 100%;
  position: relative;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .main-nav {
    grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: block;
  text-align: left;
  padding-left: -40px;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .main-nav .nav-menu {
    flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .logo {
    grid-column: 2 / 3;
  grid-row: 1 / 2;
  margin: 0 auto;
  position: relative;
  top: 50px;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .header-icons {
    display: none !important;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .burger-menu {
    grid-column: 3 / 4;
  grid-row: 1 / 2;
  justify-self: end;
  }
  .subtitle-container {
    margin-top: 12px;
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  }
/* MENU / navigazione */
  body.menu-open .subtitle-container {
    display: none !important;
  }
/* HOME – regole/elementi homepage */
  body.home .recensioni-home .rec-card .rec-commento,body.front-page .recensioni-home .rec-card .rec-commento,body.home .rec-card .rec-commento,body.front-page .rec-card .rec-commento {
    color: #fff !important;
  }
  .slider-container {
    overflow: visible !important;
  }
  .slider-overlay,.stars-canvas {
    z-index: 10;
  pointer-events: none;
  }
  .slider-container {
    overflow: visible !important;
  }
  .slider-overlay,.stars-canvas {
    z-index: 10;
  pointer-events: none;
  }
  .slider-container {
    overflow: visible !important;
  }
/* Variabili globali */
  :root {
    --subtitle-top-size: 16px;
  --subtitle-bottom-size: 30px;
  }
/* HEADER */
  header.custom-header .subtitle-container .subtitle-top {
    font-size: calc(var(--subtitle-top-base-sm) * var(--subtitle-scale));
  }
/* HEADER */
  header.custom-header .subtitle-container .subtitle-bottom {
    font-size: calc(var(--subtitle-bottom-base-sm) * var(--subtitle-scale));
  }
/* HEADER */
  header.custom-header .subtitle-container .subtitle-top,header.custom-header .subtitle-container .subtitle-bottom {
    font-size: calc(var(--subtitle-size-base-sm) * var(--subtitle-scale));
  }
/* HEADER */
  header.custom-header .subtitle-container {
    color: #cab26a !important;
  align-items: flex-start !important;
  text-align: left !important;
  width: 100%;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  }
/* HEADER */
  header.custom-header .subtitle-container .subtitle-top,header.custom-header .subtitle-container .subtitle-bottom {
    display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  font-size: calc(var(--subtitle-size-base-sm) * var(--subtitle-scale));
  }
/* HEADER */
  .custom-header .header-container {
    display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: var(--sa-left, 16px);
  padding-right: var(--sa-right, 16px);
  }
/* HEADER */
  .custom-header .logo {
    grid-column: 1/2;
  justify-self: start;
  }
/* HEADER */
  .custom-header .header-icons {
    grid-column: 2/3;
  justify-self: center;
  position: static;
  left: auto;
  top: auto;
  transform: none;
  }
/* HEADER – MENU / navigazione */
  .custom-header .burger-menu {
    grid-column: 3/4;
  justify-self: end;
  }
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  }
/* HEADER */
  header.custom-header .subtitle-sep {
    width: 100%;
  }
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  }
/* MENU / navigazione */
  body.menu-open .subtitle-wrap,body.menu-open .subtitle-container {
    display: none !important;
  }
/* HEADER */
  .custom-header .header-container {
    display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: var(--sa-left, 16px);
  padding-right: var(--sa-right, 16px);
  }
/* HEADER */
  .custom-header .logo {
    grid-column: 1/2;
  justify-self: start;
  }
/* HEADER */
  .custom-header .header-icons {
    grid-column: 2/3;
  justify-self: center;
  position: static;
  left: auto;
  top: auto;
  transform: none !important;
  }
/* HEADER – MENU / navigazione */
  .custom-header .burger-menu {
    grid-column: 3/4;
  justify-self: end;
  }
/* HEADER – MENU / navigazione */
  body.menu-open .custom-header .header-icons {
    display: none !important;
  }
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  }
/* HEADER */
  .custom-header .header-container {
    display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: var(--sa-left);
  padding-right: var(--sa-right);
  }
/* HEADER */
  .custom-header .logo {
    grid-column: 1/2;
  justify-self: start;
  }
/* HEADER */
  .custom-header .header-icons {
    grid-column: 2/3;
  justify-self: center;
  position: static;
  }
/* HEADER – MENU / navigazione */
  .custom-header .burger-menu {
    grid-column: 3/4;
  justify-self: end;
  }
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: static;
  margin: 16px auto;
  padding-left: var(--sa-left);
  padding-right: var(--sa-right);
  box-sizing: border-box;
  width: 100%;
  }
/* MENU / navigazione */
  #extra-block img,#extra-block2 img,#extra-block3 img,body.menu-open .subtitle-wrap {
    display: none !important;
  }
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  }
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: static;
  width: 100%;
  box-sizing: border-box;
  margin: 80px auto 30px;
  padding: 0 var(--sa-right) 0 var(--sa-left);
  }
/* Removed unused rule: .extra-text p */

  }
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  }
/* === Desktop – min-width: 1024px === */
@media (min-width: 1024px) {
/* HEADER */
  header.custom-header .subtitle-container {
    display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: .35em;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
  }
/* HEADER */
  header.custom-header .subtitle-container .subtitle-top,header.custom-header .subtitle-container .subtitle-bottom {
    font-size: clamp(
      70px, 
      calc(var(--subtitle-size-base, 42px) * 1.12),
      56px
    ) !important;
  line-height: 1.05 !important;
  }
/* HEADER */
  header.custom-header .subtitle-container {
    display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
  }
}
/* === Mobile/Tablet – max-width: 600px === */
@media (max-width: 600px) {
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  --sa-top: env(safe-area-inset-top);
  }
  body,.site,.site-content,#primary {
    padding-left: var(--sa-left);
  padding-right: var(--sa-right);
  box-sizing: border-box;
  }
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    margin: 16px auto;
  padding-left: var(--sa-left, 16px);
  padding-right: var(--sa-right, 16px);
  }
/* Removed unused rule: .extra-text p */

  }
/* Variabili globali */
  :root {
    --ex1-top: 475px;
  --ex1-left: 16px;
  --ex1-width: 80vw;
  --ex2-top: 1093px;
  --ex2-left: 10px;
  --ex2-width: 80vw;
  --ex3-top: 1768px;
  --ex3-left: 16px;
  --ex3-width: 80vw;
  --ex4-top: 2350px;
  --ex4-left: 16px;
  --ex4-width: 80vw;
  }
/* === Responsive – min-width: 769px) and (max-width: 1024px === */
@media (min-width: 769px) and (max-width: 1024px) {
/* HEADER */
  .custom-header .header-container {
    display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
  padding-left: 24px;
  padding-right: 24px;
  }
/* HEADER */
  .custom-header .logo {
    grid-column: 1 / 2;
  }
/* HEADER – MENU / navigazione */
  .custom-header .main-nav {
    grid-column: 2 / 3;
  }
/* HEADER */
  .custom-header .header-icons {
    grid-column: 3 / 4;
  }
/* HEADER – MENU / navigazione */
  .custom-header .main-nav .nav-menu {
    display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
  }
/* HEADER */
  .custom-header .header-icons {
    justify-self: end;
  min-width: 140px;
  position: static !important;
  }
/* HEADER – MENU / navigazione */
  .custom-header .nav-menu li a {
    font-size: clamp(20px, 2.1vw, 28px);
  }
/* HEADER – MENU / navigazione */
  .custom-header .nav-menu li a {
    font-size: clamp(22px, 2.6vw, 32px);
  }
/* Variabili globali */
  :root {
    --ex1-top-t: 1940px;
  --ex1-left-t: 30px;
  --ex1-width-t: 620px;
  --ex2-top-t: 2050px;
  --ex2-left-t: 30px;
  --ex2-width-t: 620px;
  --ex3-top-t: 3230px;
  --ex3-left-t: 30px;
  --ex3-width-t: 620px;
  --ex4-top-t: 6260px;
  --ex4-left-t: 30px;
  --ex4-width-t: 560px;
  }
  #primary {
    position: relative;
  }
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: absolute !important;
  z-index: 9999;
  }
  #extra-block {
    top: var(--ex1-top-t);
  left: var(--ex1-left-t);
  width: var(--ex1-width-t);
  }
  #extra-block2 {
    top: var(--ex2-top-t);
  left: var(--ex2-left-t);
  width: var(--ex2-width-t);
  }
  #extra-block3 {
    top: var(--ex3-top-t);
  left: var(--ex3-left-t);
  width: var(--ex3-width-t);
  }
  #extra-block4 {
    top: var(--ex4-top-t);
  left: var(--ex4-left-t);
  width: var(--ex4-width-t);
  }
/* Variabili globali */
  :root {
    --ex1-top-t: 940px;
  --ex1-left-t: 30px;
  --ex1-width-t: 620px;
  --ex2-top-t: 2050px;
  --ex2-left-t: 30px;
  --ex2-width-t: 620px;
  --ex3-top-t: 3230px;
  --ex3-left-t: 30px;
  --ex3-width-t: 620px;
  --ex4-top-t: 4260px;
  --ex4-left-t: 30px;
  --ex4-width-t: 560px;
  }
  #primary {
    position: relative;
  }
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: absolute !important;
  z-index: 9999;
  }
  #extra-block {
    top: var(--ex1-top-t);
  left: var(--ex1-left-t);
  width: var(--ex1-width-t);
  }
  #extra-block2 {
    top: var(--ex2-top-t);
  left: var(--ex2-left-t);
  width: var(--ex2-width-t);
  }
  #extra-block3 {
    top: var(--ex3-top-t);
  left: var(--ex3-left-t);
  width: var(--ex3-width-t);
  }
  #extra-block4 {
    top: var(--ex4-top-t);
  left: var(--ex4-left-t);
  width: var(--ex4-width-t);
  }
/* Removed unused rule: .extra-text p */

  }
/* === Desktop – min-width: 1025px === */
@media (min-width: 1025px) {
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: absolute;
  z-index: 9999;
  }
  #extra-block {
    top: var(--ex1-top);
  left: var(--ex1-left);
  width: var(--ex1-width);
  }
  #extra-block2 {
    top: var(--ex2-top);
  left: var(--ex2-left);
  width: var(--ex2-width);
  }
  #extra-block3 {
    top: var(--ex3-top);
  left: var(--ex3-left);
  width: var(--ex3-width);
  }
  #extra-block4 {
    top: var(--ex4-top);
  left: var(--ex4-left);
  width: var(--ex4-width);
  }
/* Removed unused rule: .extra-text p */

  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: absolute;
  z-index: 9999;
  }
  #extra-block {
    top: var(--ex1-top);
  left: var(--ex1-left);
  width: var(--ex1-width);
  }
  #extra-block2 {
    top: var(--ex2-top);
  left: var(--ex2-left);
  width: var(--ex2-width);
  }
  #extra-block3 {
    top: var(--ex3-top);
  left: var(--ex3-left);
  width: var(--ex3-width);
  }
  #extra-block4 {
    top: var(--ex4-top);
  left: var(--ex4-left);
  width: var(--ex4-width);
  }
/* Removed unused rule: .extra-text p */

}
/* === Mobile/Tablet – max-width: 1024px === */
@media (max-width: 1024px) {
/* Variabili globali */
  :root {
    --sa-left: max(16px, env(safe-area-inset-left));
  --sa-right: max(16px, env(safe-area-inset-right));
  }
  #extra-block,#extra-block2,#extra-block3,#extra-block4 {
    position: static;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--sa-left);
  padding-right: var(--sa-right);
  margin: 20px auto;
  }
/* Removed unused rule: .extra-text p */

  }

/* Mobile fix for overlay/extra content blocks */
@media (max-width: 768px) {
  .slider-overlay,
  .custom-overlay1,
  .custom-overlay2,
  .custom-overlay3,
  .custom-overlay4,
  .custom-overlay5,
  .extra-image {
    position: absolute;
    top: var(--m-ex-top, 6%);
    left: var(--m-ex-left, 22%);
    width: var(--m-ex-w, 40vw);
    max-width: 90vw;
    z-index: var(--ex-z, 3);
    pointer-events: var(--ex-pe, none);
  }
  .slider-container { overflow: hidden; }
/* Removed unused rule: .extra-text */

}

/* === BURGER FIX: dimensioni costanti e nessuno shrink quando aperto === */
.custom-header .burger-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001; /* sopra il nav aperto */
}

.custom-header .burger-menu:focus { outline: 2px solid rgba(202,178,106,.6); outline-offset: 2px; }
.custom-header .burger-menu:active { transform: none; }

.custom-header .burger-menu img.custom-burger-icon,
/* HEADER – MENU / navigazione */
.custom-header .burger-menu #burger-icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

body.menu-open .custom-header .burger-menu,
/* HEADER – MENU / navigazione */
body.menu-open .custom-header .burger-menu img {
  transform: none !important; /* evita riduzioni/scale */
}

/* Mobile: garantisci stessa dimensione e posizione */
@media (max-width: 768px) {
  .custom-header .burger-menu {
    width: 52px;
    height: 52px;
    justify-self: end;
  }
  /* evita che il menu nav sovrapposto "mangi" il click del burger */
  body.menu-open .custom-header .main-nav { position: relative; z-index: 1000; }
}

/* === BURGER VISIBILITY & STYLE (tablet+mobile only) === */
.custom-header .burger-menu {
  display: none;                /* hidden by default (desktop) */
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  z-index: 1001;
}
.custom-header .burger-menu:focus { outline: 2px solid rgba(202,178,106,.5); outline-offset: 2px; }
.custom-header .burger-menu:active { transform: none; }

/* Inline SVG icons: no circle, only strokes/rects */
.custom-header .burger-menu .burger-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: currentColor;
}
.custom-header .burger-menu .icon-close { display: none; }

/* When menu is open, swap visible icon */
body.menu-open .custom-header .burger-menu .icon-menu { display: none; }
body.menu-open .custom-header .burger-menu .icon-close { display: block; }

/* Tablet + Mobile: show burger */
@media (max-width: 1024px) {
  .custom-header .burger-menu { display: inline-flex; }
}

/* Ensure nav layering doesn't eat burger clicks */
@media (max-width: 1024px) {
  body.menu-open .custom-header .main-nav { position: relative; z-index: 1000; }
}

/* === BURGER MOBILE ONLY (<=768px), color #cab26a, no circle/bg === */
.custom-header .burger-menu {
  display: none;                /* hidden by default (desktop & tablet) */
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 1001;
  color: #cab26a;               /* sets SVG currentColor */
}
.custom-header .burger-menu::before,
.custom-header .burger-menu::after { content: none !important; }

.custom-header .burger-menu:focus { outline: 2px solid rgba(202,178,106,.45); outline-offset: 2px; }
.custom-header .burger-menu:active { transform: none; }

/* HEADER – MENU / navigazione */
.custom-header .burger-menu .burger-icon {
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

/* HEADER – MENU / navigazione */
.custom-header .burger-menu .burger-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;    /* rects of menu */
  stroke: currentColor;  /* strokes of X */
}

/* Default: show 3-line menu icon, hide X */
.custom-header .burger-menu .icon-menu { display: block; }
.custom-header .burger-menu .icon-close { display: none; }

/* When open: swap */
body.menu-open .custom-header .burger-menu .icon-menu { display: none; }
body.menu-open .custom-header .burger-menu .icon-close { display: block; }

/* MOBILE ONLY */
@media (max-width: 768px) {
  .custom-header .burger-menu { display: inline-flex; }
  /* Ensure nav doesn't block clicks */
  body.menu-open .custom-header .main-nav { position: relative; z-index: 1000; }
}

/* === BURGER: solo 3 linee quando chiuso, X solo quando aperto; niente sfondo === */
.custom-header .burger-menu {
  display: none;                 /* desktop by default */
  position: relative;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  z-index: 1001;
  color: #cab26a;                /* currentColor for SVG */
}
.custom-header .burger-menu::before,
.custom-header .burger-menu::after { content: none !important; }
.custom-header .burger-menu *::before,
.custom-header .burger-menu *::after { content: none !important; }

/* SVG sizing and coloring */
.custom-header .burger-menu .burger-icon { width: 100%; height: 100%; line-height: 0; }
.custom-header .burger-menu .burger-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; stroke: currentColor; }
.custom-header .burger-menu .icon-close { display: none !important; }   /* ensure hidden when closed */
.custom-header .burger-menu .icon-menu  { display: block !important; }

/* swap when open */
body.menu-open .custom-header .burger-menu .icon-menu  { display: none !important; }
body.menu-open .custom-header .burger-menu .icon-close { display: block !important; }

/* remove any inherited background from wrappers */
.custom-header .header-container,
.custom-header,
.custom-header .burger-icon { background: transparent !important; background-color: transparent !important; border-radius: 0 !important; }

/* MOBILE ONLY (<=768px) */
@media (max-width: 768px) {
  .custom-header .burger-menu { display: inline-flex; }
  body.menu-open .custom-header .main-nav { position: relative; z-index: 1000; }
}

/* Header trasparente su tutte le pagine */
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
  background: transparent !important;
  box-shadow: none !important;
}

/* Testi del menu in bianco sopra lo sfondo stellato */
.main-header-menu .menu-link,
.ast-header-custom-item,
.site-branding .site-title a,
.site-branding .site-description {
  color: #fff !important;
}
.main-header-menu .menu-link:hover { opacity: .85; }













