/*
Theme Name: Turismo Italia
Theme URI: https://www.anyweb.it
Author: Angelo Cosenza
Description: Theme WordPress completo ottimizzato per SEO e Core Web Vitals con slider, animazioni e customizer
Version: 1.0.0
License: GPL v2 or later
Text Domain: turismoitalia
*/

/* ========================================
   CSS Variables - ITALIA TURISTICA
   ======================================== */
:root {
    /* TRICOLORE VIVACE */
    --color-green: #009246;
    /* Verde Italia Vibrante */
    --color-white: #FFFFFF;
    --color-red: #CE2B37;
    /* Rosso Italia Vibrante */

    /* Accenti Turistici */
    --color-ocean: #0077BE;
    /* Blu Mediterraneo */
    --color-sun: #FDB927;
    /* Giallo Sole */
    --color-primary: #009246;
    /* Verde come primario */
    --color-secondary: #1a1a1a;
    --color-text: #2d2d2d;
    --color-light: #f8f9fa;

    /* Backgrounds */
    --bg-cream: #FFF8F0;
    --page-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --spacing: 2rem;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows Drammatiche */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.2);
    --shadow-tricolore: 0 10px 40px rgba(0, 146, 70, 0.3);
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.loading {
    opacity: 0;
}

body:not(.loading) {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1.2rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
    margin: 0 0 1.5rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ========================================
   PREMIUM CARDS & GRID (Homepage & General)
   ======================================== */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.premium-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* Lighter shadow */
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 146, 70, 0.15);
    /* Green shadow on hover */
}

.premium-card .card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.premium-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover .card-overlay {
    opacity: 1;
}

.premium-card .btn-card {
    background: #009246;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.premium-card:hover .btn-card {
    transform: translateY(0);
}

.premium-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--color-text);
}

/* Region Cards specifically */
.drill-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.drill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.drill-img {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.drill-body {
    padding: 15px;
    text-align: center;
}


.category-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.category-section .section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-green);
    margin-bottom: 1rem;
}

.category-section .section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* Buttons comuni */
.btn-discover,
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-discover,
.btn-primary {
    background: var(--color-green);
    color: white;
    border: 2px solid var(--color-green);
}

.btn-discover:hover,
.btn-primary:hover {
    background: transparent;
    color: var(--color-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 146, 70, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-green);
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   PARCHI - 3D FLIP CARDS
   ======================================== */
.parchi-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.cards-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.flip-card-3d {
    height: 400px;
    position: relative;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
}

.flip-card-3d:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.flip-card-front {
    background: #000;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.card-title-overlay h3 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--color-green), #00a651);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.flip-card-back h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.flip-card-back p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========================================
   MONUMENTI - CAROUSEL
   ======================================== */
.monumenti-section {
    background: #f8f9fa;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 80px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.carousel-card {
    flex: 0 0 360px;
    height: 500px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

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

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

.carousel-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
}

.carousel-card-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: white;
}

.card-location {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
}

.carousel-nav:hover {
    background: var(--color-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ========================================
   MUSEI - MASONRY GRID
   ======================================== */
.musei-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    grid-auto-rows: 250px;
}

.masonry-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.masonry-large {
    grid-row: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.15);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay h4 {
    color: white;
    margin: 0 0 1rem;
    font-size: 1.3rem;
}

.masonry-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.masonry-link:hover {
    gap: 1rem;
}

/* ========================================
   TERME - PARALLAX CARDS
   ======================================== */
.terme-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

.parallax-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.parallax-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.parallax-card:hover {
    transform: translateY(-10px);
}

.parallax-img-wrapper {
    height: 250px;
    overflow: hidden;
}

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

.parallax-content {
    padding: 2rem;
}

.parallax-content h3 {
    margin: 0 0 1rem;
    font-size: 1.8rem;
    color: var(--color-green);
}

.parallax-content p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   ATTRAZIONI - SWIPE SLIDER
   ======================================== */
.attrazioni-section {
    background: #f8f9fa;
}

.swipe-slider {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.slider-item {
    flex: 0 0 100%;
    display: flex;
    gap: 3rem;
    padding: 2rem;
    align-items: center;
}

.slider-image {
    flex: 0 0 50%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    flex: 1;
}

.slider-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-green);
}

.slider-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--color-green);
    transform: scale(1.5);
}

/* Mobile Responsive for Categories */
@media (max-width: 768px) {
    .category-section {
        padding: 4rem 0;
    }

    .category-section .section-header h2 {
        font-size: 2rem;
    }

    .cards-grid-3d {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-container {
        padding: 2rem 60px;
    }

    .carousel-card {
        flex: 0 0 300px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .slider-item {
        flex-direction: column;
        gap: 2rem;
    }

    .slider-image {
        flex: 0 0 300px;
        width: 100%;
    }

    .slider-content h3 {
        font-size: 1.8rem;
    }
}


/* ========================================
   ITALY INTERACTIVE MAP
   ======================================== */
.italy-map-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f8f5 0%, #ffffff 50%, #fef5f5 100%);
    position: relative;
    overflow: hidden;
}

.italy-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 146, 70, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(206, 43, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.italy-map-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding: 3rem;
}

.italy-map-container svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.italy-map-container .region {
    fill: #009246;
    stroke: #fff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.italy-map-container .region:hover {
    fill: #CE2B37;
    stroke: #FDB927;
    stroke-width: 3;
    transform: scale(1.08);
    filter: drop-shadow(0 5px 15px rgba(206, 43, 55, 0.5));
}

.italy-map-container .region:active {
    transform: scale(0.95);
}

/* Map Tooltip - già gestito in JS inline */

@media (max-width: 768px) {
    .italy-map-section {
        padding: 4rem 0;
    }

    .italy-map-container {
        padding: 2rem 1rem;
    }
}


/* ========================================
   REGION & PROVINCE TEMPLATES
   ======================================== */

/* Hero Sections */
.region-hero,
.province-hero {
    position: relative;
    height: 500px;
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 0 3rem;
    color: white;
}

.hero-content .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.hero-content .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-content .breadcrumb a:hover {
    color: var(--color-sun);
}

.hero-content .separator {
    color: rgba(255, 255, 255, 0.6);
}

.hero-content .current {
    color: rgba(255, 255, 255, 0.7);
}

.region-title,
.province-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.region-description,
.province-description {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Content Layout with Sidebar */
.content-area-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 3rem;
}

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

.sidebar-column {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Province Grid */
.provinces-section {
    margin-bottom: 5rem;
}

.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.province-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.province-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 146, 70, 0.2);
}

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

.province-image {
    height: 200px;
    overflow: hidden;
}

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

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

.province-content {
    padding: 1.5rem;
}

.province-name {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    color: var(--color-green);
    font-weight: 700;
}

.province-excerpt {
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.province-cta {
    color: var(--color-green);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.province-card:hover .province-cta {
    gap: 1rem;
}

/* Comuni List */
.comuni-section {
    margin-bottom: 4rem;
}

.comuni-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.comune-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.comune-item:hover {
    box-shadow: 0 5px 20px rgba(0, 146, 70, 0.15);
    transform: translateX(10px);
}

.comune-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.comune-thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
}

.comune-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comune-info {
    flex: 1;
}

.comune-name {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    color: var(--color-green);
    font-weight: 700;
}

.comune-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.comune-arrow {
    font-size: 1.5rem;
    color: var(--color-green);
    transition: transform 0.3s ease;
}

.comune-item:hover .comune-arrow {
    transform: translateX(5px);
}

/* Category Cards Grid (for province template) */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .card-image {
    height: 180px;
    overflow: hidden;
}

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

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

.category-card .card-body {
    padding: 1.5rem;
}

.category-card .card-body h4 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--color-green);
}

.category-card .card-body p {
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.5;
}

/* Filtered sections margin */
.region-filtered,
.province-filtered {
    margin-bottom: 4rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .content-area-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {

    .region-hero,
    .province-hero {
        height: 400px;
    }

    .region-title,
    .province-title {
        font-size: 2.5rem;
    }

    .region-description,
    .province-description {
        font-size: 1.1rem;
    }

    .provinces-grid,
    .category-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   HEADER TURISTICO MODERNO
   ======================================== */

/* Top Bar Tricolore */
.hero-top-bar {
    background: linear-gradient(135deg, var(--color-green) 0%, #00a651 50%, var(--color-green) 100%);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.hero-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-green) 0%, var(--color-white) 50%, var(--color-red) 100%);
}

.tricolore-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-green) 0%, var(--color-white) 50%, var(--color-red) 100%);
}

.welcome-message {
    text-align: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.welcome-message .emoji {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Header Principale */
.site-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

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

/* Brand Turistico */
.site-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-title .ita-green {
    color: var(--color-green);
    letter-spacing: 2px;
}

.site-title .separator {
    color: var(--color-red);
    font-size: 1.5rem;
}

.site-title .tagline {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
}

/* Menu Turistico */
.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.8rem 0;
    position: relative;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-green);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-green);
}

.menu-toggle {
    display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-secondary);
    transition: all var(--transition);
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========================================
   SLIDER
======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

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

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-text {
    color: white;
    max-width: 600px;
}

.slide-category {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-title a {
    color: white;
}

.slide-excerpt {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.slide-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.slide-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
}

.slide-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 2rem;
}

.slider-control.next {
    right: 2rem;
}

.slider-control span {
    font-size: 2rem;
    line-height: 1;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   CONTENT AREA
======================================== */
.site-main {
    padding: 3rem 0;
    min-height: 60vh;
}

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

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

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-filter a {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-border);
    border-radius: 25px;
    transition: all var(--transition);
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ========================================
   BENTO GRID LAYOUT (Modern Mosaico)
======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
    grid-auto-flow: dense;
    /* Crucial for masonry effect */
}

/* Feature the first post */
.posts-grid article:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* On mobile revert to single column */
@media (max-width: 900px) {
    .posts-grid article:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
    }

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

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.posts-grid article:nth-child(1) .post-card {
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    /* Standard aspect */
    background: #f0f0f0;
}

/* The featured post image is bigger */
.posts-grid article:nth-child(1) .post-thumbnail {
    aspect-ratio: 16 / 9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

/* ========================================
   SEZIONI SCROLLING - TURISTICO VIBRANTE
   ======================================== */
.scrolling-section {
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.scrolling-section.scroll-left {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.scrolling-section.scroll-right {
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-green);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-header h2::before {
    content: '🇮🇹';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-green), var(--color-red));
    margin: 1.5rem auto 0;
    border-radius: 10px;
}

/* Marquee Wrapper */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    padding: 1rem 0;
}

/* Animazioni Scorrevoli */
.scroll-left .marquee-track {
    animation: scrollLeft 45s linear infinite;
}

.scroll-right .marquee-track {
    animation: scrollRight 45s linear infinite;
}

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

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

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

    100% {
        transform: translateX(0);
    }
}

/* CARD TURISTICHE D'IMPATTO */
.card-scroll {
    flex: 0 0 450px;
    height: 550px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    background: #000;
}

.card-scroll::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.card-scroll:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 146, 70, 0.4);
    z-index: 10;
}

.card-scroll:hover::before {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 146, 70, 0.2) 50%, rgba(0, 0, 0, 0.9) 100%);
}

.card-scroll img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-scroll:hover img {
    transform: scale(1.15);
}

/* Badge Tricolore per Regioni */
.card-region::after {
    content: '🇮🇹';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Content Overlay */
.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2.5rem 2.5rem;
    z-index: 2;
    color: white;
    transform: translateY(20px);
    opacity: 0.95;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-scroll:hover .card-content-overlay {
    transform: translateY(0);
    opacity: 1;
    padding-bottom: 3rem;
}

.card-title {
    font-size: 2.5rem;
    color: white;
    margin: 0 0 1rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    font-family: var(--font-heading);
}

.card-meta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--color-green);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 146, 70, 0.5);
}

.card-event .card-meta {
    background: var(--color-red);
    box-shadow: 0 4px 15px rgba(206, 43, 55, 0.5);
}



.entry-header {
    margin-bottom: 15px;
}

.entry-title {
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    /* Editoriale */
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 700;
}

/* Bigger title for featured card */
.posts-grid article:nth-child(1) .entry-title {
    font-size: 2.2rem;
}

.entry-title a {
    color: #222;
    text-decoration: none;
    background-image: linear-gradient(120deg, transparent 0%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    background-image: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary) 100%);
}

.post-card:hover .entry-title a {
    background-size: 100% 40%;
    color: #000;
}

.entry-meta {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.entry-summary {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.read-more {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-secondary);
    transition: all var(--transition);
    min-width: 44px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ========================================
   FOOTER
======================================== */
/* ========================================
   FOOTER (Dark Elegant)
======================================== */
.site-footer {
    background: #111;
    color: #aaa;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

/* Top border line accent */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #aa2325 100%);
}

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

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.widget p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.widget ul li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

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

.widget a {
    color: #aaa;
    transition: all 0.2s ease;
    text-decoration: none;
}

.widget a:hover {
    color: #fff;
    padding-left: 5px;
    /* Subtle movement */
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    opacity: 0.6;
}

.site-info a {
    color: #fff;
    margin: 0 10px;
}

/* ========================================
   LIGHTBOX GALLERY
   ======================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: 30px;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    transform: rotate(90deg);
}

/* Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-green);
    border-color: var(--color-green);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ========================================
   BACK TO TOP
======================================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #0052a3;
    transform: translateY(-4px);
}

/* ========================================
   ACCESSIBILITY
======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

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

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slider {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-wrapper {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .menu-wrapper.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .nav-menu {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
    }

    body.menu-open {
        overflow: hidden;
    }

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

    .hero-slider {
        height: 400px;
    }

    .slide-text {
        max-width: 100%;
    }

    .slider-control {
        width: 40px;
        height: 40px;
    }

    .slider-control.prev {
        left: 1rem;
    }

    .slider-control.next {
        right: 1rem;
    }

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

/* ========================================
   PERFORMANCE
======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.post-card,
.post-thumbnail {
    contain: layout style paint;
}

.post-card {
    will-change: transform;
}

/* ========================================
   USER REQUEST FIXES
   ======================================== */

/* Fix slider text color (making it lighter/white) */
.home-slide-content h2,
.slide-content h2.slide-title a,
.slide-content h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.home-slide-badge {
    color: #fff;
    background: var(--color-primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 10px;
}

/* Griglia e Card */
.tourist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tourist-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.tourist-card:hover {
    transform: scale(1.05);
    /* Ingrandimento */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    position: relative;
    height: 160px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.tourist-card:hover .card-img img {
    filter: brightness(0.6) sepia(0.3);
    /* Cambio tonalità */
}

.card-img .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
    padding: 5px 15px;
    opacity: 0;
    transition: 0.3s;
}

.tourist-card:hover .overlay {
    opacity: 1;
}

.card-txt {
    padding: 15px;
    text-align: center;
}

.card-txt h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

/* Sidebar List */
.sidebar-tourist-list {
    list-style: none;
    padding: 0;
}

.sidebar-tourist-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-tourist-list img {
    border-radius: 5px;
}


/* --- TOURIST SYSTEM STYLES --- */
.tourist-automation-wrapper {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.tourist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 3rem;
}

.tourist-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.tourist-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.tourist-card:hover .card-img img {
    filter: brightness(0.5) contrast(1.2);
}

.card-img .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
    padding: 8px 16px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.tourist-card:hover .overlay {
    opacity: 1;
}

.card-txt {
    padding: 15px;
    text-align: center;
}

.card-txt h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #222;
}

/* Sidebar List */
.sidebar-tourist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-tourist-list li {
    margin-bottom: 15px;
}

.sidebar-tourist-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
}

.sidebar-tourist-list img {
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
}


.geo-tag {
    background: #f0f7ff;
    padding: 10px;
    border-left: 4px solid #0066cc;
    margin: 20px 0;
    font-style: italic;
}

.tourist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tourist-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.tourist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-img {
    position: relative;
    height: 150px;
}

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

.card-txt {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}

/* ========================================
   PREMIUM SECTIONS & CARDS (AUTOMATED)
   ======================================== */
.automated-section {
    margin: 6rem 0;
}

.section-header-premium {
    margin-bottom: 3.5rem;
    text-align: left;
}

.section-header-premium h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    position: relative;
    padding-left: 0;
}

.premium-divider {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--color-green), var(--color-red));
    border-radius: 10px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.premium-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-green);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-card:hover .card-overlay {
    opacity: 1;
}

.btn-card {
    background: #fff;
    color: var(--color-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background: var(--color-green);
    color: #fff;
}

.premium-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.premium-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Discovery Section Tweaks */
.discovery-section {
    background: var(--bg-cream);
    padding: 5rem 3rem;
    border-radius: 30px;
    margin-top: 8rem;
}

/* Animations */
[data-aos] {
    transition-duration: 0.8s;
}

@media (max-width: 1200px) {
    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header-premium h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }

    .discovery-section {
        padding: 3rem 1.5rem;
    }
}

/* ========================================
   HOME PAGE PREMIUM ELEMENTS
   ======================================== */

.premium-hero-search {
    padding: 12rem 0;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-search-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: #fff;
}

.premium-search-form {
    background: #fff;
    padding: 10px;
    border-radius: 60px;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
    padding-left: 20px;
}

.search-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.search-field {
    border: none;
    flex-grow: 1;
    font-size: 1.2rem;
    padding: 10px 0;
    outline: none;
    color: #333;
    background: transparent;
}

.search-submit {
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-submit:hover {
    background: #aa2325;
    transform: scale(1.05);
}

.hero-quick-tags {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.hero-quick-tags a {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    text-decoration: none;
    transition: 0.3s;
}

.hero-quick-tags a:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Regions Grid */
.regions-grid-premium {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.region-card-premium {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: 0.4s;
    box-shadow: var(--shadow-md);
}

.region-card-premium:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-lg);
}

.region-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.6s;
}

.region-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.region-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.region-overlay span {
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.region-card-premium:hover .region-overlay span {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .regions-grid-premium {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .premium-hero-search {
        padding: 8rem 0;
    }
}

/* ========================================
   PREMIUM SIDEBAR & WIDGETS
   ======================================== */

.sidebar-premium {
    padding-left: 1.5rem;
}

.sidebar-widget-premium {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.sidebar-widget-premium:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.nearby-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nearby-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f8f8f8;
}

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

.nearby-list img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.nearby-list a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: 0.2s;
}

.nearby-list a:hover {
    color: #cc2b2d;
}

/* Fix per le sezioni dinamiche */
.automated-section {
    margin-bottom: 6rem;
}

.section-header-premium {
    margin-bottom: 2.5rem;
}


/* ========================================
   PREMIUM HEADER & FOOTER REDESIGN
   ======================================== */

/* TOP BAR */
.top-bar-premium {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.tricolore-mini {
    display: inline-flex;
    margin-right: 15px;
    vertical-align: middle;
}

.tricolore-mini span {
    width: 12px;
    height: 12px;
    display: inline-block;
}

.tricolore-mini .green {
    background: #009246;
}

.tricolore-mini .white {
    background: #fff;
}

.tricolore-mini .red {
    background: #ce2b37;
}

/* HEADER */
.site-header-premium {
    background: #ffffff;
    padding: 1.5rem 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-navigation-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -1.5px;
    font-family: var(--font-heading);
}

.brand-dot {
    color: var(--color-green);
    font-size: 2rem;
}

.brand-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 5px;
}

/* MENU */
.nav-menu-premium {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
}

.nav-menu-premium li {
    display: inline-block;
}

.nav-menu-premium li a {
    color: #1a1a1a !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-menu-premium li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-green);
    transition: width 0.3s ease;
}

.nav-menu-premium li a:hover {
    color: var(--color-green) !important;
}

.nav-menu-premium li a:hover::after {
    width: 100%;
}

/* FOOTER */
.site-footer {
    background: #111 !important;
    color: #fff !important;
    padding: 5rem 0 3rem;
    margin-top: 4rem;
}

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

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-menu li a:hover {
    color: #fff !important;
}

/* RESPONSIVE MENU */
.menu-toggle-premium {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-container-premium {
        display: none;
    }

    .menu-toggle-premium {
        display: block;
    }

    .brand-text {
        font-size: 1.8rem;
    }

    .brand-tagline {
        font-size: 0.9rem;
    }
}



/* Mobile Menu Active State */
@media (max-width: 992px) {
    .menu-container-premium.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .menu-container-premium.active ul {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Automated Related Sections Styling */
.automated-related-sections {
    background: #fdfdfd;
    padding: 3rem 2rem;
    border-radius: 20px;
}

.related-geo-section h3 {
    color: #1a1a1a;
    font-family: var(--font-heading);
    position: relative;
    padding-left: 15px;
}

.related-geo-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #009246;
    border-radius: 3px;
}

.automated-related-sections article:hover {
    transform: translateY(-10px);
}



/* TOP BREADCRUMBS (Above Header) */
.top-breadcrumbs-container {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.top-breadcrumbs-container .turismoitalia-breadcrumbs {
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: #888;
}

/* TOP BAR REFINEMENT */
.top-bar-premium {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-bar-text {
    font-style: italic;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.date-now {
    color: var(--color-green);
    font-weight: 700;
}

/* BRANDING REFINEMENT */
.site-branding-premium .brand-text {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #1a1a1a, #009246);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

.site-branding-premium .brand-tagline {
    color: #ce2b37;
    font-weight: 900;
    letter-spacing: 5px;
}

/* SEO Optimization - Typography */
h1,
h2,
h3 {
    text-rendering: optimizeLegibility;
}

/* Region/Province Grid Improvements */
.region-card-premium,
.premium-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.region-card-premium:hover,
.premium-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}



/* PREMIUM BRANDING STYLES */
.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2.8rem !important;
    background: linear-gradient(135deg, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    letter-spacing: -2px;
}

.brand-dot {
    margin: 0 5px;
    opacity: 0.5;
}

.brand-tagline {
    font-size: 1.1rem !important;
    color: #333 !important;
    letter-spacing: 8px !important;
    font-weight: 300 !important;
    border-top: 1px solid #009246;
    padding-top: 5px;
}

/* TOP BREADCRUMBS ENHANCEMENT */
.top-breadcrumbs-container {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.02);
}

.breadcrumbs-premium a {
    color: #444;
    transition: color 0.3s ease;
}

.breadcrumbs-premium a:hover {
    color: #009246;
}

/* ARCHIVE HERO */
.archive-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.archive-hero::after {
    content: 'ITALY';
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 0;
}

/* SEO Optimization - Link Titles */
a[title] {
    cursor: help;
}



/* DATE STYLING REDESIGN */
.date-now {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 146, 70, 0.3);
    color: #fff !important;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* PORTALE ITALIA LOGO EXTRA POP */
.site-branding-premium .brand-text {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-navigation-premium {
    padding: 1rem 0;
}

/* BREADCRUMB MINIMALIST */
.breadcrumbs-premium {
    font-family: var(--font-base);
    letter-spacing: 0.5px;
}

.breadcrumbs-premium .sep {
    opacity: 0.5;
}

/* SEO Footer optimization hint */
.site-footer {
    border-top: 10px solid var(--color-green);
}



/* End of file */
/* PREMIUM STYLES 2026 - HEADER & UI */

/* Global Reset Tweaks */
body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
}

/* Premium Header Navigation */
.main-navigation-premium .nav-menu-premium {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-navigation-premium .nav-menu-premium li {
    position: relative;
}

.main-navigation-premium .nav-menu-premium a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.main-navigation-premium .nav-menu-premium a:hover {
    color: #009246;
}

/* Submenus */
.main-navigation-premium .nav-menu-premium ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 999;
    border-top: 3px solid #009246;
    padding: 10px 0;
}

.main-navigation-premium .nav-menu-premium li:hover>ul.sub-menu {
    display: block;
    animation: fadeIn 0.3s;
}

.main-navigation-premium .nav-menu-premium ul.sub-menu li {
    padding: 0 15px;
}

.main-navigation-premium .nav-menu-premium ul.sub-menu a {
    text-transform: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

/* Map Improvements */
#mappa-container {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 40px auto;
}

.btn-region {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #009246;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-region:hover {
    background: #007a3a;
    color: #fff;
}


/* QUICK LINKS MICRO BUTTONS */
.quick-links-grid .btn-micro {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-links-grid .btn-micro:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}


/* MAPPA OVERRIDE & RESPONSIVE FIX */
#mappaItalia {
    width: 359px !important;
    height: 452px !important;
    margin: 0 auto;
    position: relative;
    max-width: 100%;
}

#mappaItalia img {
    width: 359px !important;
    height: 452px !important;
    object-fit: contain;
}

@media(max-width: 500px) {

    #mappaItalia,
    #mappaItalia img {
        width: 100% !important;
        height: auto !important;
        max-width: 359px;
    }
}


/* REGION GRID IMAGE FIX */
.region-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ddd;
    /* Fallback color */
}

/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =           P R E M I U M   G R I D   S Y S T E M   ( S p e c i f i c   r e q u e s t :   6   i t e m s   p e r   r o w )           = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * /     . p r e m i u m - g r i d    {
                 d i s p l a y :    g r i d ;
                 g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 6 ,    1 f r ) ;
                 g a p :    2 0 p x ;
                 m a r g i n - b o t t o m :    2 r e m ;
         
}

         . p r e m i u m - c a r d    {
                 b a c k g r o u n d :    # f f f ;
                 b o r d e r - r a d i u s :    1 2 p x ;
                 o v e r f l o w :    h i d d e n ;
                 b o x - s h a d o w :    0   4 p x   1 5 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 0 5 ) ;
                 t r a n s i t i o n :    t r a n s f o r m   0 . 3 s   e a s e ,    b o x - s h a d o w   0 . 3 s   e a s e ;
                 h e i g h t :    1 0 0 % ;
                 / *   E n s u r e   u n i f o r m   h e i g h t   * /             d i s p l a y :    f l e x ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
         
}

         . p r e m i u m - c a r d : h o v e r    {
                 t r a n s f o r m :    t r a n s l a t e Y ( - 5 p x ) ;
                 b o x - s h a d o w :    0   8 p x   2 5 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 1 ) ;
         
}

         . p r e m i u m - c a r d   . c a r d - i m a g e - w r a p p e r    {
                 h e i g h t :    1 4 0 p x ;
                 / *   S l i g h t l y   s m a l l e r   f o r   6 - c o l   l a y o u t   * /             o v e r f l o w :    h i d d e n ;
                 p o s i t i o n :    r e l a t i v e ;
                 f l e x - s h r i n k :    0 ;
         
}

         . p r e m i u m - c a r d   . c a r d - b o d y    {
                 p a d d i n g :    1 2 p x ;
                 d i s p l a y :    f l e x ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
                 f l e x - g r o w :    1 ;
         
}

         . p r e m i u m - c a r d   h 3    {
                 f o n t - s i z e :    0 . 9 5 r e m ;
                 / *   S m a l l e r   f o n t   f o r   d e n s e   g r i d   * /             m a r g i n :    0   0   5 p x ;
                 l i n e - h e i g h t :    1 . 3 ;
         
}

         / *   R e s p o n s i v e n e s s   * /     @ m e d i a   ( m a x - w i d t h :   1 4 0 0 p x )    {
                 . p r e m i u m - g r i d    {
                             g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 5 ,    1 f r ) ;
                     
    }

         
}

         @ m e d i a   ( m a x - w i d t h :   1 2 0 0 p x )    {
                 . p r e m i u m - g r i d    {
                             g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 4 ,    1 f r ) ;
                     
    }

         
}

         @ m e d i a   ( m a x - w i d t h :   9 0 0 p x )    {
                 . p r e m i u m - g r i d    {
                             g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 3 ,    1 f r ) ;
                     
    }

         
}

         @ m e d i a   ( m a x - w i d t h :   6 0 0 p x )    {
                 . p r e m i u m - g r i d    {
                             g r i d - t e m p l a t e - c o l u m n s :    r e p e a t ( 2 ,    1 f r ) ;
                             / *   2   c o l s   o n   m o b i l e   i s   u s u a l l y   b e t t e r   t h a n   1   f o r   t h u m b n a i l s   * /                     g a p :    1 5 p x ;
                     
    }

         
}

         @ m e d i a   ( m a x - w i d t h :   4 0 0 p x )    {
                 . p r e m i u m - g r i d    {
                             g r i d - t e m p l a t e - c o l u m n s :    1 f r ;
                     
    }

         
}

     