/*
 Theme Name:   NisargPro UltraModChild Theme
 Description:  Child theme avanzato per NisargPro, con sezioni componibili, slider multipli, drag&drop, AI, calendar, widget e REST API
 Author:       Emanuele Durando
 Template:     nisargpro
 Version:      2.0
 Text Domain:  nisargpro-ultramodchild
*/

@import url("../nisargpro/style.css");

/* =====================
   Reset e base
===================== */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #005177;
    text-decoration: underline;
}

/* =====================
   Sezioni personalizzate
===================== */
.custom-full-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-slider,
.chi-siamo-section,
.agenda-section,
.unisciti-section,
.evidenza-section {
    margin-bottom: 60px;
}

/* =====================
   Slider generico
===================== */
.hero-slider,
.slider-section {
    display: flex;
    overflow: hidden;
    position: relative;
}

.hero-slide,
.slider-item {
    min-width: 100%;
    transition: all 0.5s ease-in-out;
    position: relative;
}

.hero-content,
.slider-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
}

/* =====================
   Cards evidenza
===================== */
.highlight-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.highlight-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.highlight-card img {
    width: 100%;
    height: auto;
}

.highlight-card h4 {
    font-size: 1.25rem;
    margin: 15px;
}

.highlight-card p {
    flex: 1;
    margin: 0 15px 15px 15px;
}

.highlight-card .btn {
    margin: 15px;
    padding: 10px 15px;
    background: #0073aa;
    color: #fff;
    text-align: center;
    border-radius: 5px;
}

/* =====================
   Agenda e Calendar
===================== */
.agenda-list,
.calendar-events {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-list li,
.calendar-events li {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

/* =====================
   Responsive
===================== */
@media (max-width: 1024px) {
    .highlight-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .highlight-card {
        flex: 1 1 100%;
    }

    .hero-content,
    .slider-content {
        bottom: 10%;
        left: 5%;
        right: 5%;
        font-size: 0.9rem;
    }
}
