/**
 * e-brei.net - CSS Principale
 * Palette: Navy #1e3a5f, Beige #f5f1e8, Gold #d4af37
 * Font: Cormorant Garamond (titoli), Open Sans (corpo)
 *
 * NOTA: Header, Navigation, Footer, Breadcrumb e Page Hero
 * sono in intestazione.css
 *
 * INDICE:
 * 1. Reset & Base
 * 2. Utility Classes (Classi riutilizzabili)
 * 3. Layout & Container
 * 4. Carousel
 * 5. Cards
 * 6. Categories
 * 7. Sidebar Section
 * 8. Featured Grid
 * 9. Search Page
 * 10. Error Page (404)
 * 11. Section Pages
 * 12. HTML Content & Immagini
 * 13. Pagina Feste e Ricorrenze
 * 14. Orari Shabbat
 * 15. Calendario Ebraico
 * 16. FAQ Accordion
 * 17. Mappa del Sito
 * 18. Pagina Turismo e Comunità
 * 19. Blog (Categorie, Articoli, Navigazione)
 * 20. RESPONSIVE (ordinato per breakpoint decrescente)
 */

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth; /* Fondamentale per lo scorrimento fluido */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f1e8;
    color: #2c2c2c;
    line-height: 1.6;
}

a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4af37;
}

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

/* ==========================================================================
   2. Utility Classes (Classi riutilizzabili)
   ========================================================================== */

/* --- Empty Message (messaggi vuoto/nessun risultato) --- */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
    background: #f8f5f0;
    border-radius: 12px;
}

/* --- Gold Border Left (modificatore) --- */
.gold-border-left {
    border-left: 4px solid #d4af37;
}

/* --- Button Base & Variants --- */
.btn,
.btn-primary,
.btn-secondary,
.btn-gold {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1e3a5f;
    color: white;
}

.btn-primary:hover {
    background: #d4af37;
    color: #1e3a5f;
}

.btn-secondary {
    background: transparent;
    color: #1e3a5f;
    border: 2px solid #1e3a5f;
}

.btn-secondary:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
}

.btn-gold {
    background: #d4af37;
    color: #1e3a5f;
}

.btn-gold:hover {
    background: #e5c045;
    color: #1e3a5f;
}

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --- Inline List (lista orizzontale) --- */
.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list-inline li {
    position: relative;
    padding-left: 15px;
}

.list-inline li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.list-inline a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.list-inline a:hover {
    color: #d4af37;
}

/* Variante senza frecce */
.list-inline.no-arrows li {
    padding-left: 0;
}

.list-inline.no-arrows li::before {
    display: none;
}

/* Responsive: verticale su mobile */
@media (max-width: 768px) {
    .list-inline {
        flex-direction: column;
        gap: 8px;
    }
}

/* Modificatore: sempre orizzontale (ignora responsive) */
.list-inline.always-inline {
    flex-direction: row;
}

/* --- Title Sizes (Cormorant Garamond) --- */
.title-sm {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
}

.title-md {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
}

.title-lg {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
}

/* ==========================================================================

/* NOTA: Gli stili di Header, Navigation, Footer, Breadcrumb e Page Hero
   sono stati spostati in intestazione.css */

/* ==========================================================================
   5. Layout & Container
   ========================================================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #1e3a5f;
    margin: 60px 0 40px;
}

/* ==========================================================================
   7. Carousel
   ========================================================================== */

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.carousel-track .card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.carousel-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #1e3a5f;
    color: #f5f1e8;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: #d4af37;
    color: #1e3a5f;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4c5a9;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #d4af37;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: #1e3a5f;
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.card-text {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: calc(1.7em * 4);
}

.card-link {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #d4af37;
    gap: 8px;
}

.card-link:after {
    content: ' →';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.card-link:hover:after {
    margin-left: 10px;
}

.placeholder-img {
    background: linear-gradient(135deg, #e8dcc4 0%, #d4c5a9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    font-size: 48px;
}

/* --- Card Carousel (varianti per card dinamiche homepage) --- */

/* Layout flex per allineare link in fondo */
.card-content--flex {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.card-content--flex .card-text {
    flex: 1;
}

/* Icona nella card (SVG centrata) */
.card-icon {
    width: 100px;
    height: 100px;
}

/* Emoji fallback quando non c'è icona SVG */
.card-icon--emoji {
    font-size: 48px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge generici */
.card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 8px;
}

.card-badge--primary {
    background: #1e3a5f;
    color: #fff;
}

.card-badge--secondary {
    background: #f5f0e6;
    color: #1e3a5f;
    font-weight: 400;
    padding: 4px 12px;
}

/* Disclaimer in fondo alla card */
.card-disclaimer {
    font-size: 12px;
    color: #888;
    margin-top: 1em;
    text-align: center;
}

.card-disclaimer a {
    color: #888;
}

/* Greeting Shabbat */
.card-greeting {
    font-style: italic;
    color: #d4af37;
    text-align: center;
    margin: -10px 0 10px 0;
}

/* Titolo con testo ebraico affiancato */
.card-title--split {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.card-hebrew {
    font-size: 18px;
    color: #888;
    font-family: serif;
    direction: rtl;
}

/* Lista prossime feste */
.card-upcoming {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.card-upcoming-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 5px;
}

/* ==========================================================================
   9. Categories
   ========================================================================== */

.category-grid {
    /* Extends .grid-3 with custom gap */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-item {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-icon {
    font-size: 72px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #1e3a5f;
}

.category-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

/* Icona SVG nelle category-item */
.category-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon img {
    transform: scale(1.1);
}

/* Conteggio documenti nelle card hub */
.category-item .category-count {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e8dcc4;
}

/* Sezione pubblicazioni (riusa stili festival) */
.pubblicazioni-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8dcc4;
    scroll-margin-top: 100px;
}

.pubblicazioni-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Indice sezioni pubblicazioni */
.pubblicazioni-index {
    margin-bottom: 30px;
}

.pubblicazioni-index .index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.pubblicazioni-index .index-list li {
    position: relative;
    padding-left: 15px;
}

.pubblicazioni-index .index-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.pubblicazioni-index .index-list a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pubblicazioni-index .index-list a:hover {
    color: #d4af37;
}

@media (max-width: 768px) {
    .pubblicazioni-index .index-list {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   10. Sidebar Section
   ========================================================================== */

.sidebar-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: start;
}

.sidebar {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: #1e3a5f;
    margin-bottom: 25px;
}

.sidebar-item {
    padding: 15px 0;
    border-bottom: 1px solid #e8dcc4;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item h4 {
    font-size: 16px;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.sidebar-item p {
    font-size: 14px;
    color: #888;
}

.sidebar-item a {
    text-decoration: none;
    display: block;
}

.sidebar-item a:hover h4 {
    color: #d4af37;
}

/* ==========================================================================
/* ==========================================================================
   12. Featured Grid
   ========================================================================== */

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

/* ==========================================================================
   13. Search Page
   ========================================================================== */

.search-page-form {
    max-width: 700px;
    margin: 40px auto 50px;
}

.search-input-wrapper {
    display: flex;
    gap: 15px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-page-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 50px;
    background: transparent;
}

.search-page-input:focus {
    outline: none;
}

.search-page-input::placeholder {
    color: #999;
}

.search-page-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-page-btn:hover {
    background: #d4af37;
    color: #1e3a5f;
}

/* --- Opzioni ricerca (checkbox estesa) --- */
.search-options {
    margin-top: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #444;
}

.search-option-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.search-option-label .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #1e3a5f;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-option-label input[type="checkbox"]:checked + .checkmark {
    background: #1e3a5f;
}

.search-option-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.search-option-label .option-text {
    font-weight: 600;
    color: #1e3a5f;
}

.search-option-label .option-hint {
    color: #888;
    font-size: 13px;
}

/* --- Risultati --- */
.search-results {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.search-summary {
    margin-bottom: 30px;
}

.search-results-count {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8dcc4;
}

.search-results-count strong {
    color: #1e3a5f;
}

.search-time {
    color: #999;
    font-size: 13px;
    margin-left: 8px;
}

.search-no-match small {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.search-rate-limited {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 30px;
    text-align: center;
}

.search-rate-limited p:first-child {
    color: #856404;
    font-size: 18px;
    margin-bottom: 8px;
}

.search-rate-limited p:last-child {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.search-mode-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #d4af37;
    color: #1e3a5f;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Navigazione rapida risultati --- */
.search-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid #e8dcc4;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-nav-link:hover {
    border-color: #d4af37;
    background: #fffdf8;
    transform: translateY(-2px);
}

.search-nav-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1e3a5f;
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

.search-nav-link:hover .search-nav-count {
    background: #d4af37;
    color: #1e3a5f;
}

.search-nav-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
}

/* --- Sezioni risultati --- */
.search-section {
    margin-bottom: 40px;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8dcc4;
}

.search-section-title svg {
    color: #d4af37;
    flex-shrink: 0;
}

.search-section-count {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #888;
    font-size: 16px;
}

/* --- Griglia documenti in ricerca --- */
.search-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.search-documents-grid .document-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.search-documents-grid .document-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.search-documents-grid .document-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.search-documents-grid .document-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-documents-grid .document-content {
    flex: 1;
    min-width: 0;
}

.search-documents-grid .document-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.search-documents-grid .document-card:hover .document-title {
    color: #d4af37;
}

.search-documents-grid .document-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-documents-grid .document-parent {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #1e3a5f;
    opacity: 0.7;
}

.search-documents-grid .document-parent svg {
    flex-shrink: 0;
}

/* --- Sezione pagine (lista) --- */
.search-pages-section .search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    margin-bottom: 0;
    border-bottom: 1px solid #e8dcc4;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    display: block;
    background: white;
    padding: 25px 30px;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.search-result-item:first-child a {
    border-radius: 12px 12px 0 0;
}

.search-result-item:last-child a {
    border-radius: 0 0 12px 12px;
}

.search-result-item:only-child a {
    border-radius: 12px;
}

.search-result-item a:hover {
    background: #faf8f4;
}

.search-result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 6px 0;
}

.search-result-item a:hover .search-result-title {
    color: #d4af37;
}

.search-result-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 8px 0;
    font-style: italic;
}

.search-result-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.search-result-url {
    font-size: 12px;
    color: #999;
}

/* --- Stato iniziale e suggerimenti --- */
.search-initial {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.search-initial > p {
    font-size: 18px;
    margin-bottom: 30px;
}

.search-suggestions {
    display: inline-block;
    text-align: left;
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-suggestions p {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #1e3a5f;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.search-suggestions li {
    margin-bottom: 8px;
    color: #555;
}

.search-suggestions a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}

.search-suggestions a:hover {
    color: #d4af37;
    text-decoration: underline;
}

/* --- Nessun risultato --- */
.search-no-results {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-no-results p {
    margin-bottom: 15px;
    color: #666;
}

.search-no-results ul {
    display: inline-block;
    text-align: left;
    list-style: disc;
    padding-left: 20px;
    color: #888;
}

.search-no-results li {
    margin-bottom: 8px;
}

/* ==========================================================================
   14. Error Page (404)
   ========================================================================== */

.error-page {
    text-align: center;
    padding: 60px 20px 100px;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    margin-bottom: 15px;
}

.error-icon svg {
    width: 120px;
    height: 120px;
}

.error-message {
    margin-bottom: 40px;
}

.error-message h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 15px 0;
}

.error-message p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.error-suggestions {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.error-suggestions p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-suggestions li {
    padding: 8px 0;
    border-bottom: 1px solid #f0ebe0;
}

.error-suggestions li:last-child {
    border-bottom: none;
}

.error-suggestions a {
    color: #1e3a5f;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-suggestions a:hover {
    color: #d4af37;
    padding-left: 10px;
}

.error-suggestions a::before {
    content: '→ ';
    color: #d4af37;
    margin-right: 8px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-popular {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8dcc4;
}

.error-popular-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 25px;
}

.error-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.error-popular-item {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    color: #1e3a5f;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.error-popular-item:hover {
    background: #1e3a5f;
    color: white;
    border-left-color: #d4af37;
    transform: translateX(5px);
}

/* Countdown redirect */
.error-countdown {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6f 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.error-countdown p {
    margin: 0 0 15px 0;
    font-size: 15px;
}

.error-countdown #countdown {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
}

.countdown-bar {
    background: rgba(255,255,255,0.2);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.countdown-progress {
    height: 100%;
    background: #d4af37;
    border-radius: 3px;
    width: 100%;
    animation: countdown-shrink linear forwards;
}

@keyframes countdown-shrink {
    from { width: 100%; }
    to { width: 0%; }
}

.countdown-cancel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.countdown-cancel:hover {
    background: white;
    color: #1e3a5f;
    border-color: white;
}

.countdown-cancelled {
    color: #d4af37;
    font-style: italic;
    margin: 0;
}

/* ==========================================================================
   15. Section Pages (pagine con sottopagine)
   ========================================================================== */

.section-page {
    padding: 25px 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

.section-layout.single-column {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.section-main {
    min-width: 0;
}

.section-page .page-header {
    margin-bottom: 40px;
}

.section-page .page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.section-page .page-header .subtitle {
    font-size: 1.2rem;
    color: #666;
}

.section-page .page-content {
    line-height: 1.8;
}

/* Sidebar Desktop */
.section-sidebar.desktop-only {
    display: block;
    position: sticky;
    top: 120px;
}

.section-sidebar.mobile-only {
    display: none;
}

.sidebar-nav {
    background: #f5f1e8;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0d8c8;
}

.sidebar-nav h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #1e3a5f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
}

.sidebar-nav .sidebar-title {
    display: none;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav li:last-child {
    margin-bottom: 0;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    background: #f5f1e8;
    color: #d4af37;
}

.sidebar-nav a.active {
    background: #1e3a5f;
    color: white;
}

/* Link al genitore nella sidebar */
.sidebar-parent-link {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #1e3a5f;
    text-decoration: none;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    transition: color 0.2s ease;
}

.sidebar-parent-link:hover {
    color: #d4af37;
}

.sidebar-parent-link h3 {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
}

/* ==========================================================================
   16. HTML Content & Immagini
   ========================================================================== */

.html-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Rimuove margin-top dal primo elemento */
.html-content > *:first-child {
    margin-top: 0;
}

/* Titoli nel contenuto con immagine a sinistra e testo a destra */
.html-content h1,
.html-content h2,
.html-content h3,
.html-content h4,
.html-content h5 {
    font-family: 'Cormorant Garamond', serif;
    color: #1e3a5f;
    margin: 1.5em 0 0.75em;
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
}

/* Gerarchia dimensioni titoli */
.html-content h1 { font-size: 3rem; }
.html-content h2 { font-size: 2.5rem; }
.html-content h3 { font-size: 2rem; }
.html-content h4 { font-size: 1.5rem; }
.html-content h5 { font-size: 1.2rem; }

/* Paragrafi, link, enfasi */
.html-content p {
    margin-bottom: 1em;
}

.html-content a {
    color: #1e3a5f;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 3px;
}

.html-content a:hover {
    color: #d4af37;
}

.html-content em {
    font-style: italic;
}

.html-content strong {
    font-weight: 600;
    color: #1e3a5f;
}

.html-content blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}

.html-content ul,
.html-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.html-content li {
    margin-bottom: 0.5em;
}

.html-content hr {
    border: none;
    border-top: 2px solid #e0d8c8;
    margin: 2em 0;
}

/* Clear floats */
.html-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Immagini base nel contenuto */
.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Immagini dentro i titoli (h1–h5)
   - immagine a sinistra
   - testo a destra
   - immagine max 35% dello spazio disponibile */
.html-content h1 img,
.html-content h2 img,
.html-content h3 img,
.html-content h4 img,
.html-content h5 img {
    flex: 0 0 35%;
    max-width: 35%;
    height: auto;
    margin: 0;
    border-radius: 0;
}

/* Immagini posizionate (stile align=left/center/right)
   imgsx = sinistra, imgcx = centro, imgdx = destra
   max 35% dello spazio disponibile */
.html-content img.imgsx {
    float: left;
    max-width: min(35%, 200px);
    width: auto;
    height: auto;
    margin: 0.5em 1.5em 1em 0;
    border-radius: 8px;
}

.html-content img.imgcx {
    display: block;
    max-width: min(35%, 200px);
    width: auto;
    height: auto;
    margin: 1.5em auto;
    border-radius: 8px;
}

.html-content img.imgdx {
    float: right;
    max-width: min(35%, 200px);
    width: auto;
    height: auto;
    margin: 0.5em 0 1em 1.5em;
    border-radius: 8px;
}

/* Icone inline (emoticon ebraiche) */
.html-content img[src*="/oggetti/icon/"] {
    display: inline-block;
    vertical-align: text-bottom;
    height: 2.2em;
    width: auto;
    margin: 0 0.15em;
    border-radius: 0;
}

/* ==========================================================================
   16b. Elenco Link (template documenti)
   ========================================================================== */

.links-list {
    margin-top: 2rem;
}

.link-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f6f1;
    border-radius: 6px;
    border-left: 4px solid #1e3a5f;
    transition: all 0.2s ease;
}

.link-item:hover {
    background: #f0ece3;
    border-left-color: #d4af37;
}

.link-item.link-broken {
    border-left-color: #c0392b;
    background: #fdf2f2;
}

.link-icon {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-pdf {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c0392b'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2l5 5h-5V4zm-2.5 9.5a1.5 1.5 0 1 1 0 3H9v1.5H7.5v-6H10.5a1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 0 1 1.5 1.5v1.5a1.5 1.5 0 0 1-1.5 1.5H14v-6h1.5a1.5 1.5 0 0 1 1.5 1.5zm-5 0H9v1.5h1.5v-1.5z'/%3E%3C/svg%3E");
}

.icon-doc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232980b9'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6zm-1 2l5 5h-5V4zM8 12h8v2H8v-2zm0 4h8v2H8v-2z'/%3E%3C/svg%3E");
}

.icon-link {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e3a5f'%3E%3Cpath d='M10 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-4M14 4h6m0 0v6m0-6L10 14'/%3E%3C/svg%3E");
}

.icon-download {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2327ae60'%3E%3Cpath d='M12 16l-6-6h4V4h4v6h4l-6 6zm-8 2h16v2H4v-2z'/%3E%3C/svg%3E");
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    display: block;
}

a.link-title:hover {
    color: #d4af37;
}

.link-title.link-error {
    color: #7f8c8d;
    cursor: not-allowed;
}

.error-badge {
    display: inline-block;
    background: #c0392b;
    color: white;
    font-size: 0.7rem;
    font-family: 'Open Sans', sans-serif;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.link-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0;
}

/* ==========================================================================
   16c. Form di contatto (template email)
   ========================================================================== */

.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #c0392b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-privacy {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1e3a5f;
}

.checkbox-label span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: #1e3a5f;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #d4af37;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #1e3a5f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.form-submit:hover {
    background: #2c5282;
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit svg {
    stroke: currentColor;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.form-group .optional {
    font-weight: 400;
    color: #888;
    font-size: 0.85em;
}

/* Messaggi form */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.form-message svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.form-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-success svg {
    stroke: #155724;
}

.form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-error svg {
    stroke: #721c24;
}

/* ==========================================================================
   16d. Form vendita chametz - stato inattivo
   ========================================================================== */

.chametz-inactive-box {
    background: #f8f5e6;
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.inactive-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 1.5rem;
}

.inactive-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.inactive-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.inactive-info li:last-child {
    border-bottom: none;
}

.inactive-info strong {
    color: #1e3a5f;
}

.reminder-form {
    margin-top: 1rem;
}

.reminder-form-row {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
}

.reminder-form-row input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reminder-form-row input[type="email"]:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.reminder-form-row .form-submit {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
}

/* ==========================================================================
   17. Pagina Feste e Ricorrenze
   ========================================================================== */

/* Container specifico senza sidebar */
.feste-container {
    padding-bottom: 60px;
}

/* --- Current Holiday Card (prossima festa in arrivo) --- */
.current-holiday-card {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border-radius: 16px;
    padding: 20px 25px;
    color: #fff8e7;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.25);
}

.current-holiday-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255, 215, 0, 0.12);
    border-radius: 50%;
}

.current-holiday-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.current-holiday-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
}

.current-holiday-header .hebrew-name {
    font-size: 20px;
    font-family: serif;
    opacity: 0.9;
}

.current-holiday-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 8px 0 15px;
    position: relative;
    z-index: 1;
}

.current-holiday-meta .dates {
    font-size: 14px;
    opacity: 0.85;
}

.current-holiday-countdown {
    display: inline-block;
    background: rgba(255, 215, 0, 0.3);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
}

.holiday-times-grid {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 12px 15px;
    position: relative;
    z-index: 1;
}

.holiday-time-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.holiday-time-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.75;
}

.holiday-time-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFD700;
}

.current-holiday-link {
    margin-left: auto;
    padding: 6px 14px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.current-holiday-link:hover {
    background: rgba(255, 215, 0, 0.35);
    color: #fff;
}

/* --- Festival Navigation (navigazione rapida feste) --- */
/* --- Section Navigation (usata per Feste, FAQ, ecc.) --- */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: auto;
    min-height: fit-content;
}

.section-nav-btn {
    padding: 12px 20px;
    border: 2px solid #e8dcc4;
    background: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
}

.section-nav-btn:hover {
    border-color: #d4af37;
    background: #faf8f3;
}

.section-nav-btn.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #f5f1e8;
}

.section-nav-btn .nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Per icone emoji (FAQ) */
.section-nav-btn .nav-icon-emoji {
    font-size: 1.1em;
    line-height: 1;
}

.section-nav-btn.active .nav-icon {
    filter: brightness(0) invert(1);
}

.section-nav-btn .text {
    white-space: nowrap;
}

/* --- Festival Sections --- */
.festival-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.festival-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8dcc4;
}

.festival-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.festival-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.festival-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

.festival-subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

/* --- Documents Grid --- */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #d4af37;
}

.document-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e8dcc4 0%, #d4c5a9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.document-card:hover .document-icon {
    background: linear-gradient(135deg, #d4af37 0%, #e5c045 100%);
}

.document-content {
    flex: 1;
    min-width: 0;
}

.document-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px;
    line-height: 1.3;
}

.document-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.document-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Feature Card (in evidenza) --- */
.document-card.feature-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: #f5f1e8;
}

.document-card.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
    border-color: transparent;
}

.document-card.feature-card .document-icon {
    background: rgba(212, 175, 55, 0.2);
}

.document-card.feature-card .document-icon img {
    filter: brightness(0) invert(1);
}

.document-card.feature-card .document-title {
    color: #f5f1e8;
}

.document-card.feature-card .document-description {
    color: rgba(245, 241, 232, 0.8);
}

.document-card.feature-card .document-meta {
    color: rgba(245, 241, 232, 0.6);
}

.document-card.feature-card .document-tag {
    background: rgba(212, 175, 55, 0.3);
    color: #f5f1e8;
}

/* --- Info Box (box informativo) --- */
.info-box {
    background: white;
    border-left: 4px solid #1e3a5f;
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.html-content > .info-box:first-child {
    margin-top: 0;
}

.info-box-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-box-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-box-content a {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}

.info-box-content a:hover {
    color: #d4af37;
}

/* --- Messaggi vuoti (usa .empty-message come base) --- */
.no-documents,
.no-feste,
.no-articles,
.no-events {
    /* Estende .empty-message - usare quella classe per nuovi elementi */
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
    background: #f8f5f0;
    border-radius: 12px;
}

/* ==========================================================================
   17b. Content Panel (classe base riutilizzabile)
   ========================================================================== */

/**
 * Pannello contenuto bianco con shadow - usato per:
 * - Location selector (orari-shabbat)
 * - Contenuto testuale calendario
 * - Altri pannelli laterali futuri
 */
.content-panel {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
    height: fit-content;
}

.content-panel.sticky {
    position: sticky;
    top: 100px;
}

/* Titolo pannello (opzionale, per usi futuri) */
.content-panel-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   18. Pagina Orari Shabbat
   ========================================================================== */

/* Calculator Section */
.calculator-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Location Selector - estende content-panel */
.location-selector {
    /* Stili specifici per location-selector (se necessari in futuro) */
    /* Gli stili base sono ora in .content-panel */
}

.selector-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input[type="number"],
.form-group input[type="date"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8dcc4;
    border-radius: 12px;
    font-size: 15px;
    color: #2c2c2c;
    background: #faf8f3;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
    background: white;
}

.form-group input[type="date"] {
    cursor: pointer;
}

.coords-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: #f5f1e8;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
}

.location-note {
    margin-top: 20px;
    padding: 15px;
    background: #faf8f3;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.location-note strong {
    color: #1e3a5f;
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Shabbat Card - Featured */
.shabbat-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 20px;
    padding: 35px;
    color: #f5f1e8;
    position: relative;
    overflow: hidden;
}

.shabbat-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.shabbat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.shabbat-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
}

.shabbat-date {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.shabbat-date-gregorian {
    font-size: 15px;
    color: #d4af37;
    margin-top: 3px;
    font-weight: 600;
}

.shabbat-icon {
    font-size: 50px;
}

.shabbat-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.shabbat-time-box {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.time-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.time-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    color: #d4af37;
}

.time-sublabel {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Zmanim Cards */
.zmanim-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.zmanim-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.zmanim-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zmanim-date {
    font-size: 13px;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0ebe0;
}

.zman-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe0;
}

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

.zman-name {
    font-size: 14px;
    color: #555;
}

.zman-name-hebrew {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.zman-time {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
}

/* Parasha Box */
.parasha-box {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.parasha-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d4af37 0%, #e5c045 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.parasha-info {
    flex: 1;
}

.parasha-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.parasha-riferimento {
    font-size: 15px;
    color: #444;
    margin-bottom: 6px;
}

.parasha-riferimento strong {
    color: #1e3a5f;
}

.parasha-maftir {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    display: inline-block;
}

.parasha-maftir .maftir-label {
    font-weight: 600;
    color: #1e3a5f;
}

.parasha-haftarah {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.parasha-haftarah .haftarah-label {
    font-weight: 600;
    color: #1e3a5f;
}

.parasha-haftarah .minhag-tag {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.parasha-data {
    font-size: 13px;
    color: #888;
    margin-bottom: 0;
}

.parasha-speciale-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: #f5f1e8;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.parasha-speciale-letture {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f6f0 0%, #f0ebe0 100%);
    border-left: 3px solid #d4af37;
    border-radius: 0 8px 8px 0;
    line-height: 1.5;
}

.parasha-link {
    margin-left: auto;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 25px;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: center;
    white-space: nowrap;
}

.parasha-link:hover {
    background: #1e3a5f;
    color: #f5f1e8;
}

/* Info Section (Orari) */
.info-section {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin: 15px 0;
}

.info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.minhag-note {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: #f5f1e8;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
}

.minhag-note strong {
    color: #d4af37;
}

.minhag-note a {
    color: #f5f1e8;
    text-decoration: underline;
}

.minhag-note a:hover {
    color: #d4af37;
}

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

.info-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   19. CALENDARIO EBRAICO
   ========================================================================== */

/* Layout principale - contenuto 1/3, widget 2/3 */
/* Widget calendario */
.calendario-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* Header calendario */
.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendario-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
}

.calendario-nav-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
}

.calendario-title {
    text-align: center;
}

.calendario-title h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
}

.calendario-hebrew-month {
    font-size: 14px;
    color: #888;
    margin: 5px 0 0 0;
}

/* Riga pulsanti */
.calendario-today-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.calendario-today-btn,
.calendario-print-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.calendario-today-btn {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: white;
}

.calendario-today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.calendario-print-btn {
    background: #f5f5f5;
    color: #666;
}

.calendario-print-btn:hover {
    background: #e0e0e0;
}

/* Griglia calendario */
.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 15px;
}

.calendario-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 8px 0;
    text-transform: uppercase;
}

.calendario-day-header.shabbat {
    color: #1e3a5f;
}

.calendario-days-container {
    display: contents;
}

/* Celle giorni */
.calendario-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #fafafa;
    min-height: 45px;
}

.calendario-day:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.calendario-day.other-month {
    opacity: 0.4;
}

.calendario-day.today {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: white;
}

.calendario-day.today .hebrew-day {
    color: rgba(255,255,255,0.7);
}

.calendario-day.selected {
    box-shadow: 0 0 0 2px #d4af37;
}

/* Giorno selezionato - bordo più spesso e visibile */
.calendario-day.selected {
    box-shadow: 0 0 0 3px #d4af37;
    border: 2px solid #d4af37;
}

/* Numero del giorno selezionato - grassetto e nero */
.calendario-day.selected .day-number {
    font-weight: 700;
    color: #000;
}

/* Assicura che il numero rimanga nero anche per i giorni today */
.calendario-day.today.selected .day-number {
    color: #000;
}

/* Per giorni festivi selezionati */
.calendario-day.yomtov.selected .day-number,
.calendario-day.minor.selected .day-number,
.calendario-day.fast.selected .day-number,
.calendario-day.roshchodesh.selected .day-number {
    font-weight: 700;
    color: #000;
}

.calendario-day.shabbat {
    background: #f0f4f8;
}

.calendario-day.shabbat.today {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
}

/* Tipi di festività */
.calendario-day.yomtov {
    background: linear-gradient(135deg, #d4af37 0%, #e5c045 100%);
    color: #1e3a5f;
}

.calendario-day.yomtov .hebrew-day {
    color: rgba(30, 58, 95, 0.7);
}

.calendario-day.minor {
    background: #e8f4e8;
}

.calendario-day.fast {
    background: #f8e8e8;
}

.calendario-day.roshchodesh {
    background: #e8e8f8;
}

/* Numeri giorni */
.calendario-day .day-number {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.calendario-day .hebrew-day {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.holiday-dot {
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
}

/* Legenda */
.calendario-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.shabbat { background: #f0f4f8; border: 1px solid #ddd; }
.legend-dot.yomtov { background: linear-gradient(135deg, #d4af37, #e5c045); }
.legend-dot.minor { background: #e8f4e8; }
.legend-dot.fast { background: #f8e8e8; }
.legend-dot.roshchodesh { background: #e8e8f8; }

/* Dettaglio giorno */
.calendario-detail {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #d4af37;
}

.calendario-detail h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: #1e3a5f;
    margin: 0 0 5px 0;
}

.detail-hebrew {
    font-size: 14px;
    color: #888;
    margin: 0 0 10px 0;
}

.detail-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-event {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
}

.detail-event .hebrew {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

.detail-event.yomtov {
    background: linear-gradient(135deg, #d4af37 0%, #e5c045 100%);
    color: #1e3a5f;
}

.detail-event.shabbat {
    background: #f0f4f8;
}

.no-events {
    color: #888;
    font-style: italic;
    margin: 0;
}

/* Link correlati */
.calendario-links {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.calendario-links h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: #1e3a5f;
    margin: 0 0 20px 0;
}

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

.link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    color: #1e3a5f;
    transition: all 0.2s ease;
}

.link-card:hover {
    background: #1e3a5f;
    color: white;
}

.link-icon {
    font-size: 24px;
}

.link-text {
    font-weight: 600;
    font-size: 14px;
}

/* Stili stampa settimanale - vedi stampa.css */
.print-only {
    display: none;
}

/* ==========================================================================
   19b. CONVERTITORE CALENDARI
   ========================================================================== */

/* Container convertitore */
.converter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Card singola */
.converter-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8dcc4;
}

.converter-card h3 {
    margin: 0 0 1rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #1e3a5f;
    font-weight: 700;
}

/* Form convertitore */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.converter-form .form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.converter-form .form-group {
    flex: 1;
    min-width: 60px;
    margin-bottom: 0;
}

.converter-form .form-group.full-width {
    flex: 100%;
}

.converter-form .form-group label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.converter-form .form-group input,
.converter-form .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1ccc4;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.converter-form .form-group input:focus,
.converter-form .form-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.converter-form .form-group input.readonly-field {
    background: #f8f6f3;
    color: #666;
    cursor: default;
}

/* Pulsante converti */
.converter-btn {
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.converter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.converter-btn:active {
    transform: translateY(0);
}

/* Credits */
.converter-credits {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #888;
}

.converter-credits a {
    color: #1e3a5f;
    text-decoration: none;
}

.converter-credits a:hover {
    text-decoration: underline;
    color: #d4af37;
}

/* Responsive convertitore */
@media (max-width: 600px) {
    .converter-container {
        grid-template-columns: 1fr;
    }

    .converter-form .form-row {
        flex-direction: column;
    }

    .converter-form .form-group {
        min-width: 100%;
    }
}

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

/* --------------------------------------------------------------------------
   18.1 Large Tablet / Small Desktop (≤992px)
   -------------------------------------------------------------------------- */


/* ==========================================================================
   20. RESPONSIVE (ordinato per breakpoint decrescente)
   NOTA: Header, Nav, Footer e Breadcrumb sono in intestazione.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   20.1 Desktop/Tablet (≤992px)
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    /* Utility Grid - 2 columns on tablet */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Content Panel */
    .content-panel.sticky {
        position: relative;
        top: 0;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    /* Layout */
    .container {
        padding: 0 25px;
    }

    /* Orari Shabbat */
    .calculator-section {
        grid-template-columns: 1fr;
    }

    /* Section Nav */
    .section-nav {
        padding: 20px;
    }

    /* Grids */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-track .card {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar-section {
        grid-template-columns: 1fr;
    }

    /* Section Pages */
    .section-container {
        padding: 0 25px;
    }

    .section-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-sidebar.desktop-only {
        display: none;
    }

    .section-sidebar.mobile-only {
        display: block;
        margin-bottom: 20px;
    }

    .section-sidebar.mobile-only .sidebar-nav {
        background: white;
        padding: 0;
        border: 1px solid #e0d8c8;
        border-top: 3px solid #d4af37;
        border-radius: 0 0 8px 8px;
        overflow: hidden;
    }

    .section-sidebar.mobile-only .sidebar-nav h3,
    .section-sidebar.mobile-only .sidebar-nav .sidebar-title {
        display: none;
    }

    .section-sidebar.mobile-only .sidebar-nav .sidebar-parent-link {
        display: block;
        padding: 12px 20px;
        background: #1e3a5f;
        color: white;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        margin: 0;
        border-bottom: none;
    }

    .section-sidebar.mobile-only .sidebar-nav .sidebar-parent-link:hover {
        background: #2d5a8c;
        color: white;
    }

    .section-sidebar.mobile-only .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .section-sidebar.mobile-only .sidebar-nav li {
        margin: 0;
    }

    .section-sidebar.mobile-only .sidebar-nav a {
        display: block;
        padding: 12px 20px;
        background: white;
        color: #1e3a5f;
        font-size: 0.95rem;
        font-weight: 500;
        border-right: 1px solid #e0d8c8;
        border-radius: 0;
        text-decoration: none;
    }

    .section-sidebar.mobile-only .sidebar-nav li:last-child a {
        border-right: none;
    }

    .section-sidebar.mobile-only .sidebar-nav a:hover {
        background: #f5f1e8;
        color: #d4af37;
    }

    .section-sidebar.mobile-only .sidebar-nav a.active {
        background: #1e3a5f;
        color: white;
    }

    /* Icone inline */
    .html-content img[src*="/oggetti/icon/"] {
        height: 2em;
    }
}

/* --------------------------------------------------------------------------
   20.2 Tablet (≤768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Utility Grid - single column on mobile */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Carousel */
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Orari Shabbat */
    .calculator-section {
        gap: 25px;
    }

    .location-selector {
        padding: 25px;
    }

    .shabbat-card {
        padding: 25px;
    }

    .shabbat-times {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shabbat-time-box {
        padding: 20px;
    }

    .time-value {
        font-size: 36px;
    }

    .zmanim-grid {
        grid-template-columns: 1fr;
    }

    .parasha-box {
        flex-direction: column;
        text-align: center;
    }

    .parasha-info {
        width: 100%;
    }

    .parasha-link {
        margin-left: 0;
        margin-top: 15px;
    }

    .parasha-haftarah {
        font-size: 13px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .coords-row {
        grid-template-columns: 1fr;
    }

    /* Section Pages */
    .section-page {
        padding: 25px 0;
    }

    .section-container {
        padding: 0 20px;
    }

    .section-page .page-header h1 {
        font-size: 2.2rem;
    }

    /* Immagini posizionate: diventano block centrate */
    .html-content img.imgsx,
    .html-content img.imgdx {
        margin: 1.5em auto;
    }

    .html-content img.imgcx {
        max-width: 35%;
    }

    /* Feste */
    .current-holiday-card {
        padding: 15px 20px;
    }

    .current-holiday-header {
        flex-direction: column;
        gap: 5px;
    }

    .current-holiday-header h2 {
        font-size: 22px;
    }

    .current-holiday-header .hebrew-name {
        font-size: 16px;
    }

    .current-holiday-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .holiday-times-grid {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 12px;
    }

    .holiday-time-value {
        font-size: 18px;
    }

    .current-holiday-link {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
    }

    .section-nav {
        gap: 8px;
        padding: 15px;
    }

    .section-nav-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .section-nav-btn .nav-icon {
        width: 18px;
        height: 18px;
    }

    .festival-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .festival-icon {
        width: 60px;
        height: 60px;
    }

    .festival-icon img {
        width: 32px;
        height: 32px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* --------------------------------------------------------------------------
   20.3 Mobile (≤576px)
   -------------------------------------------------------------------------- */

@media (max-width: 576px) {
    /* Content Panel */
    .content-panel {
        padding: 25px;
        border-radius: 16px;
    }

    .content-panel-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Calendario */
    .calendario-widget {
        padding: 15px;
    }

    .calendario-day {
        min-height: 40px;
    }

    .calendario-day .day-number {
        font-size: 12px;
    }

    .calendario-day .hebrew-day {
        font-size: 9px;
    }

    .calendario-legend {
        flex-direction: column;
        gap: 5px;
    }

    .calendario-today-row {
        flex-direction: column;
    }

    /* Layout */
    .container {
        padding: 0 15px;
    }

    .section-title {
        margin: 40px 0 25px;
    }

    /* Carousel */
    .carousel-container {
        gap: 10px;
    }

    .carousel-track {
        gap: 20px;
    }

    .carousel-track .card {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Cards */
    .card-image {
        height: 100px;
    }

    .card-content {
        padding: 20px;
    }

    .card-text {
        font-size: 15px;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-item {
        padding: 25px 15px;
    }

    .category-icon {
        font-size: 42px;
        margin-bottom: 12px;
    }

    .category-icon img {
        width: 48px;
        height: 48px;
    }

    .category-description {
        font-size: 13px;
    }

    /* Sidebar */
    .sidebar {
        padding: 25px;
    }

    .sidebar h3 {
        font-size: 24px;
    }

    /* Search Page */
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 16px;
        padding: 15px;
    }

    .search-page-input {
        padding: 12px 15px;
        font-size: 16px;
    }

    .search-page-btn {
        justify-content: center;
        padding: 12px 20px;
    }

    .search-options {
        padding: 12px 18px;
    }

    .search-option-label {
        flex-wrap: wrap;
    }

    .search-option-label .option-hint {
        width: 100%;
        margin-left: 34px;
        margin-top: 4px;
    }

    .search-documents-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-nav {
        gap: 8px;
    }

    .search-nav-link {
        padding: 8px 14px;
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 4px);
    }

    .search-nav-count {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .search-nav-label {
        font-size: 13px;
    }

    .search-section-title {
        font-size: 20px;
    }

    .search-result-item a {
        padding: 20px;
    }

    .search-result-title {
        font-size: 20px;
    }

    .search-mode-badge {
        display: block;
        margin: 8px 0 0 0;
    }

    .search-suggestions {
        padding: 20px 25px;
    }

    /* Error Page */
    .error-page {
        padding: 40px 15px 60px;
    }

    .error-countdown {
        padding: 15px 20px;
    }

    .error-countdown p {
        font-size: 14px;
    }

    .error-popular-grid {
        grid-template-columns: 1fr;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn-primary,
    .error-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    /* Icone inline */
    .html-content img[src*="/oggetti/icon/"] {
        height: 1.6em;
    }

    /* Immagini nei titoli: più piccole su mobile */
    .html-content h1 img,
    .html-content h2 img,
    .html-content h3 img,
    .html-content h4 img {
        max-width: 50px;
    }

    /* Sidebar mobile più compatta */
    .section-sidebar.mobile-only .sidebar-nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Form promemoria chametz */
    .reminder-form-row {
        flex-direction: column;
    }

    .chametz-inactive-box {
        padding: 1.5rem;
    }

    /* Feste */
    .feste-container {
        padding-bottom: 40px;
    }

    .section-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .section-nav-btn .nav-icon {
        width: 16px;
        height: 16px;
    }

    .section-nav-btn .text {
        /* Nascondi testo su mobile, mostra solo icone */
    }

    .document-card {
        padding: 20px;
        flex-direction: column;
    }

    .document-icon {
        width: 45px;
        height: 45px;
    }

    .document-icon img {
        width: 24px;
        height: 24px;
    }
}

/* --------------------------------------------------------------------------
   20.4 Very Small (≤380px)
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {
    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-item {
        padding: 30px 20px;
    }

    .category-icon {
        font-size: 48px;
    }

    /* Immagini nei titoli: ancora più piccole */
    .html-content h1 img,
    .html-content h2 img,
    .html-content h3 img,
    .html-content h4 img {
        max-width: 40px;
    }

    /* Sidebar mobile: ancora più compatta */
    .section-sidebar.mobile-only .sidebar-nav a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Section Nav - solo icone, nascondi testo */
    .section-nav-btn .text {
        display: none;
    }

    .section-nav-btn {
        padding: 10px;
    }
}
/* ==========================================================================
   21. FAQ Accordion
   ========================================================================== */

.faq-container {
    margin-top: 20px;
}

.faq-category {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8dcc4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-category-icon {
    font-size: 1.2em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.faq-item.is-open {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #faf8f4;
}

.faq-question:focus {
    outline: none;
    background-color: #faf8f4;
}

.faq-question:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: -2px;
}

.faq-question-text {
    flex: 1;
    line-height: 1.5;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #d4af37;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Linea orizzontale (sempre visibile) */
.faq-icon::before {
    width: 16px;
    height: 3px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Linea verticale (diventa + quando chiuso) */
.faq-icon::after {
    width: 3px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Quando aperto: la linea verticale scompare (diventa -) */
.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    overflow: hidden;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: #444;
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 1em;
}

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

.faq-answer-content a {
    color: #1e3a5f;
    text-decoration: underline;
    text-decoration-color: #d4af37;
    text-underline-offset: 3px;
}

.faq-answer-content a:hover {
    color: #d4af37;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.faq-answer-content li {
    margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   FAQ Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .faq-category-title {
        font-size: 20px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
        font-size: 15px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-icon::before {
        width: 14px;
        height: 2px;
    }

    .faq-icon::after {
        width: 2px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    .faq-category {
        margin-bottom: 30px;
    }

    .faq-list {
        gap: 10px;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-question {
        padding: 14px 16px;
        gap: 15px;
    }

    .faq-answer-content {
        padding: 0 16px 16px;
    }
}

/* ==========================================================================
   22. Mappa del Sito
   ========================================================================== */

.sitemap-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.sitemap-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sitemap-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8dcc4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sitemap-section-title a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-section-title a:hover {
    color: #d4af37;
}

.sitemap-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0ece3;
}

.sitemap-item:last-child {
    border-bottom: none;
}

.sitemap-item > a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.sitemap-item > a:hover {
    color: #d4af37;
}

.sitemap-sublist {
    list-style: none;
    padding: 10px 0 5px 20px;
    margin: 0;
}

.sitemap-sublist li {
    padding: 4px 0;
}

.sitemap-sublist a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.sitemap-sublist a:hover {
    color: #d4af37;
}

.sitemap-sublist a::before {
    content: "→ ";
    color: #d4af37;
    margin-right: 5px;
}

/* Responsive Mappa del Sito */
@media (max-width: 768px) {
    .sitemap-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sitemap-section {
        padding: 25px;
    }

    .sitemap-section-title {
        font-size: 1.3rem;
    }

    .sitemap-icon {
        width: 28px;
        height: 28px;
    }
}
/* ==========================================================================
   23. Pagina Turismo e Comunità
   ========================================================================== */

/* --- Turismo Page Container --- */
.turismo-page {
    padding-bottom: 60px;
}

/* --- Items Section Header --- */
.items-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.items-section-header .section-title {
    margin: 0;
}

/* --- Live Filter --- */
.live-filter {
    position: relative;
    flex: 0 1 350px;
    min-width: 200px;
}

.live-filter-input {
    width: 100%;
    padding: 12px 45px 12px 40px;
    border: 2px solid #e8dcc4;
    border-radius: 25px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-filter-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.live-filter-input::placeholder {
    color: #999;
}

.live-filter-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.live-filter-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e8dcc4;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    transition: background 0.2s ease;
}

.live-filter-clear:hover {
    background: #d4af37;
}

.live-filter-clear[hidden] {
    display: none;
}

/* --- Filter Status (accessibilità) --- */
.filter-status {
    font-size: 14px;
    color: #666;
    min-height: 20px;
    margin-top: 5px;
    text-align: right;
}

.filter-status:empty {
    display: none;
}

/* --- Visually Hidden (accessibilità) --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Noscript fallback --- */
.noscript-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #856404;
}

/* --- Card hidden state --- */
.community-card[hidden] {
    display: none;
}

/* --- Communities Grid --- */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

/* --- Community Card --- */
.community-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.community-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.community-header-text {
    flex: 1;
    min-width: 0;
}

.community-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #f5f1e8;
    margin-bottom: 8px;
}

.community-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.community-region {
    font-size: 14px;
    color: #d4af37;
    font-weight: 500;
}

.featured-badge {
    background: #1e3a5f;
    color: #d4af37;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-card.featured .featured-badge {
    background: rgba(30, 58, 95, 0.8);
}

.community-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.community-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.community-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.community-info {
    flex: 1;
}

/* Info items dentro le card */
.community-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.community-card .info-item:last-child {
    margin-bottom: 0;
}

.community-card .info-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.community-card .info-item a {
    color: #1e3a5f;
    text-decoration: none;
    word-break: break-word;
}

.community-card .info-item a:hover {
    color: #d4af37;
}

/* Community Actions */
.community-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0ebe0;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #1e3a5f;
    color: #f5f1e8;
}

.action-btn.primary:hover {
    background: #2d5a8c;
    color: #f5f1e8;
}

.action-btn.secondary {
    background: #f5f5f5;
    color: #1e3a5f;
}

.action-btn.secondary:hover {
    background: #e8dcc4;
    color: #1e3a5f;
}

/* --- Featured Community --- */
.community-card.featured .community-header {
    background: linear-gradient(135deg, #d4af37 0%, #e5c045 100%);
}

.community-card.featured .community-name {
    color: #1e3a5f;
}

.community-card.featured .community-region {
    color: #1e3a5f;
    opacity: 0.8;
}

/* --- Turismo Info Cards --- */
.turismo-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.turismo-info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.turismo-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.turismo-info-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8dcc4 0%, #d4c5a9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: background 0.3s ease;
}

.turismo-info-card-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.turismo-info-card:hover .turismo-info-card-icon {
    background: linear-gradient(135deg, #d4af37 0%, #e5c045 100%);
}

.turismo-info-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 12px;
}

.turismo-info-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* --- Embassies Section --- */
.embassies-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.embassies-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8dcc4;
}

.embassies-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.embassies-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
}

.embassies-subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

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

.embassy-card {
    background: #faf8f3;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #d4af37;
}

.embassy-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.embassy-info {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.embassy-info p {
    margin-bottom: 5px;
}

.embassy-info p:last-child {
    margin-bottom: 0;
}

.embassy-info a {
    color: #1e3a5f;
    text-decoration: none;
}

.embassy-info a:hover {
    color: #d4af37;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    color: #f5f1e8;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 25H55L39 37L44 57L30 45L16 57L21 37L5 25H25L30 5Z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    position: relative;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cta-btn {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: #d4af37;
    color: #1e3a5f;
}

.cta-btn.primary:hover {
    background: #e5c045;
    color: #1e3a5f;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: #f5f1e8;
    border: 2px solid rgba(245, 241, 232, 0.5);
}

.cta-btn.secondary:hover {
    border-color: #f5f1e8;
    background: rgba(255,255,255,0.1);
    color: #f5f1e8;
}

/* ==========================================================================
   23.1 Turismo Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .community-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .embassies-grid {
        grid-template-columns: 1fr;
    }

    .turismo-info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-nav .search-communities {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .search-communities input {
        width: 100%;
    }

    .communities-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .embassies-section {
        padding: 25px;
    }

    .embassies-header {
        flex-direction: column;
        text-align: center;
    }

    .embassies-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .community-header {
        padding: 20px;
    }

    .community-name {
        font-size: 22px;
    }

    .community-body {
        padding: 20px;
    }

    .community-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   24. Blog (Categorie, Articoli, Navigazione)
   ========================================================================== */

/* --- Container Blog (full-width come feste) --- */
.blog-container {
    padding-bottom: 60px;
}

/* --- Layout Articolo Singolo (centrato) --- */
.article-layout {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    width: 100%;
}

/* --- Conteggio articoli categoria --- */
.category-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8dcc4;
}

/* --- Griglia Articoli (3 colonne come documents-grid) --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #1e3a5f;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.article-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.article-card-title a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #d4af37;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.article-card-meta span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #d4af37;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.article-card-meta span:first-child::before {
    display: none;
}

.article-card-summary {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.article-card-link {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    transition: color 0.3s ease;
}

.article-card-link:hover {
    color: #d4af37;
}

/* --- Paginazione (stile info-box) --- */
.pagination.info-box {
    margin-top: 40px;
    padding: 20px 25px;
    border-left: none;
    border-radius: 12px;
    display: block;
}

.pagination-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.pagination-prev,
.pagination-next {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border: 2px solid #1e3a5f;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination-prev {
    justify-self: start;
}

.pagination-next {
    justify-self: end;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.pagination-placeholder {
    /* Mantiene il layout */
}

/* --- Articolo Singolo - Meta Hero --- */
.article-meta-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.article-meta-hero span:not(:first-child)::before {
    content: '•';
    margin-right: 15px;
}

.article-meta-hero a {
    color: inherit;
    text-decoration: underline;
}

/* --- Articolo Singolo - Contenuto --- */
.article-text {
    font-size: 17px;
    line-height: 1.8;
}

.article-text p {
    margin-bottom: 1.5em;
}

.article-text h2,
.article-text h3,
.article-text h4 {
    font-family: 'Cormorant Garamond', serif;
    color: #1e3a5f;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.article-text blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}

.article-source {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8dcc4;
    font-size: 14px;
    color: #666;
}

.article-source a {
    color: #d4af37;
}

/* --- Navigazione Articoli (stile info-box) --- */
.article-navigation.info-box {
    margin-top: 40px;
    padding: 20px 25px;
    border-left: none;
    border-radius: 12px;
    display: block;
}

.article-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
}

.article-nav-prev,
.article-nav-next {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e8dcc4;
    transition: all 0.3s ease;
}

.article-nav-prev:hover,
.article-nav-next:hover {
    background: #d4af37;
    border-color: #d4af37;
}

.article-nav-prev:hover .article-nav-label,
.article-nav-prev:hover .article-nav-title,
.article-nav-next:hover .article-nav-label,
.article-nav-next:hover .article-nav-title {
    color: white;
}

.article-nav-prev {
    text-align: left;
    justify-self: start;
}

.article-nav-next {
    text-align: right;
    justify-self: end;
}

.article-nav-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.article-nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.article-nav-back {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 2px solid #1e3a5f;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.article-nav-back:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
}

.article-nav-placeholder {
    /* Mantiene il layout */
}

/* ==========================================================================
   24.1 Blog Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .article-card {
        padding: 20px;
    }
    
    /* Paginazione mobile */
    .pagination-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .pagination-info {
        grid-column: 1 / -1;
        order: -1;
        margin-bottom: 10px;
    }
    
    .pagination-prev {
        justify-self: start;
    }
    
    .pagination-next {
        justify-self: end;
    }
    
    /* Navigazione articoli mobile */
    .article-nav-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .article-nav-back {
        order: -1;
        justify-self: center;
        margin-bottom: 5px;
    }
    
    .article-nav-prev,
    .article-nav-next {
        justify-self: stretch;
        text-align: center;
    }
    
    .article-meta-hero {
        flex-direction: column;
        gap: 5px;
    }
    
    .article-meta-hero span:not(:first-child)::before {
        display: none;
    }
}
