/* ============================================
   LAYOUT FULL-WIDTH
   ============================================ */
body:has(.toscana-landing-container) .widget-area,
body:has(.toscana-landing-container) .secondary,
body:has(.toscana-landing-container) aside.sidebar,
body:has(.toscana-landing-container) #secondary,
body:has(.toscana-landing-container) .sidebar {
    display: none !important;
}

body:has(.toscana-landing-container) .content-area,
body:has(.toscana-landing-container) #primary,
body:has(.toscana-landing-container) main,
body:has(.toscana-landing-container) .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

.toscana-landing-full-width .widget-area,
.toscana-landing-full-width .secondary,
.toscana-landing-full-width aside.sidebar,
.toscana-landing-full-width #secondary,
.toscana-landing-full-width .sidebar {
    display: none !important;
}

.toscana-landing-full-width .content-area,
.toscana-landing-full-width #primary,
.toscana-landing-full-width main,
.toscana-landing-full-width .site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

/* ============================================
   CONTENITORE
   ============================================ */

.toscana-landing-container {
    font-family: 'Nunito', sans-serif;
    padding: 20px 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    clear: both;
    box-sizing: border-box;
    flex: none !important;
}

.toscana-landing-container * {
    box-sizing: border-box;
}

.toscana-landing-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns-desktop, 3), 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
    box-sizing: border-box;
}

.toscana-landing-grid .toscana-mapper-item {
    width: 100% !important;
    margin-bottom: 0 !important;
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 0;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    padding-bottom: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

@media (max-width: 992px) {
    .toscana-landing-container {
        width: 100% !important;
        padding: 20px 15px;
    }

    .toscana-landing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .toscana-landing-container {
        padding: 15px 10px;
        width: 100% !important;
    }

    .toscana-landing-grid {
        grid-template-columns: repeat(var(--columns-mobile, 1), 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .toscana-landing-container {
        padding: 10px 5px;
    }

    .toscana-landing-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .toscana-landing-grid .toscana-mapper-item h2 {
        font-size: 1.2rem;
    }

    .toscana-landing-grid .toscana-mapper-item .location,
    .toscana-landing-grid .toscana-mapper-item .info,
    .toscana-landing-grid .toscana-mapper-item .category {
        font-size: 0.9em;
    }
}

.toscana-landing-grid .toscana-mapper-item {
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.toscana-landing-grid .toscana-mapper-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    max-height: 300px;
}

.toscana-landing-grid .toscana-mapper-item h2 {
    margin-top: 15px;
}

.toscana-landing-grid .toscana-mapper-item .info {
    flex-grow: 1;
    margin-bottom: 15px;
}

.toscana-landing-grid .toscana-mapper-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toscana-landing-grid .toscana-mapper-item:hover::after {
    opacity: 1;
}

.toscana-landing-grid .toscana-mapper-item > * {
    position: relative;
    z-index: 2;
}

.toscana-landing-grid .toscana-mapper-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.toscana-landing-grid .toscana-mapper-item .location {
    font-size: 1em;
    color: #54595F;
    padding: 0 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.toscana-landing-grid .toscana-mapper-item .location i {
    color: #FF5722;
}

.toscana-landing-grid .toscana-mapper-item h2 {
    color: #54595F;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0;
    font-size: 1.4444444444444rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1.3em;
    padding: 0 15px;
    text-align: center;
}

.toscana-landing-grid .toscana-mapper-item .info {
    font-size: 1em;
    color: #333;
    padding: 0 15px;
    margin-bottom: 10px;
    text-align: center;
}

.toscana-landing-grid .toscana-mapper-item .category {
    font-size: 1em;
    color: #005A87;
    padding: 0 15px;
    margin-bottom: 10px;
    text-align: center;
}

.toscana-landing-grid .toscana-mapper-item .category .category-label {
    display: block;
    font-weight: bold;
}

.toscana-landing-grid .toscana-mapper-item .sports-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.toscana-landing-grid .toscana-mapper-item .sports-icons i {
    margin: 0 5px;
    font-size: 1.2em;
    color: #3498DB;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toscana-landing-grid .toscana-mapper-item {
    animation: fadeInUp 0.5s ease forwards;
}

.toscana-landing-grid .toscana-mapper-item:nth-child(1) { animation-delay: 0.1s; }
.toscana-landing-grid .toscana-mapper-item:nth-child(2) { animation-delay: 0.15s; }
.toscana-landing-grid .toscana-mapper-item:nth-child(3) { animation-delay: 0.2s; }
.toscana-landing-grid .toscana-mapper-item:nth-child(4) { animation-delay: 0.25s; }
.toscana-landing-grid .toscana-mapper-item:nth-child(5) { animation-delay: 0.3s; }
.toscana-landing-grid .toscana-mapper-item:nth-child(6) { animation-delay: 0.35s; }
.toscana-landing-grid .toscana-mapper-item:nth-child(n+7) { animation-delay: 0.4s; }
