/* ========================================
   HEADER - CLASSI SEMANTICHE
   ======================================== */

/* HEADER PRINCIPALE */
.site-header {
    width: 100%;
    background: #0261ab;
    position: fixed;
    top: 0;
    z-index: 9999;
}

/* CONTENITORE INTERNO */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 16px 24px;
}

/* LOGO */
.site-header__logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.site-header__logo-text {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 18px;
}

/* NAVIGAZIONE */
.site-header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto; /* Nav a destra */
}

.site-header__nav-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

/* EFFETTO HOVER ELEGANTE */
.site-header__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.25s ease;
}

.site-header__nav-link:hover::after {
    width: 100%;
}

/* ========================================
   FOOTER - CLASSI SEMANTICHE
   ======================================== */

.site-footer {
    background: #0261ab;
    color: #DDECF6;
    padding: 60px 0 30px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin-top: auto;
}

.site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.site-footer__section {
    margin-bottom: 30px;
}

.site-footer__logo {
    margin-bottom: 20px;
}

.site-footer__logo h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.site-footer__logo img {
    max-height: 60px;
    width: auto;
}

.site-footer__description {
    color: #bbdefb;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 15px;
    max-width: 300px;
}

.site-footer__title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #DDECF6;
    border-radius: 2px;
}

.site-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__menu li {
    margin-bottom: 12px;
}

.site-footer__menu a {
    color: #bbdefb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.site-footer__menu a:hover {
    color: #ffffff;
    padding-left: 8px;
    transform: translateX(5px);
}

.site-footer__menu a::before {
    content: '▶';
    margin-right: 10px;
    font-size: 0.8rem;
    color: #DDECF6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-footer__menu a:hover::before {
    opacity: 1;
}

.site-footer__contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__contacts li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    color: #bbdefb;
}

.site-footer__contacts i {
    color: #9bcbe5;
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 20px;
    margin-top: 3px;
}

.site-footer__contacts a {
    color: #bbdefb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer__contacts a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.site-footer__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #DDECF6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__social-icon:hover {
    background: #242424;
    color: #DDECF6 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(36, 36, 36, 0.3);
    border-color: #ffffff;
}

/* SEZIONE INFERIORE FOOTER */
.site-footer__bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 25px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.site-footer__copyright p {
    margin: 5px 0;
    color: #90a4ae;
    font-size: 0.9rem;
}

.site-footer__copyright p:first-child {
    font-weight: 500;
    color: #bbdefb;
}

.site-footer__links {
    display: flex;
    gap: 25px;
}

.site-footer__links a {
    color: #bbdefb;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.site-footer__links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #242424;
    transition: width 0.3s ease;
}

.site-footer__links a:hover {
    color: #ffffff;
}

.site-footer__links a:hover::after {
    width: 100%;
}

/* BADGE PROFESSIONALITÀ */
.site-footer__badges {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.site-footer__badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #bbdefb;
    border: 1px solid rgba(155, 203, 229, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer__badge i {
    color: #9bcbe5;
    font-size: 0.9rem;
}

/* NEWSLETTER */
.site-footer__newsletter {
    margin-top: 25px;
}

.site-footer__newsletter-description {
    color: #bbdefb;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 15px;
}

.site-footer__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.site-footer__newsletter-form input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.site-footer__newsletter-form input::placeholder {
    color: #bbdefb;
}

.site-footer__newsletter-form button {
    background: #9bcbe5;
    color: #242424;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-footer__newsletter-form button:hover {
    background: #7bb5d5;
    transform: translateY(-2px);
}

.site-header__hamburger {
    display: none !important;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto; /* Spinge il bottone a destra */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Allinea l'icona a destra dentro il bottone */
}

.site-header__hamburger:hover {
    transform: scale(1.1);
}

.site-header__hamburger.active {
    transform: rotate(90deg);
}

/* ========================================
   MENU MOBILE - NASCOSTO DI DEFAULT
   ======================================== */

.site-header__mobile-menu {
    display: none; /* Nascondo di default */
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(2, 97, 171, 0.97);
    backdrop-filter: blur(10px);
    z-index: 9998;
    padding: 40px 20px;
    animation: slideDown 0.3s ease;
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* Quando il menu è aperto (aggiunto via JavaScript) */
.site-header__mobile-menu.open {
    display: flex;
}

.site-header__mobile-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    padding: 15px 30px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-radius: 8px;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__mobile-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.site-header__mobile-link:last-child {
    border-bottom: none;
}

/* ANIMAZIONE */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE - SOTTO 600px
   ======================================== */

@media (max-width: 600px) {
    /* NASCONDO LA NAV DESKTOP */
    .site-header__nav {
        display: none !important;
    }
	.site-header__hamburger {
		display: block !important;
	}
	.site-header__inner {
		justify-content: space-between !important;
	}
}
