/* ==== CSS RESET & NORMALIZE ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #FFFFFF;
  color: #1A2127;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 8px;
}
a {
  color: #176D7A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #CFAF36;
  text-decoration: underline;
}
button,
.cta-btn {
  font: inherit;
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
}

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

/* ====== CSS VARIABLES ====== */
:root {
  --color-primary: #145E68;
  --color-primary-light: #176D7A;
  --color-secondary: #FFFFFF;
  --color-bg-section: #F7FAFA;
  --color-accent: #FFD642;
  --color-gold: #CFAF36;
  --color-text: #1A2127;
  --color-text-muted: #5A6268;
  --color-border: #ECECF1;
  --color-shadow: rgba(20, 94, 104, 0.06);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius: 16px;
}

/* ====== LUXURY PREMIUM BASE ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-primary-light);
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p {
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: 16px;
}
strong, b {
  color: var(--color-primary-light);
  font-weight: 600;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--radius);
}

/* === LUXURY GOLD ACCENTS === */
hr, .divider {
  border: none;
  border-top: 2px solid var(--color-gold);
  width: 60px;
  margin: 32px auto;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
header {
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px var(--color-shadow);
  position: sticky;
  z-index: 30;
  top: 0;
  padding-top: 0.5rem;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.5rem 0;
}
header a img {
  height: 40px;
  margin-right: 12px;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.01rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.main-nav a:hover, .main-nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 32px;
  padding: 10px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.16s;
  position: relative;
  overflow: hidden;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(20, 94, 104, 0.14);
  transform: translateY(-2px) scale(1.04);
}

/* ==== MOBILE MENU (BURGER) ==== */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: var(--color-primary);
  color: var(--color-secondary);
  border-radius: 50%;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 33;
  margin-left: 12px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 94, 104, 0.98);
  color: var(--color-secondary);
  z-index: 100;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--color-accent);
  font-size: 2rem;
  border: none;
  margin-bottom: 32px;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: var(--color-gold);
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 28px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--color-secondary);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color 0.14s;
  letter-spacing: 0.04em;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}
/* End mobile menu */

/* ===== HERO ===== */
.hero {
  background: linear-gradient(90deg, var(--color-secondary) 60%, var(--color-bg-section) 100%);
  padding: 38px 0 48px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 32px var(--color-shadow);
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;
}
.hero h1 {
  color: var(--color-primary-light);
  font-size: 2.4rem;
  max-width: 710px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p {
  color: var(--color-text-muted);
  font-size: 1.18rem;
  margin-bottom: 24px;
  max-width: 650px;
}

/* ===== FEATURE SECTION ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 28px 22px 18px 22px;
  border: 1px solid #EFECEC;
  min-width: 220px;
  min-height: 210px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, border-color 0.2s;  
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 2px #ecd97077);
}
.feature-item h3 {
  color: var(--color-gold);
  font-size: 1.18rem;
  font-weight: 700;
}
.feature-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 24px rgba(20, 94, 104, 0.13);
  border-color: var(--color-gold);
}

/* ===== CARDS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 30px 22px 20px 22px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  position: relative;
  border: 1px solid #E8EFEF;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 24px #00000015;
  border-color: var(--color-gold);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: linear-gradient(90deg, var(--color-primary-light) 52%, var(--color-gold) 100%);
  color: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(20,94,104,0.09);
  padding: 44px 30px 34px 30px;
}
.cta-banner h2 {
  color: var(--color-secondary);
  font-size: 2rem;
  margin-bottom: 0;
}
.cta-banner p {
  color: #f5f5f5;
  margin-bottom: 12px;
}

/* ======= SECTIONS SPACING ======= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px #b18b0030;
  border-left: 4px solid var(--color-gold);
  min-width: 240px;
  max-width: 340px;
  flex: 1 1 260px;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}
.testimonial-card p {
  color: var(--color-primary-light);
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 3px;
}
.review-author {
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
}

/* ===== FAQ PAGE ===== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 30px;
}
.faq-item {
  background: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px #145e6830;
  padding: 22px 22px 16px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.faq-item h2 {
  margin-bottom: 5px;
  color: var(--color-primary-light);
  font-size: 1.14rem;
}
.faq-item p {
  color: var(--color-text-muted);
  font-size: 0.99rem;
}

/* ==== COMPARISON TABLE (Detergenti) ==== */
.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 22px 0;
}
.comparison-table table {
  border-collapse: collapse;
  min-width: 520px;
  width: 100%;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px #cfae3622;
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  text-align: left;
  padding: 16px 14px;
  font-size: 1rem;
}
.comparison-table th {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.comparison-table td {
  border-bottom: 1px solid var(--color-border);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ===== INFOPRAPHIC (CONSIGLI UTILI) ===== */
.infographic {
  background: var(--color-bg-section);
  padding: 22px 18px 18px 18px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px #ffd64211;
  margin-top: 16px;
  max-width: 500px;
}
.infographic h3 {
  color: var(--color-gold);
  font-size: 1rem;
}
.infographic ol {
  margin-left: 1.25rem;
  padding-left: 0.7rem;
}
.infographic li {
  margin-bottom: 10px;
}

/* ===== FAQ TEASER BANNER ===== */
.faq_teaser {
  background: var(--color-bg-section);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px #176d7a12;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-secondary);
  box-shadow: 0 -2px 10px #145e6811;
  padding: 26px 0 10px 0;
  border-top: 2px solid #f5e4b9;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-primary-light);
  font-family: var(--font-body);
  font-size: 1rem;
}
.footer-contact {
  font-size: 0.96rem;
  color: var(--color-text-muted);
}
.copyright {
  border-top: 1px solid #e1e2e6;
  padding-top: 14px;
  text-align: center;
  color: #A8B4B4;
  font-size: 0.92rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg-section);
  color: var(--color-text);
  box-shadow: 0 -4px 16px #FFD64235;
  border-top: 2px solid var(--color-gold);
  z-index: 250;
  padding: 20px 20px 16px 20px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.3s;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-direction: row;
  margin-left: 14px;
}
.cookie-btn, .cookie-accept, .cookie-decline, .cookie-prefs {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 8px 24px;
  border-radius: 24px;
  font-size: 1rem;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 4px;
  transition: background 0.2s, color 0.2s, transform 0.16s;
  box-shadow: 0 2px 8px #FFD64244;
}
.cookie-accept:hover, .cookie-prefs:hover, .cookie-btn:hover {
  background: var(--color-gold);
  transform: translateY(-2px) scale(1.04);
}
.cookie-decline {
  background: var(--color-secondary);
  color: var(--color-primary-light);
  border: 1.5px solid var(--color-primary-light);
  margin-right: 0;
}
.cookie-decline:hover {
  background: #e7eced;
  color: var(--color-gold);
  border-color: #CFAF36;
}

/* ===== COOKIE MODAL ===== */
#cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-secondary);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: 0 12px 64px #145e6830;
  z-index: 300;
  padding: 42px 26px 28px 26px;
  width: 95%;
  max-width: 420px;
  display: none;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.25s;
}
#cookie-modal.open {
  display: flex;
}
#cookie-modal h2 {
  font-size: 1.22rem;
  color: var(--color-primary);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--color-bg-section);
  padding: 11px 10px;
  border-radius: 10px;
}
.cookie-toggle {
  margin-left: auto;
  min-width: 36px;
}
input[type='checkbox'].cookie-toggle {
  width: 24px;
  height: 24px;
  accent-color: var(--color-gold);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-primary-light);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: var(--color-gold); }

/* ======== GLOBAL SPACING & ALIGN ======== */

section,
main > section {
  margin-bottom: 56px;
}

/* ======================
   FLEX RESPONSIVE RULES
   ====================== */
@media (max-width: 1180px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
}
@media (max-width: 960px) {
  .footer-flex,
  .feature-grid,
  .testimonial-list, .card-container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-flex {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.47rem;
    margin-bottom: 12px;
  }
  .hero .container {
    gap: 18px;
  }
  .feature-grid, .content-grid, .testimonial-list, .card-container, .footer-flex {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  .cta-banner {
    padding: 28px 10px 24px 10px;
    border-radius: 14px;
  }
  section, .section {
    margin-bottom: 38px;
    padding: 20px 6px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .content-wrapper {
    padding: 0 4px;
  }
}
@media (max-width: 540px) {
  .cookie-btn, .cookie-accept, .cookie-decline, .cookie-prefs {
    font-size: 0.97rem;
    padding: 7px 10px;
  }
  #cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 18px 8px 12px 8px;
  }
  #cookie-modal {
    padding: 30px 6px 18px 8px;
  }
}

/* ======= UTILS ======= */
.link-cta {
  color: var(--color-primary-light);
  font-weight: bold;
  text-decoration: underline;
  padding: 2px 0;
  border-bottom: 2px solid var(--color-gold);
  transition: color 0.18s, border-color 0.18s;
}
.link-cta:hover, .link-cta:focus {
  color: var(--color-gold);
  border-color: var(--color-primary-light);
}

/* Micro-interactions */
.card, .feature-item, .testimonial-card, .faq-item {
  transition: box-shadow 0.13s, border-color 0.15s, transform 0.17s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .faq-item:hover {
  box-shadow: 0 10px 28px rgba(20, 94, 104, 0.12);
  transform: translateY(-3px) scale(1.015);
}

.cta-btn:active, .cookie-btn:active, .cookie-accept:active, .cookie-decline:active, .cookie-prefs:active {
  transform: scale(0.97);
}

/* ====== Misc ====== */
::-webkit-scrollbar {
  width: 9px;
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #f7d76588;
  border-radius: 7px;
}

::-webkit-input-placeholder { color: #838a93; }
::-moz-placeholder { color: #838a93; }
:-ms-input-placeholder { color: #838a93; }
::placeholder { color: #838a93; }

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