@import url("https://fonts.googleapis.com/css2?family=Give+You+Glory&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* Colors */
  --body-color: #ece8e5;
  --section-color: #e6dccf;
  --dark-brown: #453728;
  --medium-brown: #e6dccf;
  --red-color: #b86d65;
  --text-color-brown: #8e745a;
  --text-color-white: #ece8e5;
  --text-color-blue: #4771b5;

  /* Fonts */
  --font-title: "Old Standard TT", serif;
  --font-title-cursive: "Give You Glory", cursive;
  --font-text: "Red Hat Display", sans-serif;

  /* Sizes */
  --100px: 100px;
  --50px: 50px;
  --42px: 42px;
  --35px: 35px;
  --30px: 30px;
  --25px: 25px;
  --20px: 20px;
  --18px: 18px;
  --16px: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-text);
  background-color: var(--body-color);
  color: var(--text-color-brown);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

p {
  font-size: var(--18px);
  color: var(--text-color-brown);
  line-height: 1.1;
  font-weight: 600;
}

@media (max-width: 490px) {
  p {
    font-size: var(--16px);
  }
}

h1 {
  font-size: 38px;
  color: var(--text-color-blue);
  font-family: var(--font-title);
  line-height: 1;
}

@media (max-width: 820px) {
  h1 {
    font-size: var(--30px);
  }
}

@media (max-width: 420px) {
  h2 {
    font-size: var(--25px);
  }
}

h2 {
  font-size: 38px;
  color: var(--text-color-blue);
  font-family: var(--font-title);
  line-height: 1;
}

@media (max-width: 820px) {
  h2 {
    font-size: var(--30px);
  }
}

@media (max-width: 420px) {
  h2 {
    font-size: var(--25px);
  }
}

h3 {
  font-size: 30px;
  color: var(--text-color-blue);
  font-family: var(--font-title-cursive);
}

@media (max-width: 820px) {
  h3 {
    font-size: var(--25px);
  }
}

h4 {
  font-size: var(--20px);
  color: var(--text-color-brown);
  font-family: var(--font-text);
}

@media (max-width: 480px) {
  h4 {
    font-size: var(--18px);
  }
}

h5 {
  font-size: var(--18px);
  color: var(--text-color-brown);
  font-family: var(--font-text);
}

@media (max-width: 480px) {
  h5 {
    font-size: var(--16px);
  }
}

h6 {
  font-size: var(--18px);
  color: var(--text-color-brown);
  font-family: var(--font-text);
}

@media (min-width: 1450px) {
  html {
    font-size: 110%;
  }

  .container {
    max-width: 1400px !important;
  }
}

@media (min-width: 1800px) {
  html {
    font-size: 120%;
  }

  .container {
    max-width: 1450px !important;
  }
}

@media (min-width: 2400px) {
  html {
    font-size: 140%;
  }

  .container {
    max-width: 1750px !important;
  }
}

button {
  border: 1px solid transparent;
  color: var(--body-color);
  font-size: var(--18px);
  font-family: var(--font-text);
  background-color: var(--red-color);
  max-width: max-content;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}

button:hover {
  background-color: var(--body-color);
  color: var(--text-color-brown);
  border: 1px solid var(--red-color);
}

.button-brown {
  border: 1px solid var(--text-color-brown) !important;
  background-color: transparent !important;
  color: var(--text-color-brown);
  font-weight: 500 !important;
}

@media (max-width: 490px) {
  button {
    font-size: var(--16px);
  }

  .button-brown {
    font-size: var(--16px);
  }
}

.button-white {
  background-color: var(--body-color) !important;
  color: var(--red-color) !important;
  padding: 0.5rem 3rem !important;
}

/* ========================================
   =========== HEADER OMPATH TRAVEL =======
   ======================================== */

.ompath-header {
  background: var(--body-color);
  border-top: none;
  border-bottom: none;
  padding: 0.5rem;
  position: fixed;
  top: 2%;
  left: 0;
  right: 0;
  z-index: 1030;
  width: 100%;
}

.ompath-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0rem;
  right: 0rem;
  height: 1px;
  background-color: var(--dark-brown);
}

.ompath-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0rem;
  right: 0rem;
  height: 1px;
  background-color: var(--dark-brown);
}

.navbar {
  padding: 0;
}

.container-fluid {
  position: relative;
}

.logo-img {
  height: 30px;
  width: auto;
  transition: transform 0.3s ease;
}

@media (min-width: 1200px) {
  .logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .left-nav {
    margin-right: auto;
  }

  .right-nav {
    margin-left: auto;
  }
}

.nav-link {
  color: var(--dark-brown);
  font-family: var(--font-text);
  font-size: var(--18px);
  font-weight: 500;
  padding: 0.5rem 2rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  text-decoration: underline;
}

.navbar-nav .button {
  margin: 0;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%238e745a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 28px;
  height: 28px;
}

.offcanvas-end {
  width: 75vw;
  height: 100vh !important;
  background-color: var(--body-color);
  border-left: 1px solid var(--text-color-brown);
  top: 0 !important;
  bottom: 0;
}

@media (max-width: 575px) {
  .offcanvas-end {
    width: 100vw;
    height: 100vh !important;
  }
}

.offcanvas-header {
  border-bottom: 1px solid var(--text-color-brown);
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.logo-img-mobile {
  height: 32px;
  width: auto;
}

.btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238e745a'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  opacity: 1;
  width: 1.5rem;
  height: 1.5rem;
}

.btn-close:focus {
  box-shadow: none;
  outline: none;
}

.offcanvas-body {
  padding: 2rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.nav-link-mobile {
  color: var(--text-color-brown);
  font-family: var(--font-text);
  font-size: var(--18px);
  font-weight: 500;
  padding: 1rem 0;
  display: block;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(142, 116, 90, 0.2);
}

.nav-link-mobile:hover {
  color: var(--red-color);
}

.nav-item:last-child .nav-link-mobile {
  border-bottom: none;
}

.offcanvas-body .button {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 1199px) {
  body {
    padding-top: 85px;
  }

  .ompath-header {
    padding: 1rem 0 0.5rem 0;
  }

  .ompath-header::before,
  .ompath-header::after {
    left: 1rem;
    right: 1rem;
  }

  .logo-center {
    position: static;
    transform: none;
  }

  .logo-img {
    height: 42px;
  }

  .offcanvas-end {
    --bs-offcanvas-width: 100vw !important;
    --bs-offcanvas-zindex: 10000 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--body-color);
    border-left: 1px solid var(--text-color-brown);
    top: 0 !important;
    bottom: 0;
  }

  /* Rimuove o rende trasparente il backdrop */
  .offcanvas-backdrop {
    display: none !important;
  }
}

@media (max-width: 575px) {
  body {
    padding-top: 50px;
  }

  .ompath-header {
    padding: 0.3rem 0;
    top: 0%;
  }

  .ompath-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0rem;
    right: 0rem;
    height: 1px;
    background-color: transparent;
  }

  .logo-img {
    height: 30px;
  }

  .logo-img-mobile {
    height: 30px;
  }

  .ompath-header::before,
  .ompath-header::after {
    left: 0.75rem;
    right: 0.75rem;
  }
}

html {
  scroll-padding-top: 100px;
}

/* ========================================
   =========== HERO SECTION ==================
   ======================================== */
.hero-section {
  padding: 10% 0 0% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
}

@media (min-width: 1600px) {
  .hero-section {
    height: 100%;
    padding: 15% 0 5% 0;
  }

  .title-hero {
    max-width: 480px;
  }
}

.box-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 490px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

@media (min-width: 1600px) {
  .box-hero {
    max-width: 540px;
  }
}

.gallery {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative;
}

.stack {
  position: relative;
  width: 480px;
  height: 430px;
}

.photo {
  position: absolute;
  width: auto;
  height: 380px;
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; /* Nascondi le foto inizialmente */
}

@media (min-width: 1600px) {
  .gallery {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
  }

  .stack {
    position: relative;
    width: 480px;
    height: 530px;
  }

  .photo {
    position: absolute;
    width: auto;
    height: 450px;
    object-fit: cover;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; /* Nascondi le foto inizialmente */
  }
}

.subtile-hero {
  max-width: max-content;
  padding: 0 2% 0 0;
  background-color: var(--medium-brown);
  margin-top: 2rem;
}

.img-hero-1 {
  position: absolute;
  height: 250px;
  width: auto;
  top: 15%;
  left: 0%;
}

.img-hero-2 {
  position: absolute;
  height: 250px;
  width: auto;
  bottom: 5%;
  right: 0%;
}

.icona-foglia {
  width: auto;
  height: 120px;
  position: absolute;
  bottom: 0;
  z-index: 1;
  right: 21%;
}

@media (min-width: 1600px) {
  .img-hero-1 {
    position: absolute;
    height: 300px;
    width: auto;
    top: 15%;
    left: 0%;
  }

  .img-hero-2 {
    position: absolute;
    height: 300px;
    width: auto;
    bottom: 5%;
    right: 0%;
  }

  .icona-foglia {
    width: auto;
    height: 120px;
    position: absolute;
    bottom: 0;
    z-index: 1;
    right: 24%;
  }
}

@media (max-width: 1290px) {
  .img-hero-1 {
    height: 250px;
    top: 15%;
    left: -3%;
  }

  .img-hero-2 {
    height: 250px;
    bottom: 5%;
    right: -3%;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    justify-content: center;
    height: 100%;
  }

  .img-hero-1 {
    display: none;
  }

  .img-hero-2 {
    display: none;
  }

  .icona-foglia {
    width: auto;
    height: 120px;
    position: absolute;
    bottom: 205;
    z-index: 1;
    right: 15%;
  }
}

@media (max-width: 820px) {
  .img-hero-1 {
    height: 300px;
    top: 3%;
    left: -8%;
  }

  .img-hero-2 {
    height: 300px;
    bottom: -3%;
    right: -7%;
  }
}

@media (max-width: 540px) {
  .hero-section {
    justify-content: center;
    align-items: start;
    height: 1005;
    overflow-x: hidden;
  }

  .stack {
    width: 320px;
    height: 350px;
  }

  .photo {
    width: auto;
    height: 300px;
  }

  .icona-foglia {
    display: none;
  }
}

@media (max-width: 390px) {
  .hero-section {
    height: 100%;
  }

  .stack {
    width: 300px;
    height: 320px;
  }

  .photo {
    width: auto;
    height: 280px;
  }
}
/* ========================================
   =========== SECTION 2 ==================
   ======================================== */
.section-1 {
  background-color: var(--text-color-blue);
  padding: 10% 0 10% 0;
}

.title-section-1 {
  color: var(--body-color) !important;
}

.subtitle-section-1 {
  color: var(--body-color) !important;
  font-weight: 400 !important;
}

.box-section-1 {
  max-width: 1150px;
  margin: 0 auto;
  height: auto;
  background-color: var(--body-color);
  margin-top: 5rem !important;
  border-radius: 24px;
  padding: 2%;
}

.card-section-1 {
  width: 100%;
  height: auto;
}

.subtitle-card {
  max-width: max-content;
  padding: 0 2% 0 0;
  background-color: var(--medium-brown);
}

.text-card-section-1 {
  font-size: var(--16px);
  font-weight: 400;
}

@media (max-width: 1024px) {
  .box-section-1 {
    max-width: 740px;

    padding: 5%;
  }
}

@media (max-width: 768px) {
  .box-section-1 {
    max-width: 640px;

    padding: 5%;
  }
}

@media (max-width: 480px) {
  .box-section-1 {
    padding: 5%;
  }
}
/* ========================================
   =========== SECTION 3 ==================
   ======================================== */
.section-3 {
  padding: 10% 0 5% 0;
}

@media (max-width: 768px) {
  .section-3 {
    padding: 20% 0 10% 0;
  }
}

/* ========================================
   =============SECTION 5===============
   ======================================== */
.section-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5% 0 5% 0;
}

.box-section-5 {
  max-width: 1024px;
  margin: 0 auto;
  height: auto;
  background-color: var(--medium-brown);
  margin-top: 5rem !important;
  border-radius: 24px;
  padding: 2%;
}

.text-card-section-3 {
  font-size: var(--16px);
  font-weight: 400;
}

.card-section-3 {
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .box-section-5 {
    max-width: 740px;

    padding: 5%;
  }
}

@media (max-width: 768px) {
  .box-section-5 {
    max-width: 640px;

    padding: 5%;
  }
}

@media (max-width: 480px) {
  .box-section-5 {
    padding: 5%;
  }
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--medium-brown);
  border-radius: 32px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 34px;
  cursor: pointer;
  user-select: none;
  gap: 24px;
}

.faq-question-text {
  font-size: var(--18px);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  flex: 1;
}

.faq-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--16px);
  line-height: 0.5;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 32px 28px 32px;
  opacity: 1;
}

.faq-answer-text {
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.link-faq {
  color: var(--red-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 15px 24px;
  }

  .faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
  }

  .faq-question-text {
    font-size: var(--16px);
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.4;
    flex: 1;
  }
}

/* ========================================
   =============== FOOTER ================
   ======================================== */

footer {
  position: relative;
  background-color: var(--red-color);
  padding-bottom: 2rem;
  overflow-x: hidden;
  margin-top: 3rem;
}

.img-footer-wave {
  position: absolute;
  top: 0%;
  height: 100px;
  width: 150%;
}

.box-footer {
  padding-top: 10rem;
  padding-bottom: 3rem;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.box-footer-1 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

.title-footer {
  color: var(--body-color) !important;
  max-width: 350px;
}

.coursive-title-footer {
  font-family: var(--font-title-cursive);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-link img {
  width: 22px;
  height: 22px;
}

.box-footer-2 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4rem;
  height: 100%;
}

.box-pagine-1,
.box-pagine-2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-footer {
  color: var(--body-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.link-footer:hover {
  opacity: 0.7;
}

.footer-bottom {
  margin-top: 2rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--body-color);
  margin: 2rem 0 1.5rem;
}

.footer-credits {
  text-align: center;
  color: var(--body-color);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .box-footer {
    padding-top: 8rem;
  }

  .box-footer-1 {
    margin-bottom: 3rem;
  }

  .box-footer-2 {
    justify-content: flex-start;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  footer {
    margin-top: 3rem;
  }

  .box-footer {
    padding-top: 6rem;
  }

  .img-footer-wave {
    position: absolute;
    top: 0%;
    width: 500px;
    height: auto;
  }

  .box-footer-2 {
    gap: 2rem;
  }

  .social-link img {
    width: 22px;
    height: 22px;
  }
}
