/* ========================================
   ANNIAFFOLLATI.IT - CSS ARTICOLI v1.0
   Stylesheet per pagine articolo
   ======================================== */

/* ===== RESET E VARIABILI ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde: #008000;
    --rosso: #cc0000;
    --bianco: #ffffff;
    --nero: #1a1a1a;
    --grigio-chiaro: #f8f9fa;
    --grigio-medio: #6c757d;
    --grigio-scuro: #343a40;
}

/* ===== BASE ===== */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--nero);
    background: var(--grigio-chiaro);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--verde);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--rosso);
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bianco);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-banner {
    background: var(--verde);
    padding: 0;
    margin: 0;
}

.header-banner svg {
    width: 100%;
    height: auto;
    max-height: 80px;
    display: block;
}

/* ===== NAVIGAZIONE ===== */
.main-nav {
    background: linear-gradient(135deg, var(--grigio-scuro), #2c3136);
    padding: 0;
}

.main-nav .nav-link {
    color: var(--bianco) !important;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.main-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    background: var(--bianco);
    padding: 1rem 0;
    border-bottom: 2px solid var(--grigio-chiaro);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--verde);
    font-weight: 700;
}

.breadcrumb-item.active {
    color: var(--grigio-medio);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--grigio-medio);
}

/* ===== CONTAINER ARTICOLO ===== */
.article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* ===== HEADER ARTICOLO ===== */
.article-header {
    background: var(--bianco);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid var(--verde);
}

.article-category {
    color: var(--verde);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.article-header h1 {
    color: var(--rosso);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-abstract {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--grigio-scuro);
    font-style: italic;
    border-left: 2px solid var(--rosso);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

/* ===== CONTENUTO ARTICOLO ===== */
.article-content {
    background: var(--bianco);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.article-content p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-content h4 {
    color: var(--rosso);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--verde);
    padding-bottom: 0.5rem;
}

/* ===== IMMAGINI ===== */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Immagini flottanti */
.article-content .img-left {
    float: left;
    margin: 0 2rem 1rem 0;
    max-width: 45%;
}

.article-content .img-right {
    float: right;
    margin: 0 0 1rem 2rem;
    max-width: 45%;
}

/* Didascalie normali */
.image-caption {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: var(--grigio-medio);
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Didascalie per immagini flottanti */
.article-content .img-left + .image-caption {
    float: left;
    clear: left;
    max-width: 45%;
    margin: -0.5rem 2rem 1rem 0;
    text-align: center;
}

.article-content .img-right + .image-caption {
    float: right;
    clear: right;
    max-width: 45%;
    margin: -0.5rem 0 1rem 2rem;
    text-align: center;
}

/* ===== CITAZIONI ===== */
.article-content blockquote {
    background: var(--grigio-chiaro);
    border-left: 4px solid var(--verde);
    padding: 1.5rem 2rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--grigio-scuro);
}

.article-content blockquote p {
    margin-bottom: 0.5rem;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.fonte {
    display: block;
    font-size: 0.9rem;
    color: var(--grigio-medio);
    font-style: normal;
    margin-top: 0.5rem;
    text-align: right;
    font-weight: 600;
}

/* ===== NAVIGAZIONE ARTICOLI ===== */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.article-navigation a {
    padding: 0.75rem 1.5rem;
    background: var(--verde);
    color: var(--bianco) !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.article-navigation a:hover {
    background: var(--rosso);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.article-navigation .nav-home {
    background: var(--grigio-scuro);
}

.article-navigation .nav-home:hover {
    background: var(--grigio-medio);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--grigio-scuro);
    color: var(--bianco);
    padding: 2rem 0 0;
    margin-top: 4rem;
}

.footer-section h5 {
    color: var(--bianco);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a {
    color: var(--verde);
}

.footer-section a:hover {
    color: var(--bianco);
}

.footer-bottom {
    background: #2c3136;
    padding: 1rem 0;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== COOKIE BANNER ===== */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f6f6f6;
    border-top: 2px solid #555555;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
}

#cookieBanner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-message {
    flex: 1;
    min-width: 300px;
    color: #000000;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-message a {
    color: #555555;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn {
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #555555;
    color: #ffffff;
}

.cookie-btn:hover {
    background: #333333;
}

/* ===== FORM FEEDBACK v2.1.1 ===== */
.feedback-container {
    max-width: 100%;
    width: 100%;
    margin: 15px auto;
    padding: 8px 20px 15px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    clear: both;
    display: block;
    float: none;
}

.feedback-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 6px;
    font-size: 20px;
}

.rating {
    text-align: center;
    margin-bottom: 8px;
}

.rating span {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating span:hover,
.rating span.active {
    color: #ffc107;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.submit-btn:hover {
    background-color: #218838;
}

.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#feedbackStatus {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

#feedbackStatus.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#feedbackStatus.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== NOTE A PIÈ DI PAGINA ===== */
.NOTETESTO {
    color: #0066cc;
    font-size: 0.75em;
    vertical-align: super;
    cursor: pointer;
    text-decoration: none;
}

.NOTETESTO:hover {
    color: #004499;
    text-decoration: underline;
}

.note-section {
    margin-top: 40px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    clear: both;
}

.note-section h4 {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.note-item {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: justify;
    color: #333;
}

.note-number {
    font-weight: 700;
    color: #0066cc;
    margin-right: 5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content .img-left,
    .article-content .img-right {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }
    
    .article-content .img-left + .image-caption,
    .article-content .img-right + .image-caption {
        float: none;
        max-width: 100%;
        margin: -0.5rem 0 1rem 0;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .article-navigation a {
        width: 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feedback-container {
        padding: 20px;
        margin: 20px 10px;
    }
}
* Container audio CENTRATO (default) */
.audio-container-centered {
    background: #f8f9fa;
    border-left: 4px solid #008000;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 15px auto;
    max-width: 500px;
    clear: both;
}

.audio-container-centered h3 {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 0.95em;
    font-weight: 600;
    text-align: center;
}

.audio-container-centered audio {
    width: 100%;
    border-radius: 4px;
    height: 32px;
}

.audio-container-centered .audio-caption {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
    text-align: center;
}

/* Container audio FLOTTANTE SINISTRA 350px */
.audio-container-float-left {
    background: #f8f9fa;
    border-left: 4px solid #008000;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 5px 20px 15px 0;
    max-width: 350px;
    float: left;
    clear: left;
}

.audio-container-float-left h3 {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
}

.audio-container-float-left audio {
    width: 100%;
    border-radius: 4px;
    height: 32px;
}

.audio-container-float-left .audio-caption {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-container-centered,
    .audio-container-float-left {
        max-width: 100%;
        float: none;
        margin: 15px 0;
    }
    
    .audio-container-centered h3,
    .audio-container-float-left h3 {
        font-size: 0.9em;
    }
    
    .audio-container-centered .audio-caption,
    .audio-container-float-left .audio-caption {
        font-size: 0.75em;
    }
}

/* ======================================== 
   FINE BLOCCO AUDIO
   ======================================== */

  * ========================================
   VIDEO PLAYER - Due Posizionamenti
   ISTRUZIONI: Copia tutto questo blocco 
   alla FINE del file articoli.css
   ======================================== */

/* Container video CENTRATO 500px (default) */
.video-container-centered {
    background: #f8f9fa;
    border-left: 4px solid #008000;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 20px auto;
    max-width: 500px;
    clear: both;
}

.video-container-centered h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 0.95em;
    font-weight: 600;
    text-align: center;
}

.video-container-centered video {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.video-container-centered .video-caption {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
    margin-top: 6px;
    text-align: center;
}

/* Container video FLOTTANTE SINISTRA 350px */
.video-container-float-left {
    background: #f8f9fa;
    border-left: 4px solid #008000;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 5px 20px 15px 0;
    max-width: 350px;
    float: left;
    clear: left;
}

.video-container-float-left h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
}

.video-container-float-left video {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.video-container-float-left .video-caption {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container-centered,
    .video-container-float-left {
        max-width: 100%;
        float: none;
        margin: 15px 0;
    }
    
    .video-container-centered h3,
    .video-container-float-left h3 {
        font-size: 0.9em;
    }
    
    .video-container-centered .video-caption,
    .video-container-float-left .video-caption {
        font-size: 0.75em;
    }
}

/* ======================================== 
   FINE BLOCCO VIDEO
   ======================================== */
 