/* Header Styles */
.navbar {
    background-color: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    max-width: 1500px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand img {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Stile per il badge "Accesso anticipato" */
.navbar-brand .badge {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.navbar-brand .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition);
}

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

.navbar .btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--button-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.navbar .btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(142, 121, 254, 0.3);
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 121, 254, 0.4);
}

.navbar .btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid #e2e8f0;
    margin-right: 1rem;
}

.navbar .btn-outline:hover {
    background-color: var(--columbia-blue);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 178, 239, 0.15);
}

/* Media Queries per Header */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand img {
        height: 36px;
    }

    .navbar .btn {
        margin-top: 1rem;
        width: 100%;
        display: block;
    }

    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
    }

    .navbar .btn-outline {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 32px;
    }

    .navbar .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Stili per la sezione Pricing */
.pricing-container {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin: 0 auto;
    max-width: 600px;
}

.pricing-card-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pricing-info {
    text-align: center;
}

.pricing-title {
    font-size: 1.625rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-price .amount {
    font-family: 'Raleway', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    text-align: center;
}

.pricing-price .period {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
    display: block;
    width: 100%;
}

.pricing-cta {
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 0 1.5rem;
}

.pricing-cta .btn {
    width: auto;
    min-width: 200px;
    padding: 1rem 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    line-height: 1.4;
}

.features-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.pricing-footer {
    text-align: center;
    margin-top: 2rem;
}

.pricing-footer .btn {
    width: auto;
    min-width: 200px;
    padding: 1rem 2rem;
}

.pricing-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.contact-card {
    background: var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 15%;
    min-width: 200px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    height: auto;
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.contact-box i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-box p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-box .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.footer {
    padding: 4rem 0 2rem;
    background: #fff;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright, .made-with {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.footer p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    height: 40px;
}

/* Media Queries */
@media (max-width: 991px) {
    .pricing-container {
        flex-direction: column;
        max-width: 100%;
    }

    .pricing-card,
    .contact-card {
        width: 100%;
        min-width: auto;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-box {
        padding: 0;
    }

    .pricing-card-inner {
        flex-direction: column;
    }

    .pricing-info,
    .pricing-features {
        width: 100%;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    /* Allinea al centro il div con il logo nella versione mobile */
    .footer .col-lg-5 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer .social-links {
        justify-content: center;
        display: flex;
        margin-bottom: 20px;
    }
    
    /* Assicura che le colonne Navigazione e Contatti siano affiancate */
    .footer-nav-contacts .col-md-6 {
        width: 50%;
        float: left;
        padding-bottom: 20px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-links {
        padding-left: 0;
    }
    
    /* Aumenta lo spazio tra navbar e hero section */
    .hero-section {
        margin-top: 90px;
        padding-top: 20px;
    }
    
    /* Ridimensiona e allinea a sinistra il pulsante INIZIA ORA nella hero */
    .hero-buttons .btn-primary {
        font-size: 0.9rem;
        padding: 8px 16px;
        display: inline-block;
        text-align: left;
        width: auto !important;
        max-width: 200px;
    }
    
    /* Riduzione margine footer-bottom */
    .footer-bottom {
        margin-top: 10px;
        text-align: center;
    }
    
    .footer-bottom .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center;
        width: 100%;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }

    /* Stile del toggle button */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Nasconde il menu predefinito di bootstrap */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Menu mobile personalizzato */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -70%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), #5F75E9);
        z-index: 1050;
        padding: 2rem 1.5rem;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        color: white;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        transform: rotate(90deg);
    }
    
    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-nav-item {
        color: white;
        text-decoration: none;
        font-size: 1.3rem;
        font-weight: 500;
        padding: 0.75rem 0;
        position: relative;
        display: block;
        text-align: left;
        width: 100%;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-item:hover {
        transform: translateX(8px);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-menu-footer {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-menu-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .mobile-menu-buttons .btn-outline {
        background: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .mobile-menu-buttons .btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-buttons .btn-primary {
        background: white;
        color: var(--primary-color);
        border: none;
        font-weight: 600;
    }
    
    .mobile-menu-buttons .btn-primary:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
    }
    
    /* Previene lo scrolling quando il menu è aperto */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Animazione per gli elementi del menu */
    .mobile-nav-item {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(var(--item-index) * 0.1s);
    }
    
    .mobile-menu.active .mobile-nav-item {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1rem;
    }

    .pricing-left, 
    .pricing-right {
        padding: 1rem;
    }

    .features-list li {
        font-size: 0.85rem;
    }

    .footer-nav-contacts {
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    /* Aumenta ulteriormente lo spazio tra navbar e hero su schermi molto piccoli */
    .hero-section {
        margin-top: 150px;
        padding-top: 40px;
    }
    
    /* Ridimensiona ulteriormente il pulsante su schermi molto piccoli */
    .hero-buttons .btn-primary {
        font-size: 0.85rem;
        padding: 6px 14px;
        width: auto !important;
        max-width: 150px;
        text-align: left;
    }
    
    /* Allineamento a sinistra del pulsante */
    .hero-buttons {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Aggiunta stile per hero-features per forzare layout 2x2 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(207, 226, 250, 0.5);
}

.hero-feature-item i {
    font-size: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(142, 121, 254, 0.1), rgba(95, 178, 239, 0.1));
    color: var(--primary-color);
    flex-shrink: 0;
}

.hero-feature-item span {
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--text-color);
}

@media (max-width: 992px) {
    /* Mantiene sempre il layout 2x2 anche su mobile */
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .hero-feature-item {
        padding: 0.6rem;
    }
    
    .hero-feature-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-features {
        margin: 1.5rem 0;
    }
    
    .hero-feature-item {
        padding: 0.5rem;
    }
    
    .hero-feature-item i {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.9rem;
    }
    
    .hero-feature-item span {
        font-size: 0.75rem;
    }
}

/* Stile base per il pulsante INIZIA ORA nella hero section */
.hero-buttons .btn-primary {
    width: auto !important;
    display: inline-block;
    text-align: center;
}

/* Allineamento a sinistra del contenitore dei pulsanti */
.hero-buttons {
    text-align: left;
    display: flex;
    justify-content: flex-start;
}

/* Nasconde il menu mobile su dispositivi desktop */
@media (min-width: 992px) {
    .mobile-menu, .mobile-menu-overlay {
        display: none !important;
    }
}

/* Stile del menu mobile */
@media (max-width: 991px) {
    .pricing-container {
        flex-direction: column;
        max-width: 100%;
    }

    .pricing-card,
    .contact-card {
        width: 100%;
        min-width: auto;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-box {
        padding: 0;
    }

    .pricing-card-inner {
        flex-direction: column;
    }

    .pricing-info,
    .pricing-features {
        width: 100%;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    /* Allinea al centro il div con il logo nella versione mobile */
    .footer .col-lg-5 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer .social-links {
        justify-content: center;
        display: flex;
        margin-bottom: 20px;
    }
    
    /* Assicura che le colonne Navigazione e Contatti siano affiancate */
    .footer-nav-contacts .col-md-6 {
        width: 50%;
        float: left;
        padding-bottom: 20px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-links {
        padding-left: 0;
    }
    
    /* Aumenta lo spazio tra navbar e hero section */
    .hero-section {
        margin-top: 90px;
        padding-top: 20px;
    }
    
    /* Ridimensiona e allinea a sinistra il pulsante INIZIA ORA nella hero */
    .hero-buttons .btn-primary {
        font-size: 0.9rem;
        padding: 8px 16px;
        display: inline-block;
        text-align: left;
        width: auto !important;
        max-width: 200px;
    }
    
    /* Riduzione margine footer-bottom */
    .footer-bottom {
        margin-top: 10px;
        text-align: center;
    }
    
    .footer-bottom .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center;
        width: 100%;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }

    /* Stile del toggle button */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        outline: none !important;
        box-shadow: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Nasconde il menu predefinito di bootstrap */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Menu mobile personalizzato */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -70%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), #5F75E9);
        z-index: 1050;
        padding: 2rem 1.5rem;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        color: white;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        transform: rotate(90deg);
    }
    
    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-nav-item {
        color: white;
        text-decoration: none;
        font-size: 1.3rem;
        font-weight: 500;
        padding: 0.75rem 0;
        position: relative;
        display: block;
        text-align: left;
        width: 100%;
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-item:hover {
        transform: translateX(8px);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .mobile-menu-footer {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .mobile-menu-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .mobile-menu-buttons .btn-outline {
        background: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .mobile-menu-buttons .btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-buttons .btn-primary {
        background: white;
        color: var(--primary-color);
        border: none;
        font-weight: 600;
    }
    
    .mobile-menu-buttons .btn-primary:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-2px);
    }
    
    /* Previene lo scrolling quando il menu è aperto */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Animazione per gli elementi del menu */
    .mobile-nav-item {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        transition-delay: calc(var(--item-index) * 0.1s);
    }
    
    .mobile-menu.active .mobile-nav-item {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1rem;
    }

    .pricing-left, 
    .pricing-right {
        padding: 1rem;
    }

    .features-list li {
        font-size: 0.85rem;
    }

    .footer-nav-contacts {
        margin-left: 0;
        margin-right: 0;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    /* Aumenta ulteriormente lo spazio tra navbar e hero su schermi molto piccoli */
    .hero-section {
        margin-top: 150px;
        padding-top: 40px;
    }
    
    /* Ridimensiona ulteriormente il pulsante su schermi molto piccoli */
    .hero-buttons .btn-primary {
        font-size: 0.85rem;
        padding: 6px 14px;
        width: auto !important;
        max-width: 150px;
        text-align: left;
    }
    
    /* Allineamento a sinistra del pulsante */
    .hero-buttons {
        justify-content: flex-start;
        text-align: left;
    }
}
