/* =========================
   RESET / BASE
========================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* =========================
   GLOBAL STYLES
========================= */

:root{
  --font-main: 'Montserrat', sans-serif;
}

/* =========================
   STILE BASE
========================= */
html, body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: var(--font-main);
  background: #fff;   /* bianco per tutto il sito */
  color: #222;        /* testo scuro */
}

*, *::before, *::after{
  box-sizing: inherit;
}
/* =========================
   LAYOUT GENERALE
========================= */
main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 0 1rem;
  background: transparent;
  border: none;
}

section:not(#contatti){
  background: rgba(255,255,255,0.97);
  border-radius: 0;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
}

h2{
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* =========================
   HERO
========================= */
.hero{
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  z-index: 0;        /* 👈 aggiungi questo */
  border-radius: 0 !important;
}
.hero-fallback img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* video */
.hero-bg-video{
  position: absolute;
  inset: 0;
  z-index: 1;        /* 👈 video sopra al fallback */
  overflow: hidden;
}
/* fallback SOTTO tutti */
.hero-fallback{
  position: absolute;
  inset: 0;
  z-index: -1;       /* 👈 mettilo NEGATIVO */
  overflow: hidden;
}
.hero-bg-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

/* overlay */
.hero-overlay{
  position: relative;
  z-index: 2;        /* 👈 overlay sopra al video */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-logo{
  width: 180px;
  max-width: 60vw;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.18));
}

.hero-btn{
  padding: 0.6rem 2.5rem;
  font-size: 1.2rem;
  border: 2px solid #fff;
  background: rgba(0,0,0,0.25);
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.hero-btn:hover{
  background: #fff;
  color: #b71c1c;
  border-color: #b71c1c;
}
.lavori-corso{
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
   color: #fff;
  opacity: 0.85;
}

/* =========================
   INTRO (stacco)
========================= */
.intro{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  height: 500px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #fff !important;
  color: #222 !important;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.intro-content{ 
  text-align: center;
  width: min(900px, 92vw);
  margin: 0 auto; }

.intro-title{
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: #888;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.intro-quote{
  font-size: 1.7rem;
  font-style: italic;
  color: #888;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

/* Fix: elimina bordo bianco tra hero e main */
main > section:first-child{
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* =========================
   FOOD (Slideshow full screen)
   Se #food è dentro main, lo "sganciamo" a 100vw e lo centriamo.
========================= */
#food{
  position: relative;
  width: 100vw;                 /* full viewport width */
  height: 100vh;                /* full viewport height */
  margin-left: calc(50% - 50vw);/* esce dal max-width del main */
  margin-right: calc(50% - 50vw);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;

  /* annulla lo stile generale delle section */
  margin-bottom: 2.5rem;
}

/* contenitore slideshow: deve coprire tutto */
.slideshow-container{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* slide */
.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}

.slide.active{
  opacity: 1;
  pointer-events: auto;
}

.slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}
/* Overlay per leggibilità testo */
#food .food-overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to left,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 35%,
    rgba(0,0,0,0.15) 55%,
    rgba(0,0,0,0) 70%
  );
}

/* Testo sopra lo slideshow */
#food .food-content{
  position: absolute;
  z-index: 3;
  right: 100px;
  bottom: 80px;
  width: min(760px, calc(100vw - 200px));

  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* ✅ ancora TUTTO a destra */
  gap: 0.8rem;

  color: #fff;
  text-align: right;       /* ok per le righe interne */
}

#food .food-title{
  margin: 0;
  line-height: 0.95;
  font-size: clamp(42px, 6vw, 124px);
  text-wrap: balance;
  text-align: right;
}

#food .food-subtitle{
  margin: 0;
  font-size: clamp(14px, 2vw, 20px);
  opacity: 0.9;
  max-width: 52ch;         /* opzionale: evita righe troppo lunghe */
}

/* frecce sopra overlay/testo */
#food .prev, #food .next{ z-index: 4; }
/* nav arrows */
.prev, .next{
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 18px;
  color: #fff;
  font-weight: bold;
  font-size: 22px;
  transition: 0.3s;
  border-radius: 50%;
  user-select: none;
  background: rgba(60,60,60,0.25);
  border: 1px solid #eee;
  z-index: 2;
}
.prev{ left: 20px; }
.next{ right: 20px; }

/* dots */
.dot{
  cursor: pointer;
  height: 13px;
  width: 13px;
  margin: 0 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.4s;
}
.active, .dot:hover{ background-color: #b71c1c; }

.fade{ animation: fade 1.2s; }

@keyframes fade{
  from{ opacity: .4; }
  to{ opacity: 1; }
}

/* =========================
   MAPS (placeholder tuo)
========================= */
#maps .percorso{
  margin-bottom: 2.2rem;
  text-align: center;
}
#maps .percorso img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-top: 0.7rem;
}
.is-hidden{
  display: none !important;
}
/* =========================
   CONTATTI “EDITORIAL”
========================= */
#contatti{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  margin-top: 100px;   /* ✅ RIPRISTINATO */
}
/* sfondo colline full-width dietro */
#contatti::after{
 content: "";
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  width: 100vw;
  height: 340px;   /* regola qui */
  background: url("Asset/main/contact-section/sfondo-art.jpg")
              center bottom / cover no-repeat;
  opacity: .75;
  z-index: 0;
  pointer-events: none;
}

/* contenuti sopra lo sfondo */
#contatti .contact-hero-inner{
  position: relative;
  z-index: 1;
  padding-bottom: 220px;
}
 .contact-hero{
  position: relative;
  color: #222;
  min-height: 700px;
  overflow: hidden;           /* taglia solo lo sfondo se esce */
  background: transparent;   /* ✅ IMPORTANTISSIMO */
}

/* contenuti sopra */
.contact-hero-inner{
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* TOP: 3 colonne */
.contact-top{
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 3.2rem;
  align-items: start;
  background: transparent; /* ✅ lascia vedere lo sfondo */
}

.c-title{
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 900;
}

.c-title-center{ text-align: left; }

.c-strong{
  font-size: 1.05rem;
  font-weight: 900;
  margin: .35rem 0;
}

.c-strong a{
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(0,0,0,0.18);
}

.c-strong a:hover{
  border-bottom-color: rgba(0,0,0,0.45);
}

.c-line{
  margin: 0 0 1rem 0;
  color: #333;
}

.c-subtitle{
  margin: 1.2rem 0 .6rem 0;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #333;
}

.c-status{
  font-weight: 900;
  margin: 0 0 .8rem 0;
}

.c-status-closed{ color: #e65b3a; } /* arancio come screenshot */

.c-note{
  margin: 0;
  max-width: 40ch;
  color: #666;
  line-height: 1.5;
  font-size: .95rem;
}

/* MAPPA */
.c-map{
  display: flex;
  justify-content: flex-end;
}

.c-map img{
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}
/* =========================
   FOOTER
========================= */
footer{
  background: rgba(255,255,255,0.92);
  border-top: 1px solid #eee;
  margin-top: 2rem;
  padding: 1.5rem 0 0.5rem 0;
  text-align: center;
  color: #888;
}

.main-footer{ margin-bottom: 0.7rem; }

.copyright{
  font-size: 0.95rem;
  color: #aaa;
}
/* NASCONDI SEZIONI (toggle temporaneo) */
.is-hidden{
  display: none !important;
}

/* --- RESPONSIVE (override) --- */
@media (max-width: 768px){

  /* CONTATTI: padding laterale + contenuto centrato */
  #contatti .contact-hero-inner{
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 2.2rem 0 0;     /* niente padding laterale qui: lo dà il 92vw */
    position: relative;
    z-index: 1;
  }

  /* la griglia diventa 1 colonna */
  #contatti .contact-top{
    grid-template-columns: 1fr;
    gap: 1.6rem;
    justify-items: center;   /* centra i blocchi */
    text-align: center;      /* centra i testi */
  }

  /* testi: evita che stiano “a sinistra” */
  #contatti .c-col{
    width: 100%;
    max-width: 38rem;        /* look editorial */
  }

  /* note: libera il max-width rigido desktop */
  #contatti .c-note{
    max-width: none;
  }

  /* mappa centrata e responsive */
  #contatti .c-map{
    justify-content: center;
    width: 100%;
  }

  #contatti .c-map img{
    width: min(92vw, 520px);
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* sfondo: alza/abbassa e riduci altezza in mobile */
  #contatti::after{
    height: 380px;           /* prova 340-420 */
    opacity: .75;            /* un filo più soft sotto ai testi */
  }

  /* opzionale: più aria sotto la sezione */
  #contatti{
    padding-bottom: 1.2rem;
  }
}