/* ==========================================================================
   HACCP Landing Page - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Palette Colori
   -------------------------------------------------------------------------- */
:root {
    /* Colori Primari - Blu dal logo Pronto HACCP */
    --primary: #1E3A5F;
    --primary-light: #3B82C4;
    --primary-dark: #152A45;

    /* Colori Secondari */
    --secondary: #E8F0F8;
    --accent: #D4A84B;
    --accent-hover: #C49A3D;

    /* Neutri */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #4A4A4A;
    --gray-900: #1E293B;

    /* Feedback */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* --------------------------------------------------------------------------
   Animations Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 58, 95, 0);
    }
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background-color: var(--white);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.navbar-haccp {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

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

.navbar-haccp .navbar-brand .navbar-logo {
    height: 55px;
    width: auto;
}

.navbar-haccp .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

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

.navbar-haccp .nav-link.active {
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary-custom {
    background-color: var(--accent);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    border: none;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-white:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    color: var(--white);
    animation: slideInRight 0.6s ease-out 0.5s both;
}

.hero-badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-badge-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-badge-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.trust-item i {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Benefits Section
   -------------------------------------------------------------------------- */
.benefits-section {
    padding: 5rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.benefit-item i {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 500;
    color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Step number animations - bounceIn con delay progressivo */
.step-card:nth-child(1) .step-number { animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s both; }
.step-card:nth-child(2) .step-number { animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s both; }
.step-card:nth-child(3) .step-number { animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.7s both; }

/* Step icon animations - fadeInUp + float */
.step-card:nth-child(1) .step-icon { animation: fadeInUp 0.5s ease-out 0.3s both; }
.step-card:nth-child(2) .step-icon { animation: fadeInUp 0.5s ease-out 0.6s both; }
.step-card:nth-child(3) .step-icon { animation: fadeInUp 0.5s ease-out 0.9s both; }

/* Step title animations */
.step-card:nth-child(1) .step-title { animation: fadeInUp 0.5s ease-out 0.4s both; }
.step-card:nth-child(2) .step-title { animation: fadeInUp 0.5s ease-out 0.7s both; }
.step-card:nth-child(3) .step-title { animation: fadeInUp 0.5s ease-out 1s both; }

/* Step description animations */
.step-card:nth-child(1) .step-description { animation: fadeInUp 0.5s ease-out 0.5s both; }
.step-card:nth-child(2) .step-description { animation: fadeInUp 0.5s ease-out 0.8s both; }
.step-card:nth-child(3) .step-description { animation: fadeInUp 0.5s ease-out 1.1s both; }

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform var(--transition-base);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.step-description {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* Connecting line between steps */
.steps-container {
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: calc(2rem + 30px);
    left: calc(16.666% + 30px);
    right: calc(16.666% + 30px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    z-index: 0;
    transform-origin: left center;
    animation: drawLine 0.8s ease-out 0.3s both;
}

@media (max-width: 768px) {
    .steps-container::before {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out both;
}

.pricing-section .col-lg-4:nth-child(1) .pricing-card { animation-delay: 0.1s; }
.pricing-section .col-lg-4:nth-child(2) .pricing-card { animation-delay: 0.2s; }
.pricing-section .col-lg-4:nth-child(3) .pricing-card { animation-delay: 0.3s; }

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.pricing-original {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: line-through;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.pricing-features li i {
    color: var(--success);
    margin-top: 0.25rem;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn-primary-custom,
.pricing-cta .btn-secondary-custom {
    width: 100%;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Subscribe Section
   -------------------------------------------------------------------------- */
.subscribe-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.subscribe-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.subscribe-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.subscribe-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form .form-control {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.subscribe-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
    transform: scale(1.02);
}

.subscribe-form .form-control {
    transition: all var(--transition-base);
}

.subscribe-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.subscribe-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.subscribe-benefit i {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-height: 50px;
    width: auto;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--accent);
}

.footer-description {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

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

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-powered {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-powered a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.footer-powered a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        margin-top: 2rem;
    }

    .trust-indicators {
        justify-content: center;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form .form-control {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary-custom,
    .hero-cta .btn-white {
        width: 100%;
        text-align: center;
    }

    .how-it-works,
    .pricing-section,
    .subscribe-section {
        padding: 3rem 0;
    }
}

/* --------------------------------------------------------------------------
   Login Section
   -------------------------------------------------------------------------- */
/* Sezione login con spazio ridotto */
.login-section {
    min-height: calc(100vh - 120px);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 2rem 0; /* Ridotto da 4rem */
    display: flex;
    align-items: center;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.1);
    padding: 3rem;
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
}

.login-icon i {
    font-size: 2rem;
    color: var(--white);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 0;
    animation: fadeIn 1s ease-out 0.4s both;
}

.login-form {
    animation: fadeIn 1s ease-out 0.6s both;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0.5rem 0 0.75rem;
    animation: fadeIn 1s ease-out 0.1s both;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

@media (max-width: 576px) {
    .error-code { font-size: 4rem; }
    .error-actions { flex-direction: column; }
    .error-actions > * { width: 100%; }
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.login-form .form-control {
    height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check-label {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.forgot-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--accent-hover);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out 0.8s both;
}

.login-divider {
    position: relative;
    margin: 2rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.login-divider span {
    background: var(--white);
    color: var(--gray-500);
    padding: 0 1rem;
    font-size: 0.9rem;
}

.register-link {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.register-link a {
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .login-section {
        padding: 1rem 0; /* Ancora più ridotto su mobile */
    }

    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-primary-custom {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-slate{
    color: rgb(203 213 225);
}

.bg-primary-custom {
    background-color: var(--primary);
}
.bg-primary-dark-custom {
    background-color: var(--primary-dark);
}   

.bg-secondary-custom {
    background-color: var(--secondary);
}

.border-accent-custom {
    border-color: var(--accent) !important;
}



/* REVIEWS  CARDS AND SECTION*/
.swiper-review {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 40px;  
}


.review-card {
    background-color: rgb(255 255 255 / 0.1);
    transition: all 0.3s;
}
.review-card:hover {
    background-color: rgb(255 255 255 / 0.3);
}

.review-card > .stars-container > i{
    color: var(--accent);
    font-size: 1rem;
}
.review-card > .stars-container:hover > i{
    color: var(--accent-hover);
    transform: scale3d(103%);
}
.review-card > .stars-container{
    transition: all 0.3s;
}

.review-card .profile-picture {
    width: auto;
    height: 3rem;
}

.review-card .profile-initials {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: var(--accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    user-select: none;
}

.swiper-review .swiper-wrapper {
    align-items: stretch;
}

.swiper-review .swiper-slide {
    height: auto;
    display: flex;
}

.swiper-review .swiper-slide .review-card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;

}

.swiper-review .swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.swiper-review .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.swiper-review .swiper-pagination-bullet-active {
    background-color: var(--accent);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .review-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .review-section h5.fs-1 {
        font-size: 1.75rem !important;
    }

    .swiper-review .swiper-slide .review-card {
        padding: 1.25rem !important;
    }

    .review-card > p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .review-card .profile-initials {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
}

/* --------------------------------------------------------------------------
   User Widget
   -------------------------------------------------------------------------- */
.user-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.user-widget:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-chevron {
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.user-widget:hover .user-chevron {
    color: var(--primary);
    transform: translateY(-1px);
}

.user-dropdown {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: var(--gray-700);
}

.user-dropdown .dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(4px);
}

.user-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

@media (max-width: 768px) {
    .user-widget {
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .user-name {
        font-size: 0.8125rem;
        max-width: 100px;
    }

    .user-chevron {
        display: none;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background-color: #1EBE57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.whatsapp-float i {
    font-size: 1.5rem;
    line-height: 1;
}

.whatsapp-float-label {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        padding: 0.875rem;
    }

    .whatsapp-float-label {
        display: none;
    }
}

