/*
Theme Name: Tiziana Spano
Theme URI: https://tizianaspano.blog
Author: Tiziana Spano
Description: Un tema caldo e personale — parole, storie e qualcosa di buono da mangiare.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tiziana-spano
*/

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&family=Nunito:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

/* ── Variabili colore ── */
:root {
  --viola:       #6B3A8A;
  --viola-medio: #8B5AA8;
  --viola-chiaro:#C4A0DC;
  --rosa-soft:   #F0E8F8;
  --rosa-medio:  #DFC8F0;
  --vinaccia:    #4A2060;
  --testo:       #2E1A40;
  --testo-muted: #8B6EA0;
  --bianco:      #FFFFFF;
  --sfondo:      #FAF5FE;
}

/* ── Reset base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--testo);
  background: var(--sfondo);
}

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

img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
.site-header {
  background: var(--bianco);
  border-bottom: 1px solid var(--rosa-medio);
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.site-header .deco {
  font-size: 16px;
  color: var(--viola-chiaro);
  letter-spacing: 10px;
  margin-bottom: 8px;
}

.site-title {
  font-family: 'Dancing Script', cursive;
  font-size: 42px;
  font-weight: 600;
  color: var(--viola);
  line-height: 1.1;
  margin-bottom: 4px;
}

.site-title a { color: inherit; }
.site-title a:hover { color: var(--vinaccia); }

.site-description {
  font-size: 13px;
  color: var(--testo-muted);
  font-style: italic;
  margin-bottom: 1.4rem;
}

/* ── Navigazione ── */
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.main-navigation ul li a {
  font-size: 13px;
  font-weight: 600;
  color: var(--viola);
  background: var(--rosa-soft);
  border: 1px solid var(--rosa-medio);
  border-radius: 20px;
  padding: 5px 18px;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  background: var(--viola);
  color: var(--bianco);
  border-color: var(--viola);
}

/* ── Divisore decorativo ── */
.deco-divider {
  text-align: center;
  color: var(--viola-chiaro);
  font-size: 18px;
  letter-spacing: 8px;
  margin: 1.5rem 0;
}

/* ── Layout principale ── */
.site-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .site-content { grid-template-columns: 1fr; }
}

/* ── Sezioni con titolo decorato ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 1.2rem;
}
.section-header .line { flex: 1; height: 1px; background: var(--rosa-medio); }
.section-header .dot { color: var(--viola-chiaro); font-size: 16px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--viola);
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
}

/* ── Card articolo ── */
.post-card {
  background: var(--bianco);
  border: 1px solid var(--rosa-medio);
  border-radius: 20px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(107,58,138,0.10); }

.post-card .post-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--viola-chiaro);
  margin-bottom: 6px;
}

.post-card .entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
}
.post-card .entry-title a { color: var(--vinaccia); }
.post-card .entry-title a:hover { color: var(--viola); }

.post-card .entry-summary {
  font-size: 14px;
  color: var(--testo-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.post-card .entry-meta {
  font-size: 12px;
  color: var(--viola-chiaro);
}

/* ── Pagina singola post ── */
.single-post-wrap {
  background: var(--bianco);
  border: 1px solid var(--rosa-medio);
  border-radius: 20px;
  padding: 2rem 2.5rem;
}

.single-post-wrap .entry-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--vinaccia);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.single-post-wrap .entry-meta {
  font-size: 13px;
  color: var(--viola-chiaro);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rosa-medio);
}

.entry-content p { margin-bottom: 1.2rem; }
.entry-content h2, .entry-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--viola);
  margin: 1.5rem 0 0.5rem;
}
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.entry-content blockquote {
  border-left: 3px solid var(--viola-chiaro);
  padding-left: 1rem;
  font-style: italic;
  color: var(--testo-muted);
  margin: 1.2rem 0;
}

/* ── Ricette: griglia categorie ── */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

.recipe-cat-card {
  background: var(--rosa-soft);
  border: 1px solid var(--rosa-medio);
  border-radius: 18px;
  padding: 1rem 0.8rem;
  text-align: center;
  transition: background 0.2s;
}
.recipe-cat-card:hover { background: var(--rosa-medio); }
.recipe-cat-card .cat-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--viola);
}

/* ── Sidebar ── */
.widget-area { }

.widget {
  background: var(--bianco);
  border: 1px solid var(--rosa-medio);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
}

.widget-title {
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  color: var(--viola);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rosa-medio);
}

.widget ul { list-style: none; }
.widget ul li {
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px solid var(--rosa-soft);
  color: var(--testo-muted);
}
.widget ul li a { color: var(--viola-medio); }
.widget ul li a:hover { color: var(--vinaccia); }

/* ── Il mio libro (widget) ── */
.libro-widget { text-align: center; }
.libro-cover {
  width: 100px;
  height: 140px;
  background: linear-gradient(160deg, var(--viola-medio), var(--vinaccia));
  border-radius: 8px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--rosa-medio);
}
.libro-cover span {
  font-family: 'Playfair Display', serif;
  font-size: 9px;
  color: var(--rosa-soft);
  text-align: center;
  line-height: 1.5;
  padding: 8px;
  font-style: italic;
}
.libro-widget .libro-titolo {
  font-size: 14px;
  font-weight: 600;
  color: var(--vinaccia);
  margin-bottom: 4px;
}
.libro-widget .libro-sottotitolo {
  font-size: 12px;
  color: var(--testo-muted);
  margin-bottom: 12px;
}
.btn-libro {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bianco);
  background: var(--viola);
  border-radius: 20px;
  padding: 8px 22px;
}
.btn-libro:hover { background: var(--vinaccia); color: var(--bianco); }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--rosa-medio);
  background: var(--bianco);
  margin-top: 2rem;
}
.site-footer .deco { color: var(--rosa-medio); font-size: 18px; letter-spacing: 10px; margin-bottom: 8px; }
.site-footer p { font-size: 12px; color: var(--testo-muted); }

/* ── Paginazione ── */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2rem 0;
}
.nav-links a, .nav-links span {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--rosa-medio);
  color: var(--viola);
  background: var(--bianco);
}
.nav-links a:hover { background: var(--viola); color: var(--bianco); border-color: var(--viola); }
.nav-links .current { background: var(--viola); color: var(--bianco); border-color: var(--viola); }

/* ── Commenti ── */
.comments-area {
  background: var(--bianco);
  border: 1px solid var(--rosa-medio);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
}
.comments-title {
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: var(--viola);
  margin-bottom: 1rem;
}
.comment-body {
  border-bottom: 1px solid var(--rosa-soft);
  padding: 1rem 0;
  font-size: 14px;
}
.comment-author { font-weight: 600; color: var(--viola-medio); font-size: 13px; }
.comment-meta { font-size: 12px; color: var(--viola-chiaro); margin-bottom: 6px; }

.comment-form label { font-size: 13px; color: var(--testo-muted); display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--rosa-medio);
  border-radius: 12px;
  padding: 8px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  background: var(--sfondo);
  color: var(--testo);
  margin-bottom: 12px;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--viola-chiaro);
}
.comment-form input[type="submit"] {
  background: var(--viola);
  color: var(--bianco);
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--vinaccia); }
