/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: hsl(338, 60%, 20%);        /* base bordeaux scuro (#641e36) */
    --navy-light: hsl(338, 60%, 30%);  /* più chiaro per hover/gradienti */
    --navy-dark: hsl(338, 60%, 15%);   /* più scuro per contrasto o testi */
    
    --cyan: hsl(330, 63%, 26%);        /* colore di accento caldo, rosa/rosso chiaro */
    --cyan-light: hsl(342, 51%, 32%);  /* versione più chiara per hover o glow */
    
    --white: hsl(0, 0%, 100%);         /* bianco rimane invariato */
    
    --gray-dark: hsl(338, 15%, 25%);   /* testi principali scuri */
    --gray-medium: hsl(338, 10%, 50%); /* testi secondari / descrizioni */
    --gray-light: hsl(338, 15%, 90%);  /* sfondi chiari */
    
    --border: hsl(338, 15%, 80%);  
    
    /* Effects */
    --shadow-elegant: 0 10px 40px -10px rgba(15, 30, 61, 0.2);
    --glow-cyan: 0 8px 32px rgba(0, 184, 212, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.header.scrolled .nav-link{
    color: black;
    font-size: 1.2;

}

.nav-link:hover {
    color: var(--cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(204, 19, 74, 0.219);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--cyan);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--cyan-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    transition: transform 0.3s;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-icon-left {
    margin-right: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

.header.scrolled  .mobile-menu-btn{
    color: #6b103a ;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.mobile-nav-link {
    background: none;
    border: none;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: var(--cyan);
}

.btn-mobile {
    width: 100%;
}

.hidden {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
  to right,
  rgba(0, 0, 0, 0.55),
  rgba(0, 0, 0, 0.35),
  rgba(0, 0, 0, 0.20)
);

}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 64rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-top: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
}

.scroll-icon::before {
    content: '';
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* Sections */
.section-company,
.section-solutions,
.section-services,
.section-quote,
.section-career {
    padding: 6rem 0;
}

.section-company {
    background: var(--white);
}

.section-solutions {
    background: var(--gray-light);
}

.section-services {
    background: var(--white);
}

.section-quote {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.section-career {
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    max-width: 42rem;
    margin: 0 auto;
}

.text-white {
    color: var(--white);
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

/* Company Section */
.company-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-medium);
    max-width: 48rem;
    margin: 0 auto;
}

.company-text p {
    margin-bottom: 1.5rem;
}

.company-text strong {
    color: var(--gray-dark);
    font-weight: 600;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.highlight-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: var(--transition-smooth);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.highlight-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 0, 71, 0.2), rgba(205, 0, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    color: var(--cyan);
}

.highlight-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.highlight-desc {
    font-size: 0.875rem;
    color: var(--gray-medium);
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
}

.gradient-blue {
    background: linear-gradient(135deg, rgba(202, 59, 246, 0.2), rgba(212, 0, 117, 0.1));
}

.gradient-cyan {
    background: linear-gradient(135deg, rgba(212, 0, 141, 0.2), rgba(184, 20, 102, 0.1));
}

.gradient-teal {
    background: linear-gradient(135deg, rgba(77, 20, 184, 0.2), rgba(185, 16, 58, 0.1));
}

.gradient-emerald {
    background: linear-gradient(135deg, rgba(185, 16, 120, 0.2), rgba(34, 197, 94, 0.1));
}

.solution-icon svg {
    color: var(--cyan);
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.75rem;
}

.solution-desc {
    font-size: 1rem;
    color: var(--gray-medium);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: var(--transition-smooth);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elegant);
}

.service-icon-wrapper {
    flex-shrink: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(185, 16, 120, 0.2), rgba(197, 34, 170, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    color: var(--cyan);
}

.service-content {
    flex: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--gray-medium);
}

/* Forms */
.quote-wrapper,
.career-wrapper {
    max-width: 48rem;
    margin: 0 auto;
}

.quote-form,
.career-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-elegant);
}

.quote-form {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.1);
}

.form-input-white {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.form-input-white::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input-white:focus {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea {
    resize: none;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--gray-medium);
}

.file-label:hover {
    border-color: var(--cyan);
    background: var(--gray-light);
}

.file-icon {
    color: var(--gray-medium);
}

.form-footer {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column {
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-vat {
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--cyan);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.footer-nav-link {
    background: none;
    border: none;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}

.footer-nav-link:hover {
    color: var(--cyan);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--cyan);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    z-index: 100;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
    }
    to {
        transform: translateX(0);
    }
}

.toast-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast-icon.success {
    background: #10b981;
}

.toast-icon.error {
    background: #ef4444;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
}

.toast-desc {
    font-size: 0.875rem;
    color: var(--gray-medium);
}

.logo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;   /* rende l’immagine circolare */
    object-fit: cover;    /* evita deformazioni */
}

.logo-circle1 {
    margin-top: 50px;
    margin-bottom: 33px;
    width: 200px;
    height: 96px;
    border-radius: 10%;   /* rende l’immagine circolare */
    object-fit: cover;    /* evita deformazioni */
}

.logo-circle2 {
    margin-top: 0px;
    margin-bottom: 33px;
    width: 140px;
    height: 140px;
    border-radius: 50%;   /* rende l’immagine circolare */
    object-fit: cover;    /* evita deformazioni */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.carousel {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
    padding: 40px 0;
}

.carousel-card {
    position: relative;
    flex: 0 0 260px;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay sfumato in basso */
.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0)
    );
    color: white;
}

.card-overlay h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.card-overlay p {
    margin: 5px 0 0;
    font-size: 14px;
}

/* Card centrale più grande */
.carousel-card.active {
    transform: scale(1.25);
    opacity: 1;
    z-index: 10;
}

.carousel-card:not(.active) {
    transform: scale(0.85);
    opacity: 0.6;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #11111142;
    color: #fff;
    border: none;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: 0.2s;
}

.carousel-btn:hover {
    opacity: 1;
}

.carousel-btn.prev {
    left: -12px;
}

.carousel-btn.next {
    right: -12px;
}
