/**
 * Subscription Section Styles
 * Elegant dark theme matching Josetta Saffirio style
 */

/* Main section container */
.subscription-section {
    padding: 8rem 0;
    background-color: #000000;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    background-image: url('../images/home-abbonamenti.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.subscription-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.subscription-content {
    position: relative;
    z-index: 2;
}

/* Content container */
.subscription-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* Header section */
.subscription-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Title styling */
.subscription-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Introduction text */
.subscription-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    color: #CCCCCC;
}

/* Subscription boxes container */
.subscription-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 4rem auto;
    max-width: 900px;
}

/* Box link wrapper */
.box-link {
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: block;
}

.box-link:hover {
    transform: translateY(-5px);
}

.box-link:hover .subscription-box {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.box-link:hover .subscription-box::before {
    opacity: 0.4;
    transform: scale(1.05);
}

/* Removed 'Scopri' button */

/* Individual subscription box */
.subscription-box {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.subscription-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0.15;
    transition: all 0.5s ease;
    z-index: -1;
}

.subscription-box:first-child::before {
    /* Background image removed - box is now transparent to show section background */
}

.subscription-box:last-child::before {
    /* Background image removed - box is now transparent to show section background */
}

/* Hover effects now applied to .box-link instead */

/* Featured box styling */
.subscription-box.featured {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Removed 'Consigliato' label */

/* Box header */
.box-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.box-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.box-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.box-header h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.box-price {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Box content */
.box-content {
    padding: 1.8rem 1.5rem;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Features list */
.box-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box-features li {
    padding: 0.7rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.box-features li:hover {
    color: white;
    transform: translateX(3px);
}

.box-features li:last-child {
    border-bottom: none;
}

.box-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.box-features li:hover::before {
    background-color: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* CTA section */
.subscription-cta {
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
}

.subscription-cta::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Button styling */
.subscription-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.subscription-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.subscription-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.subscription-button:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscription-title {
        font-size: 2.5rem;
    }
    
    .subscription-intro {
        font-size: 1.1rem;
    }
    
    .subscription-image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .subscription-section {
        padding: 5rem 0;
    }
    
    .subscription-title {
        font-size: 2rem;
    }
    
    .subscription-image-container {
        height: 250px;
    }
}
