:root {
    /* Color Palette - Blue Tech Theme */
    --primary-blue: #58a7e7;
    --secondary-blue: #00d4ff;
    --dark-blue: #001a4d;
    --darker-blue: #000d26;
    --light-blue: #a5e9f7;
    --accent-cyan: #00ffff;

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #043a5e 0%, #009fbb 100%);
    --gradient-dark: linear-gradient(135deg, #011929 0%, #027d92 100%);
    --gradient-light: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;
    --font-title: 'bebas Neue', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--light-gray);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    font-family: var(--font-title);
    font-weight: 300;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: var(--light-gray);
    transition: var(--transition-fast);
}

.neon {
    color: #fff;
    text-shadow: 
    0 0 5px #bdfbff, 
    0 0 15px #bdfbff, 
    0 0 20px #bdfbff, 
    0 0 40px #bdfbff, 
    0 0 60px #004492, 
    0 0 10px #bdfbff, 
    0 0 98px #004492;
}

/* Navigation */
.navbar {
    position: fixed;
    margin: var(--spacing-md) auto 0;
    width: 95%;
	max-width: 2000px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 1);
    
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
}

.logo-text {
    color: var(--dark-blue);
}

.logo-accent {
    color: var(--primary-blue);
}

.logo-image {
    height: 50px;
    display: flex;
    width: auto;
    margin-right: 20px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    z-index: 1000;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    background: var(--gradient-light);
}

.cta-link {
    background: var(--gradient-dark);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease-in-out;

    
}

.cta-link:hover,
.cta-link.active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-dark);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 0px;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: -1;
}

#myVideo {
  position: fixed;
  z-index: -1;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  top: 0;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-blue);
    top: -250px;
    right: -250px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-blue);
    bottom: -200px;
    left: -200px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.hero-title {
    font-size: 5.5rem;
    margin: var(--spacing-md) 0;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    display: inline-block;
}

.btn-primary, .btn-footer {
    background: var(--gradient-dark);
    color: var(--white);

}

.btn-primary:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-hero{
    background: rgba(61, 177, 223, 0.486);
    box-shadow: 0 4px 30px rgb(66, 166, 224) !important;
    backdrop-filter: blur(11.2px);
    -webkit-backdrop-filter: blur(11.2px);
}

.btn-hero-secondary{
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 1);
    backdrop-filter: blur(11.2px);
    -webkit-backdrop-filter: blur(11.2px);
    color: var(--dark-blue);
}

.btn-footer:hover, .btn-hero:hover, .btn-hero-secondary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-blue);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    max-width: 500px;
    margin: 0 auto;
}

.content-section{
    background: rgba(255, 255, 255, 0.0);
    width: 95%;
	max-width: 2000px;
    margin: var(--spacing-lg) auto;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    padding: var(--spacing-xl) 0;
}

/* Services Section */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl) 0 0 ;
}

.splide{
    height: 580px;
    width: 60%;
    max-width: 1200px;
}

.splide__slide .item {
    height: 100%;
    border-radius: var(--radius-md);
    background-color: #e5f5ff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 30px;
    background: var(--gradient-primary);
    border-radius: 20px;
}


.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--light-blue);
}

.service-title {
    color: var(--light-blue);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--light-gray);
    line-height: 1.6;
}

/* About Section */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-description {
    margin-bottom: var(--spacing-sm);
    color: var(--light-gray);
    line-height: 1.8;
}

.about-features {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--light-blue);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-text p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

.about-image .not-found-image{
    position: relative;
}

.image-placeholder {
    display: flex;
    justify-content: end;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
}

.chi-siamo-image {
    height: 450px;
}


/* Contact Section */

.contact .container {
    display: flex;
}

.contact-item-left {
    display: flex;
    flex-direction: column;
}


.contact-item-left .section-subtitle {
    margin: 0;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
}

.orario {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: 40px;
}

.orario-item h5 {
    margin: 0;
}

.contact-item-right {
    flex: 1;
    padding: 0 0 0 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-normal);
    border-radius: var(--radius-lg);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-blue);
}

.contact-card h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.contact-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--primary-blue);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Forms */
.contact-form-container, .appointment-form-container {
    display: flex;
    flex-direction: column;
    background: var(--gradient-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    min-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.3);

}

.appointment-form {
    display: flex;
    flex-direction: column;

}

.contact-form h3,
.appointment-form h3 {
    color: var(--light-blue);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

#appointmentTimeRange,
#appointmentType {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
}

select:invalid {
    color: #666;
}

.form-group {
    margin-bottom: var(--spacing-sm);
    font-size: 8px;
    color: #888;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: small;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
    resize: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-buttons, .antivirus-buttons{
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    --size: 1rem;
    --background: #fff;
    font-size: var(--size);
    margin-bottom: 20px;
    margin-left: var(--spacing-sm);
}

.form-check *, .form-check *::after, .form-check *::before {
    box-sizing: border-box;
}

.form-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.form-check .checkbox {
    position: relative;
    display: flex;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);   
}

.form-check a{
    color: var(--light-blue);
}

.form-check a:hover{
    color: var(--primary-blue);
}

.checkbox:hover .check {
stroke-dashoffset: 0;
}

.checkbox {
position: relative;
display: inline-block;
width: 25px;
height: 25px;
}

.checkbox .background {
fill: #ccc;
transition: ease all 0.6s;
-webkit-transition: ease all 0.6s;
}

.checkbox .stroke {
fill: none;
stroke: #fff;
stroke-miterlimit: 10;
stroke-width: 2px;
stroke-dashoffset: 100;
stroke-dasharray: 100;
transition: ease all 0.6s;
-webkit-transition: ease all 0.6s;
}

.checkbox .check {
fill: none;
stroke: #fff;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2px;
stroke-dashoffset: 22;
stroke-dasharray: 22;
transition: ease all 0.6s;
-webkit-transition: ease all 0.6s;
}

.checkbox input[type=checkbox] {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
margin: 0;
opacity: 0;
-appearance: none;
-webkit-appearance: none;
}

.checkbox input[type=checkbox]:hover {
cursor: pointer;
}

.checkbox input[type=checkbox]:checked + svg .background {
fill: #6cbe45;
}

.checkbox input[type=checkbox]:checked + svg .stroke {
stroke-dashoffset: 0;
}

.checkbox input[type=checkbox]:checked + svg .check {
stroke-dashoffset: 0;
}

.antivirus-buttons button{
    padding: var(--spacing-md);
    background: transparent;
    border: none !important;
}

.form-buttons button, .antivirus-buttons button {
    flex: 1;
}

.radio-group {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    margin-left: 1.5rem;
    justify-content: space-between;
}

.radio-label {
    display: flex;
    background: var(--white);
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.radio-label:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-light);
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.radio-label input[type="radio"]:checked+span {
    color: var(--primary-blue);
    font-weight: 600;
}

.radio-label span {
    font-size: 0.9rem;
}

.form-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin: var(--spacing-sm) 0;
}

/* Assistance Section */

.assistance-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.assistance-info h3 {
    color: var(--light-blue);
    margin-bottom: var(--spacing-md);
}

.step-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-text h4 {
    color: var(--light-blue);
    margin-bottom: 0.25rem;
}

.step-text p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

.assistance-types,
.remote-assistance {
    background: var(--gradient-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.assistance-types h4,
.remote-assistance h4 {
    color: var(--light-blue);
    margin-bottom: var(--spacing-sm);
}

.assistance-types ul {
    list-style: none;
}

.assistance-types li {
    padding: 0.5rem 0;
    color: var(--light-gray);
}

.assistance-types strong{
    color: var(--primary-blue);
}

.remote-assistance button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.remote-assistance p {
    font-size: medium;
}

.download-buttons{
    display: flex;
    gap: var(--spacing-sm);
    padding: 0;
    margin-top: var(--spacing-sm);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}


.footer-content {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-backToTop{
    padding: var(--spacing-sm);
}

.footer-right {
    display: flex;
    gap: var(--spacing-md);
}

.footer-section {
    min-width: 150px;
    max-width: 350px;
    overflow: hidden;
}

.footer-section h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-blue);
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
    margin-top: var(--spacing-sm);
}

.footer-socials {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-socials a:hover {
    color: var(--secondary-blue);
    transition: var(--transition-fast);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.footer-links a,
.footer-contact a {
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Responsive Design */

/* Prevent horizontal scrolling */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 1920px) {
  .services {
    background-size: 100% auto; /* stretch orizzontale mantenendo proporzioni verticali */
  }

}

@media (max-width: 1115px) {

    .footer-right {
        flex-wrap: wrap;
    }
}


/* Large Tablets and Small Desktops */
@media (max-width: 968px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content,
    .assistance-content {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        justify-content: center;
    }

    .chi-siamo-image {
        height: 350px;
    }

    /* Carousel adjustments */
    .prova {
        height: 550px;
        grid-template-rows: 450px 100px;
    }

    main#carousel {
        height: 450px;
    }

    div.item {
        width: 280px;
        height: 380px;
    }

    /* Footer adjustments */
    .footer-right {
        flex-wrap: wrap;
    }

    .footer-section iframe {
        width: 100% !important;
        max-width: 400px;
    }
}

/* Tablets and Mobile Landscape */
@media (max-width: 875px) {
    .navbar {
        width: auto;
        margin: var(--spacing-md);
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        right: 0;
        margin: var(--spacing-md);
        width: fit-content;
        height: fit-content;
        flex-direction: column;
        padding: var(--spacing-md);

        background: rgba(255, 255, 255, 0.8);
        border-radius: var(--radius-lg);

        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 30px rgba(20, 29, 68, 0.8);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar.scrolled{
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 30px rgba(20, 29, 68, 0.8);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-cta {
        align-items: center;
        margin: 0 var(--spacing-xl) var(--spacing-md);
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-cta .btn{
        padding: 0.5rem 1rem;
    }

    .splide{
        width: 70%;
    }

    /* Carousel for tablets */
    .prova {
        height: 500px;
        grid-template-rows: 400px 100px;
        grid-template-columns: 1fr 25px 25px 25px 25px 25px 25px 25px 25px 25px 1fr;
    }

    main#carousel {
        height: 400px;
    }

    div.item {
        width: 260px;
        height: 350px;
        padding: var(--spacing-sm);
    }

    /* Contact section */
    .contact .container {
        flex-direction: column;
    }

    .contact-details{
        flex-direction: row;
    }

    .contact-item-left h2, .contact-item-left p{
        text-align: center;
        max-width: 700px;
    }



    .contact-item-left,
    .contact-item-right {
        margin: 0 50px 50px 50px;
        padding: 0;
    }

    .orario {
        gap: var(--spacing-md);
        margin-top: 0;
        margin-left: var(--spacing-sm);
        align-items: center;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
    }

    .logo{
        justify-content: center;
    }

    .footer-description{
        text-align: center;
    }

    .footer-left{
        align-items: center;
    }

    .footer-right {
        justify-content: center;
    }

    .footer-section {
        max-width: 100%;
    }

    .footer-section iframe {
        width: 100% !important;
        height: 250px !important;
    }

    /* Forms */
    .contact-form-container,
    .appointment-form-container {
        min-width: auto;

    }   

    .radio-group {
        margin-left: 0;
        margin-top: var(--spacing-xs);
        justify-content: space-evenly;
    }

    .radio-label {
        min-width: 100px;
    }

    .not-found-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
}

/* Mobile Devices */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-container{
        padding: var(--spacing-sm) var(--spacing-md);
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Carousel for mobile */
    .prova {
        height: 550px;
        grid-template-rows: 450px 100px;
        grid-template-columns: 1fr 20px 20px 20px 20px 20px 20px 20px 20px 20px 1fr;
    }

    main#carousel {
        height: 450px;
        perspective: 500px;
    }

    div.item {
        width: 240px;
        height: 380px;
        padding: var(--spacing-sm);
        transform: rotateY(calc(-8deg * var(--r))) translateX(calc(-250px * var(--r)));
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    /* About section */
    .chi-siamo-image {
        height: 300px;
    }

    .about-features {
        gap: var(--spacing-xs);
    }

    /* Contact */
    .contact-item-left,
    .contact-item-right {
        margin: 0 var(--spacing-sm) var(--spacing-md) var(--spacing-sm);
    }

    .contacts{
        margin-bottom: var(--spacing-md);
    }

    .contact-details {
        margin-top: var(--spacing-md);
        flex-direction: column;
        align-items: center;
    }

    .orario{
        margin: 10px;
    }

    /* Forms */
    .form-buttons {
        flex-direction: column;
        padding: 0;
        align-items: center;
    }

    .form-buttons button {
        width: 100%;
    }

    .radio-group {
        gap: var(--spacing-xs);
    }

    /* Assistance section */
    .step-item {
        gap: var(--spacing-xs);
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .assistance-types,
    .remote-assistance {
        padding: var(--spacing-sm);
    }

    /* Footer */
    .footer-socials {
        justify-content: center;
    }

    .footer-backToTop {
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        max-width: 300px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-cta{
        margin: 0 var(--spacing-md) var(--spacing-sm);
    }
    
    .hero-cta .btn {
        font-size: 0.7rem;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    /* Carousel for small mobile */
    .prova {
        height: 500px;
        grid-template-rows: 400px 100px;
        grid-template-columns: 1fr 15px 15px 15px 15px 15px 15px 15px 15px 15px 1fr;
    }

    main#carousel {
        height: 400px;
        perspective: 400px;
    }

    .prova div.item {
        width: 220px;
        height: 290px;
        padding: 1rem;
        transform: rotateY(calc(-6deg * var(--r))) translateX(calc(-220px * var(--r)));
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 25px;
        height: 25px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-description {
        font-size: 0.85rem;
    }

    /* Navigation */
    .logo-image {
        height: 40px;
        margin-right: 10px;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* About */
    .chi-siamo-image {
        height: 250px;
    }

    .image-placeholder {
        height: 300px;
    }

    /* Contact */
    .contact-item-left .section-title,
    .section-header .section-title {
        font-size: 1.75rem;
    }

    .contact-item-left .section-subtitle,
    .section-header .section-subtitle {
        font-size: 1rem;
    }

    .remote-assistance button{
        justify-content: center;
    }

    /* Forms */

    .form-group{
        flex-direction: column;
    }   
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .contact-form-container,
    .appointment-form-container {
        padding: var(--spacing-sm);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .prova {
        height: 450px;
        grid-template-rows: 350px 100px;
    }

    main#carousel {
        height: 350px;
    }

    div.item {
        width: 180px;
        height: 280px;
        padding: 0.75rem;
    }

    .hero-stats {
        gap: var(--spacing-sm);
    }

    .contact-item-left,
    .contact-item-right {
        margin: 0 0 var(--spacing-md) 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.contact-card,
.feature-item {
    animation: fadeInUp 0.6s ease-out;
}
/* Privacy Policy and cookie policy Section */
.privacy-policy, .cookie-policy, .not-found{
    max-width: 1200px;
    margin-top: 10rem;
    padding: var(--spacing-md) 0;
}

.policy-footer{
    max-width: fit-content;
}

.privacy-content, .cookie-policy-content {
    max-width: 1100px;
    margin: 0 auto;
}

.privacy-text, .cookie-policy-text {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.privacy-text h2, .cookie-policy-text h2 {
    margin-bottom: var(--spacing-md);
}

.privacy-text h3, .cookie-policy-text h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.privacy-description, .cookie-policy-description {
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.privacy-text ul, .cookie-policy-text ul {
    margin-left: 2rem;
    margin-bottom: var(--spacing-sm);
    list-style-type: disc;
}

.privacy-text ul ul, .cookie-policy-text ul ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
    list-style-type: circle;
}

.privacy-text li, .cookie-policy-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-table-wrapper, .cookie-policy-table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.privacy-text table, .cookie-policy-text table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.privacy-text table thead, .cookie-policy-text table thead {
    background: var(--gradient-dark);
    color: var(--white);
}

.privacy-text table th, .cookie-policy-text table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue);
}

.privacy-text table td, .cookie-policy-text table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    color: var(--dark-gray);
}

.privacy-text table tbody tr:hover, .cookie-policy-text table tbody tr:hover {
    background: var(--gradient-light);
}

.privacy-text table tbody tr:last-child td, .cookie-policy-text table tbody tr:last-child td {
    border-bottom: none;
}

.privacy-text a, .cookie-policy-text a, .checkbox a{
    color: var(--light-blue);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.privacy-text a:hover, .cookie-policy-text a:hover, .checkbox a:hover{
    color: var(--secondary-blue);
}

/* Privacy Consent Checkbox */
.privacy-consent {
    margin-bottom: var(--spacing-md);
}

.privacy-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.privacy-consent input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-consent span {
    color: var(--dark-gray);
}

.privacy-consent a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.privacy-consent a:hover {
    color: var(--secondary-blue);
}

.not-found-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.not-found-container .container-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-md);
}

.not-found-image{
    padding: var(--spacing-md);
}