/* Muslim Bro - CSS aggiornato */

/** Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-default);
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

/** Variables */
:root {
  --blue: #0270d077;
  --gray-back: #eeeeee;
  --light-gray: #7f7f90;
  --mid-gray: #4f4f5a;
  --dark-gray: #37373f;
  --dark: #212529;
  --yellow: #ffee00;
  --font-default: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-secondary: "Inter", sans-serif;
}

/** Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/** Layout generico */
.container {
  display: flex;
  margin: auto;
  width: 85vw;
}

main .container {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-radius: 3.125rem;
  justify-content: space-between;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
}

.flx-c {
  display: flex;
  justify-content: center;
  align-items: center;
}

/** Section Intro */
.section-intro {
  flex: 0.5;
  text-align: start;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-intro h2 {
  font-size: 1.8rem;
  text-align: start;
}

.section-intro p {
  font-size: 1.2rem;
}

.section-intro .special {
  border: 2px var(--yellow) solid;
  padding: 1rem;
  border-radius: 1.5rem;
  color: gold;
  margin-top: 1rem;
  font-weight: 500;
}

.p-group {
  margin-top: 1.5rem;
  width: 95%;
}

/** BODY */
body {
  color: var(--dark);
  scroll-behavior: smooth;
  transition: 1s;
}


main {
  padding-top: 10%;
  background: url(/assets/background.webp);
  background-size: 100%;
  cursor: url("/assets/qibla.webp"), auto;
  background-repeat: repeat;
}
body{
    cursor: url("/assets/qibla.webp"), auto;
}
/** NAVBAR */
nav {
  position: fixed;
  width: 100%;
  z-index: 9999;
  height: 8vh;
  display: grid;
  align-items: center;
  color: white;
}

nav .container {
  background: rgba(255, 255, 255, 0.264);
  border-radius: 30px;
  margin-top: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

nav .container.scrolled {
  background: white;
  transition: background 0.3s ease;
  color: rgba(42, 145, 235, 0.4);
}

nav .nav-logo h1 {
  font-size: 1.875rem;
  transition: 0.3s;
}
nav .nav-logo h1 a {
  color: white;
}

nav .nav-list ul {
  display: flex;
  gap: 25px;
  align-items: center;
}

nav .nav-list ul li a {
  font-weight: 700;
  font-size: 17px;
  color: white;
  position: relative;
  transition: 0.3s;
}

nav .nav-list ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: rgba(42, 145, 235, 0.4);
  left: 0;
  bottom: -5px;
  transition: width 0.5s;
}

nav .nav-list ul li a:hover {
  color: rgba(42, 145, 235, 0.716);
}

nav .nav-list ul li a:hover::after {
  width: 100%;
}

nav .nav-icon a {
  color: var(--dark);
}

nav .nav-toggle {
  font-size: 1.3rem;
  display: none;
}

nav .container.scrolled {
  background: white;
  transition: background 0.3s ease;

  a {
    color: rgba(42, 145, 235, 0.4);
  }
}

/** DROPDOWN */
.dropdown {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
  position: absolute;
  top: 8vh;
  width: 92%;
  left: 4%;
  z-index: 9999;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  border: 1px solid #e4e8f0;
  padding: 0;
  pointer-events: none;
}

.dropdown.open {
  transform: scaleY(1);
  opacity: 1;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  pointer-events: auto;
}

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

.dropdown ul li:not(:last-child) {
  border-bottom: 1px solid #e6e9f0;
}

.dropdown ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.7rem;
  border-radius: 12px;
  color: var(--blue);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.6);
}

.dropdown ul li a i {
  font-size: 1.1rem;
  min-width: 20px;
  color: var(--blue);
  transition: color 0.3s;
}

.dropdown ul li a:hover {
  background-color: var(--blue);
  color: white;
  transform: translateX(4px);
}

.dropdown ul li a:hover i {
  color: white;
}

/** HEADER */
header {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, #0270d0a9 0%, #ffffff 100%);
  backdrop-filter: blur(2rem);
}

.hero {
  min-height: 92vh;
  margin-top: 8vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  transition: 0.3s;
}

.hero .h-img {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .h-img img {
  filter: drop-shadow(4px 4px 9px #000a);
  animation: floating 2.5s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(3%);
  }

  50% {
    transform: translateY(-1%);
  }

  100% {
    transform: translateY(3%);
  }
}

.hero .h-content {
  width: 50%;
}

.hero .h-content h2 {
  font-family: var(--font-primary);
  color: white;
  font-size: 38px;
  width: 90%;
}

.hero .h-content p {
  font-size: 24px;
  line-height: 32px;
  color: white;
  padding: 20px 0px;
  font-family: var(--font-secondary);
  width: 80%;
}

.hero .h-content .btn-group a {
  background-color: white;
  color: var(--dark-gray);
  font-weight: 500;
  padding: 10px 25px;
  border-radius: 20px 50px 50px 50px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.hero .h-content .btn-group a:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/** HEADER END */

/** =====PRAYER SECTION START===== */
#prayer-times .container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  color: #111;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
}

#prayer-times .container .pt-content {
  width: 100%;
  flex: 0.5;
  background: rgba(42, 145, 235, 0.4);
  border-radius: 2.65rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/**ERROR */
.pt-content .error {
  display: none;
  margin: 2rem;
  height: 100%;
  border-radius: 1rem;
  padding: 2rem;
  background-color: white;
  display: grid;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/**ERROR */

/** single prayer time start*/
.pt-content .pt {
  font-size: 2em;
  padding: 1.25rem;
  font-weight: 500;
  justify-content: space-between;
  margin: 1.25rem;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: 0.35s;
}

.pt-content .pt .prayer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pt-content .pt:hover {
  transform: scale(1.02);
}

.pt-content .pt .prayer img {
  width: 3rem;
  margin-right: 1rem;
}

.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #2c3e50;
  font-weight: 500;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid white;
  border-top: 5px solid var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error {
  color: rgba(255, 0, 0, 0.438);
  font-weight: bold;
  text-align: center;
}


/** single prayer time end*/

/** =====PRAYER SECTION END===== */


/**FIVE PILLARS SECTION START*/
#five-pillars .container {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  color: #111;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
}

#five-pillars .container .pillar {
  display: flex;
  text-align: center;
  flex-direction: column;
  padding: 1.5rem;
  font-size: LARGE;
  color: var(--dark-gray);
  transition: transform 0.3s;
}

#five-pillars .container .pillar:hover {
  transform: scale(1.1);
}

#five-pillars .container .pillar img {
  width: 50%;
  margin: auto;
}

.pillars {
  display: flex;
}

#five-pillars .container .section-intro {
  color: var(--dark);
  text-align: center;

  h2 {
    font-size: 1.8rem;
  }
}

/**FIVE PILLARS SECTION END*/

/**QURAN START */
.quran .container {
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  color: #111;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
}

.quran .container .quran-content {
  flex-direction: column;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: 0.5;
  border: 2px var(--yellow) solid;

}

.quran .container .quran-content #quran-btn {
  padding: 0.85rem 1.5rem;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  color: #F35369;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(15px) saturate(200%);
  -webkit-backdrop-filter: blur(15px) saturate(200%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.quran .container .quran-content #quran-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #c73b58;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}


.quran .container .quran-content #quran-img {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.quran .container .quran-content #quran-img img {
  transition: transform 0.4s;
  height: 50%;
  width: 60%;
}

.quran .container .quran-content #quran-img img:hover {
  transform: scale(1.05) rotate(-5deg);
}

/**QURAN END */

/** AZKAR START */
.azkar .container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
  color: #111;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 15px 30px rgba(0, 0, 0, 0.3);
}

.azkar .container .azkar-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.azkar .container .section-intro {
  text-align: center;
}

.azkar .container .azkar-card {
  flex-direction: column;
  width: 49%;
}

.azkar .container .azkar-card #azkar-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  /* vetro più visibile */
  color: #F35369;
  border: 2px solid rgba(255, 255, 255, 0.5);
  /* bordo chiaro visibile */
  border-radius: 1rem;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(15px) saturate(200%);
  -webkit-backdrop-filter: blur(15px) saturate(200%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  /* ombra più netta */
  transition: all 0.3s ease;
  cursor: pointer;
}

.azkar .container .azkar-card #azkar-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: #c73b58;
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}


.azkar .container .azkar-card #azkar-img {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  padding: 0.8rem 0rem;
}

.azkar .container .azkar-card #azkar-img img {
  width: 25%;
}

.azkar .container .azkar-card #azkar-img img {
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.azkar .container .azkar-card:hover #azkar-img img {
  opacity: 0.9;
  transform: translateY(-5px);
}

/** FOOTER START */
footer {
  background: url(/assets/background.webp);
  background-size: 100%;
  background-repeat: repeat;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

footer .container {
  background: var(--blue);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  border: 10px white solid;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 3.125rem;
  padding: 2rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenitore principale del contenuto del footer */
.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Mappa */
.map-container {
  flex: 1;
  min-width: 300px;
  border: 10px solid white;
  border-radius: 35px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
}

/* Contatto */
.contact-info {
  flex: 1;
  min-width: 300px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--yellow);
  text-decoration: underline;
}

/* Link Social */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 1rem;
}

.social-links ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-links a {
  font-size: 24px;
  color: white;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #0270d0;
}

.footer-bottom {
  text-align: center;
  color: var(--blue);
  width: 85%;
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 10px;
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, 0.575);
}


/** FOOTER END */