/* Stili specifici per la pagina index */

.hero-section {
    position: relative;
    height: 66.67vh; /* 2/3 dell'altezza dello schermo */
    min-height: 500px;
    background-image: url('/images/index_sfondo_1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 44, 59, 0.6); /* Overlay con alpha */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

/* Stili per il componente di ricerca index */
.index-search-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.index-search-container .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-search-container .form-control {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.9);
    color: #232c3b;
    transition: all 0.3s ease;
}

.index-search-container .form-control:focus {
    background-color: #fff;
    border-color: #50afab;
    box-shadow: 0 0 0 0.2rem rgba(80, 175, 171, 0.25);
}

.index-search-container h5 {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.4;
}

.index-search-container .btn-primary {
    background-color: #50afab;
    border-color: #50afab;
}

.index-search-container .btn-primary:hover {
    background-color: #232c3b;
    border-color: #232c3b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Stili per la sezione Categorie */

.categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #232c3b;
}

.categories-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 300;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 300px;
    display: block;
}

.category-card:hover {
    /*transform: translateY(-8px);*/
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.10);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(35, 44, 59, 0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(80, 175, 171, 0.9), transparent);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Stili per la sezione Download app */
.download-app-section {
    background: linear-gradient(135deg, #50afab 0%, #232c3b 100%);
    color: #fff;
}

.download-app-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.download-app-description {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.download-store-button {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.download-store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.download-app-image {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.download-app-image:hover {
    transform: translateY(-5px);
}

/* Stili per la sezione Regioni */
.regions-section {
    background-color: #f8f9fa;
}

.regions-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #232c3b;
}

.regions-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 300;
}

/* Owl Carousel per regioni */
.regions-carousel {
    margin: 0 -15px;
}

.region-card {
    padding: 0 15px;
}

.region-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 300px;
}

.region-link:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.region-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.region-link:hover .region-image {
    transform: scale(1.05);
}

.region-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(35, 44, 59, 0.9), transparent);
    color: white;
    padding: 30px 20px 20px;
    transition: all 0.3s ease;
}

.region-link:hover .region-overlay {
    background: linear-gradient(to top, rgba(80, 175, 171, 0.9), transparent);
}

.region-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Stili per navigazione Owl Carousel */
.regions-carousel .owl-nav {
    position: absolute;
    top: 43%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.regions-carousel .owl-nav button {
    pointer-events: all;
    width: 50px;
    height: 50px;
    background-color: rgba(80, 175, 171, 0.8) !important;
    border-radius: 50%;
    color: white !important;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 20px;
}

.regions-carousel .owl-nav button:hover {
    background-color: #50afab !important;
    opacity: 1;
}

.regions-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.regions-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(35, 44, 59, 0.3) !important;
    margin: 0 5px;
    display: inline-block;
}

.regions-carousel .owl-dot.active {
    background-color: #50afab !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }

    .index-search-container {
        padding: 20px;
    }

    .index-search-container .form-control {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
        min-height: 350px;
    }

    .index-search-container {
        padding: 15px;
    }

    .index-search-container .row > div {
        margin-bottom: 15px;
    }

    .index-search-container .btn-primary {
        height: 50px !important;
    }

    /* Categorie responsive */
    .categories-title {
        font-size: 2rem;
    }

    .categories-subtitle {
        font-size: 1.1rem;
    }

    .category-card {
        height: 250px;
    }

    .category-title {
        font-size: 1.3rem;
    }

    /* Download app responsive */
    .download-app-title {
        font-size: 2rem;
        text-align: center;
    }

    .download-app-description {
        font-size: 1.1rem;
        text-align: center;
    }

    .download-app-buttons {
        text-align: center;
    }

    .download-store-button {
        width: 130px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .download-app-title {
        font-size: 2.2rem;
    }

    .download-app-description {
        font-size: 1.15rem;
    }

    /* Regioni responsive */
    .regions-title {
        font-size: 2rem;
    }

    .regions-subtitle {
        font-size: 1.1rem;
    }

    .region-link {
        height: 250px;
    }

    .region-title {
        font-size: 1.5rem;
    }

    /* Nascondi frecce su tablet e mobile */
    .regions-carousel .owl-nav {
        display: none;
    }

    .regions-carousel .owl-dots {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    /* Regioni mobile */
    .regions-title {
        font-size: 1.8rem;
    }

    .regions-subtitle {
        font-size: 1rem;
    }

    .region-link {
        height: 200px;
    }

    .region-title {
        font-size: 1.3rem;
    }

    .region-overlay {
        padding: 20px 15px 15px;
    }

    .regions-carousel .owl-dots {
        margin-top: 15px;
    }
}
