/*
Theme Name: Sistema Rugby v2 - Giornalistico
Description: Tema WordPress giornalistico professionale per siti di rugby. Design classico da testata giornalistica con layout ottimizzato per notizie e articoli sportivi.
Version: 2.0.0
Author: Sistema Rugby Team
Text Domain: sistemarugby-v2
Tags: journalism, news, sports, rugby, responsive, navy, burgundy, professional, newspaper
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    /* Colori Principali */
    --navy-blue: #1e3a8a;
    --burgundy-red: #991b1b;
    --light-navy: #3b82f6;
    --dark-burgundy: #7f1d1d;
    
    /* Grigi e Neutri */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --dark-gray: #334155;
    --black: #0f172a;
    --border-gray: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 3rem;
    --card-padding: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
}

/* Full Width Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.homepage-layout {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--navy-blue);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

h1 { 
    font-size: 3rem; 
    font-weight: 700;
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 600;
}
h3 { 
    font-size: 1.75rem; 
    font-weight: 600;
}
h4 { 
    font-size: 1.5rem; 
    font-weight: 500;
}
h5 { 
    font-size: 1.25rem; 
    font-weight: 500;
}
h6 { 
    font-size: 1.125rem; 
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

a {
    color: var(--navy-blue);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--burgundy-red);
}

/* Header Styles - FORZATO: Logo normale (NON sticky) */
.site-header,
body .site-header,
html .site-header {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-burgundy)) !important;
    background-color: #1e3a8a !important;
    border-bottom: none !important;
    width: 100% !important;
    position: static !important; /* FORZATO: NON sticky */
    z-index: auto !important;
}

/* Fix per tutti i possibili selettori header */
body .site-header,
html .site-header,
.site-header.site-header {
    background: linear-gradient(135deg, #1e3a8a, #991b1b) !important;
}

.header-masthead {
    background: transparent !important;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Final - Gradiente perfetto */
.site-header {
    background: linear-gradient(135deg, #1e3a8a, #991b1b) !important;
}

.masthead-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 70px; /* Assicura spazio sufficiente per logo + padding */
}

.header-left,
.header-right {
    display: none;
    width: 48px;
    justify-content: center;
}

/* Fix mobile - Force display per header-left e header-right */
@media (max-width: 768px) {
    .header-left,
    .header-right {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Logo Mobile Optimization - per 644x133px */
    .site-logo img {
        max-height: 50px !important; /* 644x133 → 242x50px */
        max-width: 90% !important;
    }
    
    .header-masthead {
        padding: 0.8rem 0 !important; /* Padding ridotto */
    }
}

.site-branding {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px; /* Assicura altezza minima per il logo */
}

.site-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title a {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
    font-style: italic;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Logo Styling - Optimized per 644x133px */
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Logo hover effect */
.site-logo img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Logo Responsive Optimization per 644x133px */
@media (min-width: 1200px) {
    /* Desktop Large */
    .site-logo img {
        max-height: 90px; /* 644x133 → 435x90px */
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    /* Desktop */
    .site-logo img {
        max-height: 80px; /* 644x133 → 387x80px */
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    /* Tablet */
    .site-logo img {
        max-height: 70px; /* 644x133 → 339x70px */
    }
    
    .header-masthead {
        padding: 1.2rem 0;
    }
}

@media (max-width: 480px) {
    /* Mobile Small */
    .site-logo img {
        max-height: 45px !important; /* 644x133 → 218x45px */
        max-width: 85% !important;
        min-height: 35px; /* Non troppo piccolo */
    }
    
    .header-masthead {
        padding: 0.6rem 0 !important;
    }
    
    .masthead-content {
        min-height: 55px !important;
    }
}

@media (max-width: 320px) {
    /* Mobile Extra Small */
    .site-logo img {
        max-height: 40px !important; /* 644x133 → 194x40px */
        max-width: 80% !important;
    }
}

/* ===========================
   SEARCH OVERLAY ELEGANTE 
   =========================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-modal {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.search-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0;
}

.search-modal-title svg {
    color: var(--burgundy-red);
}

.search-modal-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.search-modal-close:hover {
    background: rgba(185, 28, 28, 0.1);
    color: var(--burgundy-red);
    transform: scale(1.1);
}

.search-modal-body {
    padding: 1.5rem 2rem 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    padding: 0 1rem;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-input-icon {
    color: var(--medium-gray);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--dark-gray);
    background: transparent;
}

.search-input::placeholder {
    color: var(--medium-gray);
}

.search-btn {
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.search-suggestions {
    text-align: center;
}

.search-suggestions-title {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0 0 1rem;
    font-weight: 500;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.search-tag {
    background: rgba(30, 58, 138, 0.1);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-tag:hover {
    background: var(--navy-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Responsive Search Modal */
@media (max-width: 768px) {
    .search-overlay {
        padding: 2rem 1rem;
    }
    
    .search-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .search-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-btn {
        justify-content: center;
        padding: 1rem;
    }
    
    .search-tags {
        gap: 0.5rem;
    }
    
    .search-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== STRUTTURA SEPARATA DESKTOP/MOBILE ===== */

/* Desktop: Logo Area (scorre via) */
.desktop-logo-area {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-burgundy));
    padding: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desktop-logo-area .logo-content {
    text-align: center;
}

/* Desktop: Navigation Separata (sticky) */
.desktop-main-navigation {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-burgundy));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.desktop-main-navigation:hover {
    background: rgba(30, 58, 138, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile: Header Unificato (sticky) */
.mobile-site-header {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-burgundy));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

/* Default: Nascondi tutto */
.desktop-logo-area,
.desktop-main-navigation,
.mobile-site-header {
    display: none;
}

/* Desktop: Mostra solo desktop elements */
@media (min-width: 769px) {
    .desktop-logo-area,
    .desktop-main-navigation {
        display: block !important;
    }
    
    .mobile-site-header {
        display: none !important;
    }
}

/* Mobile: Mostra solo mobile elements */
@media (max-width: 768px) {
    .desktop-logo-area,
    .desktop-main-navigation {
        display: none !important;
    }
    
    .mobile-site-header {
        display: block !important;
    }
    
    /* Mobile: Mostra hero swipe, nascondi desktop hero */
    .mobile-hero-swipe {
        display: block !important;
    }
    
    .homepage-hero .container {
        display: none !important;
    }
}

/* Desktop: Nascondi hero mobile */
@media (min-width: 769px) {
    .mobile-hero-swipe {
        display: none !important;
    }
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1.25rem 2rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--burgundy-red);
    transition: left 0.3s ease;
}

.nav-menu a:hover::before {
    left: 0;
}

.nav-menu a:hover {
    background: var(--burgundy-red);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--white) !important;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white) !important;
    color: var(--white) !important;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.search-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--white);
    display: none;
    transition: var(--transition);
}

.search-toggle:hover {
    color: var(--burgundy-red);
    transform: scale(1.1);
}

.search-toggle svg {
    stroke: var(--white);
}

/* Homepage Hero Layout */
.homepage-hero {
    margin-top: 2rem; /* Spazio dalla navbar */
    margin-bottom: 4rem;
    padding: 0 1rem; /* Padding laterale per mobile */
}

.hero-main-article {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    position: relative;
    width: 100%; /* Full width */
    max-width: 100%; /* Assicura full width */
}

.hero-main-image {
    width: 100%;
    height: 500px; /* Più grande su desktop */
    object-fit: cover;
    display: block;
}

.hero-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 3rem 2rem 2rem;
    color: var(--white);
    z-index: 2;
}

.hero-main-category {
    background: var(--burgundy-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-main-category a {
    color: var(--white) !important;
    text-decoration: none;
}

.hero-main-category a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-main-title a {
    color: var(--white);
}

.hero-main-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-main-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-main-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-secondary-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.hero-secondary-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-height: 300px; /* Altezza uniforme anche senza immagine */
    display: flex;
    flex-direction: column;
}

.hero-secondary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.hero-secondary-content {
    padding: 1.5rem;
    flex: 1; /* Occupa lo spazio disponibile */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-secondary-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.hero-secondary-title a {
    color: var(--navy-blue);
}

.hero-secondary-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.hero-secondary-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Content Layout */
.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 3 colonne content + 1 sidebar */
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1400px; /* Max width per contenuto */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

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

.sidebar {
    background: linear-gradient(135deg, var(--light-gray), #f1f5f9);
    padding: 2.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 140px;
    box-shadow: var(--shadow-md);
}

/* Articles Grid */
.articles-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 4px solid var(--navy-blue);
    position: relative;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--burgundy-red);
}

.section-title a {
    color: var(--navy-blue);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Articles List (Row Layout) */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Sezione Articoli Homepage */
.articles-section {
    margin-bottom: 4rem;
}

.articles-section .section-title {
    margin-bottom: 2rem;
    color: var(--navy-blue);
    font-size: 2rem;
    font-weight: 700;
}

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: fit-content;
    border: 1px solid var(--border-gray);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-card .article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--burgundy-red), var(--dark-burgundy));
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.article-card .article-category a {
    color: var(--white) !important;
    text-decoration: none;
}

.article-card .article-category a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.article-content {
    padding: 2rem;
}

.article-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-title a {
    color: var(--navy-blue);
}

.article-title a:hover {
    color: var(--burgundy-red);
}

.article-excerpt {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta svg {
    color: var(--burgundy-red);
}

/* Article Row Styles */
.article-row {
    display: flex;
    gap: 2rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-gray);
    padding: 1.5rem;
    align-items: flex-start;
}

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

.row-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.row-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-row:hover .row-thumbnail img {
    transform: scale(1.05);
}

.row-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.row-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--burgundy-red), var(--dark-burgundy));
    color: var(--white);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.row-category a {
    color: var(--white) !important;
    text-decoration: none;
}

.row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.row-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

.row-title a {
    color: var(--navy-blue);
    text-decoration: none;
}

.row-title a:hover {
    color: var(--burgundy-red);
}

.row-excerpt {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 1rem;
}

.row-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.row-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.row-meta svg {
    color: var(--burgundy-red);
}

.row-meta a {
    color: var(--medium-gray);
    text-decoration: none;
}

.row-meta a:hover {
    color: var(--burgundy-red);
}

/* Widgets */
.widget {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-gray);
}

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

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--burgundy-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-secondary:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.load-more-btn {
    width: 100%;
    max-width: 350px;
    margin: 3rem auto;
    display: block;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-burgundy));
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--burgundy-red);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.footer-newsletter h3 {
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--burgundy-red);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--dark-burgundy);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--burgundy-red);
    transform: translateY(-2px);
}

/* Category Sidebar */
.category-sidebar {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.category-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
    border-bottom: 2px solid var(--burgundy-red);
    padding-bottom: 0.5rem;
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-article-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.category-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-article-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.category-article-content h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.category-article-content h4 a {
    color: var(--navy-blue);
    font-weight: 600;
}

.category-article-meta {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-secondary-articles {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
        gap: 1.5rem;
    }
    
    .hero-main-image {
        height: 400px; /* Altezza media su tablet */
    }
    
    .content-wrapper {
        gap: 3rem; /* Spazio minore tra colonne */
    }
}

/* Mobile Responsive Rules */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-left,
    .header-right {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-toggle {
        display: block;
    }
    
    .header-masthead {
        padding: 1rem 0;
        background: transparent;
    }
    
    .masthead-content {
        background: transparent;
        padding: 0 1rem;
        border-radius: 8px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-title a {
        color: var(--white);
        background: none;
        -webkit-text-fill-color: var(--white);
    }
    
    .site-description {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-blue);
        box-shadow: var(--shadow-lg);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* ===== MOBILE HERO SWIPE CARDS ===== */
    
    /* Contenitore principale swipe */
    .homepage-hero {
        position: relative;
        height: 75vh; /* Più altezza per evitare overflow */
        max-height: 550px;
        min-height: 400px; /* Altezza minima maggiore */
        overflow: hidden;
        margin-top: 1rem;
        padding: 0;
    }
    
    /* Wrapper per le 4 card principali */
    .mobile-hero-swipe {
        position: relative;
        width: 100%;
        height: 100%;
        touch-action: pan-x;
        overflow: visible; /* Permette alle card di sporgere oltre i bordi */
        padding: 0 3%; /* Più spazio laterale per card sporgenti */
    }
    
    /* Header "IN EVIDENZA" */
    .mobile-hero-header {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        z-index: 10;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 2rem;
        border-radius: 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-hero-title {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--navy-blue);
        margin: 0 0 0.25rem 0;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    
    .mobile-hero-subtitle {
        font-size: 0.8rem;
        color: var(--medium-gray);
        margin: 0;
        font-weight: 500;
    }
    
    /* Container per tutte le card */
    .hero-cards-container {
        position: relative;
        width: 100%;
        height: 100%;
        perspective: 1200px; /* Più prospettiva per effetto 3D */
        overflow: visible; /* Permette alle card di sporgere */
        padding: 90px 0 20px; /* Più spazio sopra per l'header */
    }
    
    /* Singola card swipe (aspect ratio 16:9) */
    .hero-swipe-card {
        position: absolute;
        top: 0; /* Reset, usiamo il padding del container */
        left: 2%; /* Aggiustato per il padding del container */
        width: 96%; /* Aggiustato per il padding del container */
        height: calc(100% - 110px); /* Ridotta per evitare overflow e spazio header */
        border-radius: 20px; /* Angoli più arrotondati */
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center center; /* Centratura migliore */
        cursor: grab;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Shadow più leggero di default */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .hero-swipe-card:active {
        cursor: grabbing;
    }
    
    /* Effetto stacked - card dietro SPORGENTI (posizioni iniziali) */
    .hero-swipe-card:nth-child(2) {
        transform: scale(0.95) translateY(15px) translateX(6px);
        z-index: 3;
        opacity: 0.85;
        left: 0%; /* Sporge a sinistra */
        width: 94%;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
    
    .hero-swipe-card:nth-child(3) {
        transform: scale(0.90) translateY(30px) translateX(-6px);
        z-index: 2;
        opacity: 0.7;
        left: 4%; /* Sporge a destra */
        width: 88%;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    }
    
    .hero-swipe-card:nth-child(4) {
        transform: scale(0.85) translateY(45px) translateX(8px);
        z-index: 1;
        opacity: 0.5;
        left: -2%; /* Sporge molto a sinistra */
        width: 82%;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* Card attiva in primo piano - NESSUN BOX-SHADOW pesante */
    .hero-swipe-card.active {
        z-index: 4;
        transform: scale(1) translateY(0) translateX(0);
        opacity: 1;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); /* Shadow molto leggero */
    }
    
    /* Immagine come background - SEMPRE RIEMPIE */
    .hero-swipe-card img {
        display: none; /* Nasconde l'immagine normale */
    }
    
    /* Fallback se manca immagine */
    .hero-swipe-card:not([style*="background-image"]) {
        background: linear-gradient(135deg, var(--navy-blue), var(--dark-burgundy));
    }
    
    /* Overlay scuro per migliorare leggibilità testo */
    .hero-swipe-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
        z-index: 1;
        pointer-events: none;
    }
    
    /* Contenuto card */
    .hero-swipe-card .card-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40%; /* Più spazio per il contenuto */
        background: transparent; /* Rimosso gradient, usiamo l'overlay */
        color: white;
        padding: 1.5rem; /* Più padding */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        z-index: 2; /* Sopra l'overlay */
    }
    
    /* Categoria - STESSI STILI DESKTOP */
    .hero-swipe-card .card-category {
        background: linear-gradient(135deg, var(--burgundy-red), var(--dark-burgundy));
        color: var(--white) !important;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        border-radius: 6px;
        letter-spacing: 0.05em;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        align-self: flex-start;
        margin-bottom: 0.75rem;
        display: inline-block;
    }
    
    .hero-swipe-card .card-category a {
        color: var(--white) !important;
        text-decoration: none !important;
    }
    
    .hero-swipe-card .card-category a:hover {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Titolo - BIANCO FORZATO */
    .hero-swipe-card .card-title {
        font-size: 1.2rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        color: var(--white) !important;
    }
    
    .hero-swipe-card .card-title a {
        color: var(--white) !important;
        text-decoration: none !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .hero-swipe-card .card-title a:hover {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .hero-swipe-card .card-meta {
        font-size: 0.75rem;
        opacity: 0.9;
        display: flex;
        gap: 1rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    /* Indicatori swipe */
    .swipe-indicators {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
        z-index: 5;
    }
    
    .swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;
    }
    
    .swipe-dot.active {
        background: var(--burgundy-red);
        transform: scale(1.2);
    }
    
    /* Nascondi hero desktop su mobile */
    .hero-main-article,
    .hero-secondary-articles {
        display: none !important;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Article Row Responsive */
    .article-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .row-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .row-content {
        gap: 1rem;
    }
    
    .row-title {
        font-size: 1.25rem;
    }
    
    .row-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .homepage-hero {
        margin-top: 1rem; /* Meno margine su mobile */
        padding: 0 0.5rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Single Post Responsive */
    .single-page-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-article .article-title {
        font-size: 2rem;
    }
    
    .article-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .article-content-area {
        padding: 2rem 1.5rem;
    }
    
    .article-footer {
        padding: 1.5rem;
    }
    
    .article-meta-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-main-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .hero-main-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .category-article-item {
        flex-direction: column;
    }
    
    .category-article-thumb {
        width: 100%;
        height: 120px;
    }
    
    /* Article Row Extra Small */
    .article-row {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .row-thumbnail {
        height: 180px;
    }
    
    .row-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .row-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .row-meta {
        font-size: 0.85rem;
        gap: 0.75rem;
    }
    
    /* Comments Responsive */
    .comments-area {
        padding: 2rem 1rem;
        margin-top: 2rem;
        overflow: hidden; /* Previene overflow laterale */
    }
    
    .comment {
        padding: 1.5rem 1rem;
        word-wrap: break-word; /* Spezza parole lunghe */
        overflow-wrap: break-word;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Post Navigation Responsive */
    .post-navigation {
        margin: 2rem 0;
        padding: 1.5rem 0;
        overflow: hidden; /* Previene overflow */
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
    
    .nav-links h4 {
        font-size: 1rem;
        line-height: 1.3;
        margin-top: 0.5rem;
        word-wrap: break-word;
    }
    
    .nav-links .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        margin-bottom: 0.75rem;
    }
} 

/* Accessibility - Skip Link Nascosto */
.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    z-index: 999999;
    background: var(--navy-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
}

/* Single Post Layout */
.single-post-layout {
    padding: 2rem 0;
}

/* Single Page Wrapper */
.single-page-wrapper {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.single-article {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.article-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray), #f1f5f9);
    border-bottom: 3px solid var(--navy-blue);
}

.single-article .article-category {
    margin-bottom: 1rem;
}

.single-article .article-category .category-link {
    background: var(--burgundy-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.single-article .article-category .category-link:hover {
    background: var(--dark-burgundy);
    transform: translateY(-2px);
}

.single-article .article-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--navy-blue);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.article-meta-full {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.article-meta-full span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-full svg {
    color: var(--burgundy-red);
}

.featured-image-container {
    margin: 0;
    padding: 0;
}

.featured-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.article-content-area {
    padding: 3rem;
}

.article-content-area h2,
.article-content-area h3,
.article-content-area h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.article-content-area p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.article-content-area blockquote {
    background: var(--light-gray);
    border-left: 4px solid var(--burgundy-red);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.article-content-area ul,
.article-content-area ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content-area li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-footer {
    padding: 2rem 3rem;
    background: var(--light-gray);
    border-top: 1px solid var(--border-gray);
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h4 {
    margin-bottom: 1rem;
    color: var(--navy-blue);
    font-size: 1.1rem;
}

.tag-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-links a {
    background: var(--white);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--border-gray);
    transition: var(--transition);
}

.tag-links a:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.article-sharing {
    text-align: center;
}

.article-sharing h4 {
    margin-bottom: 1rem;
    color: var(--navy-blue);
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

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

.share-btn.linkedin {
    background: #0077b5;
}

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

/* Post Navigation */
.post-navigation {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--border-gray);
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    color: var(--navy-blue);
    text-transform: none;
    letter-spacing: normal;
}

.nav-links h4 a {
    color: var(--navy-blue);
    text-decoration: none;
    line-height: 1.3;
}

.nav-links h4 a:hover {
    color: var(--burgundy-red);
}

/* Comments Section */
.comments-area {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--navy-blue);
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--burgundy-red);
}

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

.comment {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--navy-blue);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.comment-author-name {
    font-weight: 700;
    color: var(--navy-blue);
    font-size: 1.1rem;
}

.comment-date {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.comment-content {
    line-height: 1.7;
    color: var(--dark-gray);
}

.comment-reply-link {
    background: var(--burgundy-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 1rem;
}

.comment-reply-link:hover {
    background: var(--dark-burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Comment Form */
.comment-respond {
    background: linear-gradient(135deg, var(--light-gray), #f1f5f9);
    padding: 3rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid var(--border-gray);
}

.comment-reply-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--navy-blue);
    text-align: center;
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 0.95rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--white);
    transition: var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.submit {
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive for Single Post */
@media (max-width: 768px) {
    .single-post-layout {
        padding: 1rem 0;
    }
    
    .single-article .article-title {
        font-size: 2.25rem;
    }
    
    .article-header {
        padding: 2rem 2rem 1.5rem;
    }
    
    .article-content-area {
        padding: 2rem;
    }
    
    .article-footer {
        padding: 1.5rem 2rem;
    }
    
    .article-meta-full {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .comments-area,
    .comment-respond {
        padding: 2rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .single-article .article-title {
        font-size: 1.875rem;
    }
    
    .article-content-area {
        padding: 1.5rem;
    }
    
    .article-meta-full {
        font-size: 0.9rem;
    }
    
    .featured-image-container img {
        height: 250px;
    }
} 

/* Mobile: Burger menu styling */
@media (max-width: 768px) {
    /* Burger Menu Mobile - Stesso stile della ricerca */
    .mobile-menu-toggle {
        background: none !important;
        border: none !important;
        color: white !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-menu-toggle svg {
        color: white !important;
        stroke: white !important;
    }
}

/* ================================
   SEARCH RESULTS PAGE ELEGANTE
   ================================ */

.search-results-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-results-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-results-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.search-results-text {
    flex: 1;
}

.search-results-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.search-query {
    color: var(--burgundy-red);
    font-style: italic;
}

.search-results-count {
    color: var(--medium-gray);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.search-results-form {
    margin-top: 1rem;
}

.inline-search-wrapper {
    display: flex;
    align-items: stretch;
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    max-width: 400px;
}

.inline-search-wrapper:focus-within {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.inline-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--dark-gray);
}

.inline-search-input::placeholder {
    color: var(--medium-gray);
}

.inline-search-btn {
    background: var(--navy-blue);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-search-btn:hover {
    background: var(--burgundy-red);
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.search-result-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.search-result-item:nth-child(1) { animation-delay: 0.1s; }
.search-result-item:nth-child(2) { animation-delay: 0.2s; }
.search-result-item:nth-child(3) { animation-delay: 0.3s; }
.search-result-item:nth-child(4) { animation-delay: 0.4s; }
.search-result-item:nth-child(5) { animation-delay: 0.5s; }
.search-result-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Paginazione Search */
.search-pagination {
    text-align: center;
    margin: 3rem 0;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: white;
    color: var(--navy-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--border-gray);
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* No Results Elegante */
.no-results-elegant {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-results-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
}

.no-results-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 0 0 1rem;
}

.no-results-description {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions-elegant {
    margin-bottom: 3rem;
}

.search-suggestions-elegant h3 {
    color: var(--navy-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 12px;
    color: var(--dark-gray);
    font-weight: 500;
}

.suggestion-icon {
    font-size: 1.2rem;
}

.popular-categories h4 {
    color: var(--navy-blue);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-tag {
    background: rgba(30, 58, 138, 0.1);
    color: var(--navy-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-tag:hover {
    background: var(--navy-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--navy-blue), var(--burgundy-red));
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Responsive Search Results */
@media (max-width: 768px) {
    .search-results-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .search-results-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-results-title {
        font-size: 1.5rem;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .category-tags {
        gap: 0.5rem;
    }
    
    .category-tag {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .no-results-elegant {
        padding: 2rem 1rem;
    }
    
    .no-results-title {
        font-size: 1.5rem;
    }
} 