/* WALTOF - Foglio di stile condiviso */
*, *::before, *::after { box-sizing: border-box; }
body, html { font-family: 'Archivo Narrow', sans-serif; background: #F0F4F8; font-size: 16px; line-height: 24px; margin: 0; padding: 0; height: 100%; }
a { color: #21aabd; text-decoration: none; cursor: pointer; }
a:hover { color: #ee52f4; }

/* SISTEMA MONOPAGINA */
.page-section { display: none; min-height: 100vh; padding-top: 80px; animation: fadeIn 0.5s; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; padding: 0 20px; height: 80px; z-index: 1000; box-sizing: border-box; background: rgba(152, 128, 90, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; }
.header__logo { color: #fff; font-size: 24px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.header__logo:hover { color: #fff; }
.header__menu { margin: 0; padding: 0; list-style-type: none; display: flex; }
.header__menu .menu-item a { padding: 10px 15px; color: #fff; font-size: 18px; text-transform: uppercase; transition: 0.3s; }
.header__menu .menu-item a:hover { background-color: #856f4d; border-radius: 4px; color: #fff; }
.hamburger { display: none; font-size: 30px; color: white; cursor: pointer; }

/* HOME / COVER */
#home.page-section { padding-top: 0; }
.cover { height: 100vh; background-color: #98805A; background-image: url('/images/cucina6.jpeg'); background-size: cover; background-position: center; position: relative; }
.cover__filter { height: 100%; width: 100%; position: absolute; background: rgba(0,0,0,0.3); z-index: 0; }
.title_front_page { position: relative; top: 30%; z-index: 3; text-align: center; color: white; padding: 0 20px; }
.logo_front_page span.title { display: block; font-size: 80px; margin: 0 0 10px 0; font-weight: bold; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.logo_front_page span.subtitle { display: block; font-size: 24px; margin: 0 0 5px 0; line-height: 1.4; letter-spacing: 2px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.logo_front_page span.subtitle2 { display: block; font-size: 16px; margin: 5px 0; font-style: italic; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.cover__caption { position: absolute; bottom: 20%; width: 100%; text-align: center; z-index: 5; }
.button { display: inline-block; background: #fff; font-weight: 900; color: #000 !important; padding: 15px 30px; border-radius: 5px; cursor: pointer; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.button:hover { color: #000 !important; }

/* STRUTTURA GENERALE */
.main-wrapper { max-width: 1200px; margin: 0 auto; background: #eee; min-height: 100%; padding-bottom: 50px; overflow: hidden; }
.main-title { padding: 40px 20px; text-align: center; color: #98805A; margin: 0; font-weight: 300; font-size: 50px; text-transform: uppercase; }

/* CATALOGO */
.products, .essences { position: relative; width: 100%; overflow: hidden; padding: 0 20px; display: flex; flex-wrap: wrap; justify-content: center; }
.div_featured_miotema_catalogo { display: block; width: 300px; height: 250px; background-size: cover; background-position: center; border-radius: 6px; margin: 15px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.2s; }
.div_featured_miotema_catalogo:hover { transform: scale(1.02); }
.div_featured_miotema_catalogo span { display: flex; width: 100%; height: 100%; align-items: flex-end; justify-content: center; color: white; font-size: 170%; padding-bottom: 10px; text-shadow: 1px 1px 3px black; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); border-radius: 6px; }

/* ESSENZE */
.div_featured_miotema_essenze { display: block; width: 250px; height: 250px; background-size: cover; background-position: center; border-radius: 50%; margin: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.div_featured_miotema_essenze span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: white; font-size: 170%; text-shadow: 1px 1px 3px black; border-radius: 50%; }

/* FILOSOFIA */
.service { width: 100%; float: left; margin: 25px 0; background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.div_featured_miotema_service { float: left; width: 25%; height: 250px; background-size: cover; background-position: center; margin-right: 4%; border-radius: 50px; }
.div_description_miotema_service { float: left; width: 70%; }
.div_description_miotema_service h2, .div_description_miotema_service h3 { color: #98805A; margin-top: 0; font-size: 32px; }
.div_description_miotema_service p { font-weight: normal; color: #555; font-size: 18px; line-height: 1.6; margin: 0; }

/* CONTATTI */
.miotema-contact-container { background: #fff; height: 600px; display: flex; }
.miotema-contact-text { flex: 1; padding: 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.miotema-contact-img { flex: 1; background-size: cover; background-position: center; }
.list { margin: 15px 0; font-size: 20px; color: #333; display: block; }

/* GALLERIE PRODOTTI */
.page-gallery { padding-top: 80px; min-height: 100vh; }
.detail-container { max-width: 1000px; margin: 0 auto; background: #fff; padding: 40px; }
.detail-container h1 { color: #98805A; margin-top: 10px; }
.detail-container p.intro { font-size: 18px; color: #555; line-height: 1.6; }
.back-btn { display: inline-block; margin-bottom: 20px; padding: 10px 20px; background: #98805A; color: white !important; border-radius: 4px; font-weight: bold; }
.back-btn:hover { background: #856f4d; color: white !important; }
.gallery-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px; }
.gallery-img { width: calc(33.333% - 10px); height: 250px; object-fit: cover; border-radius: 4px; transition: transform 0.3s; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.gallery-img:hover { transform: scale(1.05); z-index: 2; }

/* LIGHTBOX */
#lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); cursor: pointer; }
#lightbox-img { margin: auto; display: block; max-width: 95%; max-height: 95%; position: relative; top: 50%; transform: translateY(-50%); border: 2px solid white; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
#lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; font-weight: bold; z-index: 2001; }

/* CLEARFIX */
.clearfix:after { content: " "; display: block; height: 0; clear: both; }

/* RESPONSIVE */
@media (max-width: 998px) {
    .div_featured_miotema_catalogo, .div_featured_miotema_essenze { width: 45%; }
    .gallery-img { width: calc(50% - 10px); }
}
@media (max-width: 768px) {
    .header { height: 60px; justify-content: space-between; padding: 0 15px; }
    .header__logo { font-size: 20px; }
    .hamburger { display: block; }
    .header__menu { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background-color: #98805A; box-shadow: 0 5px 10px rgba(0,0,0,0.2); padding: 10px 0; }
    .header__menu.active { display: flex; }
    .header__menu .menu-item { text-align: center; width: 100%; }
    .header__menu .menu-item a { display: block; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .logo_front_page span.title { font-size: 50px; }
    .logo_front_page span.subtitle { font-size: 18px; }
    .div_featured_miotema_catalogo, .div_featured_miotema_essenze { width: 90%; margin: 15px auto; }
    .div_featured_miotema_service { width: 100%; height: 200px; margin-bottom: 20px; float: none; }
    .div_description_miotema_service { width: 100%; float: none; }
    .miotema-contact-container { flex-direction: column; height: auto; }
    .miotema-contact-img { height: 250px; }
    .gallery-img { width: 100%; height: auto; margin-bottom: 10px; }
}
