/* ===========================
   OPENDOCTOR - CSS CONDIVISO
   =========================== */
/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===========================
   HEADER TOP
   =========================== */
.top-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-header .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: center;
}

.logo {
    width: 250px;
    flex-shrink: 0;
}

.credits-text {
    color: #7ba4db;
    font-size: clamp(16px, 2vw, 25px);
    font-weight: 300;
    transition: opacity 0.5s ease-in-out;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.credits-text.fade-out {
    opacity: 0;
}

/* ===========================
   NAVIGATION
   =========================== */
.main-nav {
    background-color: #1e3a8a;
    padding: 0;
    position: relative;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 40px;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.nav-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-item.active {
    background-color: #4a7cc7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 18px 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
}

/* ===========================
   HERO BANNER
   =========================== */
.hero-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.6);
    z-index: 0;
}

.hero-banner.bg-1 {
    background-image: url('../main-images/hero-bg-1.jpg');
}

.hero-banner.bg-2 {
    background-image: url('../main-images/hero-bg-2.jpg');
}

.hero-banner.bg-3 {
    background-image: url('../main-images/hero-bg-3.jpg');
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
}

.btn-white {
    background-color: transparent;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-course {
    padding: 12px 28px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary-course {
    background-color: #1e3a8a;
    color: white;
}

.btn-primary-course:hover {
    background-color: #152a6b;
}

.btn-secondary-course {
    background-color: #7ba4db;
    color: white;
}

.btn-secondary-course:hover {
    background-color: #5a8ad4;
}

/* ===========================
   MODAL
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 80px auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 24px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #7ba4db;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: #1e3a8a;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer .container {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-copyright {
    font-size: 12px;
    opacity: 0.8;
}

.social-icons {
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    margin: 0 5px;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-icons img {
    width: 32px;
    height: 32px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
    .top-header .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        width: 200px;
        margin: 0 auto;
    }

    .credits-text {
        text-align: center;
        font-size: clamp(14px, 3vw, 18px);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-right {
        align-items: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .main-nav .container {
        padding: 0;
    }

    .nav-item {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        background-color: #1e3a8a;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
    }

    .mobile-nav.active {
        display: flex;
    }

    .mobile-nav .nav-item {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 600px) {
    .credits-text {
        font-size: clamp(12px, 4vw, 16px);
        white-space: normal;
        line-height: 1.3;
    }

    .container {
        padding: 0 20px;
    }
}