/**
 * Home Page Custom Styles - Josetta Saffirio Design System
 * Stile specifico per la pagina index.php basato sul design system
 * Version: 1.0.0
 */

/* Adotta un Filare section background */
.adotta-section {
    position: relative;
    padding: 8rem 0;
    text-align: center;
}

.adotta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/img/JS-vini-banner.avif');
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -1;
}

.adotta-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.adotta-content {
    color: var(--white);
    text-align: center;
}

.adotta-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.adotta-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--white);
    line-height: 1.6;
    font-weight: 300;
}

/* Events Section Styling */
.events-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--white);
}

.events-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: -1;
}

.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.events-header {
    text-align: center;
    margin-bottom: 4rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.featured-event {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    border: 1px solid var(--beige);
}

@media (min-width: 768px) {
    .featured-event {
        flex-direction: row;
    }
    
    .featured-event-image {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.featured-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-event-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--dark);
}

.featured-event-date,
.event-card-date {
    display: flex;
    align-items: center;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.featured-event-date svg,
.event-card-date svg,
.event-card-location svg {
    margin-right: 0.5rem;
    stroke: var(--gold);
}

.featured-event-description {
    margin-bottom: 2rem;
    color: var(--dark);
    opacity: 0.8;
    line-height: 1.6;
}

.event-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--beige);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.event-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--dark);
}

.event-card-location {
    display: flex;
    align-items: center;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.event-card-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.events-cta {
    text-align: center;
    margin-top: 3rem;
}

.no-events {
    text-align: center;
    padding: 3rem;
    background-color: rgba(234, 229, 217, 0.3);
    border-radius: 8px;
    border: 1px dashed var(--beige);
}

.no-events p:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.no-events p:last-child {
    color: var(--dark);
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .adotta-title {
        font-size: 2.8rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .adotta-title {
        font-size: 2.2rem;
    }
    
    .adotta-description {
        font-size: 1rem;
    }
    
    .featured-event {
        flex-direction: column;
    }
    
    .featured-event-image {
        height: 200px;
    }
    
    .featured-event-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .adotta-section,
    .events-section {
        padding: 4rem 0;
    }
    
    .adotta-title {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .events-container {
        padding: 0 1rem;
    }
}