/* ===========================
   Variables & Reset
   =========================== */
:root {
    --primary-navy: #003366;
    --primary-orange: #FF9A76;
    --secondary-blue: #005599;
    --light-blue: #E6F2FF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --shadow: 0 4px 20px rgba(0, 51, 102, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ===========================
   Mobile Menu Overlay
   =========================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    padding: 2rem;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu-list .menu-link {
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
    display: block;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-list .menu-link:hover {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.mobile-menu-cta {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.5s;
}

.mobile-menu-overlay.active .mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}

.btn-whatsapp-menu {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp-menu:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 154, 118, 0.3);
}

.btn-whatsapp-menu i {
    margin-right: 0.5rem;
}

/* ===========================
   Header / Navbar
   =========================== */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* Desktop Menu */
.desktop-menu {
    display: none;
}

.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.desktop-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.desktop-menu a:hover {
    color: var(--primary-navy);
}

.desktop-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
    transition: var(--transition);
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background: var(--primary-navy);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--white);
}

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

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--white);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23003366" opacity="0.05"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-image {
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-orange);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 154, 118, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-navy);
}

.btn-white:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* ===========================
   Sections
   =========================== */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 500;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 1rem;
    line-height: 1.8;
}

.bg-light {
    background: var(--light-gray);
}

/* ===========================
   Feature Cards
   =========================== */
.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FFB896 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   Step Cards
   =========================== */
.step-card {
    text-align: center;
    position: relative;
    padding-top: 3rem;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 154, 118, 0.4);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--light-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    font-size: 3rem;
    color: var(--primary-navy);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: var(--primary-navy);
    color: var(--white);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   Info Section
   =========================== */
.info-box {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 4rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.info-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.info-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   Why Us Section
   =========================== */
.about-image {
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.why-list {
    margin-top: 2rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-item i {
    font-size: 2rem;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   Contatti Section
   =========================== */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
}

.logo-contact {
    margin-bottom: 2rem;
}

.logo-contact-img {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-person {
    margin-bottom: 2rem;
}

.contact-person h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--white);
    font-size: 1.4rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition);
    font-weight: 500;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    color: var(--white);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-orange);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 50px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-contact {
    margin-top: 2rem;
}

.footer-contact p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.footer-contact a {
    color: var(--primary-orange);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   WhatsApp Floating Button
   =========================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1), 0 0 0 20px rgba(37, 211, 102, 0.05); }
    100% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
}

/* ===========================
   Animations
   =========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive Design
   =========================== */
@media (min-width: 992px) {
    .desktop-menu {
        display: block;
    }
    
    .hamburger {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .contact-methods {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .mobile-menu-list .menu-link {
        font-size: 1.5rem;
    }
    
    .btn-whatsapp-menu {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        bottom: 20px;
        right: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-item {
        font-size: 1.1rem;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
}
