* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f6f9;
    color: #333;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


.hero {
    background: linear-gradient(135deg, #003366, #1cb300);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}


.btn-primary {
    display: inline-block;
    background: #e60000;
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #cc0000;
}


.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #003366;
}


.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h3 {
    color: #cc0000;
    margin-bottom: 0.5rem;
}

.hours {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-card ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.course-card li {
    margin-bottom: 0.5rem;
}

/* Featured Card */
.featured {
    border: 2px solid #e60000;
}


.indennita-box {
    margin-top: 4rem;
    text-align: center;
    background: #e60000;
    color: white;
    padding: 2rem;
    border-radius: 12px;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}


.section-cta {
    background: #003366;
    color: white;
    text-align: center;
    padding: 3rem 0;
}


.flyers-section {
    padding: 4rem 0;
    background: #ffffff;
    text-align: center;
}

.section-subtitle {
    margin-bottom: 2.5rem;
    color: #666;
}

.flyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.flyer-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.flyer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.flyer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.flyer-card:hover img {
    transform: scale(1.05);
}

.flyer-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 1.2rem;
    text-align: left;
}

.flyer-overlay h3 {
    font-size: 1.1rem;
}


.about-section {
    padding: 4rem 0;
    background: #f9fafc;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 1rem;
    color: #003366;
}

.about-highlight {
    flex: 1;
    background: #00b30e;
    color: white;
    padding: 2rem;
    border-radius: 12px;
}


.strengths-section {
    padding: 4rem 0;
    background: white;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.strength-box {
    background: #f4f6f9;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
}

.strength-box:hover {
    background: #003366;
    color: white;
    transform: translateY(-5px);
}


.cta-text {
    margin: 1rem 0 1.5rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.fade-section {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-section.show {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}


.contact-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #003366, #1cb300);
    color: white;
    text-align: center;
}

.contact-section .section-title {
    color: white;
    margin-bottom: 2rem;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: auto;
    backdrop-filter: blur(5px);
}

.contact-box p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.contact-box a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-box a:hover {
    text-decoration: underline;
}

.contact-box strong {
    display: block;
    margin-top: 1rem;
    font-size: 1.2rem;
}


.map-section {
    padding: 4rem 0;
    background: #f4f6f9;
    text-align: center;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

.map-container:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.map-text {
    margin-top: 1rem;
    color: #555;
    font-size: 1rem;
}

.map-title {
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #003366;
    font-weight: bold;
    letter-spacing: 1px;
}

.map-wrapper {
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.map-button {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #e60000;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    z-index: 3;
}


.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 18px;
    height: 18px;
    background: #e60000;
    border-radius: 50%;
    z-index: 3;
}


.map-pin::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: rgba(230, 0, 0, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.8s infinite;
}


@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
    }


.hero .container {
    position: relative;
}

}

.hero-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
}

.hero-logo-img {
    width: 60px;
    height: 23.8px;
    object-fit: contain;
}

.hero-logo-text {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}
.hero-contacts {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column; 
    align-items: flex-end; 
    gap: 0.2rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.2;
    z-index: 10;
}

.hero-contacts a {
    color: #ffffff;
    text-decoration: none;
}

.hero-contacts a:hover {
    text-decoration: underline;
}

.submit-section {
    margin-bottom: 3rem;
    text-align: center;
}

.submit-title {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 2rem;
    font-weight: bold;
}

.submit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.submit-card {
    display: block;
    max-width: 400px;
    cursor: pointer;
    position: relative;
}

.submit-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    background: rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
}

.submit-card:hover .submit-overlay {
    opacity: 1;
}

.submit-overlay h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #e60000; 
}

.submit-block {
    text-align: center;
}

.submit-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #003366;
    margin-bottom: 1rem;
}


.submit-overlay h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #e60000;
}

@media (max-width: 768px) {
    .hero-contacts {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
        text-align: justify;
    }

    .about-highlight {
        padding: 1.5rem;
        text-align: center;
    }

    .about-highlight h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-highlight p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .map-button {
        display: none !important;
    }
}




