/* ===== DYNAMIC SLIDESHOW STYLES ===== */

/* bullet point */
.dynamic-slideshow .bullets-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dynamic-slideshow .bullet {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.dynamic-slideshow .bullet:hover {
    transform: scale(1.2);
}

.dynamic-slideshow .bullet.active {
    background: #72AA64;
}

/* Reset e base */
.dynamic-slideshow * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dynamic-slideshow {
    font-family: "Manrope", sans-serif;
    overflow: hidden;
    background-color: #ededed;
    width: 100%;
    height: 800px;
    display: flex;
    position: relative;
    transition: background 0.6s ease-in-out;
}

/* Contenuto principale */
.dynamic-slideshow .main-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 5%;
}

.dynamic-slideshow .content-left {
    width: 35%;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 15px;
}

.dynamic-slideshow .subtitle {
    font-size: 18px;
	letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.5s ease-out;
	color: #72AA64;
}

.dynamic-slideshow .title {
    font-size: 3rem;
    font-family: "Lexend Deca";
    font-weight: bold;
    color: white;
    line-height: 1.1;
    display: inline-block;
    transition: all 0.5s ease-out;
}

.dynamic-slideshow .paragraph {
    font-size: 18px;
    line-height: 150%;
    font-weight: 300;
    transition: all 0.5s ease-out 0.2s;
}

.dynamic-slideshow .cta-carosello-row {
    display: flex;
    gap: 25px;
    align-items: center;
	justify-content: space-between;
}

.dynamic-slideshow .date {
    font-size: 18px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    transition: all 0.5s ease-out 0.15s;
}

.dynamic-slideshow .button {
    background: #72AA64;
    color: black;
    padding: 12px 40px;
    font-size: 18px;
    font-weight: 700;
	letter-spacing: -0.5px;
	text-transform: uppercase;
    border: 2px solid #569649;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.dynamic-slideshow .button:hover {
    background: #569646;
}

/* Miniature orizzontali */
.dynamic-slideshow .thumbnails-container {
    flex-shrink: 0;
    width: 60%;
}

.dynamic-slideshow .thumbnails-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 340px;
}

.dynamic-slideshow .thumbnails-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.dynamic-slideshow .thumbnail {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 340px;
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.8;
    filter: blur(2px);
}

.dynamic-slideshow .thumbnail:not(:hover) {
    opacity: 0.8;
    filter: blur(2px);
}

.dynamic-slideshow .thumbnails-wrapper:hover .thumbnail { 
    opacity: 0.8 !important;
    filter: blur(2px) !important;
}

.dynamic-slideshow .thumbnails-wrapper:hover .thumbnail:hover { 
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: scale(1.05);
}

.dynamic-slideshow .thumbnails-wrapper:hover .thumbnail.active:not(:hover) { 
    opacity: 0.8 !important;
    filter: blur(2px) !important;
}

.dynamic-slideshow .thumbnails-wrapper:not(:hover) .thumbnail.active { 
    opacity: 1 !important;
    filter: blur(0) !important;
}

.dynamic-slideshow .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dynamic-slideshow .thumbnail:hover img {
    transform: scale(1.1);
}

.dynamic-slideshow .thumbnail-overlay {
    position: absolute;
    inset: 0;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    border-radius: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.dynamic-slideshow .thumbnail-info {
    width: 100%;
    text-align: center;
    color: white;
    padding: 20px;
}

.dynamic-slideshow .thumbnail-info p {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Frecce di navigazione */
.dynamic-slideshow .nav-arrows {    
    display: flex;
    flex-direction: row;
    gap: 16px;
    z-index: 15;
}

.dynamic-slideshow .nav-arrow {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dynamic-slideshow .nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.dynamic-slideshow .nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.dynamic-slideshow .nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dynamic-slideshow .nav-arrow.disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: none;
}

/* Animazioni di entrata */
.dynamic-slideshow .content-left > * {
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.dynamic-slideshow .subtitle {
    animation-delay: 0.1s;
}

.dynamic-slideshow .title {
    animation-delay: 0.2s;
}

.dynamic-slideshow .date {
    animation-delay: 0.25s;
}

.dynamic-slideshow .paragraph {
    animation-delay: 0.3s;
}

.dynamic-slideshow .button {
    animation-delay: 0.4s;
}

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

/* Responsive Design */
@media (max-width: 1366px) {
    .dynamic-slideshow {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .dynamic-slideshow .main-content {
        justify-content: center;
    }
    
    .dynamic-slideshow .thumbnails-container {
        display: none;
    }
    
    .dynamic-slideshow .content-left {
        width: 75%;
    }
}

@media (max-width: 1024px) {
    .dynamic-slideshow {
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto !important;
    }
    
    .dynamic-slideshow .main-content {
        padding: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .dynamic-slideshow .content-left {
        width: 100%;
        padding: 10px 10px 50px 10px;
        background-color: rgba(0,0,0,0.3);
        border-radius: 0;
        text-align: center;
    }
    
	.dynamic-slideshow .bullets-container {
		bottom: 12px;
	}
	
	.dynamic-slideshow .bullet {
		width: 12px;
		height: 12px;
	}
	
    .dynamic-slideshow .thumbnails-container {
        display: none;
    }
    
    .dynamic-slideshow .cta-carosello-row {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .dynamic-slideshow .title {
        font-size: 2.5rem;
        color: white;
    }

    .dynamic-slideshow .paragraph,
    .dynamic-slideshow .date {
        font-size: 18px;
        color: white;
    }
    
    .dynamic-slideshow .nav-arrows {
        align-items: center;
        justify-content: center;
    }
    
    .dynamic-slideshow .button {
        padding: 12px 24px;
        font-size: 18px;
    }
}

/* Animazioni per transizioni più fluide */
.dynamic-slideshow .nav-arrow,
.dynamic-slideshow .button,
.dynamic-slideshow .thumbnail {
    will-change: transform;
}

/* Miglioramento accessibilità */
.dynamic-slideshow .nav-arrow:focus,
.dynamic-slideshow .button:focus,
.dynamic-slideshow .thumbnail:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ===== SERVICES GRID STYLES ===== */

.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Forza 3 colonne su desktop */
@media (min-width: 1024px) {
    .services-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-box {
    position: relative;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: all 0.3s ease;
}

.service-box:hover .service-box-overlay {
    background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.8) 100%
    );
}

.service-box-content {
    color: white;
    width: 100%;
    text-align: left;
}

.service-box-subtitle {
	position: absolute;
	top: 10px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.service-box-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	color: white;
}

.service-box-date {
    font-size: 0.9rem;
    margin: 0 0 16px 0;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.service-box-cta {
    display: inline-block;
    background: #72AA64;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #569646;
}

.service-box-cta:hover {
    background: #569646;
    transform: translateY(-2px);
}

/* Responsive Services Grid */
@media (max-width: 768px) {
    .services-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .service-box-overlay {
        padding: 20px;
    }
    
    .service-box-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .services-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0;
    }
    
    .service-box {
        border-radius: 0;
        margin: 0;
    }
    
    .service-box-overlay {
        padding: 16px;
    }
    
    .service-box-title {
        font-size: 1.1rem;
    }
}

/* Animazioni Services */
.service-box-content > * {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-box-title {
    animation-delay: 0.1s;
}

.service-box-date {
    animation-delay: 0.2s;
}

.service-box-cta {
    animation-delay: 0.3s;
}

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

/* Effetto hover sulle immagini */
.service-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: inherit;
    transition: transform 0.3s ease;
    z-index: -1;
}

.service-box:hover::before {
    transform: scale(1.05);
}