/* ===================================
   SMART LIFE - Sistema Chiaro
   Design professionale minimal
=================================== */

/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VARIABILI COLORE */
:root {
  --color-bg-page: #f5f5f5;
  --color-bg-box: #ffffff;
  --color-header-bg: #2b2d32;
  --color-header-text: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #757575;
  --color-border: #e0e0e0;
  --color-border-left: #c0c0c0;
  --color-link: #1a1a1a;
  --color-link-hover: #4a4a4a;
}

/* BASE */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  margin: 0;
  padding: 0;
}

/* CONTAINER */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   HEADER SCURO
=================================== */
.site-header {
  background-color: var(--color-header-bg);
  color: var(--color-header-text);
  padding: 60px 0 56px;
  margin-bottom: 48px;
}

.site-header h1 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.site-header .subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: #d0d0d0;
  font-weight: 400;
  max-width: 820px;
}

/* ===================================
   MAIN CONTENT
=================================== */
.main-content {
  padding-bottom: 60px;
}

/* BOX CONTENUTO */
.content-box {
  background-color: var(--color-bg-box);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* TITOLI SEZIONI */
.content-box h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.content-box h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: 0;
}

/* PARAGRAFI */
.content-box p {
  margin-bottom: 16px;
  color: var(--color-text-primary);
  text-align: justify;
}

.content-box p:last-child {
  margin-bottom: 0;
}

/* LISTE */
.content-box ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.content-box li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.7;
  border-left: 2px solid var(--color-border-left);
  padding-left: 20px;
  margin-left: 0;
}

.content-box li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 100%;
}


/* ===================================
   PRICING GRID + BUTTONS (3 colonne)
=================================== */

.pricing-grid {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pricing-row:first-child {
  padding-top: 18px;
}

.pricing-row {
  transition: background-color 0.15s ease;
}

.pricing-row:hover {
  background-color: #fafafa;
}


.pricing-row {
  display: grid;
  grid-template-columns: 1fr 90px 140px; /* nome | prezzo | pulsante */
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-row:last-child {
  border-bottom: none;
}

.product-name {
  font-size: 16px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.product-price {
  text-align: right;               /* prezzi allineati a destra */
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.product-cta {
  display: flex;
  justify-content: flex-end;       /* pulsanti allineati a destra */
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  background: #2b2d32;             /* grigio scuro */
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid #2b2d32;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.buy-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.buy-btn {
  min-width: 120px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  letter-spacing: 0.3px;
}

.buy-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}



/* ===================================
   FOOTER
=================================== */
.site-footer {
  background-color: var(--color-bg-box);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer .legal {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

/* LINK */
a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: none;
}

/* ===================================
   ACCORDION ESPANDIBILI
=================================== */

/* Header dell'accordion (parte cliccabile) */
.accordion-header {
  cursor: pointer;
  padding: 20px 24px;
  background-color: #f8f8f8;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background-color: #f0f0f0;
}

.accordion-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Icona freccia */
.accordion-icon {
  font-size: 20px;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
  font-weight: 300;
  margin-left: 12px;
}

/* Quando è aperto, ruota la freccia */
.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

/* Contenuto dell'accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 40px;
  background-color: var(--color-bg-box);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* Quando è aperto */
.accordion-content.active {
  max-height: 5000px; /* Valore alto per contenere tutto il contenuto */
  padding: 30px 40px 40px 40px;
  margin-bottom: 24px;
}

/* Box contenuto modificato per accordion */
.content-box.accordion-item {
  padding: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 16px;
}


/* ===================================
   RESPONSIVE
=================================== */

/* Tablet */
@media (max-width: 768px) {
  .site-header {
    padding: 48px 0 44px;
    margin-bottom: 32px;
  }

  .site-header h1 {
    font-size: 28px;
  }

  .site-header .subtitle {
    font-size: 17px;
  }

  .content-box {
    padding: 32px 24px;
  }

  .content-box h2 {
    font-size: 24px;
  }

  .content-box h3 {
    font-size: 17px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: 36px 0 32px;
    margin-bottom: 24px;
  }

  .site-header h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .site-header .subtitle {
    font-size: 16px;
  }

  .content-box {
    padding: 24px 20px;
    margin-bottom: 20px;
  }

  .content-box h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .content-box h3 {
    font-size: 16px;
    margin-top: 24px;
  }

  .content-box li {
    padding-left: 16px;
  }

  .price-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .price-value {
    font-size: 18px;
  }
}