/* Nuova homepage (anteprima) - Figma node 925:15689. Caricato solo da template-home-anteprima.php */

:root{
  --ha-bro:#4b302b;
  --ha-cream:#f8f3ed;
  --ha-ora:#ef8a18;
  --ha-red:#d41451;
  --ha-serif:'Calistoga', Georgia, serif;
  --ha-sans:'Lato', Arial, sans-serif;
}

.ha-page h1,.ha-page h2,.ha-page p{ margin:0; }

/* Bottoni (componente Figma 260x64, raggio 5) */
.ha-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:260px; height:64px; padding:0 16px; border:0; border-radius:5px;
  font-family:var(--ha-serif); font-weight:400; font-size:24px; line-height:1;
  text-decoration:none; text-align:center; cursor:pointer;
  transition:filter .15s ease, transform .15s ease;
}
.ha-btn:hover,.ha-btn:focus-visible{ filter:brightness(1.08); text-decoration:none; }
.ha-btn:active{ transform:translateY(1px); }
.ha-btn-sm{ font-size:20px; }
.ha-btn-cream{ background:var(--ha-cream); color:var(--ha-bro); }
.ha-btn-cream:hover{ color:var(--ha-bro); }
.ha-btn-bro{ background:var(--ha-bro); color:var(--ha-cream); }
.ha-btn-bro:hover{ color:var(--ha-cream); }
.ha-btn-red{ background:var(--ha-red); color:var(--ha-cream); }
.ha-btn-red:hover{ color:var(--ha-cream); }
.ha-btn-ora{ background:var(--ha-ora); color:var(--ha-bro); }
.ha-btn-ora:hover{ color:var(--ha-bro); }

/* Annuncio */
.ha-annuncio{
  background:var(--ha-red); color:var(--ha-cream);
  min-height:68px; display:flex; align-items:center; justify-content:center;
  padding:12px 20px; text-align:center;
  font-family:var(--ha-sans); font-size:25px; line-height:1.2;
}

/* Hero + Prenota (le foto del hero sconfinano nella fascia arancione) */
.ha-top{ position:relative; overflow:hidden; isolation:isolate; }

.ha-hero{
  position:relative; z-index:2; height:676px; background:var(--ha-bro);
}
.ha-hero > img{ position:absolute; display:block; max-width:none; pointer-events:none; }
.ha-hero-shape  { left:calc(50% + 307px);  top:-136px; width:826px; height:870px; }
.ha-hero-pasta  { left:calc(50% - 948px); top:501px;  width:628px; height:432px; }
.ha-hero-burger { left:calc(50% + 105px);  top:68px;   width:618px; height:484px; }
.ha-hero-tagliata{ left:calc(50% + 202px); top:329px;  width:678px; height:466px; }

.ha-hero-copy{
  position:relative; z-index:3;
  margin-left:calc(50% - 505px); padding-top:68px; width:640px;
  display:flex; flex-direction:column; align-items:flex-start; gap:30px;
  color:var(--ha-cream);
}
.ha-hero-sede{ font-family:var(--ha-sans); font-size:20px; line-height:1.2; }
.ha-hero-title{ font-family:var(--ha-serif); font-weight:400; font-size:76px; line-height:1.2; max-width:640px; }
.ha-hero-text{ font-family:var(--ha-sans); font-size:28px; line-height:1.2; max-width:600px; }

.ha-prenota{
  position:relative; z-index:1; height:380px; padding:70px 20px 0;
  background:var(--ha-ora); text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:24px;
}
.ha-prenota-title{ font-family:var(--ha-serif); font-weight:400; font-size:48px; line-height:1.2; color:var(--ha-cream); }
.ha-prenota-text{ font-family:var(--ha-sans); font-size:25px; line-height:1.2; color:var(--ha-bro); }

/* Mission · Impact */
.ha-mission{ position:relative; isolation:isolate; min-height:635px; display:flex; align-items:center; }
.ha-mission::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(0deg, rgba(0,0,0,0) 0%, var(--ha-bro) 97.8%),
    linear-gradient(rgba(239,226,212,.3), rgba(239,226,212,.3)),
    var(--ha-mission-bg) center / cover no-repeat;
}
.ha-mission-inner{
  width:100%; max-width:1440px; margin:0 auto; padding:0 132px;
  display:flex; align-items:center; gap:170px;
}
.ha-mission-title{ flex:0 0 410px; font-family:var(--ha-serif); font-weight:400; font-size:70px; line-height:1.2; color:var(--ha-cream); }
.ha-mission-card{
  flex:0 0 570px; min-height:446px; padding:64px 20px 40px; background:var(--ha-bro);
  display:flex; flex-direction:column; align-items:center; gap:36px; text-align:center;
}
.ha-mission-logo{ width:225px; height:auto; display:block; }
.ha-mission-card p{ max-width:430px; font-family:var(--ha-sans); font-size:25px; line-height:1.2; color:var(--ha-cream); }

/* Parioli + seconda sede */
.ha-sedi{ display:grid; grid-template-columns:62.5% 37.5%; }
.ha-parioli{
  background:var(--ha-red); min-height:750px; padding:64px 40px 64px 100px;
  display:flex; flex-direction:column; align-items:flex-start; gap:24px;
}
.ha-sedi-title{ font-family:var(--ha-serif); font-weight:400; font-size:48px; line-height:1.2; color:var(--ha-cream); max-width:700px; }
.ha-mappa{ width:100%; max-width:673px; aspect-ratio:673/340; border-radius:10px; overflow:hidden; line-height:0; }
.ha-mappa iframe{ display:block; width:100%; height:100%; border:0; }
.ha-mappa{ position:relative; }
.ha-mappa-placeholder{
  display:none; position:absolute; inset:0;
  flex-direction:column; align-items:center; justify-content:center; gap:14px;
  padding:24px; text-align:center; line-height:1.2;
  background:#efe2d4; color:var(--ha-bro); font-family:var(--ha-sans);
}
.ha-mappa--bloccata .ha-mappa-placeholder{ display:flex; }
.ha-mappa--bloccata iframe{ visibility:hidden; }
.ha-mappa-placeholder .bi{ font-size:40px; color:var(--ha-red); }
.ha-mappa-placeholder p{ font-size:20px; max-width:420px; }
.ha-mappa-azioni{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px 20px; }
.ha-mappa-cookie{
  border:0; border-radius:5px; padding:10px 20px;
  background:var(--ha-bro); color:var(--ha-cream);
  font-family:var(--ha-serif); font-size:18px; cursor:pointer;
}
.ha-mappa-cookie:hover{ filter:brightness(1.15); }
.ha-mappa-azioni a{ color:var(--ha-bro); font-size:16px; text-decoration:underline; }
@media (max-width:991.98px){
  .ha-mappa{ aspect-ratio:auto; min-height:260px; }
  .ha-mappa iframe{ height:260px; }
  .ha-mappa-placeholder p{ font-size:17px; }
}
.ha-indirizzo{ font-family:var(--ha-sans); font-size:22px; line-height:1.2; color:var(--ha-cream); }
.ha-next{
  background:var(--ha-ora); min-height:750px; padding:64px 40px 64px 48px;
  display:flex; flex-direction:column; align-items:flex-start;
}
.ha-next-title{ font-family:var(--ha-serif); font-weight:400; font-size:44px; line-height:1.2; color:var(--ha-cream); max-width:444px; margin-bottom:42px !important; }
.ha-next-text{ font-family:var(--ha-sans); font-size:27px; line-height:1.2; color:var(--ha-bro); max-width:430px; }
.ha-next-text + .ha-next-text{ margin-top:32px !important; }
.ha-next .ha-btn{ margin-top:42px; }

/* ---------- Schermi intermedi ---------- */
@media (max-width:1399.98px){
  .ha-mission-inner{ gap:80px; padding:0 60px; justify-content:center; }
  .ha-parioli{ padding-left:60px; }
}
@media (max-width:1199.98px){
  .ha-hero-copy{ margin-left:60px; width:520px; }
  .ha-hero-title{ font-size:64px; }
  .ha-hero-text{ font-size:24px; }
  .ha-hero-burger{ left:auto; right:-120px; }
  .ha-hero-tagliata{ left:auto; right:-200px; }
  .ha-hero-shape{ left:auto; right:-390px; }
  .ha-mission-title{ flex-basis:auto; font-size:56px; }
  .ha-mission-card{ flex:0 1 520px; }
  .ha-sedi{ grid-template-columns:1fr 1fr; }
}

/* ---------- Tablet e mobile ---------- */
@media (max-width:991.98px){
  .ha-annuncio{ font-size:18px; min-height:56px; }

  .ha-hero{ height:auto; padding:48px 16px 0; display:flex; flex-direction:column; }
  .ha-hero > img{ position:static; }
  .ha-hero-shape,.ha-hero-pasta{ display:none !important; }
  .ha-hero-copy{ margin:0; width:auto; padding:0; gap:20px; order:1; }
  .ha-hero-sede{ font-size:16px; }
  .ha-hero-title{ font-size:44px; }
  .ha-hero-text{ font-size:20px; }
  .ha-hero-burger{ order:2; width:min(100%,480px); height:auto; margin:32px auto 0; }
  .ha-hero-tagliata{ order:3; width:min(110%,560px); height:auto; margin:-90px auto -90px; position:relative !important; top:auto; left:auto; right:auto; z-index:3; }

  .ha-prenota{ height:auto; padding:120px 16px 56px; }
  .ha-prenota-title{ font-size:36px; }
  .ha-prenota-text{ font-size:20px; }

  .ha-mission{ min-height:0; padding:64px 0; }
  .ha-mission-inner{ flex-direction:column; align-items:stretch; gap:40px; padding:0 16px; }
  .ha-mission-title{ font-size:44px; }
  .ha-mission-card{ flex:none; min-height:0; padding:48px 20px; gap:28px; }
  .ha-mission-logo{ width:180px; }
  .ha-mission-card p{ font-size:20px; }

  .ha-sedi{ grid-template-columns:1fr; }
  .ha-parioli,.ha-next{ min-height:0; padding:56px 16px; }
  .ha-sedi-title{ font-size:34px; }
  .ha-indirizzo{ font-size:18px; }
  .ha-next-title{ font-size:34px; margin-bottom:28px !important; }
  .ha-next-text{ font-size:20px; }
  .ha-next-text + .ha-next-text{ margin-top:20px !important; }
  .ha-next .ha-btn{ margin-top:32px; }

  .ha-btn{ width:auto; min-width:220px; height:56px; font-size:20px; }

}
