:root {
  --accent-color: #fffbf5;
  --secondary-color: #ffffff;
  --primary-color: #bf684a;
  --primary-bright-color: #e07130;
  --font-family: 'CFP';
  --max-width: 1000px;
}

@font-face {
  font-family: CFP;
  src: src("public/Lora-VariableFont_wght.ttf");
  font-weight: normal;
}

@font-face {
  font-family: CFP;
  src: src("public/Lora-VariableFont_wght.ttf");
  font-weight: bold;
}

@font-face {
  font-family: CFP;
  src: src("public/Lora-Italic-VariableFont_wght.ttf");
  font-style: italic;
  font-weight: normal;
}

@font-face {
  font-family: CFP;
  src: src("public/Lora-Italic-VariableFont_wght.ttf");
  font-style: italic;
  font-weight: bold;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--primary-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links.mobile {
  flex-direction: column;
  background-color: var(--primary-color);
  width: 100%;
  overflow: hidden;
  max-height: 0; /* collapsed by default */
  padding: 0;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* animate open/close */
}

/* When active */
.nav-links.mobile.active {
  max-height: 300px; /* adjust based on menu size */
  padding: 1rem;
}


.nav-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links.mobile {
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
  }
  .nav-links.desktop {
    display: none;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* INTRO SECTION (updated) */
.intro-section {
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  display: block;
}


.intro-text {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.intro-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* CAROUSEL SECTION */
.carousel-section {
  background-color: var(--accent-color);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.carousel-container {
  position: relative;
  max-width: var(--max-width);
  margin: 1.5rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(47,79,79,0.7);
  color: var(--secondary-color);
  padding: 1rem;
  text-align: left;
}

.caption h3 {
  margin-bottom: 0.5rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--secondary-color);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  z-index: 5;
  transition: background-color 0.3s ease;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Dots indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: #ccc;
  cursor: pointer;
}

.carousel-dots button.active {
  background-color: var(--primary-color);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 250px;
  }

  .caption {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* CONTATTI */
.contact-section {
  padding: 2rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  font-family: 'Helvetica Neue', sans-serif;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  background-color: var(--primary-bright-color);
}

.contact-info a {
  color: var(--primary-color);
}

/* FOOTER */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
