/* home/static/css/foto.css */
/* Base Card Style */
.foto-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    min-height: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Immagine Fissa 4:3 */
.foto-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.foto-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Contenitore Link */
.foto-links-container {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 150px;
    background: rgba(0, 0, 0, 0.08);
    border: 2px solid;
    margin: 20px;
    border-radius: 8px;
}

.foto-links-container.scrollable {
    overflow-y: auto;
}

/* Bottoni Integrati */
.foto-link {
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 2px solid;
    background-color: rgba(255, 255, 255, 0.25);
}

/* Colori Card Specifici */
.card-style-1 {
    background: #00d456;
}

.card-style-1 .foto-links-container {
    border-color: rgba(0, 122, 56, 0.3);
}

.card-style-1 .foto-link {
    border-color: rgba(0, 122, 56, 0.5);
    color: #003d1f;
}

.card-style-1 .foto-link:hover {
    background: #007a38;
    color: white;
    border-color: #007a38;
}

.card-style-2 {
    background: #4fccff;
}

.card-style-2 .foto-links-container {
    border-color: rgba(0, 111, 150, 0.3);
}

.card-style-2 .foto-link {
    border-color: rgba(0, 111, 150, 0.5);
    color: #003545;
}

.card-style-2 .foto-link:hover {
    background: #006f96;
    color: white;
    border-color: #006f96;
}

.card-style-3 {
    background: #ff1a3a;
}

.card-style-3 .foto-links-container {
    border-color: rgba(155, 0, 24, 0.3);
}

.card-style-3 .foto-link {
    border-color: rgba(155, 0, 24, 0.5);
    color: #4d000f;
}

.card-style-3 .foto-link:hover {
    background: #9b0018;
    color: white;
    border-color: #9b0018;
}

.card-style-4 {
    background: #ffda00;
}

.card-style-4 .foto-links-container {
    border-color: rgba(179, 151, 0, 0.3);
}

.card-style-4 .foto-link {
    border-color: rgba(179, 151, 0, 0.5);
    color: #4d4200;
}

.card-style-4 .foto-link:hover {
    background: #b39700;
    color: white;
    border-color: #b39700;
}

.card-style-5 {
    background: #e7a13c;
}

.card-style-5 .foto-links-container {
    border-color: rgba(165, 114, 42, 0.3);
}

.card-style-5 .foto-link {
    border-color: rgba(165, 114, 42, 0.5);
    color: #4d2f00;
}

.card-style-5 .foto-link:hover {
    background: #a5722a;
    color: white;
    border-color: #a5722a;
}

.card-style-6 {
    background: #afdddb;
}

.card-style-6 .foto-links-container {
    border-color: rgba(122, 175, 173, 0.3);
}

.card-style-6 .foto-link {
    border-color: rgba(122, 175, 173, 0.5);
    color: #1a3d3c;
}

.card-style-6 .foto-link:hover {
    background: #7aafad;
    color: white;
    border-color: #7aafad;
}

.card-style-7 {
    background: #ff009e;
}

.card-style-7 .foto-links-container {
    border-color: rgba(179, 0, 111, 0.3);
}

.card-style-7 .foto-link {
    border-color: rgba(179, 0, 111, 0.5);
    color: #4d0030;
}

.card-style-7 .foto-link:hover {
    background: #b3006f;
    color: white;
    border-color: #b3006f;

}

.card-style-8 {
    background: #daa520; /* Oro Ocra (Goldenrod) */
}

.card-style-8 .foto-links-container {
    border-color: rgba(184, 134, 11, 0.3);
}

.card-style-8 .foto-link {
    border-color: rgba(184, 134, 11, 0.5);
    color: #5c450d;
}

.card-style-8 .foto-link:hover {
    background: #b8860b; /* Dark Goldenrod */
    color: white;
    border-color: #b8860b;
}

/* Swiper Custom */
.swiper-container-wrapper {
    padding: 0 50px;
}

.foto-swiper .swiper-slide {
    height: auto;
    padding: 20px 0;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 2px solid white;
    transition: all 0.3s ease;
    display: none;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* Solo Desktop */
@media (min-width: 769px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: flex;
    }

    .foto-swiper .swiper-slide {
        opacity: 0.7;
        transition: opacity 0.3s;
    }

    .foto-swiper .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .swiper-container-wrapper {
        padding: 0 15px;
    }

    .foto-card {
        min-height: 400px;
        max-width: 320px;
    }

    .foto-image-container {
        padding-top: 70%;
    }

    .foto-links-container {
        padding: 15px;
        gap: 12px;
        margin: 20px;
    }

    .foto-link {
        padding: 10px;
        font-size: 0.9rem;
    }
}