/* =======================
   🌐 BASE
======================= */

body {
  margin: 0;
  padding: 0;
  font-family: 'Libre Baskerville', serif;
  color: #222;
  background: #fff;
}
a {
  color: #C42020;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.boxed-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 5rem;
}

/* =======================
   🧢 HEADER + NAV
======================= */
.header {
  position: relative;
  padding-top: 2rem;
  text-align: center;
}

.logo img {
  max-width: 310px;
  margin: 0 auto;
}

.nav-verticale {
  position: absolute;
  top: 7.2rem;   /* 💥 PRIMA ERA 2rem — ora posizioniamo sotto le bandiere */
  right: 1.5rem;
}

.nav-verticale ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-verticale a {
  color: #6a2435;
  font-weight: bold;
  font-size: 1.1rem;   /* 👈 nuovo valore: leggero aumento */
  letter-spacing: 0.5px;  /* 👌 più elegante se vuoi */
}

.nav-verticale a:hover {
  text-decoration: underline;
  transform: scale(1.05);     /* 👈 effetto zoom */
  transition: transform 0.2s;
}

/* =======================
   🏳️ LANG SWITCHER
======================= */
.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1.5rem;   /* AVVICINA leggermente al bordo destro */
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  /* 👇 rimuovo margin-bottom che non ha effetto con position:absolute */
}

.lang-switcher img {
  width: 28px;         /* 👉 aumentato da 24px */
  height: 28px;        /* 👉 per sicurezza (dipende dal file SVG) */
  border-radius: 50%;
  border: 1px solid #ccc;
  transition: transform 0.2s;
  cursor: pointer;
}
.lang-switcher img:hover {
  transform: scale(1.1);
}

/* =======================
   🧲 HERO PLAIN (ATTUALE)
======================= */
.hero-plain {
  background-color: #6a2435;
  color: white;
  padding: 5rem 1rem 5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* ombra leggera */
}
.hero-logo {
  max-width: 160px;
  margin: 0 auto 2rem;
  display: block;
}
.hero-subtitle {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin: 0 0 2rem;
}
.hero-text {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

/* =======================
   🍝 SEZIONE RISTORANTE
======================= */

.sezione-ristorante {
  padding: 5rem 2rem;
  background-color: #fff;
  color: #222;
  text-align: center;
}

.ristorante-testo {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.ristorante-testo h2 {
  font-size: 2.5rem;
  color: #6a2435;
  margin-bottom: 1.5rem;
  font-weight: bold;
  display: inline-block;
  border-bottom: 4px solid #c42020;
  padding-bottom: 0.3rem;
}

.ristorante-testo p {
  font-size: 1.2rem;
  text-align: justify;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ristorante-prenota {
  font-weight: bold;
  color: #6a2435;
}

/* 👇 Semplice slider statico in riga */
.ristorante-slider {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ristorante-slider img {
  width: calc(33.33% - 1rem);
  border-radius: 8px;
  object-fit: cover;
}

/* =======================
   🔘 BOTTONE PRENOTA
======================= */
.prenota-bottone {
  text-align: center;
  margin: 2rem 0;
}

.btn-prenota {
  background-color: #6a2435;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-prenota:hover {
  background-color: #92293f;
}

/* =======================
   🍷 SLIDER RISTORANTE (LIGHT PURE CSS)
======================= */
.carousel {
  max-width: 100%;
  overflow: hidden;
  margin: 2rem auto;
}

.css-slider {
  max-width: 100%;
  position: relative;
  width: 100%;
}

.css-slider input[type="radio"] {
  display: none;
}

.carousel-images {
  display: flex;
  width: 300%; /* 3 slide */
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 1 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.carousel,
.css-slider,
.carousel-images {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes slide-carousel {
  0% { transform: translateX(0%); }
  33% { transform: translateX(0%); }
  34% { transform: translateX(-100%); }
  66% { transform: translateX(-100%); }
  67% { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}

.carousel-images {
  animation: slide-carousel 7s infinite;
}

/* Navigation dots */
.carousel-nav {
  text-align: center;
  margin-top: 1rem;
}

.carousel-nav label {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-nav label:hover,
input[type="radio"]:checked + .carousel-images + .carousel-nav label {
  background-color: #6a2435;
}

/* Show selected slide */
#slide1:checked ~ .carousel-images {
  transform: translateX(0%);
}
#slide2:checked ~ .carousel-images {
  transform: translateX(-100%);
}
#slide3:checked ~ .carousel-images {
  transform: translateX(-200%);
}

/* Highlight active dot */
#slide1:checked ~ .carousel-nav label[for="slide1"],
#slide2:checked ~ .carousel-nav label[for="slide2"],
#slide3:checked ~ .carousel-nav label[for="slide3"] {
  background: #6a2435;
}

/* =======================
   ⚖️ FOOTER SNELLO A TRE COLONNE
======================= */
.footer-slim-duo {
  background-color: #6a2435;
  color: white;
  padding: 2rem 1rem;
}

.footer-slim-duo-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}

.footer-logo-col img {
  width: 250px;
  height: auto;
}

.footer-info-col p {
  margin: 0.3rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-info-col a {
  color: #fcd9e0;
  text-decoration: underline;
}

/* =======================
    🛡️ DIVISORE LOGHI
======================= */
.section-logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 4rem auto;
  opacity: 0.5;
  max-width: 800px;
}

.section-logo-divider img {
  height: 40px;
  opacity: 0.7;
}

.section-logo-divider hr {
  flex: 1;
  height: 1px;
  background-color: #6a2435;
  border: none;
  opacity: 0.5;
}

/* =======================
   ^ TORNA SU
======================= */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #6a2435;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 50%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 1000;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* =======================
   🏡 CAMERE SEZIONE HOME
========================== */
.camere-bg {
  background: url('/img/hero-camere.jpeg') center center / cover no-repeat;
  position: relative;
  min-height: 650px; /* aumentato per non schiacciare sfondo */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.camere-overlay {
  background-color: rgba(106, 36, 53, 0.82); /* vinaccia con trasparenza */
  padding: 3rem 2rem; /* meno aria sopra/sotto */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify; /* bonus: giustifica il testo */
  border-radius: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.camere-content {
  animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.camere-content {
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.camere-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

.camere-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word; /* migliora la distribuzione */
}

.camere-elenco {
  text-align: center;
  font-size: 1.1rem;
  margin: 1rem 0 1.5rem 0;
  padding: 0.5rem 0;
  line-height: 1.7;
  color: white;
}

/* Bottone "Le nostre camere" */
.btn-camere {
  background-color: #fff;
  color: #6a2435;
  padding: 0.5rem 1.8rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-camere:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.btn-wrapper {
  text-align: center;
  margin-top: 2rem;
}

/* =======================
   ^ BOTTEGA CARDS
======================= */
.bottega-section {
  padding: 1rem 2rem 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: #6a2435;
  margin-bottom: 1.5rem;
  font-weight: bold;
  border-bottom: 4px solid #c42020;
  display: inline-block;
  text-align: left;
}

/* wrapper immagine + testo */
.bottega-intro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.bottega-text {
  flex: 1 1 60%;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

.bottega-img {
  flex: 1 1 35%;
  max-width: 4000px;
}

.bottega-img img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* griglia card prodotti */
.bottega-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.bottega-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.bottega-card:hover {
  transform: translateY(-5px);
}

.bottega-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#bottega .section-title {
  margin-bottom: 3.8rem;
}

/* =======================
   CONTACT FORM STYLES
======================= */

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  text-align: center;
}

.contact-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  flex: 1 1 300px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background-color: #6a2435;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #4e1a29;
}

.contact-map {
  margin-top: 2rem;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.hero-plain.contact-hero {
  padding: 1rem 1rem 2rem;
}

.contact-logo {
  max-width: 250px;
  margin-bottom: -1rem;
}

.hero-plain.contact-hero .hero-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero-plain.contact-hero .hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
}

/* =======================
🍝 RISTORANTE SLIDER
======================= */

/* Slideshow semplice */
.ristorante-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem auto;
  overflow: hidden;
  border-radius: 12px;
}

.ristorante-slider .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ristorante-slider .slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mostra solo la slide attiva */
.ristorante-slider .slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* =======================
   🍝 RISTORANTE PAGINA
======================= */

.section--ristorante {
  padding: 5rem 2rem;
  background-color: #fff;
  color: #222;
}

.ristorante-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.ristorante-text {
  margin-top: 3rem;
}

.testo-giustificato {
  text-align: justify;
  line-height: 1.8;
  font-size: 1.1rem;
}

.cta-prenota {
  text-align: center;
  margin-top: 2rem;
}

.cta-prenota .btn-prenota {
  display: inline-block;
  background-color: #6a2435;
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-prenota .btn-prenota:hover {
  background-color: #92293f;
  transform: scale(1.05);
}

/* =======================
   🛏️ CAMERE PAGINA
======================= */

/* === LAYOUT CAMERE CON GRID FIXATO === */
.blocco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.blocco-invertito {
  direction: rtl;
}
.blocco-invertito .blocco-img,
.blocco-invertito .blocco-testo {
  direction: ltr;
}

/* === STILE IMMAGINI === */
.blocco-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blocco-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* === STILE TESTI === */
.blocco-testo {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  color: #333;
  padding: 1rem;
}
.blocco-testo h3 {
  font-size: 1.5rem;
  color: #6a2435; /* vinaccia ciclica */
  margin-bottom: 1rem;
  font-weight: bold;
}

/* === RESPONSIVE (mobile) === */
@media (max-width: 768px) {
  .blocco {
    grid-template-columns: 1fr;
  }

  .blocco-invertito {
    direction: ltr;
  }
}

/* =======================
     🛍️ BOTTEGA PAGINA
======================= */

.bottega-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.bottega-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.bottega-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  color: #333;
}

.bottega-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Grid delle card */
.bottega-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.bottega-cards .card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.bottega-cards .card:hover {
  transform: translateY(-5px);
}

.bottega-cards h3 {
  margin-bottom: 0.5rem;
  color: #6a2435;
  font-size: 1.3rem;
}

.bottega-cards p {
  font-size: 0.95rem;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .bottega-intro {
    grid-template-columns: 1fr;
  }
  .bottega-img {
    order: -1;
  }
}

/* =======================
  📜  REGOLAMENTO PAGINA
======================= */

.section--regolamento ul {
  margin-top: 2rem;
  padding-left: 1.2rem;
  list-style: none;
}

.section--regolamento li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

