/* Arena di Pola Template - Custom Styles */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --cream: #FAF8F5;
    --cream-dark: #F0EBE3;
    --burgundy: #1B5E20;
    --burgundy-light: #2E7D32;
    --gold: #C9A227;
    --gold-light: #D4B84A;
    --ink: #1A1A1A;
    --ink-light: #4A4A4A;
    --gray: #6B6B6B;
    --white: #FFFFFF;
    --shadow: rgba(26, 26, 26, 0.08);
    --shadow-hover: rgba(26, 26, 26, 0.15);
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    font-size: 18px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ========================================
   Header
   ======================================== */
.header {
    background: #004a25;
    border-bottom: 3px solid #003518;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Banner testata originale */
.header-banner {
    background: linear-gradient(to bottom,
        #006734 0.0%,
        #006935 3.1%,
        #006a36 6.2%,
        #006d36 9.3%,
        #006f37 12.4%,
        #006f37 15.5%,
        #007037 18.6%,
        #007238 24.7%,
        #00743a 27.8%,
        #00763a 34.0%,
        #00793b 40.2%,
        #007b3d 46.4%,
        #007e3f 52.6%,
        #008040 58.8%,
        #008442 64.9%,
        #008744 74.2%,
        #008844 77.3%,
        #008b47 86.6%,
        #008f48 92.8%,
        #008f48 100.0%
    );
    text-align: center;
    padding: 0;
    line-height: 0;
}

.header-banner a {
    display: block;
}

.header-banner-img {
    width: 100%;
    max-width: 771px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Barra navigazione sotto banner */
.header-nav-bar {
    background: #004a25;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    position: relative;
}

/* Navigation */
.nav {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav > a,
.nav > .nav-item > a {
    text-decoration: none;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 12px 16px;
    display: block;
    transition: background 0.2s, color 0.2s;
}

.nav > a::after,
.nav > .nav-item > a::after {
    display: none;
}

.nav > a:hover,
.nav > a[aria-current="page"] {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-bottom: 3px solid var(--white);
}

.nav > .nav-item.current > a,
.nav > .nav-item > a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-bottom: 3px solid var(--white);
}

/* Dropdown */
.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #004a25;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s;
    z-index: 200;
    padding: 4px 0;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 10px 20px !important;
    text-transform: none !important;
    font-size: 13px !important;
    color: var(--white) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    background: rgba(255,255,255,0.15) !important;
}

.nav-dropdown a::after {
    display: none;
}

/* CTA Button */
.nav-cta {
    background: var(--gold) !important;
    color: var(--ink) !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 24px;
}

.hero-title em {
    color: var(--burgundy);
    font-style: italic;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--ink-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image-main {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 20px 20px 60px var(--shadow);
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    z-index: -1;
}

.hero-image-date {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: 10px 10px 30px var(--shadow);
    text-align: center;
}

.hero-image-date .month {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--burgundy);
}

.hero-image-date .day {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    border: none;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border: 1px solid var(--burgundy);
}

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

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

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

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--cream-dark);
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    color: var(--ink);
}

.section-link {
    color: var(--burgundy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.section-link:hover {
    gap: 12px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.article-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.article-card-link:focus {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

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

.article-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.article-content {
    padding: 24px;
}

.article-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--burgundy);
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 12px;
}

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

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

.article-excerpt {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    font-size: 13px;
    color: var(--gray);
}

/* ========================================
   Archive / Storia Section
   ======================================== */
.archive-section {
    background: var(--ink);
    color: var(--white);
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.archive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(27, 94, 32, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 162, 39, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.archive-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.archive-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 24px;
}

.archive-text h2 em {
    color: var(--gold);
    font-style: italic;
}

.archive-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.archive-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* Archive Search */
.archive-search {
    background: var(--white);
    border-radius: 4px;
    padding: 40px;
}

.archive-search h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--ink);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    background: var(--cream);
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--burgundy);
}

.search-filters {
    display: flex;
    gap: 16px;
}

.search-select {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Cormorant Garamond', serif;
    border: 1px solid var(--cream-dark);
    border-radius: 2px;
    background: var(--cream);
    cursor: pointer;
}

.search-btn {
    background: var(--burgundy);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s;
}

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

/* ========================================
   Periodico Section
   ======================================== */
.periodico-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.periodico-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.periodico-current {
    background: var(--burgundy);
    color: var(--white);
    padding: 48px;
    border-radius: 4px;
    text-align: center;
}

.periodico-current .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.periodico-current .month {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 8px;
}

.periodico-current .year {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.periodico-current .cover {
    width: 100%;
    aspect-ratio: 3/4;
    margin-bottom: 24px;
    object-fit: cover;
    display: block;
}

.periodico-current .btn {
    background: var(--gold);
    color: var(--ink);
    border: none;
}

.periodico-current .btn:hover {
    background: var(--gold-light);
}

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

.periodico-item {
    background: var(--white);
    border-radius: 4px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.periodico-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.periodico-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 12px;
}

.periodico-item.unavailable {
    background: var(--cream-dark);
}

.periodico-item.unavailable .unavailable-text {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border: 1px dashed var(--gray);
    border-radius: 2px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.periodico-item .month {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 4px;
}

.periodico-item .year {
    font-size: 14px;
    color: var(--gray);
}

/* ========================================
   Galleria Section
   ======================================== */
.galleria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.galleria-item {
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
}

.galleria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.galleria-item:hover img {
    transform: scale(1.05);
}

.galleria-more {
    background: var(--cream-dark);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.galleria-more:hover {
    background: var(--burgundy);
    color: var(--white);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1.4fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* Colonna brand */
.footer-col--brand {}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 4px;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--white);
    line-height: 1.2;
}

.footer-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-organigramma {
    font-size: 13px;
    color: #aaa;
    line-height: 1.8;
    border-left: 2px solid var(--gold);
    padding-left: 12px;
    margin-bottom: 12px;
}

.footer-organigramma strong {
    color: #ddd;
}

.footer-link-more {
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-link-more:hover {
    color: var(--gold-light);
}

.footer-fb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #1877F2;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-fb-link:hover {
    background: #1466d6 !important;
    color: #fff !important;
}

.footer-fb-icon {
    width: 16px;
    height: 16px;
    fill: #fff;
    flex-shrink: 0;
}

/* Colonne generali */
.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

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

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

/* Blocchi info */
.footer-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
    line-height: 1.6;
}

.footer-block:last-of-type {
    border-bottom: none;
}

.footer-block p {
    margin-bottom: 8px;
    color: #bbb;
}

.footer-block strong {
    color: #ddd;
}

.footer-cf {
    font-size: 15px;
    color: var(--gold) !important;
    font-weight: 600;
}

/* Quote soci */
.footer-quote-list {
    list-style: none;
    font-size: 14px;
    color: #bbb;
}

.footer-quote-list li {
    padding: 4px 0;
}

.footer-quote-list strong {
    color: var(--gold);
}

/* Dati bancari */
.footer-bank-list {
    list-style: none;
    font-size: 13px;
    color: #bbb;
}

.footer-bank-list li {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    line-height: 1.4;
}

.footer-bank-list span {
    color: #888;
    min-width: 80px;
    flex-shrink: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding-top: 1px;
}

/* PayPal link */
.footer-paypal {
    display: inline-block;
    margin-top: 8px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-paypal:hover {
    opacity: 1;
}

.footer-paypal img {
    height: 32px;
    width: auto;
    display: block;
}

/* Contatti */
.footer-contact-list {
    list-style: none;
    font-size: 14px;
    color: #bbb;
}

.footer-contact-list li {
    padding: 5px 0;
    line-height: 1.5;
}

/* Link utili */
.footer-links-list {
    list-style: none;
    font-size: 13px;
}

.footer-links-list li {
    padding: 4px 0;
    border-bottom: 1px solid #2a2a2a;
}

.footer-links-list li:last-child {
    border-bottom: none;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}

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

.article-card {
    animation: fadeInUp 0.6s ease-out both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        min-height: auto;
    }

    .hero-title {
        font-size: 42px;
    }

    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .archive-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .periodico-grid {
        grid-template-columns: 1fr;
    }

    .periodico-archive {
        grid-template-columns: repeat(4, 1fr);
    }

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

    /* Navigation */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px var(--shadow-hover);
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-item > a::before {
        display: none;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 16px;
        display: none;
        background: var(--cream);
        margin-top: 8px;
        border-radius: 4px;
    }

    .nav-item:hover .nav-dropdown {
        display: block;
    }

    .archive-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        gap: 0;
    }

    .header-main .logo {
        gap: 10px;
    }

    .logo-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .logo-icon img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 18px !important;
    }

    .logo-subtitle {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        padding: 8px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        margin: 3px 0;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }

    .hero-title {
        font-size: 36px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .periodico-archive {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .periodico-current {
        padding: 24px;
    }

    .periodico-current .month {
        font-size: 28px;
    }

    .periodico-item {
        padding: 12px;
    }

    .periodico-item .month {
        font-size: 14px;
    }

    .periodico-item .year {
        font-size: 12px;
    }

    .section, .periodico-section {
        padding: 32px 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .archive-section {
        padding: 48px 16px;
    }

    .archive-content {
        gap: 32px;
    }

    .archive-text h2 {
        font-size: 28px;
    }

    .archive-search {
        padding: 20px;
    }

    .archive-search h3 {
        font-size: 20px;
    }

    .search-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .search-filters {
        flex-direction: column;
    }

    .search-select {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .archive-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .galleria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Joomla Module Styles
   ======================================== */

/* Custom module style */
.mod-arenadipola-article {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.4s ease;
}

.mod-arenadipola-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

/* Footer modules */
.footer-col {
    min-width: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination .page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-item:hover,
.pagination .page-item.active {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

/* Category list */
.category-list {
    max-width: 800px;
    margin: 0 auto;
}

.category-list .article-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--cream-dark);
}

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

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 40px;
    background: var(--cream-dark);
    font-size: 14px;
    color: var(--gray);
}

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

.breadcrumbs span {
    margin: 0 8px;
}

/* Smart Search / com_finder */
.com-finder {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid rgba(27, 94, 32, 0.12);
    border-top: 4px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(26, 26, 26, 0.08);
}

.com-finder .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.com-finder__form {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--cream-dark);
}

.com-finder fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.com-finder .form-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.com-finder .form-inline > label,
.com-finder .control-label label {
    display: block;
    color: var(--ink-light);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
}

.com-finder .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.com-finder .form-control,
.com-finder .form-select {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.3;
    box-shadow: none;
}

.com-finder .form-control:focus,
.com-finder .form-select:focus {
    outline: none;
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12);
}

.com-finder .btn {
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.com-finder .btn-primary {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(27, 94, 32, 0.18);
}

.com-finder .btn-primary:hover {
    background: var(--burgundy-light);
    color: var(--white);
}

.com-finder .btn-secondary {
    background: var(--cream-dark);
    color: var(--ink);
}

.com-finder .btn-secondary:hover {
    background: #e4dccf;
    color: var(--ink);
}

.com-finder__advanced {
    margin-top: 18px;
    padding: 22px;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
}

.com-finder__advanced.collapse:not(.show) {
    display: none;
}

.com-finder__tips {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 16px;
}

.com-finder__tips p {
    margin-bottom: 8px;
}

.com-finder__tips p:last-child {
    margin-bottom: 0;
}

.com-finder__filter .filter-branch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.com-finder__explained {
    display: none;
}

.com-finder__explained p {
    margin: 0;
}

.com-finder__results-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.result__item {
    padding: 22px;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.result__item:hover {
    border-color: rgba(27, 94, 32, 0.25);
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.08);
    transform: translateY(-1px);
}

.result__item .highlight {
    background: rgba(201, 162, 39, 0.32);
    border-radius: 2px;
}

.result__item .highlight:before {
    background: rgba(201, 162, 39, 0.32);
}

.com-finder mark {
    padding: 0 2px;
    color: inherit;
    background: rgba(201, 162, 39, 0.28);
    border-radius: 2px;
}

.result__title,
.result__description,
.result__taxonomy {
    margin: 0;
}

.result__title {
    margin-bottom: 10px;
}

.result__title-link {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    color: var(--burgundy);
}

.result__title-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
}

.result__title-link:hover .result__title-text {
    color: var(--burgundy-light);
}

.result__title-url {
    display: none;
}

.result__description {
    color: var(--ink-light);
    font-size: 18px;
    line-height: 1.65;
}

.result__date {
    display: inline-block;
    margin-right: 8px;
    color: var(--gray);
    font-size: 15px;
    font-style: italic;
}

.result__taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.result__taxonomy-item {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    color: var(--ink-light);
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.result__taxonomy-item span {
    color: var(--burgundy);
    font-weight: 700;
}

.com-finder__navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    color: var(--gray);
    font-size: 15px;
}

@media (max-width: 768px) {
    .com-finder {
        padding: 24px 16px;
        border-radius: 4px;
    }

    .com-finder .input-group {
        grid-template-columns: 1fr;
    }

    .com-finder .btn {
        width: 100%;
    }

    .com-finder__filter .filter-branch {
        grid-template-columns: 1fr;
    }

    .result__item {
        padding: 18px 16px;
    }

    .result__title-text {
        font-size: 21px;
    }

    .com-finder__navigation {
        justify-content: flex-start;
    }
}

/* ========================================
   Pagine interne (is-inner)
   ======================================== */
.is-inner .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    min-height: 400px;
}

@media (max-width: 768px) {
    .is-inner .main-content {
        padding: 24px 16px;
    }
}

/* ========================================
   Homepage: nascondi output componente
   ======================================== */
.main-content--hidden {
    display: none;
}

/* ========================================
   Intestazioni pagine interne
   ======================================== */
.page-intro {
    padding: 64px 40px 36px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    overflow: hidden;
}

.page-intro-inner {
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.page-intro h1 {
    max-width: 760px;
    margin: 0;
    color: var(--ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 52px;
    font-weight: 500;
    line-height: 1.12;
    overflow-wrap: break-word;
}

.page-intro p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--ink-light);
    font-size: 20px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

/* ========================================
   Pagina Notizie
   ======================================== */
.page-notizie .main-content {
    width: 100%;
    max-width: 1040px;
    padding-top: 36px;
    padding-bottom: 72px;
    overflow: hidden;
}

.page-notizie .com-content-category-blog > .page-header,
.page-notizie .com-content-category-blog > h1,
.page-notizie .com-content-category-blog > h2,
.page-notizie .category-desc {
    display: none;
}

.page-notizie .com-content-category-blog__items {
    margin: 0;
}

.page-notizie .com-content-category-blog__items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-notizie .blog-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    min-width: 0;
    padding: 18px 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
}

.page-notizie figure.item-image,
.page-notizie figure.left,
.page-notizie figure.right,
.page-notizie figure.center {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--cream-dark);
    border-radius: 4px;
}

.page-notizie figure.item-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.page-notizie .item-content {
    min-width: 0;
}

.page-notizie .page-header {
    margin: 0 0 6px;
}

.page-notizie .page-header h2 {
    margin: 0;
    color: var(--ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.22;
    overflow-wrap: break-word;
}

.page-notizie .page-header a {
    color: inherit;
}

.page-notizie .page-header a:hover {
    color: var(--burgundy);
}

.page-notizie .article-info {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 0 0 8px;
    padding: 0;
    color: var(--gray);
    font-size: 13px;
}

.page-notizie .article-info-term,
.page-notizie .article-info .createdby,
.page-notizie .article-info .hits {
    display: none !important;
}

.page-notizie .article-info dd {
    margin: 0;
}

.page-notizie .article-info a {
    color: var(--burgundy);
}

.page-notizie .article-info .icon-fw {
    display: none;
}

.page-notizie .item-content > p {
    display: -webkit-box;
    margin: 0;
    color: var(--ink-light);
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-notizie .item-content > p:nth-of-type(n+2) {
    display: none;
}

.page-notizie .item-content > p img {
    display: none;
}

.page-notizie .readmore {
    margin: 8px 0 0;
    padding-top: 0;
}

.page-notizie .readmore .btn {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.page-notizie .readmore .btn:hover {
    background: var(--burgundy-light);
    border-color: var(--burgundy-light);
}

.page-notizie .com-content-category-blog__navigation {
    margin-top: 36px;
}

@media (max-width: 900px) {
    .page-notizie .blog-item {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    body.page-notizie,
    .page-notizie .site-wrapper,
    .page-notizie .page-intro,
    .page-notizie .main-content {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .page-intro {
        padding: 42px 16px 28px;
    }

    .page-intro h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .page-intro p {
        font-size: 17px;
        overflow-wrap: anywhere;
    }

    .page-notizie .main-content {
        padding-top: 22px;
        padding-bottom: 48px;
    }

    .page-notizie .com-content-category-blog,
    .page-notizie .com-content-category-blog__items,
    .page-notizie .blog-item,
    .page-notizie .item-content,
    .page-notizie figure.item-image {
        width: 100%;
        max-width: calc(100vw - 32px);
        min-width: 0;
    }

    .page-notizie .blog-item {
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 16px 0;
    }

    .page-notizie figure.item-image,
    .page-notizie figure.left,
    .page-notizie figure.right,
    .page-notizie figure.center {
        aspect-ratio: 1 / 1;
    }

    .page-notizie .page-header h2 {
        font-size: 18px;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .page-notizie .article-info {
        gap: 4px 8px;
        font-size: 11px;
    }

    .page-notizie .item-content > p {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* ========================================
   Menu: stato attivo e dropdown mobile
   ======================================== */

/* Voce di menu attiva */
.nav a[aria-current="page"] {
    color: var(--white);
}

.nav a[aria-current="page"]::after {
    display: none;
}

.nav-item.current > a {
    color: var(--white);
}

/* Dropdown mobile: aperto via JS (.active) */
.nav-dropdown.active {
    display: block;
}

/* Storia buttons layout */
.storia-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.storia-buttons .btn {
    justify-content: center;
}

/* Logo come link (non sottolineato) */
a.logo {
    text-decoration: none;
    color: inherit;
}

a.logo:hover .logo-text {
    color: var(--burgundy);
}

/* ========================================
   Pagina articolo (com_content)
   ======================================== */

/* Titolo articolo */
.com-content-article .page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--cream-dark);
}

/* Metadati articolo — nasconde tutto il blocco Joomla default (Written by, Hits, ecc.) */
.article-info,
.article-info-term {
    display: none !important;
}

/* Immagine featured (figura sopra il testo) — override float Joomla */
.com-content-article figure.item-image,
.com-content-article figure.left,
.com-content-article figure.right,
.com-content-article figure.center {
    float: none !important;
    margin: 0 0 40px 0 !important;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 48px var(--shadow-hover);
    width: 100% !important;
}

.com-content-article figure.item-image img,
.com-content-article figure.left img,
.com-content-article figure.right img,
.com-content-article figure.center img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.com-content-article figure figcaption {
    padding: 12px 16px;
    background: var(--cream-dark);
    font-size: 13px;
    color: var(--gray);
    font-style: italic;
    text-align: center;
}

/* Corpo articolo */
.com-content-article__body {
    font-size: 19px;
    line-height: 1.85;
    color: var(--ink);
}

.com-content-article__body p {
    margin-bottom: 1.5em;
}

.com-content-article__body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    margin: 2em 0 0.6em;
    color: var(--ink);
}

.com-content-article__body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    margin: 1.6em 0 0.5em;
    color: var(--ink);
}

.com-content-article__body blockquote {
    border-left: 3px solid var(--gold);
    margin: 2em 0;
    padding: 12px 24px;
    background: var(--cream-dark);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--ink-light);
}

/* Immagini nel corpo del testo */
.com-content-article__body img {
    max-width: 100%;
    max-height: 480px;
    width: auto !important;
    height: auto !important;
    border-radius: 6px;
    box-shadow: 0 6px 28px var(--shadow);
    display: block;
    margin: 2em auto;
    object-fit: cover;
}

/* Float sinistra */
.com-content-article__body img[style*="float:left"],
.com-content-article__body img[style*="float: left"] {
    float: left;
    max-width: 45%;
    margin: 0.4em 2em 1em 0;
}

/* Float destra */
.com-content-article__body img[style*="float:right"],
.com-content-article__body img[style*="float: right"] {
    float: right;
    max-width: 45%;
    margin: 0.4em 0 1em 2em;
}

/* Clearfix */
.com-content-article__body::after {
    content: '';
    display: table;
    clear: both;
}

/* Navigazione prev/next */
.pagenavigation {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.pagenavigation a {
    color: var(--burgundy);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive articolo */
@media (max-width: 768px) {
    .com-content-article .page-header h1 {
        font-size: 28px;
    }

    .com-content-article__body {
        font-size: 17px;
        line-height: 1.75;
    }

    .com-content-article__body img[style*="float:left"],
    .com-content-article__body img[style*="float: left"],
    .com-content-article__body img[style*="float:right"],
    .com-content-article__body img[style*="float: right"] {
        float: none;
        max-width: 100%;
        margin: 1.5em auto;
    }

    .com-content-article figure.item-image img {
        max-height: 280px;
    }
}

/* ========================================
   Hero Slider con Ricerca
   ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #1B5E20;
    flex-shrink: 0;
}

.slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide--active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}



/* Alone verde scuro uniforme sullo slider */
.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 17, 0.58);
    z-index: 2;
    pointer-events: none;
}

/* Contenuto centrato verticalmente */
.slider-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px 40px;
    color: var(--white);
    gap: 32px;
}

.slider-title {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    font-weight: 500;
    font-style: normal;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    margin: 0;
}

/* Barra di ricerca */
.slider-search-form {
    max-width: 680px;
    margin: 0 auto;
}

.slider-search-box {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.slider-search-input {
    flex: 1;
    padding: 18px 24px;
    font-size: 17px;
    font-family: 'Cormorant Garamond', serif;
    border: none;
    outline: none;
    background: white;
    color: var(--ink);
    min-width: 0;
}

.slider-search-input::placeholder {
    color: #999;
    font-style: italic;
}

.slider-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    background: var(--burgundy);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.slider-search-btn:hover {
    background: var(--burgundy-light);
}


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

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(46, 125, 50, 0.7);
    border-color: rgba(46, 125, 50, 0.9);
}

.slider-dot--active {
    background: var(--burgundy-light);
    border-color: var(--burgundy-light);
    transform: scale(1.35);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }

    .slider-content {
        padding: 0 16px 56px;
    }

    .slider-title {
        font-size: 34px;
    }

    .slider-search-input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .slider-search-btn {
        padding: 0 18px;
    }
}
