/* Funzioni clienti: login, newsletter e recensioni */
.client-auth-trigger,
.client-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  color: #092d18;
  background: #fff7e8;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.client-user-pill {
  gap: 8px;
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: none;
}
.client-user-pill strong { color: #fff7e8; }
.client-auth-trigger:hover,
.client-user-pill:hover { transform: translateY(-1px); }

.client-modal-backdrop,
.review-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 20, 10, .68);
  backdrop-filter: blur(10px);
}
.client-modal-backdrop.is-open,
.review-backdrop.is-open { display: flex; }
.client-modal,
.review-modal {
  width: min(520px, 100%);
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #fffdf7;
  color: #142116;
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
  border: 1px solid rgba(9,45,24,.10);
}
.client-modal::before,
.review-modal::before {
  content: "";
  display: block;
  height: 12px;
  background: linear-gradient(90deg, #092d18, #86b946, #c99b48);
}
.client-modal-inner,
.review-modal-inner { padding: clamp(24px, 4vw, 34px); }
.client-modal-close,
.review-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(9,45,24,.08);
  color: #092d18;
  font-size: 22px;
  font-weight: 900;
}
.client-modal h2,
.review-modal h2 {
  margin: 0 44px 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 6vw, 46px);
  line-height: .96;
  letter-spacing: -.04em;
  color: #092d18;
}
.client-modal p,
.review-modal p {
  margin: 0;
  color: #657066;
  line-height: 1.65;
}
.client-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(9,45,24,.07);
}
.client-tab {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: #092d18;
  font-weight: 900;
}
.client-tab.is-active {
  background: #092d18;
  color: white;
  box-shadow: 0 10px 24px rgba(9,45,24,.18);
}
.client-form { display: none; gap: 12px; }
.client-form.is-active { display: grid; }
.client-field { display: grid; gap: 7px; }
.client-field label,
.newsletter-card label {
  color: #092d18;
  font-size: 13px;
  font-weight: 900;
}
.client-field input,
.newsletter-card input,
.review-feedback textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(9,45,24,.15);
  border-radius: 16px;
  padding: 13px 15px;
  background: #fff;
  color: #142116;
  outline: 0;
}
.client-field input:focus,
.newsletter-card input:focus,
.review-feedback textarea:focus {
  border-color: rgba(134,185,70,.75);
  box-shadow: 0 0 0 4px rgba(134,185,70,.14);
}
.client-submit,
.newsletter-submit,
.review-submit {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #86b946, #eef7a6);
  color: #092511;
  font-weight: 950;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.client-logout {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #092d18;
  color: white;
  font-weight: 900;
  padding: 0 18px;
  margin-top: 14px;
}
.client-message,
.newsletter-message,
.review-message {
  min-height: 22px;
  margin-top: 10px;
  color: #124326;
  font-weight: 800;
  line-height: 1.4;
}
.client-message.error,
.newsletter-message.error,
.review-message.error { color: #a12f2f; }
.client-profile-box {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(9,45,24,.06);
}
.client-profile-box.is-visible { display: block; }
.client-profile-box strong { color: #092d18; }
.client-small-note { font-size: 13px; color: #657066; margin-top: 10px !important; }

.newsletter-section {
  padding: 0 clamp(18px, 4vw, 70px) clamp(68px, 7vw, 96px);
  background: transparent;
}
.newsletter-card {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(310px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 10% 10%, rgba(134,185,70,.25), transparent 18rem),
    linear-gradient(135deg, #092d18, #124326);
  color: white;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  overflow: hidden;
}
.newsletter-card h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -.04em;
  line-height: .96;
}
.newsletter-card p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.7; }
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.newsletter-form .full { grid-column: 1 / -1; }
.newsletter-card label { color: rgba(255,255,255,.86); }
.newsletter-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.45;
}
.newsletter-privacy input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: #86b946; }
.newsletter-message { color: #e8d0a3; }
.newsletter-message.error { color: #ffd0d0; }

.review-floating {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 9998;
  display: none;
  width: min(390px, calc(100vw - 28px));
  border-radius: 28px;
  background: #fffdf7;
  color: #142116;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  border: 1px solid rgba(9,45,24,.12);
  overflow: hidden;
}
.review-floating.is-visible { display: block; animation: reviewIn .35s ease both; }
@keyframes reviewIn { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.review-floating-top {
  padding: 16px 18px;
  background: #092d18;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.review-floating-top strong { font-size: 15px; }
.review-floating-close {
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.12);
  color: white;
  cursor: pointer;
  font-size: 18px;
}
.review-floating-body { padding: 18px; }
.review-floating-body p { margin: 0 0 14px; color: #657066; line-height: 1.55; }
.review-stars { display: flex; gap: 7px; margin: 12px 0 16px; }
.review-star {
  border: 0;
  background: rgba(201,155,72,.12);
  color: #c99b48;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 25px;
  cursor: pointer;
  line-height: 1;
}
.review-star.is-active,
.review-star:hover { background: #c99b48; color: white; }
.review-feedback { display: none; gap: 10px; margin-top: 12px; }
.review-feedback.is-visible { display: grid; }
.review-feedback textarea { min-height: 96px; resize: vertical; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-later {
  min-height: 46px;
  border: 1px solid rgba(9,45,24,.12);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(9,45,24,.06);
  color: #092d18;
  font-weight: 900;
  padding: 0 16px;
}

@media (max-width: 860px) {
  .newsletter-card { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .client-auth-trigger,
  .client-user-pill { width: 100%; margin-top: 6px; }
}


/* Recensioni interne sul sito */
.site-reviews-section {
  padding: clamp(64px, 7vw, 110px) clamp(18px, 4vw, 70px);
  background: linear-gradient(180deg, #fffdf7 0%, #f7eddc 100%);
  color: #142116;
}
.site-reviews-inner { max-width: 1180px; margin: 0 auto; }
.site-reviews-heading { max-width: 760px; margin-bottom: 28px; }
.review-tag {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(9,45,24,.08);
  color: #092d18;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  font-weight: 950;
}
.site-reviews-heading h2 {
  margin: 16px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 76px);
  line-height: .95;
  letter-spacing: -.045em;
  color: #092d18;
}
.site-reviews-heading p { margin: 0; color: #657066; line-height: 1.7; font-size: 17px; }
.site-reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 34px rgba(9,45,24,.08);
  margin-bottom: 20px;
}
.site-reviews-summary strong { color: #c99b48; font-size: 24px; }
.site-reviews-summary span { color: #657066; font-weight: 800; }
.site-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.site-review-card {
  border: 1px solid rgba(9,45,24,.10);
  border-radius: 26px;
  padding: 22px;
  background: white;
  box-shadow: 0 16px 42px rgba(9,45,24,.08);
}
.site-review-stars { color: #c99b48; font-size: 22px; letter-spacing: 2px; margin-bottom: 14px; }
.site-review-card p { margin: 0; color: #314033; line-height: 1.65; }
.site-review-card footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(9,45,24,.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #657066;
}
.site-review-card footer strong { color: #092d18; }
.site-review-open {
  margin-top: 24px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #092d18;
  color: white;
  font-weight: 950;
  cursor: pointer;
}
.review-feedback input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(9,45,24,.14);
  border-radius: 16px;
  padding: 12px 14px;
  background: white;
  outline: 0;
}
.review-feedback input:focus { border-color: #86b946; box-shadow: 0 0 0 4px rgba(134,185,70,.14); }

@media (max-width: 900px) {
  .site-reviews-grid { grid-template-columns: 1fr; }
  .site-review-card footer { flex-direction: column; }
}
@media (max-width: 560px) {
  .review-floating { right: 10px; bottom: 10px; width: calc(100vw - 20px); border-radius: 22px; }
  .review-stars { justify-content: space-between; }
  .review-star { width: 40px; height: 40px; }
}


.client-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0;
  color: rgba(9,45,24,.72);
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 650;
}
.client-privacy input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #86b946;
}
