/* === FONT GLOBALE === */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&display=swap');

/* ===============================
   RESET BASE
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   FONT E COLORI PRINCIPALI
   =============================== */
body, p, span, div, article, section, footer, header,
h1, h2, h3, h4, h5, h6, table, th, td, li, a, button,
input, textarea, select, nav ul, nav ul li a, .menu, .menu-item,
.mobile-menu, .mobile-nav {
  font-family: 'Josefin Sans', sans-serif !important;
  color: #0f2a33;
}

body {
  background-color: #ffffff;
}

/* ===============================
   BARRA DECORATIVA SUPERIORE
   =============================== */
body::before {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background-color: #8c52ff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* ===============================
   HEADER E NAVBAR
   =============================== */
nav, .navbar, header {
  background: rgb(245, 245, 245) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #eee;
  padding: 10px 20px;
}

.logo img {
  height: 100px;
}

/* ===============================
   HERO / SLIDER
   =============================== */
.hero, .home-hero, .slider {
  background-color: #FFF6ED;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 30px;
}

.hero h1, .slider h1 {
  font-size: 2.4rem;
  color: #8c52ff;
  font-weight: 700;
}

.hero p, .slider p {
  font-size: 1.1rem;
  color: #005A70;
}

/* ===============================
   BOTTONI
   =============================== */
.button-primary, .hero .btn, .slider .btn {
  background-color: #D9B24C;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.button-primary:hover {
  background-color: #b08c3c;
}

/* ===============================
   CONTENUTO PRINCIPALE
   =============================== */
.main-text-box, .box, .container {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 1000px;
}

/* Titoli principali */
.container h1 {
  background-color: #8c52ff;
  color: white;
  text-align: center;
  padding: 30px 15px;
  margin: 0;
  font-size: 2rem;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Elimina spazi superflui */
main[role="main"] > .container:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-wrapper,
main[role="main"] {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ===============================
   LINK
   =============================== */
a {
  color: #8c52ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===============================
   MENU MOBILE
   =============================== */
#sidebar {
  width: 360px !important;
  max-width: 100% !important;
  left: -360px !important;
  transition: left 0.1s ease;
}
#sidebar.active {
  left: 0 !important;
}

/* Icona hamburger */
.menu-toggle span,
.navbar-toggle span,
.menu-icon span,
button.navbar-toggler span,
button.navbar-toggler::before,
button.navbar-toggler::after {
  background-color: #8c52ff !important;
  display: block;
  height: 2px;
  width: 20px;
  margin: 4px 0;
  border-radius: 1px;
}

/* ===============================
   SEZIONE CONTATTI
   =============================== */
.row:has(ul.profili-social) {
  background-color: rgb(242, 242, 242);
  border-top: 6px solid #8c52ff;
  border-bottom: 6px solid #8c52ff;
  color: #8c52ff;
  padding: 40px 20px;
}

.row:has(ul.profili-social) p,
.row:has(ul.profili-social) strong,
.row:has(ul.profili-social) span {
  color: #8c52ff !important;
}

.row:has(ul.profili-social) .profili-social i {
  color: #8c52ff !important;
}

/* Divider SVG */
.custom-shape-divider.top path {
  fill: white;
}

/* Nasconde doppie icone social in header */
header i.fab.fa-facebook-square,
header i.fab.fa-instagram {
  display: none !important;
}

/* ===============================
   FOOTER
   =============================== */
/* footer {
  background-color: #eee;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
  margin-top: 40px;
}

footer .container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 30px 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
} */

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .hero h1, .slider h1 {
    font-size: 1.8rem;
  }
  .button-primary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  .main-text-box, .box, .container {
    padding: 15px;
  }
}
