/*
Theme Name: Il Mio Accompagnatore Ideale
Author: Alberto
Description: Landing page personale, calda e visiva per la ricerca di un accompagnatore maschile
Version: 3.3
*/

/* ============= BASE ============= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: #fef9f4;
  color: #2c3e50;
  line-height: 1.6;
}

/* ============= HEADER ============= */
header {
  position: relative;
  background: url('images/main.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 8rem 1rem;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);

}

header > * {
  position: relative;

}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  text-shadow: 1px 1px 4px #000;
}

header p {
  font-size: 1.2rem;
  margin-top: 1rem;
  text-shadow: 1px 1px 2px #000;
}

/* ============= MAIN ============= */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  color: #d35400;
}

/* ============= FORM ============= */
form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

button {
  background-color: #e67e22;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
button:focus {
  background-color: #ca6f1e;
  outline: none;
}

/* ============= GALLERY ============= */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============= FOOTER ============= */
footer {
  text-align: center;
  padding: 1rem;
  background: #f8f4f0;
  font-size: 0.9rem;
  margin-top: 2rem;
}
/* === MENU WORDPRESS (desktop) === */
/* NAVBAR BASE */
.navbar {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  color: #2c3e50;
}
/* --------- MENUS CSS --------- */
#menu-sidebar, #header,#header .logo h1, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products.columns-3 li.product, .woocommerce-page ul.products.columns-3 li.product,.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{
  text-align: center;
}
.primary-navigation ul{
  list-style: none;
  margin:0;
}
.primary-navigation li{
  display: inline-block;
  position: relative;
}
.primary-navigation a{
  display: block;

  font-size: 14px;
  padding: 18px 20px;
  text-transform: capitalize;
}
.primary-navigation ul ul{
  display: none;
  position: absolute;
  min-width: 215px;
  z-index: 999;
}
.primary-navigation ul ul li:first-child{
  border-top: 5px solid #005bba;
}
.page-template-custom-front-page .primary-navigation ul ul, .page-template-custom-front-page #header .main-menu{
  border: none;
}
.primary-navigation ul ul{
  border: 2px solid #005bba;
}
.primary-navigation ul ul ul{
  left: 100%;
  top: 5px;
}
.primary-navigation ul ul a{
  color: #fff;
  background-color: #051f31;
  border: none;
  padding: 13px;
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
}
.primary-navigation ul ul li{
  float: none;
  display: block;
  text-align: left;
  border-left: none;
  border-right: none !important;
  padding: 0;
}
.primary-navigation ul ul li:last-child{
  border-bottom: 0;
}
.primary-navigation .menu > ul > li.highlight{
  background-color: #006ccc;
}
.primary-navigation .menu > ul > li.highlight:hover{
  background: transparent;
}
/*--------------- SUPERFISH MENU ---------------------------*/
.sf-arrows .sf-with-ul:after{
  content: '\f067';
  position: absolute;
  font-weight: 600;
  font-family: 'Font Awesome 5 Free';
  margin-top: 0px;
  font-size: 8px;
  padding: 0px 6px;
  color: #fff;
  top: 22px;
}
.page-template-custom-front-page .sf-arrows .sf-with-ul:after{
  color: #000;
  font-size: 10px;
}
.sf-arrows ul .sf-with-ul:after{
  top: 20px;
  right: 5px;
  
  top:18px;
}
.sf-arrows ul li > .sf-with-ul:focus:after,.sf-arrows ul li:hover > .sf-with-ul:after,.sf-arrows .sfHover > .sf-with-ul:after{
  content: '\f068';
  font-weight: 600;
  font-family: 'Font Awesome 5 Free';
  
}
.sf-arrows .sf-with-ul{
  padding-right: 32px;
}
.primary-navigation ul{
  list-style: none;
  margin:0;
}
.navbar li{
  display: inline-block;
  position: relative;
}
.navbar a{
  display: block;
  
  font-size: 14px;
  padding: 18px 20px;
  text-transform: capitalize;
}
.navbar ul ul{
  display: none;
  position: absolute;
  min-width: 215px;
  z-index: 999;
}
.navbar ul ul li:first-child{
  border-top: 5px solid #005bba;
}
.page-template-custom-front-page .navbar ul ul, .page-template-custom-front-page #header .main-menu{
  border: none;
}
.navbar ul ul{
  border: 2px solid #005bba;
}
.navbar ul ul ul{
  left: 100%;
  top: 5px;
}
.navbar ul ul a{
  
  background-color: #051f31;
  border: none;
  padding: 13px;
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
}
.navbar ul ul li{
  float: none;
  display: block;
  text-align: left;
  border-left: none;
  border-right: none !important;
  padding: 0;
}
.navbar ul ul li:last-child{
  border-bottom: 0;
}
.navbar .menu > ul > li.highlight{
  background-color: #006ccc;
}
.navbar .menu > ul > li.highlight:hover{
  background: transparent;
}
/* MENU MOBILE BASE */
.mobile {
 
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 24px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.nav-links {

  gap: 2rem;
}
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* scuro semi-trasparente */
  z-index: 999; /* appena sotto il menu */
}

.menu-overlay.active {
  display: block;
}
.menu{
	background-color: beige;

}
.mobile{
	display: none;
}
/* MOBILE STYLE */
@media (max-width: 768px) {
  .mobile {
    display: flex;
	  width: 20%;
	  
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex !important;
  }
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: beige; /* Opaco semi-trasparente */
  position: absolute;
  top: 60px;
  right: 10px;
  padding: 1rem;
  border: 1px solid #ccc;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Optional: ombra per evidenziare */
}

.mobile-menu.open {
  display: flex;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 4px 0;
}
