/*
Theme Name: Rotary Theme - Hero
Theme URI: https://www.rotary.org
Author: Nino Web
Author URI: https://wa.me/3281730498
Description: Variante Hero del tema Rotary - Layout moderno con hero section full-width, navbar trasparente e griglia prodotti. Colori ufficiali Rotary International.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rotary-hero
Tags: rotary, club, responsive, custom-menu, featured-images, hero, modern
*/

/* ========================================
   VARIABILI COLORI ROTARY UFFICIALI
   ======================================== */
:root {
    --rotary-blue: #005EB8;
    --rotary-gold: #F7A81B;
    --rotary-dark: #003B73;
    --rotary-light: #E8F4F8;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    color: var(--rotary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rotary-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ========================================
   HEADER
   ======================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 35px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Header trasparente per homepage */
.transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    box-shadow: none;
    padding: 45px 0;
}

.transparent-header .site-title,
.transparent-header .main-navigation a {
    color: var(--white);
}

.transparent-header .site-title:hover {
    color: var(--rotary-gold);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-branding-link {
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-title {
    color: var(--rotary-blue);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.transparent-header .site-title {
    color: var(--white);
}

.site-logo-image {
    margin-top: 0;
}

.site-logo-image img {
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.site-description {
    color: var(--rotary-gold);
    font-size: 14px;
    margin: 5px 0 0 0;
    font-style: italic;
}

/* Menu di navigazione */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--rotary-blue);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: var(--rotary-blue);
    color: var(--white);
}

/* Header CTA Button */
.header-cta-btn {
    background-color: var(--rotary-gold);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta-btn:hover {
    background-color: var(--white);
    color: var(--rotary-blue);
    transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background-color: var(--rotary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rotary-blue), #0077CC);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Quando c'è un'immagine di sfondo */
.hero-section.has-background {
    background-color: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.85), rgba(0, 119, 204, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    max-width: 700px;
    padding: 0 40px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-cta-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    background-color: var(--white);
    color: var(--rotary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SLIDER HOMEPAGE (se attivato con slide)
   ======================================== */
.homepage-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: var(--rotary-light);
}

/* Controlli Slider */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 94, 184, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--rotary-gold);
    transform: translateY(-50%) scale(1.1);
}

/* Dots Slider */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--rotary-gold);
    transform: scale(1.3);
}

.slider-dot:hover {
    background-color: var(--white);
}

.slide {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.8), rgba(247, 168, 27, 0.6));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 40px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slide-text p {
    margin-bottom: 15px;
}

.slide-btn {
    display: inline-block;
    background-color: var(--rotary-gold);
    color: var(--white);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.slide-btn:hover {
    background-color: var(--rotary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 94, 184, 0.3);
}

/* ========================================
   SLIDER HOMEPAGE (mantenuto per compatibilità)
   ======================================== */
.homepage-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: var(--rotary-light);
}

/* Controlli Slider */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background-color: rgba(0, 94, 184, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--rotary-gold);
    transform: scale(1.1);
}

/* Dots Slider */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--rotary-gold);
    transform: scale(1.3);
}

.slider-dot:hover {
    background-color: var(--white);
}

.slide {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.8), rgba(247, 168, 27, 0.6));
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 40px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    background-color: var(--rotary-gold);
    color: var(--white);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: var(--rotary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 94, 184, 0.3);
}

/* ========================================
   SEZIONI HOMEPAGE
   ======================================== */
.home-sections {
    padding: 60px 0;
}

.home-section {
    padding: 60px 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.home-section:nth-child(even) {
    background-color: var(--rotary-light);
    flex-direction: row-reverse;
}

.section-content {
    flex: 1;
}

.section-image {
    flex: 1;
}

.section-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-label {
    color: var(--rotary-gold);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-content h2 {
    font-size: 36px;
    color: var(--rotary-blue);
    margin-bottom: 20px;
}

.section-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.btn-secondary {
    display: inline-block;
    color: var(--rotary-blue);
    font-weight: 600;
    border: 2px solid var(--rotary-blue);
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--rotary-blue);
    color: var(--white);
}

/* ========================================
   GRIGLIA HOMEPAGE
   ======================================== */
.home-grid {
    padding: 80px 0;
    background-color: var(--rotary-light);
}

.grid-scroll-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rotary-gold) var(--rotary-light);
}

.grid-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.grid-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--rotary-light);
    border-radius: 10px;
}

.grid-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--rotary-gold);
    border-radius: 10px;
}

.grid-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--rotary-blue);
}

.grid-items-horizontal {
    display: flex;
    gap: 30px;
    padding-bottom: 20px;
}

.grid-item {
    flex: 0 0 280px;
    text-align: center;
}

.grid-item-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.grid-item-link:hover {
    transform: translateY(-5px);
}

.grid-item-image {
    width: 225px;
    height: 225px;
    margin: 0 auto 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 94, 184, 0.15);
    transition: all 0.3s ease;
}

.grid-item-link:hover .grid-item-image {
    box-shadow: 0 10px 30px rgba(0, 94, 184, 0.3);
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-item-placeholder {
    background: linear-gradient(135deg, var(--rotary-blue), var(--rotary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-placeholder-icon {
    font-size: 60px;
    opacity: 0.5;
}

.grid-item-title {
    color: var(--rotary-blue);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.grid-item-text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
}

.grid-item-link:hover .grid-item-title {
    color: var(--rotary-gold);
}

/* Responsive griglia orizzontale */
@media (max-width: 768px) {
    .grid-item {
        flex: 0 0 220px;
    }
    
    .grid-item-image {
        width: 180px;
        height: 180px;
    }
    
    .grid-item-title {
        font-size: 16px;
    }
    
    .grid-item-text {
        font-size: 13px;
    }
}

/* ========================================
   SEZIONE LOGHI PARTNER
   ======================================== */
.partners-section {
    padding: 60px 0;
    background-color: #F8F9FA;
}

.partners-scroll {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-logo {
    flex: 0 0 auto;
    opacity: 0.4;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* ========================================
   GRIGLIA CARDS HOMEPAGE
   ======================================== */
.cards-section {
    padding: 80px 0;
    background-color: var(--white);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}

/* Card Featured (prima card, grande) */
.card-featured {
    background: linear-gradient(135deg, var(--rotary-blue), #0077CC);
    border-radius: 10px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: all 0.3s ease;
}

.card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 94, 184, 0.3);
}

.card-featured .card-link {
    color: var(--white);
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.card-content-large {
    text-align: center;
}

.card-content-large h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.card-content-large p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    border: 2px solid var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.card-featured:hover .card-btn {
    background-color: var(--white);
    color: var(--rotary-blue);
}

/* Card Product (cards piccole) */
.card-product {
    position: relative;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-product .card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--rotary-gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-product:hover .card-image img {
    transform: scale(1.1);
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-size: 18px;
    color: var(--rotary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
}

.current-price {
    color: var(--rotary-blue);
    font-size: 18px;
    font-weight: 700;
}

/* Responsive Cards Grid */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .partners-scroll {
        gap: 40px;
    }
}

/* ========================================
   CONTENT PAGES
   ======================================== */
.site-content {
    padding: 60px 0;
}

.site-content .container {
    width: 100%;
    max-width: 1200px;
}

/* Layout con sidebar */
.content-sidebar-wrap {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}

.site-main {
    flex: 1 1 auto !important;
    min-width: 0; /* Previene overflow */
    max-width: calc(100% - 340px);
}

/* Sidebar - parte dall'alto */
.widget-area {
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
}

/* Sidebar articoli - sticky a destra */
.single .widget-area {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Sidebar pagine - a sinistra, NON sticky */
.page .widget-area-pages {
    position: static;
}

/* Layout normale per le pagine - sidebar già a sinistra perché è prima nel DOM */
.content-sidebar-wrap-left {
    flex-direction: row !important;
}

/* Assicura che article non rompa il flex */
article {
    width: 100%;
}

article.post,
article.page,
article.hentry {
    display: block;
    width: 100%;
}

/* Forza il container a non avere limiti che rompono il flex */
.single .container,
.page .container {
    max-width: 1200px;
    width: 100%;
}

.widget {
    background-color: var(--white);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Widget sidebar pagine - bordo oro a sinistra */
.widget-area-pages .widget {
    border-left: 4px solid var(--rotary-gold);
}

/* Widget Post Recenti Personalizzato */
.rotary-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rotary-recent-post-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rotary-light);
}

.rotary-recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rotary-recent-post-link {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rotary-recent-post-link:hover {
    opacity: 0.8;
}

.rotary-recent-post-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--rotary-light);
}

.rotary-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rotary-recent-post-link:hover .rotary-recent-post-thumb img {
    transform: scale(1.1);
}

.rotary-recent-post-title {
    flex: 1;
    color: var(--rotary-blue);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rotary-recent-post-link:hover .rotary-recent-post-title {
    color: var(--rotary-gold);
}

.widget-title {
    color: var(--rotary-blue);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--rotary-gold);
}

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

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--rotary-light);
}

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

.widget ul li a {
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: block;
}

.widget ul li a:hover {
    color: var(--rotary-blue);
    padding-left: 10px;
}

/* Widget search */
.widget_search input[type="search"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--rotary-light);
    border-radius: 5px;
    font-size: 16px;
}

.widget_search input[type="search"]:focus {
    border-color: var(--rotary-blue);
    outline: none;
}

.widget_search input[type="submit"] {
    background-color: var(--rotary-blue);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

.widget_search input[type="submit"]:hover {
    background-color: var(--rotary-gold);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--rotary-gold);
}

.page-title {
    font-size: 42px;
    color: var(--rotary-blue);
    margin-bottom: 15px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content h2 {
    color: var(--rotary-blue);
    font-size: 32px;
    margin: 40px 0 20px;
}

.entry-content h3 {
    color: var(--rotary-dark);
    font-size: 24px;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Immagini in evidenza */
.post-thumbnail,
.page-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img,
.page-thumbnail img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Meta informazioni articoli */
.entry-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 15px;
}

.entry-meta span {
    margin: 0 15px;
}

/* Tag degli articoli */
.post-tags {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--rotary-light);
    border-radius: 10px;
}

.post-tags a {
    display: inline-block;
    background-color: var(--rotary-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
}

.post-tags a:hover {
    background-color: var(--rotary-gold);
}

/* Navigazione tra articoli */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--rotary-gold);
}

.post-navigation a {
    color: var(--rotary-blue);
    font-weight: 600;
}

.post-navigation a:hover {
    color: var(--rotary-gold);
}

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

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

/* Link paginazione contenuto */
.page-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--rotary-light);
}

/* ========================================
   AFTER TITLE AREA
   ======================================== */
.after-title-area {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--rotary-light), var(--white));
    border-radius: 10px;
    border-top: 4px solid var(--rotary-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.after-title-widget {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 0;
    box-shadow: none;
}

.after-title-widget:last-child {
    margin-bottom: 0;
}

.after-title-widget .widget-title {
    color: var(--rotary-blue);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rotary-gold);
}

/* ========================================
   END POST AREA
   ======================================== */
.end-post-area {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--rotary-light);
    border-radius: 10px;
    border-left: 5px solid var(--rotary-gold);
}

.end-post-widget {
    background-color: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.end-post-widget:last-child {
    margin-bottom: 0;
}

.end-post-widget .widget-title {
    color: var(--rotary-blue);
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--rotary-gold);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--rotary-blue);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--rotary-gold);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Desktop - forza il layout a 2 colonne */
@media (min-width: 769px) {
    .content-sidebar-wrap {
        display: flex !important;
        flex-direction: row !important;
    }
    
    /* Pagine: sidebar a sinistra (già nell'ordine corretto del DOM) */
    .content-sidebar-wrap-left {
        flex-direction: row !important;
    }
    
    .site-main {
        flex: 1 1 auto !important;
    }
    
    .widget-area {
        flex: 0 0 300px !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--rotary-light);
    }
    
    .main-navigation a {
        display: block;
        padding: 15px 20px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .home-section {
        flex-direction: column !important;
        gap: 30px;
    }
    
    .section-content h2 {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    /* Sidebar responsive */
    .content-sidebar-wrap,
    .content-sidebar-wrap-left {
        flex-direction: column !important;
    }
    
    .widget-area,
    .widget-area-pages {
        flex: 1;
        width: 100%;
        position: static;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pb-40 {
    padding-bottom: 40px;
}
