/* Font Face Definitions */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #14db95;
    --secondary-color: #23a455;
    --accent-color: #14db95;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --dark-gray: #4b5563;
    --white: #ffffff;
    --max-width: 1200px;
    --gradient-primary: linear-gradient(135deg, #14db95 0%, #23a455 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(243, 244, 246, 0.8);
}

/* Hide scrollbar for Chrome, Safari and Opera on elements that don't need it */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox on elements that don't need it */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Modal Scrollbar Styles */
.modal-content::-webkit-scrollbar,
.nav-links::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.nav-links::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.4);
}

.modal-content::-webkit-scrollbar-thumb,
.nav-links::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.5);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.nav-links::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.7);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    /* frontend-exception: vibrant teal-green background for modern, striking navbar */
    background: #14db95 !important;
    z-index: 1000;
    transition: all 0.3s ease;
    top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Rimuovi l'ombra quando il dropdown è aperto */
header.scrolled.dropdown-open {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo i {
    color: #ffffff;
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0 auto;
}

.nav-links a {
    /* frontend-exception: black text for professional appearance on teal background */
    color: #000000;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.dropdown-group {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-arrow {
    margin-left: 6px;
    transition: transform 0.3s ease;
    /* frontend-exception: white arrow for visibility on teal background */
    color: #ffffff;
}

.dropdown-group:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Desktop Dropdown Styles */
@media (min-width: 768px) {
    .dropdown-group {
        width: auto;
    }
    
    .dropdown-trigger {
        justify-content: flex-start;
        padding: 0.5rem 0;
        border-bottom: none;
    }
}

/* Dropdown Content */
.dropdown-content {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

header.scrolled .dropdown-content {
    top: 70px; /* Adjust based on your scrolled header height */
}

.dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.dropdown-item {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    text-align: center;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #14db95;
}

.dropdown-item p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* Mega menu con 2 elementi centrati */
#prodotti-dropdown .grid {
    justify-content: center;
    align-items: center;
}

#prodotti-dropdown .dropdown-item {
    max-width: 300px;
    margin: 0 auto;
}

.sign-in-btn {
    /* frontend-exception: white text for admin link on teal navbar */
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sign-in-btn:hover {
    color: #ffffff;
    opacity: 0.85;
}

.contact-btn {
    display: inline-block;
    /* frontend-exception: white button with black text for contrast on teal navbar */
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Force hide contact button on mobile */
@media (max-width: 767px) {
    .contact-btn {
        display: none !important;
    }
    
    /* Ensure hamburger is visible and correctly positioned */
    .hamburger {
        display: flex !important;
        cursor: pointer;
        z-index: 9999;
        position: relative;
        /* Rimuovi/commenta margin-left: auto; qui se presente */
        margin-left: 0; /* Assicurati che non ci sia margine sinistro sull'hamburger stesso */
        margin-right: 0; /* Assicura che non ci sia margine destro */
    }
    
    /* Make sure the mobile navigation is correctly positioned */
    .mobile-nav-links {
        top: 0;
        right: 0;
        visibility: hidden;
        transform: translateX(100%);
    }
}

.contact-btn:hover {
    /* frontend-exception: subtle hover effect maintaining white background */
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    /* frontend-exception: fallback gradient background for browsers without video support */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f0f4f8 100%);
    overflow: hidden;
    position: relative;
}

/* Hero Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* frontend-exception: no blur for maximum video clarity and detail */
    filter: brightness(1.0);
}

/* frontend-exception: overlay for ensuring text readability over video */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* frontend-exception: minimal overlay since video already has white background */
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.10) 0%, 
        rgba(248, 249, 250, 0.05) 50%, 
        rgba(240, 244, 248, 0.08) 100%
    );
    z-index: 1;
}

/* Fallback pattern overlay if video doesn't load */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(20, 219, 149, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(35, 164, 85, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(31, 41, 55, 0.04) 0%, transparent 40%);
    z-index: 0;
}

/* Hero Slider for inner pages */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
    color: #ffffff;
}

.hero-subtitle-home {
    display: flex;
    flex-direction: column;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1f2937;
}

/* Hero subtitle for inner pages */
.hero-content .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #ffffff;
}

.hero-content .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-content .trust-badges {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-content .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #ffffff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content .badge i {
    color: var(--accent-color);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -6px;
    animation: arrows 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrows {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Responsive styles for hero on inner pages */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 4rem;
    }
    
    .hero-title-section {
        flex: 1;
    }
    
    .hero-subtitle-section {
        flex: 1;
        padding-top: 1rem;
    }
}

.hero-title-section {
    max-width: 800px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #000000;
}

.hero-title-main {
    display: block;
}

.hero-subtitle-section {
    max-width: 600px;
}

.hero-subtitle-wrapper {
    max-width: 100%;
}

.subtitle-line {
    display: block;
}

.subtitle-line.accent {
    color: #14db95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2rem;
}

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

.hero-content .cta-button {
    display: inline-block;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-content .cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.hero-content .cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.hero-content .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-content .cta-button.primary:hover {
    background: var(--secondary-color);
}

.hero-content .cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 99;
}

.floating-cta {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 99;
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 99;
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 2rem;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #14db95;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1023px) {
    .hero-title {
    font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
        color: #1f2937;
    }
    
    .hero-subtitle-home {
        font-size: 2rem;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.75rem;
        color: #ffffff;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
    }
    
    .hero-content-wrapper {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-title-main {
        margin-bottom: 0.5rem;
}

.hero-subtitle {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        color: #ffffff;
    }
    
    .hero-subtitle-home {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
        flex-direction: column;
        align-items: stretch;
    gap: 1rem;
    }
    
    .hero-cta .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 1.5rem;
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-color);
    border: 1px solid #f3f4f6;
}

.badge i {
    color: var(--primary-color);
}

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

.brands-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.brand-item {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(1);
}

.brand-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.brand-item img {
    max-height: 40px;
    width: auto;
}

@media (min-width: 768px) {
    .hero-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-text {
        flex: 1;
    }
    
    .hero-brands {
        flex: 1;
        margin-top: 0;
    }
    
    .brands-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
        color: #ffffff;
    }
    
    .hero-subtitle-home {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem 2rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .dropdown-group {
        width: 100%;
    }
    
    .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .dropdown-content {
        position: relative;
        top: 0;
        box-shadow: none;
        padding: 0;
        margin: 0.5rem 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-content.active {
        max-height: 1000px;
    }
    
    .dropdown-content .grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        background: #f9fafb;
        border-radius: 0.5rem;
    }
}

/* Blog Section */
.blog-section {
    background: var(--light-gray);
    padding: 8rem 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.blog-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 8rem 0;
    background: var(--white);
    overflow: hidden;
}

.testimonials-section .section-header {
    padding: 0 2rem;
}

.testimonials-section .testimonials-slider {
    padding: 1rem; /* Compatta il contenitore interno */
}

.testimonials-slider {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    padding: 1.25rem 0;
    overflow: hidden;
    height: auto; /* Compatto: altezza in base al contenuto */
}

.testimonials-slider-wrapper {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 1.25rem; /* Compatta la card */
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    min-width: calc(33.333% - 1.5rem);
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (max-width: 1024px) {
    .testimonial-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: calc(100% - 2rem);
    }
}

.testimonial-content {
    margin-bottom: 1rem; /* Riduce spazio sotto al testo */
    position: relative;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--dark-gray);
    font-size: 0.875rem;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #14db95;
    width: 30px;
    border-radius: 5px;
}

.carousel-arrow {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #6b7280;
}

.carousel-arrow:hover {
    background: #14db95;
    border-color: #14db95;
    color: #ffffff;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #6b7280;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    left: 0;
    padding: 0 1rem;
    flex-direction: row-reverse;
    gap: 0.5rem;
    z-index: 99;
}

.scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #14db95;
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover,
.scroll-top-btn:hover {
    transform: translateY(-5px);
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .floating-cta {
        display: none; /* Nascondiamo il contenitore floating-cta in mobile */
    }

    .whatsapp-btn {
        bottom: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .whatsapp-btn i {
        font-size: 1.5rem;
    }

    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

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

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
        overflow-y: auto;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--light-gray);
    }

    .nav-links a.cta-link {
        margin-top: 1rem;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--text-color);
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Section Mobile */
    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle-home {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Services Section Mobile */
    .service-section {
        padding: 4rem 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .target-clients, .loans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .client-card, .loan-card {
        max-width: 100%;
    }

    /* Calculator Modal Mobile */
    .modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        transform: translate(-50%, -50%) scale(1);
    }

    .calculator-step {
        padding: 1rem;
    }

    .duration-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .duration-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .calculator-nav {
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-button {
        flex: 1;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Blog Section Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .blog-card {
        max-width: 100%;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-section ul a {
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0.5rem;
        display: inline-block;
    }

    /* Floating CTA Mobile */
    .floating-cta {
        display: none; /* Nascondiamo il contenitore floating-cta in mobile */
    }

    .whatsapp-btn,
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    /* Cookie Banner Mobile */
    .cookie-banner {
        width: calc(100% - 2rem);
        max-height: 80vh;
        overflow-y: auto;
        margin: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Testimonials Mobile */
    .testimonials-slider {
        padding: 1rem;
        gap: 1rem;
    }
    
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }

    .testimonial-card {
        max-width: 100%;
    }

    /* Advantages Section Mobile */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .advantage-card {
        max-width: 100%;
    }

    /* TFS Section Mobile */
    .tfs-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .calculator-card {
        max-width: 100%;
    }

    /* General Mobile Improvements */
    input[type="range"] {
        width: 100%;
        -webkit-appearance: none;
        height: 8px;
        border-radius: 4px;
        background: var(--light-gray);
        outline: none;
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    select {
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
    }

    /* Touch-specific improvements */
    @media (hover: none) {
        .cta-button:hover,
        .nav-button:hover,
        .card-cta:hover {
            transform: none;
        }

        a:active,
        button:active {
            opacity: 0.7;
        }

        .nav-links a {
            padding: 1rem;
        }
    }

    /* Landscape mode adjustments */
    @media (max-height: 600px) and (orientation: landscape) {
        .nav-links {
            padding: 1rem;
            gap: 1rem;
        }

        .nav-links a {
            padding: 0.5rem;
            font-size: 1rem;
        }

        .modal {
            overflow-y: auto;
        }

        .calculator-steps {
            max-height: 80vh;
            overflow-y: auto;
        }
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        color: #ffffff;
    }
    
    .hero-subtitle-home {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .duration-options {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-effect {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* Section header con testo bianco per sfondi scuri */
.section-header.light h2 {
    color: #ffffff !important;
}

.section-header.light p {
    color: #f3f4f6 !important;
}

/* Titolo sezione contatti con colore principale */
.contact-title {
    color: var(--primary-color) !important;
}

/* Advantages Section */
.advantages-section {
    padding: 8rem 2rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.advantages-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right bottom, var(--white) 49%, var(--light-gray) 50%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.advantage-card:hover i {
    transform: scale(1.1);
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.advantage-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Service Section */
.service-section {
    padding: 8rem 2rem;
    position: relative;
}

/* Cessione del Quinto */
.service-section:nth-of-type(3) {
    background: var(--light-gray);
}

.service-section:nth-of-type(3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: 0;
}

/* Prestiti Personali */
.service-section:nth-of-type(4) {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.service-section:nth-of-type(4)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.service-section:nth-of-type(4)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right bottom, var(--white) 49%, var(--light-gray) 50%);
    z-index: 1;
}

/* Anticipo TFS */
.service-section:nth-of-type(5) {
    background: var(--light-gray);
    position: relative;
}

.service-section:nth-of-type(5)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* Common styles for all service sections */
.service-section > * {
    position: relative;
    z-index: 2;
}

.service-section .section-header {
    position: relative;
}

.service-section .section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Unique accent colors for each section */
.service-section:nth-of-type(3) .client-card i {
    color: var(--primary-color);
}

.service-section:nth-of-type(4) .loan-header-overlay {
    background: linear-gradient(rgba(#14db95ca, #23a454b2));
}

.service-section:nth-of-type(5) .tfs-benefits li i {
    color: var(--accent-color);
}

.target-clients {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.client-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.client-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.client-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
}

.features-list li:last-child {
    border-bottom: none;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.card-cta:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Loans Grid */
.loans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.loan-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.loan-header {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
}

.loan-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#14db95ca, #23a454b2);
    z-index: 1;
}

.loan-header i {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.loan-header h3 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
}

.loan-content {
    padding: 2rem;
}

.loan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.loan-features li {
    padding: 0.75rem 0;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loan-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

.loan-cta {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loan-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* TFS Section */
.tfs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.tfs-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.tfs-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.tfs-benefits li i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.calculator-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.calculator-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
}

.calculator-cta {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculator-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* About Section - Chi Siamo */
.about-section {
    padding: 8rem 2rem;
    background: #ffffff;
}

.about-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-lead {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #14db95;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.about-icon {
    width: 60px;
    height: 60px;
    background: #14db95;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.about-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: #f9fafb;
    padding: 3rem;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #14db95;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-lead {
        font-size: 1.1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 8rem 2rem;
    background: var(--gradient-dark);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.contact-item .text-sm {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

.form-header h3 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--dark-gray);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-form .checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.contact-form .checkbox label {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.contact-form .full-width {
    width: 100%;
    margin-top: 1rem;
}

/* Footer Styles */
footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 6rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-logo h3 {
    font-size: 1.75rem;
    font-weight: 800;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-section ul a::before {
    content: '→';
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul a:hover::before {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Cookie Banner and Overlay - Cookiebot Style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    background: #f5f5f5;
    padding: 2rem 3rem;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
    z-index: 1001;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

/* Banner nascosto di default */
.cookie-banner-hidden {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Banner visibile quando richiesto */
.cookie-banner-visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-overlay {
    display: none !important;
}

/* Cookie Preferences Modal */
.cookie-preferences-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-preferences-overlay.active {
    display: block;
    opacity: 1;
}

.cookie-preferences-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.cookie-preferences-modal.active {
    display: flex;
}

.preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.preferences-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.preferences-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.preferences-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.preferences-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.preferences-intro {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cookie-category-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-preference-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: #ffffff;
}

.preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preference-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preference-title-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.badge-required {
    background: #14db95;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: #14db95;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.toggle-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.toggle-switch.disabled .slider {
    cursor: not-allowed;
}

.preference-description {
    margin-top: 1rem;
}

.preference-description p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.show-cookies-btn {
    background: none;
    border: none;
    color: #0A2540;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.show-cookies-btn:hover {
    color: #14db95;
}

.show-cookies-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.show-cookies-btn.active i {
    transform: rotate(180deg);
}

.cookies-list {
    display: none;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.cookies-list.active {
    display: block;
}

.cookies-list table {
    width: 100%;
    border-collapse: collapse;
}

.cookies-list thead {
    background: #f9fafb;
}

.cookies-list th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.cookies-list td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
}

.cookies-list tbody tr:last-child td {
    border-bottom: none;
}

.cookies-list td.text-center {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

.preferences-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cookie-btn.large {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
}

.cookie-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-logo {
    margin-bottom: 0.5rem;
}

.cookie-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.cookie-details-link {
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cookie-details-link:hover {
    text-decoration: underline;
}

.cookie-details-link i {
    font-size: 0.7rem;
}

.cookie-content i {
    display: none;
}

.cookie-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cookie-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-content .text-sm {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 280px;
}

.cookie-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.cookie-btn.primary {
    background: #0A2540;
    color: #ffffff;
}

.cookie-btn.primary:hover {
    background: #0d3150;
}

.cookie-btn.secondary {
    background: #0A2540;
    color: #ffffff;
}

.cookie-btn.secondary:hover {
    background: #0d3150;
}

.cookie-btn.outlined {
    background: #0A2540;
    color: #ffffff;
}

.cookie-btn.outlined:hover {
    background: #0d3150;
}

.cookie-btn:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .cookie-banner {
        width: 100%;
        padding: 1.5rem;
        max-height: 50vh;
        overflow-y: auto;
        flex-direction: column;
        gap: 1.5rem;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .cookie-left-section {
        width: 100%;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        min-width: auto;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Preferences Modal Mobile */
    .cookie-preferences-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .preferences-header {
        padding: 1rem 1.5rem;
    }
    
    .preferences-header h2 {
        font-size: 1.25rem;
    }
    
    .preferences-content {
        padding: 1.5rem;
    }
    
    .preference-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cookies-list table {
        font-size: 0.8rem;
    }
    
    .cookies-list th,
    .cookies-list td {
        padding: 0.5rem;
    }
    
    .preferences-footer {
        flex-direction: column-reverse;
        padding: 1rem 1.5rem;
    }
    
    .cookie-btn.large {
        width: 100%;
    }
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -6px;
    animation: arrows 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrows {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: 1rem;
    }
    
    .mouse {
        width: 22px;
        height: 36px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.calculator-steps {
    display: none;
}

.calculator-steps.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-step {
    margin-bottom: 2rem;
}

.calculator-step h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.amount-slider {
    width: 100%;
    margin: 1rem 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.amount-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.duration-option {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-option:hover {
    border-color: var(--primary-color);
}

.duration-option.active {
    background: var(--primary-color);
    color: var(--white);
}

.calculator-summary {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.summary-label i {
    color: var(--success-color);
}

.summary-value {
    font-weight: 600;
    color: var(--text-color);
}

.calculator-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button.prev {
    background: var(--light-gray);
    color: var(--text-color);
}

.nav-button.next {
    background: #14db95;
    color: var(--white);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Calculator Step 2 - Remove gray background */
#step-2 {
    background: transparent !important;
}

#step-2 .grid {
    background: transparent !important;
}

/* Desktop Modal Styles */
@media (min-width: 769px) {
    .modal {
        max-width: 900px;
        width: 80%;
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .modal {
        padding: 1.5rem;
        max-width: none;
        width: 95%;
        max-height: 90vh;
    }
    
    .duration-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-\[60vh\] {
    min-height: 60vh;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

/* Grid System */
.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:flex-row {
        flex-direction: row;
    }
}

/* Text Styles */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

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

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

.text-gray-600 {
    color: var(--dark-gray);
}

/* Background Colors */
.bg-white {
    background-color: var(--white);
}

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

.bg-blue-50 {
    background-color: rgba(37, 99, 235, 0.1);
}

/* Component Styles */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.hover\:shadow-lg:hover {
    box-shadow: var(--shadow-lg);
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

/* Icon Styles */
.text-4xl {
    font-size: 2.25rem;
}

.text-green-500 {
    color: #10B981;
}

/* Transition */
.transition-all {
    transition: all 0.3s ease;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Width/Height */
.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

/* Border */
.border-2 {
    border-width: 2px;
}

.border-white {
    border-color: var(--white);
}

/* Background Gradient */
.bg-gradient-to-r {
    background: var(--gradient-primary);
}

.from-primary {
    --tw-gradient-from: var(--primary-color);
}

.to-secondary {
    --tw-gradient-to: var(--secondary-color);
}

/* Hover Effects */
.hover\:bg-gray-100:hover {
    background-color: #F3F4F6;
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Custom Components for Dipendenti Pubblici */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: #10B981;
}

/* Select Styles */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    transition: all 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
}

select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select:hover {
    border-color: #9CA3AF;
}

select option {
    padding: 0.5rem;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

.calculator-form select,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    margin-bottom: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    font-family: 'Inter', sans-serif;
}

#tipoCliente {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    font-family: 'Inter', sans-serif;
}

#tipoCliente:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#tipoCliente:hover {
    border-color: #9CA3AF;
}

#tipoCliente option {
    padding: 0.5rem;
    color: #374151;
}

/* Stile per il body quando il menu mobile è aperto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    body.menu-open {
        overflow: auto;
        position: static;
        width: auto;
        height: auto;
    }
}

/* Stile per il pulsante Calcola preventivo */
.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #14db95;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.cta-button:hover {
    background: #f5f5f5;
    color: #14db95;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-button.primary {
    background: #14db95;
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.cta-button.secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.cta-button.mx-auto {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.cta-button.full-width {
    width: 100%;
}

/* Stile specifico per il pulsante calculator-trigger */
.calculator-trigger {
    background: #14db95;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calculator-trigger:hover {
    background: #23a455;
}

/* Miglioramenti per le immagini su dispositivi mobili */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .blog-image img {
        height: 200px;
        object-fit: cover;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

/* Add mobile responsiveness improvements */
/* Mobile Navigation - Slide In from Right */
.mobile-nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out, visibility 0s linear 0.3s;
    z-index: 9999; /* Increase z-index to ensure it's above everything */
    overflow-y: auto;
}

.mobile-nav-links.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out, visibility 0s;
    display: flex !important;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu-content a {
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid #f1f1f1;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    position: relative;
    width: 100%;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.mobile-dropdown-content.active {
    display: block;
    max-height: 500px;
}

.mobile-dropdown-item {
    padding: 0.75rem 0 !important;
    font-size: 0.95rem !important;
    color: #6b7280 !important;
}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-menu-content a:last-child {
    border-bottom: none;
}

.mobile-contact-btn {
    margin-top: 1rem;
    padding: 1rem !important;
    background: #14db95;
    color: white !important;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    outline: none; /* Remove focus outline */
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    /* frontend-exception: white hamburger lines for visibility on teal navbar */
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-bottom: 5px;
    border-radius: 1px; /* Rounded edges */
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
}

/* Mobile navigation overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
    transition: opacity 0.3s ease;
    opacity: 0;
    touch-action: none; /* Prevent scrolling when overlay is active */
}

body.menu-open .nav-overlay {
    display: block;
    opacity: 1;
}

/* Better animation for mobile menu slide-in */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-nav-links.active {
    animation: slideInRight 0.3s forwards;
}

/* Style for body when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    body.menu-open {
        overflow: auto;
        position: static;
        width: auto;
        height: auto;
    }
}

/* Admin link in mobile menu */
.admin-link {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    color: #4b5563;
    font-weight: 500;
    border-top: 1px solid #f1f1f1;
    margin-top: 0.5rem;
    width: 100%;
}

.admin-link i {
    color: #14db95;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Logo placement */
    .logo {
        margin-left: 0;
    }
    
    /* Improved container padding */
    .container, .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Better spacing for sections */
    .hero, 
    .service-section, 
    .advantages-section, 
    .contact-section, 
    .testimonials-section, 
    .py-16 {
        padding: 4rem 1rem !important;
    }
    
    /* Hero section mobile improvements */
    .hero {
        min-height: 80vh !important;
        padding-top: 6rem !important; /* Account for fixed header */
    }
    
    /* Better content grid appearance */
    .advantages-grid, 
    .target-clients, 
    .loans-grid, 
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Testimonials remain horizontal scroll on mobile */
    .testimonials-slider {
        padding: 1rem !important;
    }
    
    /* Card style improvements */
    .advantage-card, 
    .client-card, 
    .loan-card, 
    .feature-card, 
    .testimonial-card {
        padding: 1.5rem !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Content spacing improvements */
    .hero-content, 
    .section-header, 
    .contact-content, 
    .form-header {
        margin-bottom: 2rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Button improvements */
    .cta-button, 
    .calculator-cta, 
    .nav-button, 
    .contact-form .full-width, 
    .contact-form button, 
    .calculator-trigger {
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 0.75rem !important;
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Form element improvements */
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 0.875rem !important;
    }
    
    /* Image sizing fixes */
    img, 
    .hero-slider .slide, 
    .blog-image img, 
    .testimonial-author img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Dropdown content mobile improvements */
    .dropdown-content {
        left: 0 !important;
        width: 100% !important;
        padding: 0.5rem 1rem !important;
        box-shadow: none !important;
    }
    
    /* Text size adjustments */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-subtitle, 
    .hero-subtitle-home {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .section-header h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-header p {
        font-size: 1rem !important;
    }
    
    /* Mobile menu admin link style */
    .admin-link {
        display: flex;
        align-items: center;
        padding: 1.25rem 0;
        color: #4b5563;
        font-weight: 500;
        border-top: 1px solid #f1f1f1;
        margin-top: 0.5rem;
    }
    
    .admin-link i {
        color: #14db95;
    }
    
    /* Screen reader only class */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
    
    /* Scroll padding adjustment for fixed header */
    html {
        scroll-padding-top: 70px !important;
    }
    
    /* Mobile-specific modal adjustments */
    .modal {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 90vh !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    /* Improve spacing between form groups */
    .form-group + .form-group {
        margin-top: 1rem !important;
    }
    
    /* Align calculator items */
    .calculator-step {
        padding: 1rem !important;
    }
    
    /* Footer mobile improvements */
    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .footer-section {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Cookie banner mobile improvements */
    .cookie-banner {
        flex-direction: column !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
    }
    
    .cookie-content {
        flex-direction: column !important;
    }
    
    .cookie-buttons {
        margin-top: 1rem !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .cookie-btn {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle, 
    .hero-subtitle-home {
        font-size: 1.25rem !important;
    }
    
    .section-header h2 {
        font-size: 1.75rem !important;
    }
    
    .cta-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    .modal {
        padding: 0.75rem !important;
    }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        max-height: 80vh !important;
        padding: 0.5rem 2rem !important;
    }
    
    .nav-links a {
        padding: 0.75rem 0 !important;
    }
    
    .hero {
        min-height: 500px !important;
    }
    
    .hero-content {
        padding-top: 4rem !important;
    }
    
    .modal {
        max-height: 80vh !important;
    }
    
    .modal-header {
        padding: 0.75rem 1rem !important;
    }
    
    .calculator-steps {
        max-height: 65vh !important;
        overflow-y: auto !important;
    }
}

/* Hide elements with JavaScript disabled */
.no-js .hamburger,
.no-js .calculator-trigger,
.no-js .dropdown-trigger .dropdown-arrow {
    display: none !important;
}

.no-js .nav-links {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.menu-open #prodotti-dropdown {
    display: none !important;
    visibility: hidden !important;
}

/* Migliora il margin del bottone hamburger su mobile */
@media (max-width: 767px) {
    .hamburger {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .tfs-content,
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* --- Mobile Menu Overlay --- */
#mobile-menu {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  transform: translateX(100%);
  opacity: 0;
  z-index: 9999;
}
#mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
#mobile-menu .cta-button {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  font-size: 1.2rem;
}
#mobile-menu nav a {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
#mobile-menu nav a:hover {
  background: #f1f5f9;
  color: #14db95;
}
#mobile-menu .relative button {
  width: 100%;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  background: none;
  border: none;
  outline: none;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
#mobile-menu .relative button:hover {
  background: #f1f5f9;
  color: #14db95;
}
#mobile-menu .relative svg {
  transition: transform 0.2s;
}
#mobile-menu .relative .hidden {
  display: none !important;
}
#mobile-menu .relative .flex-col {
  display: flex;
}
#mobile-menu #mobile-prodotti-dropdown {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(30,41,59,0.07);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}
#mobile-menu #close-mobile-menu {
  font-size: 2.5rem;
  color: #334155;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
#mobile-menu #close-mobile-menu:hover {
  color: #14db95;
}

/* Hamburger active state (optional, for animation) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}

/* --- Mobile Menu Overlay & Panel --- */
#mobile-menu-overlay {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1040;
  position: fixed;
  inset: 0;
}
#mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}
#mobile-menu.panel {
  right: 0;
  top: 0;
  height: 100vh;
  width: 85vw;
  max-width: 320px;
  background: #fff;
  box-shadow: -10px 0 40px 0 rgba(17,24,39,0.16);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transform: translateX(100%);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1060;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
}
#mobile-menu.panel.active {
  transform: translateX(0);
}
#mobile-menu .border-b {
  width: 100%;
  border-color: rgba(229, 231, 235, 0.8);
}
#mobile-menu .text-xl {
  color: #1e3a8a;
  letter-spacing: -0.01em;
}
#mobile-menu .cta-button {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(37,99,235,0.08);
  padding: 0.8rem 1.5rem;
  background: #14db95;
  transition: background-color 0.2s, transform 0.2s;
}
#mobile-menu .cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
#mobile-menu nav a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 12px;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  display: block;
  text-decoration: none;
}
#mobile-menu nav a:hover {
  background: #f1f5f9;
  color: #14db95;
  padding-left: 0.75rem;
}
#mobile-menu .relative button {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
#mobile-menu .relative button:hover {
  background: #f1f5f9;
  color: #14db95;
  padding-left: 0.75rem;
}
#mobile-menu .relative svg {
  transition: transform 0.3s;
}
#mobile-menu .relative button:hover svg {
  transform: translateX(-2px);
}
#mobile-menu #mobile-prodotti-dropdown {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(30,41,59,0.06);
  border-radius: 12px;
  margin-top: 0.5rem;
  padding: 0.25rem;
}
#mobile-menu #mobile-prodotti-dropdown a {
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.1rem;
  display: block;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
}
#mobile-menu #mobile-prodotti-dropdown a:hover {
  background: #ffffff;
  color: #14db95;
  padding-left: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#mobile-menu #close-mobile-menu {
  font-size: 1.5rem;
  color: #64748b;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  line-height: 1;
}
#mobile-menu #close-mobile-menu:hover {
  background: #e2e8f0;
  color: #0f172a;
}

@media (min-width: 768px) {
  #mobile-menu, #mobile-menu-overlay {
    display: none !important;
  }
}

body.menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
}
