﻿/* ===== STILE GLOBALE NURSIND ===== */
/* Scrollbar verde */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #187a34; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0f5424; }
/* Banner di pagina */
.nursind-page-banner {
    background: linear-gradient(135deg, #187a34 0%, #0f5424 100%);
    color: #fff;
    padding: 38px 24px 34px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.nursind-page-banner::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.nursind-page-banner h1, .nursind-page-banner h2 {
    font-size: 1.9em;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 6px;
    position: relative;
}
.nursind-page-banner .banner-sub {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    position: relative;
}
.nursind-page-banner .banner-sub a { color: rgba(255,255,255,0.75); text-decoration: none; }
.nursind-page-banner .banner-sub a:hover { color: #fff; }
.nursind-page-banner .banner-sub span { opacity: 0.6; margin: 0 5px; }

/* Wrapper contenuto */
.nursind-inner-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}
.nursind-content-layout {
    display: flex;
    gap: 30px;
    padding: 36px 24px 50px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}
.nursind-content-main {
    flex: 1;
    min-width: 0;
}
.nursind-content-aside {
    width: 280px;
    flex-shrink: 0;
}
@media(max-width: 900px) {
    .nursind-content-layout { flex-direction: column; }
    .nursind-content-aside { width: 100%; }
}

/* Contenuto pagina */
.nursind-page-body {
    background: #fff;
    border-radius: 8px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}
.nursind-page-body h2, .nursind-page-body h3, .nursind-page-body h4 { color: #187a34; font-weight: 700; margin-top: 28px; }
.nursind-page-body h2 { font-size: 1.4em; border-bottom: 2px solid #e8f5e9; padding-bottom: 8px; }
.nursind-page-body a { color: #187a34; }
.nursind-page-body a:hover { color: #0f5424; }
.nursind-page-body ul { padding-left: 20px; }
.nursind-page-body ul li { margin-bottom: 6px; }
@media(max-width: 768px) { .nursind-page-body { padding: 20px 18px; } }

/* Articolo singolo */
.nursind-article-header {
    background: linear-gradient(135deg, #187a34 0%, #0f5424 100%);
    padding: 42px 24px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.nursind-article-header::after {
    content: '';
    position: absolute;
    top: -40px; right: -50px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.nursind-article-cat {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.nursind-article-header h1 {
    font-size: 1.85em;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 14px;
    line-height: 1.3;
    position: relative;
}
.nursind-article-meta-bar {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    position: relative;
}
.nursind-article-meta-bar span { margin-right: 20px; }
.nursind-article-body {
    background: #fff;
    border-radius: 8px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 1.85;
    font-size: 15px;
    color: #333;
}
.nursind-article-body h2, .nursind-article-body h3 { color: #187a34; font-weight: 700; margin-top: 28px; }
.nursind-article-body a { color: #187a34; }
.nursind-article-body p { margin-bottom: 18px; }
.nursind-article-body img { max-width: 100%; height: auto; border-radius: 6px; }
@media(max-width: 768px) { .nursind-article-body { padding: 20px 18px; } .nursind-article-header h1 { font-size: 1.4em; } }

/* Griglia news (index/archive) */
.nursind-news-full { background: #f8f9f8; min-height: 60vh; }
.nursind-archive-header {
    background: linear-gradient(135deg, #187a34 0%, #0f5424 100%);
    padding: 38px 24px;
    color: #fff;
}
.nursind-archive-header h1 { font-size: 1.9em; font-weight: 800; color: #fff !important; margin: 0 0 6px; }
.nursind-archive-header p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }
.nursind-loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 36px 24px 50px;
    max-width: 1100px;
    margin: 0 auto;
}
@media(max-width: 900px) { .nursind-loop-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .nursind-loop-grid { grid-template-columns: 1fr; padding: 20px 14px; } }

/* Card loop */
.nursind-loop-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border-top: 3px solid #187a34;
}
.nursind-loop-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.13); }
.nursind-loop-card .card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.nursind-loop-card .card-img-placeholder { height: 6px; background: #187a34; }
.nursind-loop-card .card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.nursind-loop-card .card-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #187a34; letter-spacing: 1px; margin-bottom: 8px; }
.nursind-loop-card .card-title { font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.45; margin: 0 0 12px; flex: 1; }
.nursind-loop-card .card-title a { color: inherit; text-decoration: none; }
.nursind-loop-card .card-title a:hover { color: #187a34; }
.nursind-loop-card .card-excerpt { font-size: 13px; color: #666; line-height: 1.6; margin-bottom: 12px; }
.nursind-loop-card .card-meta { font-size: 12px; color: #aaa; border-top: 1px dotted #eee; padding-top: 10px; margin-top: auto; }
.nursind-loop-card .card-readmore { display: inline-block; margin-top: 10px; color: #187a34; font-size: 13px; font-weight: 600; text-decoration: none; }
.nursind-loop-card .card-readmore:hover { color: #0f5424; }

/* Sidebar globale restyling */
#secondary, .widget-area { background: transparent; }
#secondary .widget { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

/* Annulla il padding-top aggiunto da JS del tema per sticky header */
.site-content.has-sticky,
.site-content { padding-top: 0 !important; }

/* Elimina lo spacer del tema sotto la navbar (non serve con position:sticky) */
.header-space { display: none !important; }

/* Forza: nessun margin-top sul tag html (admin-bar / cookie-consent) */
html { margin-top: 0 !important; }

/* Fix: blocca il margine sopra la navbar causato dal plugin cookie-consent */
html.has-cookie-bar.cookie-bar-top-bar {
    margin-top: 0 !important;
    transition: none !important;
}
/* Posiziona il banner cookie in basso come banner fisso */
#catapult-cookie-bar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99998 !important;
}

/* ===== TIPOGRAFIA AVANZATA PAGINE INTERNE ===== */

/* Paragrafo introduttivo */
.nursind-page-body > p:first-of-type,
.nursind-article-body > p:first-of-type {
    font-size: 1.08em;
    color: #444;
    line-height: 1.9;
    border-left: 4px solid #187a34;
    padding-left: 16px;
    margin-bottom: 22px;
}

/* h3 con accento verde */
.nursind-page-body h3,
.nursind-article-body h3 {
    font-size: 1.15em;
    color: #187a34;
    font-weight: 700;
    margin-top: 26px;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid #187a34;
}

/* h4 */
.nursind-page-body h4,
.nursind-article-body h4 {
    font-size: 1em;
    color: #1a5c2a;
    font-weight: 700;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.9em;
}

/* Paragrafі normali */
.nursind-page-body p,
.nursind-article-body p { margin-bottom: 16px; }

/* Citazioni */
.nursind-page-body blockquote,
.nursind-article-body blockquote {
    background: #f1f8f3;
    border-left: 4px solid #187a34;
    border-radius: 0 6px 6px 0;
    margin: 24px 0;
    padding: 16px 22px;
    color: #3a5c42;
    font-style: italic;
    font-size: 1em;
}
.nursind-page-body blockquote p,
.nursind-article-body blockquote p {
    margin: 0;
    border: none;
    padding: 0;
}

/* Linea divisoria */
.nursind-page-body hr,
.nursind-article-body hr {
    border: none;
    border-top: 2px solid #e8f5e9;
    margin: 28px 0;
}

/* Immagini nel contenuto */
.nursind-page-body img,
.nursind-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.10);
    margin: 12px 0;
}

/* Tabelle */
.nursind-page-body table,
.nursind-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.nursind-page-body table thead th,
.nursind-article-body table thead th {
    background: #187a34;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
}
.nursind-page-body table tbody tr:nth-child(even),
.nursind-article-body table tbody tr:nth-child(even) {
    background: #f6fbf7;
}
.nursind-page-body table tbody td,
.nursind-article-body table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8f0e9;
    vertical-align: top;
}
.nursind-page-body table tbody tr:hover,
.nursind-article-body table tbody tr:hover {
    background: #eef7ef;
}

/* Liste ordinate */
.nursind-page-body ol,
.nursind-article-body ol {
    padding-left: 22px;
    counter-reset: ol-counter;
    list-style: none;
}
.nursind-page-body ol li,
.nursind-article-body ol li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 10px;
    margin-bottom: 8px;
}
.nursind-page-body ol li::before,
.nursind-article-body ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: -22px;
    top: 0;
    background: #187a34;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Liste puntate */
.nursind-page-body ul li::marker,
.nursind-article-body ul li::marker {
    color: #187a34;
}

/* Testo in evidenza (strong) */
.nursind-page-body strong,
.nursind-article-body strong {
    color: #0f5424;
    font-weight: 700;
}

/* Box informativo (classe aggiungibile nell'editor WP come blocco personalizzato) */
.nursind-infobox {
    background: #eaf5ec;
    border: 1px solid #b2debb;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 22px 0;
    position: relative;
    padding-left: 54px;
}
.nursind-infobox::before {
    content: 'ℹ';
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: 20px;
    color: #187a34;
    font-style: normal;
}

/* Paginazione post */
.nursind-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 2px solid #e8f5e9;
    font-size: 13px;
}
.nursind-post-nav a {
    color: #187a34;
    font-weight: 600;
    text-decoration: none;
}
.nursind-post-nav a:hover { color: #0f5424; }

/* ===== PAGINAZIONE ARCHIVIO ===== */
.navigation.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #187a34;
    background: #fff;
    border: 1px solid #c8e6c9;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.page-numbers:hover {
    background: #187a34;
    color: #fff;
    border-color: #187a34;
}
.page-numbers.current {
    background: #187a34;
    color: #fff;
    border-color: #187a34;
    cursor: default;
}
.page-numbers.dots {
    background: transparent;
    border: none;
    color: #999;
    cursor: default;
}
.page-numbers.prev,
.page-numbers.next {
    font-size: 13px;
    padding: 0 14px;
}
@media(max-width: 600px) {
    .page-numbers { min-width: 30px; height: 30px; font-size: 13px; }
}
