/* ================= STYLE.CSS ================= */
:root {
  --dark: #2a050a;        /* fondente (sfondo principale) */
  --dark-soft: #3b0a10;   /* fondente leggermente più chiaro */
  --milk: #5a1a12;        /* cioccolato al latte (header/footer) */
  --accent: #ff7a1a;      /* arancio caldo */
  --accent-soft: #ff9a3d; /* arancio hover */
  --text: #ffffff;
}
*{margin:0;padding:0;box-sizing:border-box;}

body{
  font-family:'Inter',sans-serif;
  background: var(--dark);
  color:#fff;
  margin: 0;


}


h1,h2{
  font-family:'Playfair Display',serif;
}
h2 {
  font-size: 3em;
  letter-spacing: 1px;
}
section{
  padding:80px 20px;
}

/* HERO */
.hero {
  height: 100vh;
  background: url('images/tito.jpg') center/cover no-repeat;
  position: relative;

}

.hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
}
.hero-quote {
  position: absolute;
  bottom: 35px;
  right: 60px;

  max-width: 400px;

  font-style: italic;
  font-size: 1.3em;
  line-height: 1.5;

  color: rgba(255,255,255,0.9);

  z-index: 2;
}

.hero-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.6;
  position: relative;
  color: rgba(255,255,255,0.95);
}
/* virgolette */
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  line-height: 0;
  vertical-align: middle;
  color: rgba(255,255,255,0.6);
}
.hero h1{
  font-size:3.5em;
}

.btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 25px;
  
  color:white;
  text-decoration:none;
  border-radius:5px;
}

/* PROPOSTE */
.proposte{
  background: var(--accent);
  text-align:center;
}

.cards {
  display: flex;
  flex-direction: row;   /* 🔥 forza orizzontale */
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.card{
  width:300px;
 background: var(--dark);
  border-radius:10px;
  overflow:hidden;
  transition:0.3s;
}

.card:hover{
  transform:scale(1.05);
}

.card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.card p{
  padding:15px;
}
.card {
  width: 300px;
  flex-shrink: 0;   /* evita che si stringano */
}
/* ABOUT */
.about{
  display:flex;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
}

.about img{
  width:100%;
  max-width:400px;
  border-radius:10px;
}

.about-text{
  max-width:500px;
}

/* EVENTI */
.eventi {
  background: var(--dark-soft);
  text-align: center;
}


/* titolo */
.eventi h2 {
  letter-spacing: 1px;
}

/* linea sotto titolo */
.eventi h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 20px;
  border-radius: 2px;
}
.social {
  margin-top: 30px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  border-radius: 50%;
  background: rgba(255,255,255,0.08);

  color: white;
  font-size: 1.2em;

  margin: 0 8px;

  transition: 0.3s;
}

/* hover figo */
.social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
/* CONTACT */
.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.contact-info {
  width: 40%;
}

.contact-map {
  width: 60%;
}


.contact-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 12px;
  display: block;
}

footer{
  background: var(--milk);
border-top: 1px solid rgba(255,255,255,0.2)
  padding:60px 20px;
  text-align:center;
}
footer p {
  opacity: 0.8;
  font-size: 1em;
  letter-spacing: 0.5px;
}
footer::before {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 20px;
}
/* RESPONSIVE */
@media(max-width:768px){

  .hero h1{font-size:2.2em;}

  .hero-quote {
    position: static;
    margin-top: 20px;
    padding: 0 20px;
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .cards{
    flex-direction: column;
    align-items: center;
  }

  .about{
    flex-direction: column;
    text-align: center;
  }
}
/* NAVBAR */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 1000;

 background: var(--milk);
backdrop-filter: blur(6px);
border-bottom: 2px solid rgba(255,255,255,0.25);
}

/* quando scrolli */
.nav.scrolled {
  background: #2a050a;
  padding: 10px 40px;
}.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* linea sotto animata */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.menu a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

@media(max-width:768px){

  .menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--dark);
    padding: 20px;
    flex-direction: column;
    border-radius: 8px;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* HERO OVERLAY NUOVA */
.hero-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 60px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0)
  );
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 3.8em;
   line-height: 1.1;
}
.hero-text p {
  margin-top: 10px;
  font-size: 1.1em;
}
/* ===== HERO QUOTE ===== */

.hero-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  line-height: 0;
  vertical-align: middle;
  color: rgba(255,255,255,0.6);
}
/* ===== SLIDER EVENTI FIX ===== */

.event-slider {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
display: flex;
  align-items: center;
  justify-content: center;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  position: relative; /* questa resta */
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* titolo sopra immagine */
.slide-title {
  position: absolute;
  bottom: 20px;
  left: 20px;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0.4)
  );

  padding: 10px 18px;
  border-radius: 8px;

  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  font-weight: 600;

  letter-spacing: 0.5px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.slide-title::after {
  content: "";
  display: block;
  width: 40%;
  height: 3px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}
/* frecce */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 20px;

  cursor: pointer;
  z-index: 10;
}

/* posizione corretta */
.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
 background: var(--accent);
}
.section-desc {
  max-width: 600px;
  margin: 10px auto 30px;
  font-size: 1.1em;
  opacity: 0.85;
  line-height: 1.6;
}