/*
 * Quotidea Design System
 * Componenti opt-in per blocchi Gutenberg e contenuti articolo.
 */

:root {
  --quotidea-pink: #F25AA6;
  --quotidea-purple: #8A38D6;
  --quotidea-text: #3A2C36;
  --quotidea-box: #FFFDFC;
  --quotidea-border: #F2B7DF;
  --quotidea-soft-pink: #FFF2F8;
  --quotidea-soft-lilac: #F8F1FF;
  --quotidea-warning-bg: #FFF8EC;
  --quotidea-warning-border: #F1D3A8;
  --quotidea-warning-text: #5F4932;
}

.quotidea-article {
  max-width: 760px;
  margin: 0 auto;
  color: var(--quotidea-text);
  font-size: 1.12rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.quotidea-article > * + * {
  margin-top: 1.35rem;
}

.quotidea-article a {
  color: var(--quotidea-purple);
  font-weight: 650;
  text-decoration-color: rgba(242, 90, 166, 0.35);
  text-underline-offset: 4px;
}

.quotidea-article a:hover,
.quotidea-article a:focus-visible {
  color: var(--quotidea-pink);
}

.quotidea-photo {
  text-align: center;
  margin: 40px auto;
  max-width: 100%;
}

.quotidea-photo img {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(58, 44, 54, 0.08);
}

.quotidea-photo figcaption {
  margin-top: 10px;
  color: #6f5a68;
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  line-height: 1.6;
}

.quotidea-card {
  max-width: 700px;
  margin: 35px auto;
  padding: 24px;
  color: var(--quotidea-text);
  background: var(--quotidea-box);
  border: 1px solid var(--quotidea-border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(138, 56, 214, 0.08);
}

.quotidea-card > *:first-child {
  margin-top: 0;
}

.quotidea-card > *:last-child {
  margin-bottom: 0;
}

.quotidea-card-title {
  margin: 0 0 14px;
  color: var(--quotidea-pink);
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 750;
}

.quotidea-divider-heart {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 24px auto 0;
  color: var(--quotidea-pink);
  line-height: 1;
}

.quotidea-divider-heart::before,
.quotidea-divider-heart::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--quotidea-pink), var(--quotidea-purple), transparent);
  opacity: 0.7;
}

.quotidea-divider-heart span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--quotidea-pink);
  font-size: 1rem;
}

.quotidea-shopping-list {
  position: relative;
  padding-bottom: 34px;
}

.quotidea-shopping-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  color: var(--quotidea-text);
  font-size: 1.02rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(242, 183, 223, 0.55);
  cursor: pointer;
}

.quotidea-shopping-list label:last-of-type {
  border-bottom: 0;
}

.quotidea-shopping-list input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 0.25em;
  flex: 0 0 auto;
  accent-color: var(--quotidea-purple);
  cursor: pointer;
}

.quotidea-shopping-list strong {
  color: var(--quotidea-text);
  font-weight: 750;
}

.quotidea-shopping-list::after {
  content: "❤";
  position: absolute;
  left: 50%;
  bottom: 11px;
  transform: translateX(-50%);
  padding: 0 10px;
  color: var(--quotidea-pink);
  background: var(--quotidea-box);
  font-size: 0.95rem;
  line-height: 1;
}

.quotidea-tip {
  background: linear-gradient(135deg, var(--quotidea-soft-pink), var(--quotidea-box) 52%, var(--quotidea-soft-lilac));
  border-color: rgba(242, 90, 166, 0.45);
}

.quotidea-warning {
  color: var(--quotidea-warning-text);
  background: linear-gradient(135deg, var(--quotidea-warning-bg), #FFFDFC);
  border-color: var(--quotidea-warning-border);
}

.quotidea-warning .quotidea-card-title {
  color: #9B6A25;
}

.quotidea-summary {
  background: linear-gradient(135deg, #FFFDFC, var(--quotidea-soft-lilac));
  border-color: rgba(138, 56, 214, 0.35);
}

.quotidea-summary ul,
.quotidea-summary ol {
  padding-left: 1.2rem;
}

.quotidea-summary li + li {
  margin-top: 0.45rem;
}

.quotidea-faq {
  max-width: 760px;
  margin: 38px auto;
}

.quotidea-faq .quotidea-card-title {
  margin-bottom: 18px;
}

.quotidea-faq details {
  padding: 18px 0;
  border-bottom: 1px solid rgba(242, 183, 223, 0.7);
}

.quotidea-faq details:first-of-type {
  border-top: 1px solid rgba(242, 183, 223, 0.7);
}

.quotidea-faq summary {
  color: var(--quotidea-text);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.45;
  cursor: pointer;
}

.quotidea-faq summary::marker {
  color: var(--quotidea-purple);
}

.quotidea-faq details > p {
  margin: 12px 0 0;
  color: rgba(58, 44, 54, 0.82);
  line-height: 1.75;
}

.quotidea-external-links {
  max-width: 700px;
  margin: 45px auto;
  padding: 24px;
  color: var(--quotidea-text);
  background: var(--quotidea-box);
  border: 1px solid var(--quotidea-border);
  border-radius: 14px;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 36px rgba(138, 56, 214, 0.07);
}

.quotidea-external-links h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--quotidea-pink);
  font-size: 1.45rem;
  line-height: 1.3;
}

.quotidea-external-links p {
  margin: 0 0 18px;
  color: var(--quotidea-text);
  line-height: 1.7;
}

.quotidea-external-links ul {
  margin: 0;
  padding-left: 1.15rem;
}

.quotidea-external-links li {
  padding: 5px 0;
  line-height: 1.65;
}

.quotidea-external-links li + li {
  margin-top: 8px;
}

.quotidea-external-links a {
  color: var(--quotidea-purple);
  font-weight: 600;
  text-decoration: none;
}

.quotidea-external-links a:hover,
.quotidea-external-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .quotidea-article {
    max-width: 100%;
    font-size: 1.04rem;
    line-height: 1.78;
  }

  .quotidea-photo {
    max-width: 100%;
    margin: 32px auto;
  }

  .quotidea-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .quotidea-card,
  .quotidea-faq,
  .quotidea-external-links {
    max-width: 100%;
    margin: 28px auto;
  }

  .quotidea-card,
  .quotidea-external-links {
    padding: 18px;
    border-radius: 12px;
  }

  .quotidea-external-links h2 {
    font-size: 1.25rem;
  }

  .quotidea-external-links ul {
    padding-left: 1rem;
  }

  .quotidea-card-title {
    font-size: 1.15rem;
  }

  .quotidea-shopping-list label {
    gap: 10px;
    font-size: 1rem;
  }
}
