
/*
Theme Name: Burani Child
Theme URI: https://example.com/burani-child
Author: BURANI
Author URI: https://example.com
Description: Child theme of Twenty Twenty-Four with dark mode, pattern and visible global style tweaks.
Template: twentytwentyfour
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: burani
*/

/* Fallback CSS (block theme styles come from theme.json) */
.burani-dark-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 9999px;
  background: rgba(0,0,0,.06);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,.08);
  cursor: pointer;
  user-select: none;
  font: inherit;
}
.burani-dark-toggle svg { width: 18px; height: 18px; }

html.burani-dark, body.burani-dark { color-scheme: dark; }
body.burani-dark { background-color: #0b0b0c !important; }
body.burani-dark img { opacity: .95; }

.burani-icon-sun { display: none; }
.burani-dark .burani-icon-sun { display: inline; }
.burani-dark .burani-icon-moon { display: none; }

/* --- Stili per i box della pagina Attività --- */
.attivita-boxes {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 40px;
}
.attivita-box {
  background: #f6faef;
  border-radius: 16px;
  padding: 30px 30px 18px 30px;
  box-shadow: 0 3px 16px rgba(80,160,80,0.11);
  text-align: center;
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.attivita-box:hover {
  box-shadow: 0 8px 28px rgba(110,200,110,0.22);
}
.attivita-box a {
  display: block;
  font-size: 2rem;
  color: #398d37;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.attivita-box a:hover { color: #23531d; }
.attivita-contatore {
  font-size: 1.2rem;
  color: #145118;
  margin-top: 5px;
  margin-bottom: 6px;
}

/* --- Stili per i box della pagina Attività --- */
.attivita-boxes {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 40px;
}
.attivita-box {
  background: #f6faef;
  border-radius: 16px;
  padding: 30px 30px 18px 30px;
  box-shadow: 0 3px 16px rgba(80,160,80,0.11);
  text-align: center;
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.attivita-box:hover {
  box-shadow: 0 8px 28px rgba(110,200,110,0.22);
}
.attivita-box a {
  display: block;
  font-size: 2rem;
  color: #398d37;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.attivita-box a:hover { color: #23531d; }
.attivita-contatore {
  font-size: 1.2rem;
  color: #145118;
  margin-top: 5px;
  margin-bottom: 6px;
}

/* --- Stili per le card negli archivi (griglia card stile esempio) --- */
.archivio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin: 40px;
}
.document-card {
  background: #eaf5e8;
  border-radius: 18px;
  border: 1px solid #c9e6c2;
  box-shadow: 0 2px 32px rgba(110,180,110,0.11);
  padding: 28px 22px 24px;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.document-card h2 {
  font-size: 1.15rem;
  color: #27692c;
  margin-bottom: 10px;
}
.doc-intro {
  color: #2c462b;
  margin-bottom: 16px;
  font-size: 1.08rem;
}
.doc-download {
  background: #4ea43b;
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 11px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.2s;
  border: none;
  box-shadow: 0 3px 14px rgba(77,172,59,0.09);
}
.doc-download:hover {
  background: #398d37;
}

.attivita-contatore {
  display: inline-block;
  background: #e2f6d6;
  color: #398d37;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 8px 22px;
  border-radius: 32px;
  margin-top: 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(65,175,55,0.08);
  letter-spacing: 0.02em;
  border: 2px solid #b5e6b0;
  transition: background 0.18s, border 0.18s;
}
.attivita-contatore:hover {
  background: #cef0bd;
  border-color: #79d96a;
}
.attivita-boxes {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.attivita-box {
  background: #f6faef;
  border-radius: 16px;
  padding: 30px 30px 18px 30px;
  box-shadow: 0 3px 16px rgba(80,160,80,0.11);
  text-align: center;
  min-width: 320px;     /* larghezza minima sufficiente per titoli lunghi */
  max-width: 340px;
  flex: 1 1 0;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.attivita-box a {
  font-size: 2rem;
  color: #398d37;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.2s;
  line-height: 1.15;
  word-break: break-word;
}

.attivita-box a:hover { color: #23531d; }

.attivita-contatore {
  display: inline-block;
  background: #e2f6d6;
  color: #398d37;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 8px 22px;
  border-radius: 32px;
  margin-top: 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(65,175,55,0.08);
  letter-spacing: 0.02em;
  border: 2px solid #b5e6b0;
  transition: background 0.18s, border 0.18s;
}
.attivita-contatore:hover {
  background: #cef0bd;
  border-color: #79d96a;
}
.document-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 15px;
}

.archive-description {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #4A6D36;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.document-card {
    background: #ECF9EC;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 3px 12px rgba(160,200,120,0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.doc-intro {
    margin: 18px 0;
    color: #1B4226;
}

.doc-download {
    background: #4BA937;
    color: #fff;
    border-radius: 20px;
    padding: 13px 0;
    text-align: center;
    display: block;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
}
@media (max-width: 900px) {
    .document-grid {
        grid-template-columns: 1fr;
    }