/*
Theme Name: ANPAS Inspired Theme
Theme URI: https://example.com/anpas-theme
Author: Pasammichele
Author URI: https://example.com
Description: Tema WordPress ispirato al design del sito ANPAS.org - perfetto per associazioni di volontariato, ONG e organizzazioni non profit
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anpas-theme
Tags: volontariato, nonprofit, associazione, charity, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

:root {
    --primary-color: #FF6B35;
    --primary-dark: #E5552D;
    --secondary-color: #2C3E50;
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   HEADER E NAVIGAZIONE
   ======================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header {
    background: var(--gray-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-medium);
}

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

.top-links a {
    margin: 0 15px;
    color: var(--text-light);
}

.top-links a:hover {
    color: var(--primary-color);
}

.social-links a {
    margin: 0 8px;
    color: var(--text-light);
    font-size: 18px;
}

.social-links a:hover {
    color: var(--primary-color);
}

.main-header {
    padding: 20px 0;
}

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

.site-logo img {
    max-height: 80px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin: 0 5px;
}

.main-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
    color: var(--primary-color);
}

/* Submenu */
.main-menu li {
    position: relative;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
}

.main-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-light);
}

.main-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.main-menu .sub-menu li a:hover {
    background: var(--gray-light);
    color: var(--primary-color);
    padding-left: 30px;
}

.donate-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px !important;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition);
}

.donate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85), rgba(44, 62, 80, 0.75));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

/* ========================================
   STATISTICS SECTION
   ======================================== */
.stats-section {
    background: var(--gray-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   NEWS/BLOG SECTION
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.news-title:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ========================================
   CTA SECTIONS
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="white" fill-opacity="0.1" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-info {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Sticky header animation */
.site-header.sticky-active {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Hover effects */
.news-card,
.stat-item,
.cta-section {
    transition: var(--transition);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: var(--white);
    border: 2px solid var(--gray-medium);
    border-radius: 5px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ========================================
   NEWS META
   ======================================== */
.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: var(--primary-color);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    font-size: 14px;
    padding: 15px 0;
    color: rgba(255,255,255,0.8);
}

.breadcrumbs a {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumbs .separator {
    margin: 0 8px;
}

/* ========================================
   NO POSTS MESSAGE
   ======================================== */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: var(--gray-light);
    border-radius: 10px;
}

.no-posts h3 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.no-posts p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    position: absolute;
    top: -40px;
    left: 0;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-menu {
        flex-direction: column;
    }
    
    .main-menu > li {
        margin: 0;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .main-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-light);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}