/* Desktop Cards Grid */
.amalfi-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding: 50px;
}

.amalfi-card {
    aspect-ratio: 9/13;
    border-radius: 0px;
    border-bottom: 10px solid #ac772a;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.amalfi-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.amalfi-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

.amalfi-card:hover .amalfi-card-bg {
    transform: scale(1.1);
}

.amalfi-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    transition: all 0.5s ease;
}

.amalfi-card:hover .amalfi-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%);
}

.amalfi-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    color: white;
    transform: translateY(0);
    transition: all 0.5s ease;
    text-align: center;
}

.amalfi-card-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  
  font-family: 'Jost', serif !important;
      font-weight: 400;
}
.amalfi-card-title a {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: 'Jost', serif !important;
font-weight: 400;
text-decoration: none !important;
}
.amalfi-card-desc {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
      font-family: 'Jost', serif !important;
      font-weight: 400;
}

.amalfi-card:hover .amalfi-card-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Card specific backgrounds */
.amalfi-card.restaurant .amalfi-card-bg {
    background-image: linear-gradient(45deg, rgba(78, 205, 197, 0.062) 0%, rgba(68, 160, 141, 0.116) 100%), 
                      url('../images/tartara.png');
    background-blend-mode: overlay;
}

.amalfi-card.cooking .amalfi-card-bg {
    background-image: linear-gradient(45deg, rgba(78, 205, 197, 0.062) 0%, rgba(68, 160, 141, 0.116) 100%),  
                      url('../images/cooking.png');
    background-blend-mode: overlay;
}

.amalfi-card.boat .amalfi-card-bg {
    background-image: linear-gradient(45deg, rgba(78, 205, 197, 0.062) 0%, rgba(68, 160, 141, 0.116) 100%), 
                      url('../images/positano_boat_tours.png');
    background-blend-mode: overlay;
}

.amalfi-card.beach .amalfi-card-bg {
    background-image: linear-gradient(45deg, rgba(78, 205, 197, 0.062) 0%, rgba(68, 160, 141, 0.116) 100%), 
                      url('../images/beach_club_la_gavitella.png');
    background-blend-mode: overlay;
}

/* Mobile Slider */
.amalfi-mobile-slider {
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
}

.amalfi-slider-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 400%;
}

.amalfi-mobile-slider .amalfi-card {
    width: 25%;
    flex-shrink: 0;
    aspect-ratio: 9/12;
}

.amalfi-slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.amalfi-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.amalfi-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .amalfi-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .amalfi-cards-grid {
        display: none;
    }
    
    .amalfi-mobile-slider {
        display: block;
    }
    
    /* Show description always on mobile */
    .amalfi-mobile-slider .amalfi-card-desc {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .amalfi-card-title a {
        font-size: 1.5rem;
    }
}