@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --beige: #f0e5de;
  --verde: #708a74;
  --rosa: #f0e5de;
  --font-size-testo: 18px;
  --font-size-h1: 42px;
  --font-size-h2: 36px;
  --font-size-h3: 28px;
  --font-size-button: 20px;
  --letter-spacing-title: 0.3rem;
  --letter-spacing-button: 20%;
}

body {
  font-family: "Urbanist", sans-serif;
}
main {
  overflow: hidden;
}

h1 {
  font-size: var(--font-size-h1);
  letter-spacing: var(--letter-spacing-title);
  text-transform: uppercase;
}

h2 {
  font-size: var(--font-size-h2);
  letter-spacing: var(--letter-spacing-title);
  text-transform: uppercase;
}

h3 {
  font-size: var(--font-size-h3);
  letter-spacing: var(--letter-spacing-title);
  text-transform: uppercase;
}

p {
  font-size: var(--font-size-testo);
  line-height: 1.4rem;
}

button {
  border: none;
  background-color: white;
  color: black !important;
}

/*HEADER*/
.navbar {
  position: fixed;
  background-color: white;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0.5rem 0;
}

@media (min-width: 981px) {
  .navbar {
    background-color: transparent;
  }

  .navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

.navbar-toggler {
  border-radius: 0 !important;
  border-top: none !important;
}

.logo-img {
  width: 4rem;
  height: 4rem;
}

.nav-link {
  color: white;
  font-size: 1rem;
  margin-left: 2rem;
  letter-spacing: 0.07rem;
}

.nav-link {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--verde);
}

.dropdown-menu {
  text-align: start;
  border-top: none;
  border-radius: 0.5rem;
  background-color: var(--verde);
}

.dropdown-item {
  color: white;
}

@media (max-width: 992px) {
  /* Sotto la dimensione lg */
  .logo-img {
    width: 3rem;
    height: 3rem;
  }

  .navbar-toggler:focus,
  .navbar-toggler {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
    border: none;
  }

  .nav-link {
    padding: 0.5rem 4.5rem;
    margin-left: 0;
    font-size: 2.5vh;
    margin-bottom: 1rem;
  }

  .dropdown-menu {
    background-color: var(--verde);
    margin-bottom: 1rem;
  }

  .navbar-collapse {
    text-align: center;
    padding-top: 1rem;
  }

  .navbar-nav {
    display: inline-block;
  }

  .dropdown-menu {
    text-align: center;
    font-size: 2.5vh;
    padding-top: 0;
  }
}

/*HERO SECTION*/
.hero-section {
  height: 100vh;
  position: relative;
}

.hero-title {
  max-width: 480px;
}

.text-box {
  max-width: 80%;
}

.rectangular-container {
  position: absolute;
  bottom: -6rem;
  right: 0;
  width: 60%;
  height: 10rem;
  background-color: var(--verde);
  z-index: -1;
}

.line {
  width: 20%;
  height: 1px;
  background-color: black;
  margin-right: 10px;
}

.text-link {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem;
  border-top: 1px solid black;
}

.img-hero {
  height: 100vh;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero-section {
    height: 60vh;
  }

  .img-hero {
    height: 60vh;
    width: 100%;
  }

  .rectangular-container {
    bottom: -5rem;
    height: 10rem;
  }
}

@media screen and (max-width: 920px) {
  .rectangular-container {
    bottom: -5rem;
    height: 6rem;
  }
}

@media screen and (max-width: 767px) {
  .hero-section {
    height: 100vh;
  }

  .img-hero {
    margin-top: 3rem;
    height: 50vh;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .rectangular-container {
    padding: 1rem;
    position: absolute;
    bottom: -2rem; /* Sposta il contenitore sotto il bordo della hero */
    right: 0;
    width: 70%;
    height: 4rem;
    background-color: var(--verde); /* Colore di sfondo */
    z-index: -1; /* Modifica il z-index per farlo comparire sopra gli altri elementi */
  }
}

@media screen and (max-width: 415px) {
  .rectangular-container {
    padding: 1rem;
    position: absolute;
    bottom: -6rem;
    right: 0;
    width: 80%;
    height: 5rem;
    background-color: var(--verde);
    z-index: -1;
  }
}

@media screen and (max-width: 389px) {
  .rectangular-container {
    padding: 1rem;
    position: absolute;
    bottom: -13rem;
    right: 0;
    width: 80%;
    height: 5rem;
    background-color: var(--verde);
    z-index: -1;
  }
}

/*SECTION */

.section {
  margin-top: 18rem;
  height: 100%;
  position: relative;
}

.box-beige {
  background-color: var(--beige);
  padding: 2rem;
  height: 15rem;
  width: 60%;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.box-text-beige {
  max-width: 60%;
}

.box-testo_immagine {
  max-width: 90%;
  margin: 0 auto;
}

.box-testo {
  height: 15rem;
  width: 90%;
}

.box-img {
  position: relative;
  width: 90%;
  height: 90%;
}

img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .box-beige {
    width: 90%;
    height: 14rem;
    top: 3%;
  }

  .box-text-beige {
    max-width: 60%;
  }

  .box-testo_immagine {
    max-width: 100%;
  }

  .box-testo {
    height: auto;
    width: 100%;
    margin-bottom: 0;
  }

  .box-img {
    width: 100%;
    height: auto;
  }

  img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .section {
    margin-top: 18rem;
  }

  .box-beige {
    background-color: antiquewhite;
    padding: 2rem;
    height: auto;
    width: 80%;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: -1;
  }

  .box-text-beige {
    max-width: 80%;
    padding-right: 3rem;
    padding-bottom: 3rem;
  }

  .box-text-beige h2 {
    font-size: 1.8rem;
  }

  .box-img {
    position: relative;
    width: 90%;
    height: auto; /* L'immagine si adatta al suo contenitore */
  }

  img {
    object-fit: cover;
    width: 90%;
    height: 100%;
  }

  /* Modifiche per mobile */
  .box-testo_immagine {
    flex-direction: column-reverse; /* Inverti ordine di immagine e testo */
  }

  .col-md-7 {
    align-items: flex-start; /* Testo allineato a sinistra */
  }

  .col-md-5 {
    align-items: flex-end; /* Immagine allineata a destra */
  }

  .box-img {
    margin-top: 22rem;
  }

  .box-testo {
    height: auto;
    width: 90%;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 620px) {
  .box-img {
    margin-top: 18rem;
  }
}

@media screen and (max-width: 415px) {
  .section {
    margin-top: 24rem;
  }

  .box-text-beige h2 {
    font-size: 1.6rem;
  }
  .box-img {
    margin-top: 19rem;
  }
}

@media screen and (max-width: 380px) {
  .section {
    margin-top: 28rem;
  }
}

/*SECTION-1*/
.section-1 {
  margin-top: 10rem;
}

.verde {
  background-color: var(--verde) !important;
}

.verde div h2 {
  color: white;
}

.img-section-1 {
  width: 80%;
  height: auto !important;
  background-position: center;
  background-size: cover;
}

.box-testo-1 {
  height: auto;
  width: 90%;
}

@media screen and (max-width: 767px) {
  .img-section-1 {
    width: 100%;
    height: auto !important;
    background-position: center;
    background-size: cover;
  }

  .box-testo-1 {
    height: auto;
    width: 80%;
    margin-left: 1rem;
  }
}

/*SECTION-2*/
.section-2 {
  margin-top: 12rem;
  height: 100%;
  position: relative;
}

@media (max-width: 1024px) {
  .margin-box-img-section-2 {
    margin-top: 5rem !important;
  }
}

@media screen and (max-width: 767px) {
  .section-2 {
    margin-top: 10rem;
    height: 100%;
    position: relative;
  }

  .margin-box-img-section-2 {
    margin-top: 18rem !important;
  }
}

/*SECTION-3*/
.section-3 {
  margin-top: 10rem;
  background-color: var(--verde);
}

.title-box-verde {
  color: white;
}

h2 {
  max-width: 520px !important;
}

.button-ecommerce {
  color: WHITE;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem;
  border-top: 1px solid white;
}

/*SECTION-4*/
.section-4 {
  margin-top: 10rem;
}

.custom-container {
  max-width: 980px;
  background-color: var(--beige);
  padding: 1rem;
}
.carousel-item p {
  text-align: center;
  padding-top: 5rem;
  padding-right: 8rem;
  padding-left: 8rem;
  padding-bottom: 3rem;
}

.carousel-control-next,
.carousel-control-prev,
.button-recensione {
  border: none !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon,
.button-recensione {
  filter: brightness(0) saturate(100%) invert(46%) sepia(9%) saturate(465%)
    hue-rotate(37deg) brightness(90%) contrast(88%);
}

.circle {
  width: 100px;
  height: 100px;
  background-color: white;
  border: 1px solid var(--beige);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circle i {
  font-size: 3.5rem;
  transform: rotate(180deg);
  color: var(--verde);
}

@media (max-width: 980px) {
  .carousel-item p {
    padding-top: 5rem;
    padding-right: 4rem;
    padding-left: 4rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 540px) {
  .carousel-item p {
    padding-top: 4rem;
    padding-right: 2rem;
    padding-left: 2rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 390px) {
  .carousel-item p {
    padding-top: 3rem;
    padding-right: 2rem;
    padding-left: 2rem;
    padding-bottom: 3rem;
  }
}

/*SECTION-5*/
.section-5 {
  margin-top: 10rem;
}

.box-testo_luogo {
  max-width: 90%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .box-testo_luogo {
    max-width: 100%;
  }

  .box-testo {
    height: auto;
    width: 100%;
    margin-bottom: 0;
  }

  .box-img_luogo {
    width: 100%;
    height: auto;
  }

  img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .box-img_luogo {
    position: relative;
    width: 90%;
    height: auto; /* L'immagine si adatta al suo contenitore */
  }

  img {
    object-fit: cover;
    width: 90%;
    height: 100%;
  }

  /* Modifiche per mobile */
  .box-testo_luogo {
    flex-direction: column-reverse; /* Inverti ordine di immagine e testo */
  }

  .col-md-7 {
    align-items: flex-start; /* Testo allineato a sinistra */
  }

  .col-md-5 {
    align-items: flex-end; /* Immagine allineata a destra */
  }

  .box-testo {
    height: auto;
    width: 90%;
    margin-bottom: 0;
  }
}

/*SECTION-6*/
.section-6 {
  margin-top: 10rem;
}

.footer-1 {
  background-color: var(--verde);
}

.img-footer {
  height: 100%;
  width: 100%;
}

.logo-footer {
  width: 5rem;
  height: 5rem;
}

.icona-footer {
  background-color: var(--rosa);
  border-radius: 1em;
  display: inline-block !important;
  padding: 0.2rem 4rem;
}

.icona-footer i {
  color: var(--verde);
  font-size: 1.5rem;
}

@media screen and (max-width: 769px) {
  .icona-footer {
    padding: 0.2rem 2rem;
  }
}

.menu-footer {
  margin-top: 0.5rem;
}

.menu-footer a {
  color: var(--rosa);
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
}

.via-footer a {
  color: var(--rosa);
  font-size: 16px;
}

.orari-footer {
  margin-top: 0.5rem;
}

.orari-footer {
  color: var(--rosa);
  text-decoration: none;
  font-size: 16px;
}

.copy a {
  color: var(--rosa);
  font-size: 14px;
}

.copy {
  color: var(--rosa);
}

/*PAGINA COCKTAIL BAR SANTARCANGELO*/
.hero-section-cocktail-bar {
  margin-top: 8rem;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container-img-hero-cocktail-bar {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-cocktail-bar {
  transform: scaleY(0.5) scaleX(0.5);
  transform-origin: bottom center;
  animation: expandFromBottom 1.5s ease-out forwards;
}

.img-hero-cocktail-bar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleY(0.5) scaleX(0.5);
  transform-origin: bottom center;
  animation: expandFromBottom 1.5s ease-out forwards;
}

@keyframes expandFromBottom {
  0% {
    transform: scaleY(0.5) scaleX(0.5);
  }
  100% {
    transform: scaleY(1) scaleX(1);
  }
}

@media (max-width: 1024px) {
  .hero-section-cocktail-bar {
    margin-top: 7rem;
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .hero-section-cocktail-bar {
    margin-top: 5rem;
    height: 70vh;
  }
}

.section-1-cocktail-bar {
  max-width: 908px;
  margin: 0 auto;
}

/*SEZIONE 2*/
.scroll-section {
  height: 100vh;
}

.container-cocktail-bar {
  display: flex;
  width: 100%;
  height: 100vh;
  position: sticky;
  top: 0;
  margin: 0;
  padding: 0;
}

.left-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 0;
  top: 5rem;
  padding: 0;
}

.box {
  height: 50vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.container-box {
  padding: 0 4rem;
}

.right-column {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: start;
  position: relative;
  padding: 0;
}

.fixed-box {
  height: 100%;
  width: 100%;
  background-color: var(--verde);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.img-fixed-box {
  width: 20rem;
  height: auto;
}

.figure-caption a {
  font-size: 12px;
  color: white;
}

.title-fixed-box {
  color: white !important;
}

.orari-fixed-box {
  color: white;
  font-size: 14px;
}

.indirizzo-fixed-box {
  color: white;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .container-box {
    padding: 1rem 2rem;
  }
}

@media (max-width: 760px) {
  .scroll-section {
    height: auto;
  }

  .container-cocktail-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .left-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .box {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
  }

  .fixed-box {
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.img-box-1-cocktail {
  width: 100%;
  height: 50vh;
  object-fit: cover;
}

@media (max-width: 540px) {
  .img-box-1-cocktail {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.box-2,
.box-4 {
  background-color: var(--beige);
}

@media (max-width: 380px) {
  .box-4 {
    height: auto !important;
    padding-top: 1rem;
  }
}

/*PAGINA CAFFETTERIA SANTARCANGELO*/
.section-1-caffetteria {
  margin-top: 12rem !important;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .hero-section-cocktail-bar {
    margin-top: 6rem;
  }
  .section-1-caffetteria {
    margin-top: 18rem !important;
  }
  .box-caffetteria {
    top: -18% !important;
  }

  .box-caffetteria-1 {
    margin-top: 10rem !important;
  }
}

@media screen and (max-width: 767px) {
  .section-1-caffetteria {
    margin-top: 10rem !important;
  }
}

/*PAGINA LOCATION*/
.title-location {
  margin-top: 10rem;
}

.section-location {
  margin-top: 12rem;
  height: 100%;
  position: relative;
}

.section-3-location {
  background-color: var(--verde);
}

.img-location {
  width: 100%;
  height: 100%;
  border-radius: 5rem;
}

@media screen and (max-width: 767px) {
  .section-location {
    margin-top: 8rem;
  }

  .menu-location {
    margin-top: 8rem !important;
    margin-bottom: 8rem !important;
  }
}

.caption-menu a {
  color: black !important;
}

/*POP UP*/
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media screen and (max-width: 480px) {
  .popup-overlay {
    top: 5%;
  }
}

@media screen and (max-width: 410px) {
  .popup-overlay {
    top: 8%;
  }
}

.popup {
  background: var(--verde);
  color: white;
  padding: 10px;
  width: 90%;
  z-index: 1000;
  max-width: 400px;
  text-align: center;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/*BUTTON FISSO*/
.text-link-ecommerce {
  position: fixed;
  bottom: 20px;
  right: 15px;
  background-color: var(--verde);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  z-index: 9999;
  display: inline-block;
  animation: bounce 2s infinite;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.text-none {
  color: var(--verde) !important;
}

.box-griglia {
  opacity: 0;
  transform: scale(0.8) translateY(100px);
}

figcaption {
  z-index: 10;
}

div.iframe-container {
  max-width: 500px; /* larghezza massima */
  margin: 0 auto; /* centrato orizzontalmente */
}

/* iframe piena larghezza del contenitore */
div.iframe-container iframe {
  width: 100%; /* si adatta al contenitore */
  display: block; /* elimina eventuali spazi sotto l'iframe */
  border: 0; /* elimina bordi */
}
