/*
Theme Name: GeneratePress Child - Dietro la Notizia
Template: generatepress
Version: 1.0
*/

/* === COLORI E VARIABILI === */
:root {
    --primary-blue: #1a56db;
    --primary-dark: #1e40af;
    --light-blue: #dbeafe;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* === CORPO E SFONDO === */
body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* === HEADER === */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary-blue);
}

.main-title a, .site-title a {
    color: var(--primary-dark) !important;
    font-weight: 700;
}

/* === NAVIGAZIONE === */
.main-navigation {
    background: var(--white);
}

.main-navigation a {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-blue) !important;
}

/* === ARTICOLI - CARD MODERNE === */
.site-main article {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-main article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Immagine articolo */
.post-image, .featured-image, article .attachment-post-image {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.post-image img, .featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

article:hover .post-image img,
article:hover .featured-image img {
    transform: scale(1.05);
}

/* Contenuto articolo */
.inside-article {
    padding: 1.5rem 2rem;
}

/* Titolo articolo */
.entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--primary-blue);
}

/* Meta info */
.entry-meta {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: var(--primary-blue);
}

/* Excerpt */
.entry-summary, .entry-content {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Read more button */
.read-more, a.read-more {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.read-more:hover, a.read-more:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

/* === SIDEBAR === */
.sidebar .widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar .widget-title {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

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

.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

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

.sidebar a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--primary-blue);
}

/* Search widget */
.search-form {
    display: flex;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-blue);
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.search-submit {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

/* === FOOTER === */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer a {
    color: var(--light-blue);
}

/* === PAGINA SINGOLA === */
.single .entry-title {
    font-size: 2.25rem;
}

.single .entry-content {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.single .entry-content p {
    margin-bottom: 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .inside-article {
        padding: 1rem 1.25rem;
    }
    
    .entry-title {
        font-size: 1.25rem;
    }
    
    .post-image img, .featured-image img {
        height: 180px;
    }
}

/* === FIX IMMAGINI ARTICOLI SINGOLI - NON TAGLIATE === */
.single .post-image img,
.single .featured-image img,
.single .wp-post-image,
.single article img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 8px;
}

/* Immagini nella homepage - proporzioni mantenute */
.home .post-image img,
.archive .post-image img,
.blog .post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

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

/* Container immagine articolo singolo */
.single .post-image {
    margin-bottom: 1.5rem;
}

/* Fix per Search placeholder in italiano */
.search-field::placeholder {
    content: "Cerca...";
}

/* === DIMENSIONI STANDARD IMMAGINI === */

/* Immagine in evidenza negli articoli singoli */
.single .post-image,
.single .featured-image {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.single .post-image img,
.single .featured-image img {
    width: 100%;
    max-width: 800px;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Immagini nel contenuto articolo */
.entry-content img {
    max-width: 100%;
    width: auto;
    max-height: 500px;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Immagini homepage/archivio - card compatte */
.home .post-image,
.archive .post-image,
.blog .post-image {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.home .post-image img,
.archive .post-image img,
.blog .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home article:hover .post-image img,
.archive article:hover .post-image img {
    transform: scale(1.05);
}

/* Contenitore articolo più stretto per leggibilità */
.single .inside-article {
    max-width: 900px;
    margin: 0 auto;
}

/* === IMMAGINI ARTICOLI SINGOLI - DIMENSIONE CONTENUTA === */
.single .post-image,
.single .featured-image {
    max-width: 600px !important;
    margin: 0 auto 1.5rem auto !important;
    text-align: center;
}

.single .post-image img,
.single .featured-image img,
.single .wp-post-image {
    max-width: 600px !important;
    max-height: 400px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

/* Immagini dentro il contenuto dell'articolo */
.single .entry-content img {
    max-width: 550px !important;
    max-height: 350px !important;
    width: auto;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
}

/* =========================================
   LAYOUT MAGAZINE - STILE GIORNALE
   ========================================= */

.magazine-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === HERO SECTION === */
.hero-section {
    margin-bottom: 3rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Articolo Principale Grande */
.hero-main {
    grid-row: span 2;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hero-main .hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.hero-main .hero-content {
    padding: 1.5rem;
}

.hero-main .hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.hero-main .hero-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 1rem 0;
}

/* Articoli Secondari */
.hero-secondary {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hero-secondary:hover {
    transform: translateY(-3px);
}

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

.hero-secondary .hero-content {
    padding: 1rem;
}

.hero-secondary .hero-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0.3rem 0;
    color: var(--text-dark);
}

/* Elementi comuni Hero */
.hero-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-category {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero-date {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* === SEZIONI CATEGORIA === */
.category-section {
    margin-bottom: 3rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--primary-blue);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.section-link {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
}

.section-link:hover {
    text-decoration: underline;
}

/* Griglia Articoli */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-article {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.grid-article:hover {
    transform: translateY(-3px);
}

.grid-article a {
    text-decoration: none;
    color: inherit;
}

.grid-image img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.grid-content {
    padding: 1rem;
}

.grid-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.grid-excerpt {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.grid-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-main {
        grid-row: span 1;
    }
    
    .hero-main .hero-image img {
        height: 250px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* === FIX SIDEBAR + MAGAZINE LAYOUT === */
.site-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

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

.site-content .sidebar,
.site-content .widget-area {
    width: 300px !important;
    min-width: 300px !important;
    flex-shrink: 0;
}

.magazine-layout {
    max-width: 100%;
    padding: 0;
}

/* Griglia 3 colonne per adattarsi con sidebar */
.articles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

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

@media (max-width: 900px) {
    .site-content {
        flex-direction: column;
    }
    
    .site-content .sidebar,
    .site-content .widget-area {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .articles-grid {
        grid-template-columns: 1fr !important;
    }
}

/* === RICERCA NELL'HEADER === */
.header-search {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.header-search-form:focus-within {
    border-color: var(--primary-blue);
}

.header-search-field {
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.header-search-btn {
    background: var(--primary-blue);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
}

.header-search-btn:hover {
    background: var(--primary-dark);
}

/* Header layout con ricerca */
.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .header-search-field {
        width: 150px;
    }
}

/* === BARRA CATEGORIE === */
.category-bar {
    background: var(--primary-blue);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-bar-inner::-webkit-scrollbar {
    display: none;
}

.category-item {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.3s ease;
    border-bottom: 3px solid transparent;
}

.category-item:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: white;
}

.category-item.category-home {
    background: var(--primary-dark);
}

/* === SIDEBAR PER ADS === */
.sidebar .widget-area,
.widget-area.sidebar {
    min-height: 400px;
}

.sidebar-ads-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.sidebar-ads-placeholder::before {
    content: "📢";
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Nascondi sidebar vuota in homepage ma tieni lo spazio */
.home .sidebar:empty,
.home .widget-area:empty {
    display: block;
}

@media (max-width: 768px) {
    .category-bar-inner {
        padding: 0 10px;
    }
    
    .category-item {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* === LAYOUT FULL WIDTH === */
.magazine-fullwidth {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
}

.magazine-fullwidth .magazine-layout {
    max-width: 100%;
}

/* Hero più grande per full width */
.magazine-fullwidth .hero-container {
    grid-template-columns: 1.5fr 1fr;
}

.magazine-fullwidth .hero-main .hero-image img {
    height: 420px;
}

.magazine-fullwidth .hero-main .hero-title {
    font-size: 1.8rem;
}

/* Griglia 4 colonne full width */
.magazine-fullwidth .articles-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .magazine-fullwidth .articles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .magazine-fullwidth .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .magazine-fullwidth .hero-container {
        grid-template-columns: 1fr;
    }
}

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

/* =========================================
   LAYOUT FULL WIDTH CON SIDEBAR ADS
   ========================================= */

.magazine-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.magazine-wrapper .magazine-layout {
    flex: 1;
    min-width: 0;
}

/* === SIDEBAR ADS === */
.magazine-sidebar {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Placeholder Ads */
.ad-placeholder {
    text-align: center;
    padding: 15px;
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ad-space {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-300x600 {
    width: 300px;
    height: 600px;
    max-width: 100%;
}

/* Newsletter Widget */
.newsletter-widget {
    padding: 1.5rem;
}

.newsletter-widget h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.newsletter-widget p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.newsletter-form button {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Sticky Ad at bottom */
.sticky-ad {
    position: sticky;
    top: 20px;
}

/* Griglia 3 colonne con sidebar presente */
.magazine-wrapper .articles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Responsive con sidebar */
@media (max-width: 1300px) {
    .magazine-sidebar {
        width: 280px;
        min-width: 280px;
    }
    
    .ad-300x250, .ad-300x600 {
        width: 250px;
    }
    
    .ad-300x600 {
        height: 500px;
    }
}

@media (max-width: 1100px) {
    .magazine-wrapper .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .magazine-wrapper {
        flex-direction: column;
    }
    
    .magazine-sidebar {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ad-300x600 {
        display: none;
    }
    
    .sticky-ad {
        position: relative;
    }
}

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

/* =========================================
   FOOTER PERSONALIZZATO
   ========================================= */

.site-footer {
    background: var(--text-dark) !important;
    color: #e5e7eb !important;
    padding: 2rem 0 !important;
    margin-top: 3rem;
}

.site-footer .site-info {
    text-align: center;
    padding: 0 20px;
}

.site-footer .copyright-bar {
    color: #e5e7eb;
}

.site-footer a {
    color: var(--light-blue) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white !important;
}

.footer-tagline {
    display: block;
    margin-top: 10px;
    font-style: italic;
    color: #9ca3af;
    font-size: 0.9rem;
}

.site-footer .inside-site-info {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Custom */
.custom-footer {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    padding: 2.5rem 20px !important;
    text-align: center;
}

.custom-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-footer .footer-copyright {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #f3f4f6;
}

.custom-footer .footer-copyright strong {
    color: var(--light-blue);
}

.custom-footer .footer-tagline {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* === NASCONDI AUTORE === */
.entry-meta .byline,
.entry-meta .author,
.post-author,
.byline,
.author.vcard,
.entry-meta a[rel="author"],
span.author {
    display: none !important;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--light-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-btn.accept {
    background: var(--primary-blue);
    color: white;
}

.cookie-btn.accept:hover {
    background: var(--primary-dark);
}

.cookie-btn.reject {
    background: transparent;
    border: 2px solid #6b7280;
    color: #d1d5db;
}

.cookie-btn.reject:hover {
    border-color: white;
    color: white;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* === SOCIAL SHARE BUTTONS === */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 5px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c8de4;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

.share-btn.email {
    background: #6b7280;
}

.share-btn.email:hover {
    background: #4b5563;
}

@media (max-width: 600px) {
    .share-btn span {
        display: none;
    }
    .share-btn {
        padding: 10px;
    }
}

/* === ARTICOLI CORRELATI === */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid var(--primary-blue);
}

.related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

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

.related-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-3px);
}

.related-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.related-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding: 12px 15px 5px;
    color: var(--text-dark);
}

.related-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    padding: 0 15px 12px;
}

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

/* === FOOTER LINKS === */
.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9ca3af !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white !important;
}
