@import url('header.css');
@import url('footer.css');

/* ==================== */
/* Reset & Base Styles  */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ==================== */
/* Header               */
/* ==================== */
header {
    background-color: #003366;
    color: white;
    padding: 15px 0;
}

/* ==================== */
/* Hero Section         */
/* ==================== */
.hero {
    color: #003366;
    padding: 15px 20px 10px 20px; /* Padding compresso per far salire lo slideshow */
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 5px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* CTA Buttons */
.cta-button, .cta-button-learn-more {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.cta-button {
    background-color: #003366;
    color: white;
}

.cta-button:hover {
    background-color: #002244;
    color: #ffcc00;
    transform: scale(1.05);
}

.cta-button-learn-more {
    background-color: #003366;
    color: #ffcc00;
}

.cta-button-learn-more:hover {
    background-color: #ffcc00;
    color: #003366;
    transform: scale(1.05);
}

/* ==================== */
/* Features Section     */
/* ==================== */
.features {
    padding: 5px 0 15px 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.mySlides {
    display: none;
    position: relative;
    text-align: center;
    animation: fade 1s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.mySlides img {
    width: 100%;
    height: 55vh; /* Altezza basata sulla vista dello schermo per rimanere subito visibile */
    max-height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Testo dentro l'immagine */
.text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: white;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 15px 15px 10px 15px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.3;
}

.text h2 {
    font-size: clamp(16px, 2.5vw, 24px);
    margin-bottom: 4px;
    color: #ffcc00;
}

.text p {
    font-size: clamp(12px, 1.8vw, 15px);
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Frecce slideshow */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 14px;
    margin-top: -20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    transition: 0.3s;
    z-index: 1;
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dots */
.dots-container {
    text-align: center;
    position: relative;
    top: 8px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.active, .dot:hover {
    background-color: #003366;
}

/* ==================== */
/* About Section        */
/* ==================== */
.about {
    background-color: #003366;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.about h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about p {
    font-size: 16px;
    margin-bottom: 30px;
}

.mission-statement {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    font-family: 'Georgia', serif;
    text-align: center;
    margin: 10px auto 15px auto;
    max-width: 800px;
    color: #003366;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.mission-statement::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #003366;
    margin: 8px auto 0;
    border-radius: 2px;
    opacity: 0.6;
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

@media (max-width: 1024px) {
    .mySlides img {
        height: 45vh;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .mySlides img {
        height: 38vh;
        max-height: 320px;
    }

    .hero {
        padding: 10px 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .text {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .mySlides img {
        height: 30vh;
        max-height: 250px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .slideshow-container {
        width: 100%;
    }

    .mission-statement {
        font-size: 16px;
    }
}