/*
Theme Name: MindLeague
Theme URI: https://mindleague.it
Author: MindLeague Team
Author URI: https://mindleague.it
Description: Tema WordPress custom per MindLeague — La Salute Mentale scende in campo! Progetto dedicato alla salute mentale nello sport giovanile.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mindleague
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #FFFFFF;
    --bg-dark: #0f1923;
    --bg-alt: #f8f9fa;
    --text-primary: #222222;
    --text-secondary: #555555;
    --text-light: #FFFFFF;
    --text-muted: #888888;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --header-height: 72px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--accent-blue-hover);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 640px;
    margin: -32px auto 48px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--accent-green);
    color: var(--text-light);
    border-color: var(--accent-green);
}

.btn-secondary:hover {
    background-color: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline-white:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.0625rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
    background-color: transparent;
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-header .site-logo img {
    max-height: 45px;
    width: auto;
    transition: all var(--transition);
}

.site-header .site-logo-mobile {
    display: none;
}

/* Default on hero: light text */
.home-page .site-header:not(.scrolled) .main-nav .menu a {
    color: var(--text-light);
}

.home-page .site-header:not(.scrolled) .hamburger span {
    background-color: var(--text-light);
}

/* Scrolled state */
.site-header.scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .main-nav .menu a {
    color: var(--text-primary);
}

.site-header.scrolled .hamburger span {
    background-color: var(--text-primary);
}

/* Non-homepage: always white */
body:not(.home-page) .site-header {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

body:not(.home-page) .site-header .main-nav .menu a {
    color: var(--text-primary);
}

body:not(.home-page) .site-header .hamburger span {
    background-color: var(--text-primary);
}

/* Navigation */
.main-nav .menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav .menu li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-nav .menu li a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.main-nav .menu li.current-menu-item a,
.main-nav .menu li.current_page_item a {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 999;
    transition: right var(--transition);
    overflow-y: auto;
    padding: 80px 24px 40px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-overlay .menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-overlay .menu li a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-nav-overlay .menu li a:hover,
.mobile-nav-overlay .menu li.current-menu-item a {
    background-color: var(--bg-alt);
    color: var(--accent-blue);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.2));
}

/* ==========================================================================
   PAGE HERO (internal pages)
   ========================================================================== */
.page-hero {
    background-color: var(--bg-dark);
    padding: calc(var(--header-height) + 48px) 0 48px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.875rem;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.breadcrumbs-item a {
    color: var(--accent-blue);
}

.breadcrumbs-item a:hover {
    text-decoration: underline;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '/';
    margin-left: 4px;
    color: var(--text-muted);
}

/* ==========================================================================
   HOMEPAGE SECTIONS
   ========================================================================== */

/* Section GDP */
.section-gdp {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section-gdp .gdp-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.section-gdp .gdp-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.section-gdp .gdp-content h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

/* Section Mention */
.section-mention {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.section-mention .mention-inner {
    text-align: center;
}

.section-mention img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

/* Section Event */
.section-event {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section-event .event-inner {
    text-align: center;
}

.section-event h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

.section-event a img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    max-width: 800px;
    margin: 0 auto;
}

.section-event a:hover img {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Section People Run */
.section-people-run {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.section-people-run .people-run-inner {
    text-align: center;
}

.section-people-run h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

.section-people-run img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Section ANAPP */
.section-anapp {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section-anapp .anapp-inner {
    text-align: center;
}

.section-anapp h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

.section-anapp img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Section BiUnicrowd */
.section-biunicrowd {
    padding: 80px 0;
    background-color: var(--bg-alt);
    text-align: center;
}

.section-biunicrowd h2 {
    font-size: 2rem;
    margin-bottom: 32px;
}

/* ==========================================================================
   IMAGE CAROUSEL / SLIDESHOW
   ========================================================================== */
.section-slideshow {
    padding: 80px 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slideshow-track .slide {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.slideshow-track .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.slideshow-btn:hover {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

.slideshow-btn.prev { left: 16px; }
.slideshow-btn.next { right: 16px; }

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.slideshow-dot.active {
    background-color: var(--accent-blue);
    transform: scale(1.2);
}

/* ==========================================================================
   PARTNER CAROUSEL
   ========================================================================== */
.section-partners {
    padding: 80px 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.section-partners .partners-heading {
    text-align: center;
    margin-bottom: 48px;
}

.section-partners .partners-heading h2 {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    background-color: rgba(15, 25, 35, 0.85);
    padding: 16px 40px;
    border-radius: var(--radius-lg);
}

.partner-carousel-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    margin-bottom: 24px;
}

.partner-carousel-wrapper:last-child {
    margin-bottom: 0;
}

.partner-carousel-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: partnerScroll 40s linear infinite;
    width: max-content;
}

.partner-carousel-track.reverse {
    animation: partnerScrollReverse 45s linear infinite;
}

.partner-carousel-track:hover {
    animation-play-state: paused;
}

.partner-carousel-track img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition);
    flex-shrink: 0;
}

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

@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes partnerScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.section-contact {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.section-contact .contact-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.section-contact h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-contact .subtitle {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    outline: none;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.form-error {
    display: none;
    color: #ef4444;
    font-size: 0.8125rem;
    margin-top: 6px;
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    display: none;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-weight: 500;
}

.form-success.visible {
    display: block;
}

.contact-form .btn {
    width: 100%;
    margin-top: 8px;
}

.contact-email {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-email a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Honeypot */
.ohnohoney {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.section-faq {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

.section-faq .faq-inner {
    max-width: 760px;
    margin: 0 auto;
}

.section-faq h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background-color: var(--bg-primary);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    transition: background-color var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-alt);
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--transition);
}

.faq-icon::before {
    top: 50%;
    left: 2px;
    right: 2px;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    left: 50%;
    top: 2px;
    bottom: 2px;
    width: 2px;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer-inner a {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col .footer-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-col .footer-logo img {
    max-height: 40px;
    width: auto;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    fill: var(--accent-blue);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
    color: var(--accent-blue);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

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

.footer-social a:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--text-light);
}

.footer-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.footer-partner img {
    max-height: 36px;
    width: auto;
}

.footer-partner:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */
.page-content {
    padding: 60px 0;
}

.page-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.page-content .content-wrapper h2 {
    font-size: 1.75rem;
    margin: 40px 0 16px;
}

.page-content .content-wrapper h3 {
    font-size: 1.375rem;
    margin: 32px 0 12px;
}

.page-content .content-wrapper p {
    margin-bottom: 16px;
}

.page-content .content-wrapper ul,
.page-content .content-wrapper ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}

.page-content .content-wrapper ol {
    list-style: decimal;
}

.page-content .content-wrapper li {
    margin-bottom: 6px;
}

.page-content .content-wrapper a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.page-content .content-wrapper img {
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.page-content .content-wrapper blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: var(--bg-alt);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Legal pages */
.page-legal .content-wrapper {
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ==========================================================================
   CHI SIAMO PAGE
   ========================================================================== */
.section-mission .mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.section-mission .mission-block {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
}

.section-mission .mission-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.mission-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mission-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-light);
}

.mission-block h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.mission-block p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Manifesto */
.section-manifesto .manifesto-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-manifesto .manifesto-intro .manifesto-quote {
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.manifesto-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.manifesto-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    border-top: 4px solid var(--accent-blue);
}

.manifesto-card:nth-child(2) {
    border-top-color: var(--accent-green);
}

.manifesto-card:nth-child(3) {
    border-top-color: #8b5cf6;
}

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

.manifesto-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.manifesto-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Values */
.section-valori .valori-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.valore-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    transition: all var(--transition);
}

.valore-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Team */
.section-team .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.team-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

.team-card-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-photo .team-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.team-card-body {
    padding: 28px;
}

.team-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-card-body .team-role {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 16px;
    display: block;
}

.team-card-body .team-bio {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================================================
   COMUNICATI PAGE
   ========================================================================== */
.comunicati-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

.comunicati-sidebar .sidebar-widget {
    background-color: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.comunicati-sidebar .widget-title {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

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

.post-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.post-card-body {
    padding: 24px;
}

.post-card-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--accent-blue);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.post-card-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--accent-blue);
}

.post-card-link:hover {
    color: var(--accent-blue-hover);
}

/* ==========================================================================
   COURSES
   ========================================================================== */
.corsi-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.corsi-filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-alt);
    transition: all var(--transition);
}

.corsi-filter-btn:hover,
.corsi-filter-btn.active {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.course-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.course-card-thumb {
    position: relative;
    overflow: hidden;
}

.course-card-thumb img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform var(--transition);
}

.course-card:hover .course-card-thumb img {
    transform: scale(1.05);
}

.course-card-placeholder {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    font-size: 3rem;
}

.course-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.course-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-title {
    font-size: 1.125rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-card-title a {
    color: var(--text-primary);
}

.course-card-title a:hover {
    color: var(--accent-blue);
}

.course-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
    flex: 1;
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.course-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card-meta-item svg {
    color: var(--accent-blue);
}

.course-card-btn {
    width: 100%;
    text-align: center;
}

.corsi-empty {
    text-align: center;
    padding: 80px 0;
}

.corsi-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.corsi-empty h2 {
    margin-bottom: 12px;
}

.corsi-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.single-post-content .post-featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.post-meta a {
    color: var(--accent-blue);
}

.post-body {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.post-body h2 { font-size: 1.5rem; margin: 32px 0 16px; }
.post-body h3 { font-size: 1.25rem; margin: 24px 0 12px; }
.post-body p { margin-bottom: 16px; }
.post-body img { border-radius: var(--radius-lg); margin: 24px 0; }
.post-body a { color: var(--accent-blue); text-decoration: underline; }

.post-body ul, .post-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 6px; }

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-navigation a {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.9375rem;
}

.post-navigation a:hover {
    color: var(--accent-blue-hover);
}

.post-back-link {
    margin-top: 32px;
    text-align: center;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-alt);
    transition: all var(--transition);
}

.pagination .page-numbers:hover {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.pagination .page-numbers.current {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

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

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.page-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 48px) 24px 80px;
}

.page-404 .error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.page-404 h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.page-404 p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE — TABLET (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 0;
    }

    .hero-content h1 { font-size: 2.5rem; }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img { max-width: 500px; }

    .section-gdp .gdp-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .section-mission .mission-grid { grid-template-columns: 1fr; }
    .manifesto-cards { grid-template-columns: 1fr; }
    .section-team .team-grid { grid-template-columns: 1fr; }
    .comunicati-layout { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .main-nav { display: none; }
    .hamburger { display: flex; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root { --header-height: 64px; }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container { padding: 0 16px; }
    .section-padding { padding: 56px 0; }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
    }

    .btn { padding: 12px 24px; font-size: 0.875rem; }
    .btn-lg { padding: 14px 32px; }

    .hero-section { min-height: auto; }
    .hero-inner { padding: 32px 0 48px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 0.9375rem; }
    .hero-image { display: none; }

    .page-hero { padding: calc(var(--header-height) + 32px) 0 32px; }
    .page-hero h1 { font-size: 1.875rem; }

    .section-gdp,
    .section-mention,
    .section-event,
    .section-people-run,
    .section-anapp,
    .section-biunicrowd { padding: 56px 0; }

    .slideshow-btn { width: 36px; height: 36px; font-size: 1rem; }

    .partner-carousel-track img { max-height: 44px; }
    .partner-carousel-track { gap: 28px; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .courses-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }

    .valori-badges { gap: 12px; }
    .valore-badge { padding: 10px 20px; font-size: 0.8125rem; }

    .faq-question { padding: 16px 18px; font-size: 0.9375rem; }
    .faq-answer-inner { padding: 0 18px 16px; font-size: 0.9375rem; }

    .single-post-content { padding: 32px 16px 60px; }
    .post-navigation { flex-direction: column; gap: 16px; }

    .page-404 .error-code { font-size: 5rem; }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (480px)
   ========================================================================== */
@media (max-width: 480px) {
    h1 { font-size: 1.625rem; }
    .hero-content h1 { font-size: 1.75rem; }
    .section-padding { padding: 40px 0; }
    .slideshow-btn.prev { left: 8px; }
    .slideshow-btn.next { right: 8px; }
}
