@import url("https://fonts.googleapis.com/css2?family=Chicle&family=Istok+Web:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* ROOT VARIABLES */
:root {
  --body-font: "Istok Web", sans-serif;
  --title-font: "Chicle", serif;
  --colore-verde-scritte: #0f441d;
  --colore-verde: #0f441d;
  --colore-verde-chiaro: #fdcb03;
  --colore-giallo: ;
  --colore-nero: black;
  --colore-bianco: white;
  --colore-panna: #fff8dc;
  --body-size: 18px;
  --h1-font-size: 80px;
  --h2-font-size: 50px;
  --h3-font-size: 25px;
  --h5-font-size: 22px;
  --h6-font-size: 18px;

  --h1-font-size-responsive: 50px;
  --h2-font-size-responsive: 35px;
  --h3-font-size-responsive: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: var(--body-font) !important;
  color: var(--colore-black) !important;
  margin: 0;
  padding: 0;
  background-color: var(--colore-panna);
  background-image: url("https://www.transparenttextures.com/patterns/redox-02.png");
  background-repeat: repeat;
  background-size: auto;
}

/* MAIN */
main {
  padding-top: 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h6 {
  font-weight: 400 !important;
  font-family: var(--title-font);
}

strong {
  font-weight: bold;
  text-decoration: underline;
  color: var(--colore-verde-scritte) !important;
}

p {
  font-size: var(--body-size) !important;
  font-weight: 300;
  line-height: 1.5rem;
}

h1 {
  color: white;
  font-size: var(--h1-font-size) !important;
  font-weight: 500 !important;
  line-height: 4.6rem;
}

h2 {
  color: var(--colore-nero) !important;
  font-weight: 500 !important;
  font-size: var(--h2-font-size) !important;
  line-height: 3.5rem;
}

h3 {
  color: var(--colore-nero);
  font-size: var(--h3-font-size) !important;
  text-transform: uppercase;
}

h4 {
  text-transform: uppercase;
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
  color: black;
  border: none;
}

.modal-body p {
  font-size: 16px !important;
  line-height: 1.2rem !important;
}

.modal-body label {
  font-size: 14px !important;
  line-height: 1.2rem !important;
}

.modal-content {
  background-color: var(--colore-panna);
  background-image: url("https://www.transparenttextures.com/patterns/redox-02.png");
  background-repeat: repeat;
  background-size: auto;
}

.header-aviso-legal {
  text-decoration: none !important;
  color: var(--colore-verde-scritte);
  font-family: var(--title-font);
}

.body-aviso-legal p {
  font-size: 16px !important;
}

@media (max-width: 620px) {
  h1 {
    font-size: var(--h1-font-size-responsive) !important;
    line-height: 3.5rem;
  }

  h2 {
    font-size: var(--h2-font-size-responsive) !important;
    line-height: 2.5rem;
  }
  h3 {
    font-size: var(--h3-font-size-responsive) !important;
  }
}

@media (min-width: 2400px) {
  html {
    font-size: 150% !important;
  }
  .container {
    max-width: 2200px !important;
  }
}

@media (min-width: 1800px) and (max-width: 2400px) {
  html {
    font-size: 120%;
  }
  .container {
    max-width: 1600px !important;
  }
}

/* NAVBAR */
#navbar {
  transition: all 0.4s ease;
  background: transparent;
  color: white;
  padding: 1rem 2rem;
  z-index: 999;
}

#navbar.scrolled {
  background: white;
  color: black;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: inherit;
  font-weight: 500;
  font-size: 18px;
}

#navbarToggle {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 20px;
  width: 24px;
  padding: 0;
}

#navbarToggle:focus {
  outline: none;
  box-shadow: none;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: white; /* inizialmente bianco */
  border-radius: 2px;
  transition: all 0.3s ease;
}

#navbar.scrolled .hamburger-line {
  background: black;
}

@media (max-width: 1025px) {
  #navbarMenu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 80%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-end; /* voci allineate in basso */
    padding: 2rem;
    transition: left 0.5s ease;
    z-index: 999;
  }

  /* sotto SM (768px) menu full width */
  @media (max-width: 767px) {
    #navbarMenu {
      width: 100%;
    }
  }

  #navbarMenu.open {
    left: 0;
  }

  #navbarMenu .nav-link {
    font-size: 4vh;
    margin-bottom: 0.5rem;
    color: black;
    opacity: 0;
    text-align: left;
  }

  .dropdown-item {
    font-size: 2.5vh;
  }

  #navbarMenu .navbar-brand {
    position: absolute;
    top: 1rem;
    left: 2rem;
  }

  /* X di chiusura */
  #navbarMenu .close-menu {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    color: black;
    cursor: pointer;
  }
}

@media (min-width: 1025px) {
  #navbarMenu .close-menu {
    display: none;
  }

  #navbar .navbar-collapse {
    display: flex !important;
    justify-content: flex-end; /* voci menu a destra */
    align-items: center;
  }

  #navbar .navbar-nav {
    display: flex;
    gap: 2rem; /* distanza tra voci */
  }

  #navbar .navbar-brand {
    margin-right: auto; /* spinge il logo tutto a sinistra */
  }

  #navbarMenu .nav-link {
    color: inherit;
  }
}

.dropdown-menu {
  min-width: 1rem !important;
}

/* HERO */
.hero-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-container {
  width: 100%;
  height: 100%;
}

.hero-row {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.hero-left,
.hero-right {
  flex: 1 1 50%;
  height: 100%;
}

.hero-left {
  background-color: var(--colore-verde);
}

.hero-right {
  padding: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: #fff;
  width: 80%;
  padding: 0 15px;
}

@media (max-width: 400px) {
  .hero-title {
    top: 45%;
  }
}

.hero-subtext {
  position: absolute;
  bottom: 30px;
  left: 80px;
  z-index: 10;
  max-width: 400px;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.hero-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

@media (max-width: 1024px) {
  .hero-section {
    height: 80vh;
  }

  .hero-row {
    flex-direction: column-reverse;
  }
  .hero-left,
  .hero-right {
    height: 40vh;
  }

  .hero-title {
    width: 78%;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 90vh;
    overflow: hidden;
  }
  .hero-row {
    flex-direction: column-reverse;
    margin: 0;
    gap: 0;
  }
  .hero-left,
  .hero-right {
    height: 50vh;
  }

  .hero-title {
    width: 85%;
    padding: 0;
    line-height: 3.5rem;
  }

  .hero-subtext {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    line-height: 1.4;
    width: 80%;
  }
}

@media (max-width: 400px) {
  .hero-subtext {
    width: 90%;
  }
}

/* SEZIONE 1 */
.container-h2 {
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 620px) {
  .container-h2 {
    width: 85%;
    margin: 0 auto;
  }
}

.circle {
  background-color: var(--colore-verde-scritte);
  color: white;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

@media (max-width: 620px) {
  .circle {
    max-width: 250px;
  }
}

.p-circle {
  font-family: var(--title-font);
  font-size: 22px;
  letter-spacing: 1px;
  margin: 0;
}

.p-circle span {
  font-size: 32px;
  margin-bottom: 1rem;
  display: block;
}

.content-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.btn-contattaci,
.btn-diventa {
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--title-font) !important;
  font-size: var(--h5-font-size) !important;
  letter-spacing: 1.5px;
  transition: transform 0.3s ease; /* transizione smooth */
}

.btn-contattaci {
  background-color: var(--colore-verde-scritte);
  color: white;
}

.btn-diventa {
  background-color: var(--colore-verde-chiaro);
  color: black;
}

.btn-contattaci:hover,
.btn-diventa:hover {
  transform: scale(1.08);
}

.btn-contattaci:hover {
  background-color: var(--colore-verde-scritte) !important;
  color: white !important;
}

.btn-diventa:hover {
  background-color: var(--colore-verde-chiaro) !important;
}

.box-dx {
  background-color: var(--colore-verde-chiaro);
  border-radius: 15px;
  width: 100%;
  min-height: 250px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box-dx img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 15px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .row.align-items-stretch > [class*="col-"] {
    display: flex;
  }
  .box-dx {
    height: 100%;
  }
}

@media (max-width: 767px) {
  .content-text {
    text-align: center;
    align-items: center;
  }
  .d-flex.flex-wrap.gap-3 {
    justify-content: center;
  }
}

.bg-wrapper {
  background-image: url("asociacion-cannabica-siviglia-img/sezione-1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 70vh; /* garantisce altezza minima viewport */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1024px) {
  .bg-wrapper {
    width: 100%;
    min-height: 100%;
  }
}

@media (max-width: 568px) {
  .bg-wrapper {
    background-image: url("asociacion-cannabica-siviglia-img/sezione-1-mobile.webp");
    background-size: cover; /* mostra tutta l'immagine */
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* SEZIONE 2 */
.container-sezione-2 {
  max-width: 1100px;
  margin: 0 auto;
}

.info-card {
  background-color: var(--colore-verde-scritte);
  color: var(--colore-verde-chiaro);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-card h4 {
  font-weight: bold;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 10px;
}

.info-card p {
  margin-top: auto;
  color: white;
}

.info-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .container-sezione-2 {
    width: 85%;
    margin: 0 auto;
  }

  .info-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
  }
}

.box-sezione-2-img {
  background-color: var(--colore-verde-chiaro);
}

.parent {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1.5fr;
  gap: 20px;
}

.parent div {
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
}

.parent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.parent img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .parent {
    grid-template-columns: 1fr;
  }

  .parent div {
    height: 250px;
    width: 85%;
    margin: 0 auto;
  }
}

/* SEZIONE 3 */
.container-sezione-3 {
  max-width: 1024px;
  margin: 0 auto;
}

.bg-wrapper-1 {
  background-image: url("asociacion-cannabica-siviglia-img/sezione-2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 70vh; /* garantisce altezza minima viewport */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1024px) {
  .bg-wrapper-1 {
    width: 100%;
    min-height: 100%;
  }
}

@media (max-width: 568px) {
  .bg-wrappe1 {
    background-image: url("asociacion-cannabica-siviglia-img/sezione-2-mobile.webp");
    background-size: cover; /* mostra tutta l'immagine */
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* SEZIONE 4 */
.box-recensioni-4 {
  background-color: var(--colore-verde-chiaro);
  position: relative;
  min-height: 350px;
}

.box-floating {
  position: absolute;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 2;
}

.box-recensione {
  background-color: var(--colore-panna);
  background-image: url("https://www.transparenttextures.com/patterns/redox-02.png");
  background-repeat: repeat;
  background-size: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-start;
}

.row-recensioni > .col-recensione {
  display: flex;
}

.box-recensione .contenuto-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  text-align: center;
}

.box-recensione p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.box-recensione .autore {
  margin-top: auto;
  font-weight: 500;
  color: #999;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .box-recensioni-4 {
    background-color: var(--colore-verde-chiaro);
    position: relative;
    min-height: 450px;
  }

  .box-floating {
    bottom: -190px;
    width: 100%;
    max-width: 990px;
  }
}

@media (max-width: 820px) {
  .box-recensioni-4 {
    background-color: var(--colore-verde-chiaro);
    position: relative;
    min-height: 650px;
  }

  .box-floating {
    bottom: -190px;
    max-width: 768px;
  }
}

@media (max-width: 560px) {
  .box-recensioni-4 {
    background-color: var(--colore-verde-chiaro);
    position: relative;
    min-height: 750px;
  }

  .box-floating {
    bottom: -220px;
    max-width: 768px;
  }
}

@media (max-width: 399px) {
  .box-recensioni-4 {
    background-color: var(--colore-verde-chiaro);
    position: relative;
    min-height: 750px;
  }

  .box-floating {
    bottom: -320px;
    max-width: 768px;
  }
}

/* SEZIONE 5 */
.box-5 {
  margin-top: 20rem;
}

@media (max-width: 1024px) {
  .box-5 {
    margin-top: 15rem;
  }
}

@media (max-width: 820px) {
  .box-5 {
    margin-top: 17rem;
  }
}

@media (max-width: 560px) {
  .box-5 {
    margin-top: 20rem;
  }
}

@media (max-width: 399px) {
  .box-5 {
    margin-top: 24rem;
  }
}

.parent1 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  padding: 20px;
  color: white;
}

.div5 {
  grid-area: 1 / 1 / 3 / 7;
  background-color: var(--colore-verde-scritte);
  padding: 30px 150px;
  border-radius: 15px;
  text-align: center;
}

.button {
  background-color: var(--colore-verde-scritte);
  color: white;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.button:hover {
  transform: scale(1.03);
}

.button a {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: white;
}

.button img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}

.button span {
  font-size: 18px;
  color: white;
}

.div6 {
  grid-area: 3 / 1 / 4 / 3;
}
.div7 {
  grid-area: 3 / 3 / 4 / 5;
}
.div8 {
  grid-area: 3 / 5 / 4 / 7;
}

@media (max-width: 768px) {
  .parent1 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .div5 {
    padding: 20px;
  }

  .div5,
  .div6,
  .div7,
  .div8 {
    grid-area: unset;
  }
}

/* FOOTER */
.separatore {
  margin-top: 8rem;
}

.footer-section {
  background-color: var(--colore-verde-chiaro);
  border-radius: 0 0 30px 30px;
  color: black;
  font-family: "Arial", sans-serif;
}

.footer-section a {
  color: black;
  text-decoration: underline;
}

.footer-section a:hover {
  color: #000;
}

.legal-text {
  font-size: 12px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.2;
  font-family: var(--title-font);
}

.icon-box {
  min-height: 150px;
}

.custom-icon {
  position: absolute;
  width: 80px;
}

.billiard {
  top: 0;
  left: 20px;
}

.calcetto {
  bottom: 0;
  right: 10px;
}

.footer-menu {
  font-size: 14px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .separatore {
    margin-top: 4rem;
  }
}

.map-container {
  width: 100%;
  height: 450px; /* puoi cambiare l'altezza qui */
  margin: 0;
  padding: 0;
}

.map-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scrollup {
  position: fixed;
  bottom: -100px;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  z-index: 100;
  transition: bottom 0.3s ease;
  left: 1.5rem; /* desktop: a sinistra */
}

@media (max-width: 568px) {
  .scrollup {
    left: 5rem;
  }
}

@media (max-width: 400px) {
  .scrollup {
    left: 3rem;
  }
}

.img-cta {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  border-radius: 0.7rem;
  background-color: var(--colore-verde-chiaro);
  background-image: url("https://www.transparenttextures.com/patterns/redox-02.png");
  background-repeat: repeat;
  background-size: auto;
  padding: 8px;
  text-decoration: none;
}

.img-cta img {
  padding: 0.3rem;
  border-radius: 0.7rem;
  width: 2rem;
  height: 2rem;
  object-fit: cover;
}

.img-cta p {
  color: black;
  font-family: var(--title-font);
  letter-spacing: 0.1rem;
  font-weight: 500;
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 4rem;
}

.scrollup {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
