*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #fff;
  color: #333;
}

/* =====================
   HEADER ZIBOO
   ===================== */

header {
  padding: 10px 0 0 0;   /* spazio sopra al logo */
  margin: 0;
  border-bottom: 1px solid #eee;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

.header-top {
  text-align: center;
  margin: 0;
  padding-top: 5px;
}

header .logo {
  max-height: 60px;
  height: auto;
  width: auto;
}

.header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  margin-top: 0.25rem;
}

.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: var(--menu-bg);
  position: relative;
}

/* Header delle pagine policy: solo lingua a destra */
.policy-header .header-bottom {
  justify-content: flex-end;
}

/* =====================
   HERO IMAGE
   ===================== */

.hero-image {
  width: 100vw;
  overflow: hidden;
  line-height: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================
   HERO SECTION
   ===================== */

.hero {
  background: #8e44ad;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-icon {
  height: 64px;
  width: auto;
}

.hero-text h1 {
  margin: 0;
}

.hero-text .meta {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

@media (max-width: 600px) {
  .hero-icon {
    height: 48px;
  }
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================
   BOTTONI
   ===================== */

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #8e44ad;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #f5f5f5;
}

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #8564BB;
  color: #8564BB;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #8564BB;
  color: white;
}

/* =====================
   SEZIONI
   ===================== */

.how-it-works,
.pricing,
.cta {
  padding: 3rem 1rem;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.step h3 {
  color: #8e44ad;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card .price {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #8e44ad;
}

.card ul {
  list-style: none;
  padding: 0;
}

.badge {
  display: inline-block;
  background: #e67e22;
  color: white;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-top: 1rem;
}

.highlight {
  border: 2px solid #8e44ad;
}

/* =====================
   FOOTER
   ===================== */

footer {
  background: #f9f9f9;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
  }
}

/* =====================
   MENU HAMBURGER
   ===================== */

:root {
  --menu-bg: #8564BB;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: var(--menu-bg);
  padding-top: 60px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.side-menu.open {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.side-menu li {
  padding: 15px 20px;
  text-align: left;
}

.side-menu li a {
  display: block;
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
}

/* =====================
   PAGINE LEGALI
   ===================== */

.legal-hero {
  background: #f9f9ff;
  padding: 40px 20px;
  margin-bottom: 30px;
}

.legal-hero .hero-text h1 {
  font-size: 2rem;
  color: #4c1d95;
}

.legal-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 30px;
  margin: 0 auto 40px auto;
  max-width: 900px;
}

.legal-card h2 {
  margin-top: 1.5em;
  color: #8564BB;
}

.legal-card p,
.legal-card ul {
  line-height: 1.6;
  margin-bottom: 1em;
  font-size: 1.05rem;
}

.legal-card ul {
  padding-left: 1.2em;
}

.legal-actions {
  text-align: center;
  margin-top: 2rem;
}
/* =====================
   SEZIONE PROTEZIONE (index_xx)
   ===================== */

.protection {
  background: #f9f9ff;
  padding: 60px 20px;
  text-align: center;
}

.protection h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4c1d95; /* viola Ziboo */
}

.protection p {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.protection .btn-primary {
  background: #6d28d9;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.protection .btn-primary:hover {
  background: #4c1d95;
}

/* Klaro banner in basso */
.klaro .cookie-notice {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  background: #f9f9ff;
  border-top: 2px solid #8564BB;
  padding: 15px 20px;
  font-size: 0.95rem;
  color: #333;
  z-index: 99999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.klaro .cookie-notice h1 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #4c1d95;
}

.klaro .cookie-notice p {
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.klaro .cookie-notice .cm-btn {
  padding: 8px 14px;
  margin-right: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.klaro .cookie-notice .cm-btn-accept {
  background: #8564BB;
  color: white;
}

.klaro .cookie-notice .cm-btn-accept:hover {
  background: #6d28d9;
}

.klaro .cookie-notice .cm-btn-decline {
  background: #eee;
  color: #333;
}

.klaro .cookie-notice .cm-btn-decline:hover {
  background: #ddd;
}

/* =====================
   MODALE KLARO
   ===================== */
.klaro .cm-modal {
  background: #fff !important;
  color: #1f2937 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.25) !important;
  max-width: 600px !important;
  font-family: 'Nunito', sans-serif;
  text-align: center; /* centratura globale */
  padding-top: 20px;
}

.klaro .cm-modal .cm-header {
  margin-bottom: 10px;
}

.klaro .cm-modal .cm-header img.mascotte {
  height: 56px;
  width: auto;
  margin-bottom: 8px;
}

.klaro .cm-modal .cm-header h1 {
  font-weight: 800;
  color: #6D28D9 !important;
  font-size: 10px;
  margin: 0;
}

.klaro .cm-modal .cm-description {
  color: #374151 !important;
  font-size: 15px;
  line-height: 1.5;
  margin: 15px 0 20px;
}

.klaro .cm-modal .cm-body {
  font-size: 14px;
  line-height: 1.5;
  text-align: left; /* testi e servizi a sinistra */
}

.klaro .cm-modal .cm-footer {
  text-align: right;
  margin-top: 15px;
}

.klaro .cm-modal .cm-btn {
  border-radius: 8px !important;
  padding: .6rem 1rem !important;
  font-weight: 700;
  margin-left: 8px;
}

.klaro .cm-modal .cm-btn-accept,
.klaro .cm-modal .cm-btn-accept-all {
  background: #8564BB !important;
  color: #fff !important;
  border: none !important;
}
.klaro .cm-modal .cm-btn-accept:hover,
.klaro .cm-modal .cm-btn-accept-all:hover {
  background: #6d28d9 !important;
}

.klaro .cm-modal .cm-btn-decline,
.klaro .cm-modal .cm-btn-cancel {
  background: #eee !important;
  color: #333 !important;
  border: none !important;
}
.klaro .cm-modal .cm-btn-decline:hover,
.klaro .cm-modal .cm-btn-cancel:hover {
  background: #ddd !important;
}

.lang-selector select {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  padding: 4px 28px 4px 34px; /* spazio per bandiera */
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 20px auto;
  cursor: pointer;
}

/* 🇬🇧 EN */
.lang-selector select[data-flag="en"] {
  background-image: url("assets/flags/en.svg");
}

/* 🇮🇹 IT */
.lang-selector select[data-flag="it"] {
  background-image: url("assets/flags/it.svg");
}

/* 🇪🇸 ES */
.lang-selector select[data-flag="es"] {
  background-image: url("assets/flags/es.svg");
}

/* 🇫🇷 FR */
.lang-selector select[data-flag="fr"] {
  background-image: url("assets/flags/fr.svg");
}

/* 🇩🇪 DE */
.lang-selector select[data-flag="de"] {
  background-image: url("assets/flags/de.svg");
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  left: 20px; /* spostato a sinistra per non coprire Klaro */
  z-index: 2000;
  background-color: #8564BB;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background-color: #6d28d9;
  transform: translateY(-3px);
}

#scrollTopBtn svg {
  width: 32px;
  height: 32px;
}

/* Mobile: banner compatto */
@media (max-width: 600px) {
  .klaro .cookie-notice {
    font-size: 0.85rem;
    padding: 10px 15px;
  }
  .klaro .cookie-notice h1 {
    font-size: 1rem;
  }
  .klaro .cookie-notice .cm-btn {
    display: block;
    width: 100%;
    margin: 6px 0;
    text-align: center;
  } 
}


