/* ============================================
   USER.CSS - STUDYMATH TEMPLATE PERSONALIZZATO
   Template: cassiopeia_studymath
   Versione: 1.0.0
   ============================================ */

/* ============================================
   HEADER E FOOTER PERSONALIZZATI
   Design elegante con costellazione
   ============================================ */

/* Header fisso (sticky) con sfondo costellazione */
.container-header {
    background-image: 
        linear-gradient(170deg, rgba(235, 184, 118, 0.65) 0%, rgba(0, 27, 76, 0.85) 100%),
        url('/images/backgrounds/cielo-stellato.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer coordinato (solo gradiente) */
.container-footer {
    background-image: linear-gradient(170deg, #ebb876 0%, var(--cassiopeia-color-hover) 100%);
}

/* Altezza banner personalizzata */
.container-banner .banner-overlay {
    height: 50vh;
}

/* Migliora leggibilità testo su sfondo stellato */
.container-header .navbar-brand span,
.container-header .menu a {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Mobile - Disabilita parallax per performance */
@media (max-width: 768px) {
    .container-header {
        background-attachment: scroll;
        background-position: center center;
    }
}


/* ============================================
   LOGO/NOME SITO PERSONALIZZATO
   ============================================ */

/* Container del brand */
.navbar-brand {
    display: flex;
    align-items: center;
}

/* Nome del sito */
.navbar-brand .brand-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #001B4C;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

/* Effetto hover sul nome */
.navbar-brand .brand-logo:hover span {
    color: #2196F3;
}

/* Versione con gradiente (più moderna) */
.navbar-brand .brand-logo span {
    background: linear-gradient(135deg, #001B4C 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive - nome più piccolo su mobile */
@media (max-width: 768px) {
    .navbar-brand .brand-logo span {
        font-size: 1.4rem;
    }
}

/* ============================================
   SFONDI HEADER CATEGORIE/ARTICOLI
   Gestiti automaticamente da JavaScript
   ============================================ */

/* Nascondi l'immagine di default nelle viste categoria */
.view-category .category-desc img {
    display: none;
}

/* Container descrizione categoria (lo sfondo viene applicato via JS) */
.view-category .category-desc {
    position: relative;
    min-height: 200px;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* Header articolo (lo sfondo viene applicato via JS) */
.view-article .page-header {
    position: relative;
    
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* ============================================
   SFONDO MAIN ARTICOLI
   Design elegante e professionale
   ============================================ */

/* Sfondo base per tutti gli articoli */
.view-article main {
    background: linear-gradient(135deg, #f0f4fb 0%, #ffffff 100%);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 27, 76, 0.08);
    border-left: 4px solid #001B4C; /* Colore brand StudyMath */
}

/* Contenitore articolo - miglior leggibilità */
.view-article .com-content-article {
    background-color: transparent;
}

/* ============================================
   SFONDI DIVERSI PER CATEGORIA
   Basati sugli itemid delle voci di menu
   ============================================ */

/* Matematica Teoria - ID 204 - Toni freddi (blu) */
body.itemid-204 .view-article main {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-left-color: #2196F3;
}

/* Matematica Esercizi - ID 205 - Toni caldi (arancione) */
body.itemid-205 .view-article main {
    background: linear-gradient(135deg, #fff3e0 0%, #f8f9fa 100%);
    border-left-color: #FF9800;
}

/* Prova categ - ID 208 */
body.itemid-208 .view-article main {
    background: linear-gradient(135deg, #e8f5e9 0%, #f8f9fa 100%);
    border-left-color: #4CAF50;
}

/* ============================================
   SFONDO CATEGORIE (Lista articoli)
   ============================================ */

.view-category main {
    background-color: #ffffff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Tabella lista articoli nelle categorie */
.view-category .category table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.view-category .category table thead {
    background-color: #001B4C;
    color: white;
}

.view-category .category table thead th {
    padding: 1rem;
    font-weight: 600;
}

.view-category .category table tbody tr:hover {
    background-color: #f0f4fb;
    transition: background-color 0.3s ease;
}

.view-category .category table tbody td {
    padding: 0.75rem 1rem;
}

/* Link nella tabella categorie */
.view-category .category table a {
    color: #001B4C;
    text-decoration: none;
    font-weight: 500;
}

.view-category .category table a:hover {
    color: #2196F3;
    text-decoration: underline;
}



/* ============================================
   IMMAGINI NEGLI ARTICOLI
   ============================================ */

.view-article .com-content-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    display: block;
}

/* Immagini con didascalia */
.view-article .com-content-article__body figure {
    margin: 2rem 0;
}

.view-article .com-content-article__body figcaption {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================
   TABELLE NEGLI ARTICOLI
   ============================================ */

.view-article .com-content-article__body table {
    
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    
    border-spacing: 0;
}

.view-article .com-content-article__body table thead {
    background-color: #001B4C;
    color: white;
}

.view-article .com-content-article__body table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.view-article .com-content-article__body table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.view-article .com-content-article__body table tbody tr:hover {
    background-color: #f8f9fa;
}

.view-article .com-content-article__body table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   CODICE E BLOCCHI PRE-FORMATTATI
   ============================================ */

.view-article .com-content-article__body code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
    font-family: 'Courier New', monospace;
}

.view-article .com-content-article__body pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.view-article .com-content-article__body pre code {
    background-color: transparent;
    color: #f8f8f2;
    padding: 0;
}

/* ============================================
   BLOCKQUOTE / CITAZIONI
   ============================================ */

.view-article .com-content-article__body blockquote {
    border-left: 4px solid #2196F3;
    background-color: #f0f4fb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #495057;
}

.view-article .com-content-article__body blockquote p:last-child {
    margin-bottom: 0;
}



/* ============================================
   BREADCRUMBS (Percorso navigazione)
   ============================================ */

.mod-breadcrumbs__wrapper {
    background-color: transparent;
    padding: 1rem 0;
}

.mod-breadcrumbs .breadcrumb {
    background-color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mod-breadcrumbs .breadcrumb a {
    color: #2196F3;
    text-decoration: none;
}

.mod-breadcrumbs .breadcrumb a:hover {
    color: #001B4C;
}

/* ============================================
   NAVIGAZIONE ARTICOLI (Prec/Succ)
   ============================================ */

.pagenavigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.pagenavigation .btn {
    background-color: #001B4C;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagenavigation .btn:hover {
    background-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Riduci padding su mobile */
    .view-article main,
    .view-category main {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    /* Header più compatti */
    .view-category .category-desc,
    .view-article .page-header {
        min-height: 150px;
    }
    
    /* Tipografia più piccola */
    .view-article .com-content-article__body {
        font-size: 1rem;
    }
    
    /* Titoli più piccoli */
    .view-article .com-content-article__body h2 {
        font-size: 1.5rem;
    }
    
    /* Immagini con meno margine */
    .view-article .com-content-article__body img {
        margin: 1.5rem 0;
    }
    
    /* Tabelle scrollabili */
    .view-article .com-content-article__body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Breadcrumbs più compatte */
    .mod-breadcrumbs .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .view-article main,
    .view-category main {
        padding: 1rem;
    }
    
    .view-category .category-desc,
    .view-article .page-header {
        min-height: 120px;
    }
}

/* ============================================
   MIGLIORAMENTI STAMPA
   ============================================ */

@media print {
    .view-article main {
        background: white !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Nascondi navigazione e elementi non necessari */
    .pagenavigation,
    .mod-breadcrumbs,
    header,
    footer {
        display: none !important;
    }
}

/* ============================================
   UTILITIES (Classi di utilità)
   ============================================ */

/* Box informativo */
.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Box di avviso */
.warning-box {
    background-color: #fff3e0;
    border-left: 4px solid #FF9800;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Box di successo */
.success-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Evidenziazione testo */
.highlight {
    background-color: #fff176;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Badge/Etichette */
.badge-studymath {
    background-color: #001B4C;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   ANIMAZIONI SOTTILI
   ============================================ */

/* Transizione smooth per hover */
a, button, .btn {
    transition: all 0.3s ease;
}

/* Fade-in per il contenuto */
.view-article main,
.view-category main {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
   
/* ============================================
   ACCORDION (Bootstrap/Joomla,Per sezioni espandibili), TABELLE E PDF BUTTON - STILE UNIFICATO
   ============================================ */

/* Accordion moderno e fluido */
.accordion-button {
    font-size: 1.05rem;
    transition: all 0.25s ease;
    /* MIGLIORAMENTO: Gradiente blu moderno nell'header */
    background: linear-gradient(135deg, #001B4C 0%, #2196F3 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.accordion-button:not(.collapsed) {
    /* MIGLIORAMENTO: Gradiente più scuro quando aperto */
    background: linear-gradient(135deg, #001833 0%, #1976D2 100%);
    color: white;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* MIGLIORAMENTO: Hover effect sull'accordion */
.accordion-button:hover {
    background: linear-gradient(135deg, #001833 0%, #1976D2 100%);
    transform: translateY(-1px);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.25);
}

/* MIGLIORAMENTO: Animazione slide-down all'apertura */
.accordion-collapse {
    transition: height 0.35s ease, opacity 0.3s ease;
}

.accordion-collapse.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MIGLIORAMENTO: Hover effect su tutto l'item */
.accordion-item {
    transition: all 0.2s ease;
    border-bottom: 5px solid #e9ecef; /* Aggiunge spazio tra gli elementi */
    }

.accordion-item:hover {
    background: #f8f9fa;
}

.accordion-header {
    margin-bottom: 0 !important;
}
.accordion-body {
    background-color: #f8f9fa;
    padding: 1.5rem;
}

/* Tabelle personalizzate */
.custom-table {
    border-radius: 12px !important;
    
    margin: 0px !important;
}

/* MIGLIORAMENTO: Border superiore colorato */
.custom-table thead {
    border-top: 3px solid #2196F3;
}

.custom-table th,
.custom-table td {
    vertical-align: middle; /* Centra tutto verticalmente */
    padding: 0.5rem !important;
}

.custom-table tbody tr {
    transition: all 0.2s ease-in-out;
}

/* MIGLIORAMENTO: Hover con leggero zoom (scale 1.01) */
.custom-table tbody tr:hover {
    background-color: #f4f7ff;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}
/* Badge nell’anno */
.custom-table td .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
    /* MIGLIORAMENTO: Gradiente invece di colore piatto */
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
    /* MIGLIORAMENTO: Ombre per "pop" visivo */
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;

/* Hover professionale per tabelle */
.table-hover tbody tr {
    transition: all 0.2s ease-in-out;
}

.table-hover tbody tr:hover {
    background-color: #f4f7ff;
    transform: scale(1.01);
}

/* ============================================
   PDF BUTTONS - TESTO (rosso) e SOLUZIONE (verde)
   ============================================ */

/* Stile base per tutti i bottoni PDF */
.pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.pdf-btn i {
    font-size: 1rem;
}

/* Stato attivo */
.pdf-btn:active {
    transform: translateY(-1px);
}

/* Stato file mancante */
.pdf-btn.missing {
    opacity: 0.5;
    pointer-events: none;
}

/* Bottone TESTO - rosso con icona 📝 */
.pdf-btn.btn-outline-danger {
    color: #ef4444;
    border: 2px solid #ef4444;
}

.pdf-btn.btn-outline-danger::before {
    content: "📝";
    font-size: 1rem;
    margin-right: 0.25rem;
}

.pdf-btn.btn-outline-danger:hover {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pdf-btn.btn-outline-danger:active {
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

/* Bottone SOLUZIONE - verde con icona ✅ */
.pdf-btn.btn-outline-success {
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.pdf-btn.btn-outline-success::before {
    content: "✅";
    font-size: 1rem;
    margin-right: 0.25rem;
}

.pdf-btn.btn-outline-success:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pdf-btn.btn-outline-success:active {
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}


/* ============================================
   POPOVER PERSONALIZZATO
   MIGLIORAMENTO: Header colorato coordinato + Ombre consistenti
   ============================================ */
.popover {
    border: none;
    border-radius: 8px;
    /* MIGLIORAMENTO: Ombre consistenti */
    box-shadow: 0 8px 24px rgba(0, 27, 76, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    background: white;
    font-family: inherit;
}

/* MIGLIORAMENTO: Header colorato coordinato */
.popover-header {
    background: linear-gradient(135deg, #001B4C 0%, #2196F3 100%);
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.popover-body {
    padding: 0.75rem 1rem;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Freccia del popover */
.popover .popover-arrow::after {
    border-top-color: #001B4C;
}

/* ============================================
   MIGLIORAMENTI ACCESSIBILITÀ
   ============================================ */

/* Focus visibile per navigazione da tastiera */
*:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Migliora contrasto link */
a:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Skip link per screen reader */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #001B4C;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Migliora aria-labels */
/* RIMOSSO cursor: help per evitare punto interrogativo sui bottoni */
[aria-label],
[aria-labelledby] {
    /* cursor: help; */ /* Disabilitato - causava ? accanto alla freccia */
}

/* ============================================
   RESPONSIVE - MIGLIORAMENTI MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Accordion più compatto su mobile */
    .accordion-button {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Tabelle più leggibili */
    .custom-table {
        font-size: 0.875rem;
    }
    
    .custom-table th,
    .custom-table td {
        padding: 0.6rem 0.8rem;
    }
    
    /* Badge più piccoli */
    .custom-table td .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    /* Pulsanti PDF più compatti */
    .pdf-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .pdf-btn::before {
        font-size: 0.9rem;
    }
    
    /* Popover più piccoli */
    .popover {
        max-width: 90vw;
    }
    
    .popover-body {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Ulteriori ottimizzazioni per schermi molto piccoli */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    .custom-table {
        font-size: 0.8rem;
    }
    
    /* Forza scroll orizzontale per tabelle larghe */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   MIGLIORAMENTI TABLET
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Ottimizzazioni specifiche per tablet */
    .accordion-button {
        font-size: 1rem;
    }
    
    .custom-table {
        font-size: 0.95rem;
    }
    
    .pdf-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMAZIONI E TRANSIZIONI AGGIUNTIVE
   ============================================ */

/* Prefers-reduced-motion: rispetta le preferenze utente */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scroll per ancoraggi */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   HOME PAGE - BANNER CON CIELO STELLATO + MATH
   Soluzione finale funzionante (senza pseudo-elementi)
   ============================================ */

/* RIMUOVI COMPLETAMENTE lo spazio tra header e banner */
.view-featured .container-header,
body.view-home .container-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.view-featured .container-banner,
body.view-home .container-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Banner si attacca perfettamente all'header */
.container-banner {
    margin: 0 !important;
}

/* Banner con TRIPLO sfondo (overlay + math + stelle) */
.view-featured .container-banner .banner-overlay,
.view-home .container-banner .banner-overlay,
body .container-banner .banner-overlay {
    color: #fff !important;
    /* TRIPLO BACKGROUND: overlay gradiente, math, stelle */
    background-image: 
        linear-gradient(180deg, rgba(235, 184, 118, 0.3) 0%, rgba(91, 75, 66, 0.35) 40%, rgba(0, 27, 76, 0.4) 100%), 
        url('https://www.studymath.it/images/header_image.jpg'),
        url('https://www.studymath.it/images/backgrounds/cielo-stellato.jpg') !important;
    background-size: cover, 100%, cover !important;
    background-position: center, center center, center top !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    background-attachment: scroll, scroll, scroll !important;
    background-blend-mode: normal, soft-light, normal !important;
    background-color: #8B1538 !important;
    height: 40vh !important;
    position: relative !important;
    min-height: 250px !important;
    margin-top: 0 !important;
}

/* ============================================
   NOTE DI PERSONALIZZAZIONE:
   
   GRADIENTE OVERLAY (riga 40):
   rgba(235, 184, 118, 0.3) 0%     = Arancione/dorato (come header)
   rgba(91, 75, 66, 0.35) 40%      = Marrone intermedio
   rgba(0, 27, 76, 0.4) 100%       = Blu navy
   
   - Aumenta opacità per overlay più intenso (0.4, 0.5, 0.6)
   - Riduci per più trasparenza (0.2, 0.25, 0.3) */

/* Contenuto banner */
.container-banner .banner-overlay .overlay {
    text-align: center;
    background-color: transparent !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem 1rem;
    display: flex;
    position: relative;
    z-index: 2; /* SOPRA tutto */
    margin-top: 0 !important;
}

/* Titolo "BENVENUTI!" */
.container-banner .banner-overlay .overlay h1,
.container-banner .banner-overlay .overlay h2,
.container-banner .banner-overlay .overlay .text-thin {
    font-weight: 700 !important;
    font-size: 3rem !important;
    color: white !important;
    text-shadow: 0 0 10px rgba(0,0,0,1),      /* Alone interno scuro */
    0 0 20px rgba(0,0,0,0.8),    /* Alone esterno morbido */
    2px 2px 4px rgba(0,0,0,0.9) !important;  /* Ombra direzionale */
    margin-bottom: 1rem !important;
    letter-spacing: 1px;
}

/* Linea decorativa */
.container-banner .banner-overlay .overlay .text-thin:after {
    content: "" !important;
    background: white !important;
    width: 150px !important;
    height: 4px !important;
    margin: 1rem auto !important;
    display: block !important;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sottotitolo */
.container-banner .banner-overlay .overlay p,
.container-banner .banner-overlay .overlay .lead {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7) !important;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .container-banner .banner-overlay {
        height: 35vh !important;
        min-height: 200px !important;
        background-size: cover, cover, cover !important;
        background-attachment: scroll,scroll, scroll !important;
    }
    
    .container-banner .banner-overlay::after {
        background-size: cover;
        background-attachment: scroll;
    }
    
    .container-banner .banner-overlay .overlay h1,
    .container-banner .banner-overlay .overlay .text-thin {
        font-size: 2rem !important;
    }
  
  .container-banner .banner-overlay .overlay p,
    .container-banner .banner-overlay .overlay .lead {
        font-size: 1.1rem !important;
    }
}
/*aggiunto per appunti*/
pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

code,
pre {
  padding: 0 3px 2px;
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  font-size: 12px;
  color: #333333;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
}
pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 20px;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre;
  white-space: pre-wrap;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}

pre.prettyprint {
  margin-bottom: 20px;
}

pre code {
  padding: 0;
  color: inherit;
  white-space: pre;
  white-space: pre-wrap;
  background-color: transparent;
  border: 0;
}

.pre-scrollable {
  max-height: 340px;
  overflow-y: scroll;
}








