/* =======================================================================
   Benessere Milano  STYLE.CSS - Industrial Modern Flexbox Sitewide Styles
   ======================================================================= */
/* RESET & NORMALIZE (mobile-first, industrial-modern feel) */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, sans-serif;
  background: #161a20;
  color: #F5EEDD;
  position: relative;
  line-height: 1.65;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #B9D16C;
  text-decoration: none;
  transition: color .23s;
}
a:focus {
  outline: 2px dotted #B9D16C;
}
a:hover, a:active {
  color: #F5EEDD;
}
ul, ol {
  list-style: none;
}
strong, b {
  font-weight: 700;
}
/* ============================== FONTS ================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #F5EEDD;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, li {
  font-size: 1rem;
}
@media (min-width: 600px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.05rem; }
  h3 { font-size: 1.3rem; }
  p, li { font-size: 1.07rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.45rem; }
  p, li { font-size: 1.13rem; }
}

/* CONTAINER & LAYOUT FLEXBOX ============================ */
.container {
  max-width: 1200px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.text-section {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* =========== SECTIONS & SPACING PATTERNS =============== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (min-width: 900px) {
  section {
    padding: 56px 0;
  }
}

.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #212834;
  border-radius: 10px;
  box-shadow: 0 3px 16px 0 rgba(37,42,58,0.13), 0 1.5px 0 rgba(210,216,227,0.04);
  overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover,
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(37,42,58,0.23), 0 2.5px 0 rgba(210,216,227,0.09);
}

.feature-grid {
  justify-content: flex-start;
  align-items: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #212834;
  border-radius: 12px;
  box-shadow: 0 3px 14px 0 rgba(44, 48, 60, 0.18);
  padding: 32px 24px 20px 24px;
  min-width: 240px;
  margin-bottom: 20px;
  border-left: 5px solid #B9D16C;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}
.feature-item:hover {
  border-left: 5px solid #F5EEDD;
}
.price {
  color: #B9D16C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  margin-top: 10px;
  letter-spacing:0.01em;
  font-weight: 700;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5EEDD;
  color: #232D3F;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(44,48,60,0.09);
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow .18s;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0;
  color: #232D3F;
}
.testimonial-card strong { color: #232D3F; }
.testimonial-card span { font-size: 1rem; }

@media (min-width: 768px) {
  .testimonial-card {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

/* BUTTONS ============================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 700;
  min-width: 155px;
  padding: 13px 32px;
  border-radius: 6px;
  background: #B9D16C;
  color: #232D3F;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 4px rgba(44,48,60,0.16);
  border: 1.5px solid #B9D16C;
  transition: background .26s, color .19s, box-shadow .19s, border .19s;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 8px;
}
.btn-primary:focus,
.btn-primary:hover {
  background: #232D3F;
  color: #B9D16C;
  border: 1.5px solid #F5EEDD;
  box-shadow: 0 3px 18px 0 rgba(44, 48, 60, .18);
}

/* Tables & Lists (text-section) ========================== */
.text-section ul, .text-section ol {
  margin-left: 18px;
  margin-bottom: 4px;
  padding-left: 16px;
}
.text-section ul li, .text-section ol li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
.text-section ul li:before {
  content: "";
  position: absolute;
  left:0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: #B9D16C;
  border-radius: 50%;
}
.text-section ol li {
  list-style: decimal;
}

/* ==================== HEADER =========================== */
header {
  width: 100%;
  background: #232D3F;
  box-shadow: 0 2px 16px rgba(20,26,36,0.16);
  padding: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  height: 68px;
}
header img {
  max-height: 38px;
  margin-right: 14px;
}
.main-nav {
  display: none;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F5EEDD;
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 0;
  position: relative;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #B9D16C;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
}
/* Phone CTA on Header */
header .btn-primary {
  margin-left: 10px;
}
/* Burger Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  width: 44px;
  height: 44px;
  color: #B9D16C;
  background: none;
  border-radius: 5px;
  margin-left: 14px;
  border: 0;
  cursor: pointer;
  transition: background .15s, color .16s;
  z-index: 101;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(185, 209, 108, 0.16);
  color: #F5EEDD;
}
@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ==================== MOBILE MENU ====================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #232D3F;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.33s cubic-bezier(.4,0,.2,1), transform 0.33s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 30px 14px 0;
  background: none;
  border: 0;
  color: #B9D16C;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { color: #F5EEDD; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 16px 34px;
  margin-top: 42px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #F5EEDD;
  padding: 7px 0;
  font-weight: 600;
  width: 100%;
  border-radius: 5px;
  transition: color .17s, background .17s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #232D3F;
  background: #B9D16C;
}

@media (min-width:900px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==================== MAIN & HERO ====================== */
main {
  width: 100%;
  min-height: 70vh;
  position: relative;
}

/* =================== FOOTER ============================ */
footer {
  width: 100%;
  background: #232D3F;
  color: #F5EEDD;
  padding: 0 0 20px 0;
  font-size: 1rem;
  box-shadow: 0 -3px 14px 0 rgba(15,17,25,0.13);
}
footer .container {
  border-top: 1.5px solid #363d4b;
  margin-top: 20px;
  padding-top: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #B9D16C;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: .97;
  transition: color .18s, opacity .18s;
}
.footer-nav a:hover { color: #F5EEDD; opacity: 1; }
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #AEC5C2;
  font-size: 0.97rem;
}

/* ================== COOKIE CONSENT ===================== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: auto;
  max-width: 95vw;
  background: #232D3F;
  color: #F5EEDD;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(44,48,60,0.19);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 16px 16px 22px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s, transform .28s;
  font-size: 1.02rem;
  pointer-events: auto;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}

.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.btn-cookie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 6px;
  transition: background .2s, color .17s;
  cursor: pointer;
  border: none;
}
.btn-cookie.accept {
  background: #B9D16C;
  color: #232D3F;
}
.btn-cookie.accept:hover {
  background: #A2BC51;
  color: #1b212c;
}
.btn-cookie.reject {
  background: #3B475C;
  color: #F5EEDD;
}
.btn-cookie.reject:hover {
  background: #161a20;
  color: #B9D16C;
}
.btn-cookie.settings {
  background: none;
  color: #B9D16C;
  border: 1.2px solid #B9D16C;
}
.btn-cookie.settings:hover {
  background: #B9D16C;
  color: #232D3F;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,28,40,0.74);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #232D3F;
  color: #F5EEDD;
  border-radius: 12px;
  box-shadow: 0 5px 28px 0 rgba(44,48,60,0.26);
  max-width: 430px;
  width: 96vw;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 0;
  color: #B9D16C;
  font-size: 2rem;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #F5EEDD;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 7px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.09rem;
}
.cookie-toggle {
  appearance: none;
  width: 32px;
  height: 18px;
  background: #232D3F;
  border-radius: 14px;
  border: 1.2px solid #B9D16C;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background .18s;
}
.cookie-toggle:checked {
  background: #B9D16C;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F5EEDD;
  transition: left .18s;
}
.cookie-toggle:checked::before {
  left: 16px;
  background: #232D3F;
}
.cookie-modal .btn-primary {
  margin-top: 10px;
}

/* ================== CARDS, ICONS ======================= */
.feature-item img {
  width: 52px;
  height: 52px;
  filter: grayscale(30%) drop-shadow(0 1.5px 2.5px #161a20d6);
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .feature-item img {
    width: 38px; height: 38px;
    margin-bottom: 4px;
  }
}
.text-section img[alt^="Icona"], .text-section img[alt^="Indirizzo"], .text-section img[alt^="Telefono"], .text-section img[alt^="E-mail"], .text-section img[alt^="Orari"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  filter: grayscale(45%) brightness(1.2);
}

/* =================== CTA Section ======================= */
.text-section .btn-primary {
  margin-top: 18px;
}

/* ========== FORMS (Newsletter / Contact) ======== */
input, textarea {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background: #232D3F;
  color: #F5EEDD;
  border: 1.5px solid #3B475C;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  width: 100%;
  transition: border-color .18s;
}
input:focus, textarea:focus {
  border-color: #B9D16C;
}

/* ================= RESPONSIVE ======================== */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    height: 58px;
    padding: 0 10px;
  }
  .footer-info {
    font-size: 0.93rem;
  }
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 32px 0 20px 0;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .feature-item {
    padding: 22px 14px 15px 12px;
    min-width: 90vw;
    box-shadow: 0 2px 8px 0 rgba(44,48,60,0.11);
  }
}

/* ================== MISC EFFECTS ==================== */
section, .cookie-banner, .feature-item, .testimonial-card {
  animation: fadeInUp .77s cubic-bezier(.5,.33,0,1);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0);}
}

::-webkit-scrollbar {
  width: 9px;
  background: #232D3F;
}
::-webkit-scrollbar-thumb {
  background: #3B475C;
  border-radius: 8px;
}

/* =================== UTILITIES ====================== */
.mt-1 { margin-top: 8px!important; }
.mt-2 { margin-top: 16px!important; }
.mt-3 { margin-top: 24px!important; }
.mb-1 { margin-bottom: 8px!important; }
.mb-2 { margin-bottom: 16px!important; }
.mb-3 { margin-bottom: 24px!important; }
.text-center { text-align: center!important; }
.hide { display: none!important; }

/* ========== INDUSTRIAL MODERN DETAILS ================ */
/* Subtle metallic accent borders (industrial feel) */
.card, .feature-item, .testimonial-card {
  border-right: 2.7px solid #B9D16C33;
  border-bottom: 1.5px solid #B9D16C22;
}

/* Urban, condensed title font for hero */
h1, h2.hero-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F5EEDD;
}

/* Slightly gritty/steel hover for buttons and cards */
.btn-primary, .btn-cookie {
  box-shadow: 0 1px 4px 0 #363d4b55;
}
.btn-primary:active, .btn-cookie:active {
  box-shadow: 0 1.5px 12px 0 #B9D16C66;
}

/* ============= SPACING & FLEX RULES (MANDATORY) ===== */
.section { /* ENFORCED via section above */ }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Utility for minimum margin between cards */
.card, .feature-item, .testimonial-card, .section > * {
  margin-bottom: 20px;
}

/* ============= PREVENT ABSOLUTE FOR CARDS ============= */
/* Only allow .cookie-modal-close and decoratives to use position: absolute; */

/* =================== END OF CSS ======================= */