/* ===================================
   RESET & BASE STYLES
   =================================== */

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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #c9a961;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --bg-dark: #2a2a2a;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

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

/* Prevent automatic scroll on page load */
html:target {
    scroll-behavior: auto;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    font-family: 'Lora', serif;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-nav {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 5px;
}

.btn-nav:hover {
    background: var(--accent-color);
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    padding-left: 0;
    padding-right: 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-left: 0;
    margin-left: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 1 !important;
    transition: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:not(.btn-nav):hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(42, 42, 42, 0.5)), 
                url('../images/hero/hero-bg.png') center/cover no-repeat;
    color: var(--white);
    margin-top: 80px;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
    margin-left: 10%;
    padding-right: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.feature .icon {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===================================
   SERVIZI SECTION
   =================================== */
/* 
   ORDINE SFONDI ALTERNATI:
   1. Hero - Sfondo immagine
   2. Servizi - BIANCO
   3. Prodotti - GRIGIO CHIARO
   4. Vantaggi - BIANCO
   5. Chi Siamo - GRIGIO CHIARO
   6. Contatti - BIANCO
*/

/* Servizi Section */

.servizi {
    padding: 80px 20px;
    background: var(--white);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.servizio-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.servizio-card:hover,
.servizio-card.fade-in-up:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg);
}

.servizio-icon, .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.servizio-icon i, .service-icon i {
    display: block;
}

.servizio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Lora', serif;
}

.servizio-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.servizio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    transition: all 0.3s ease;
}

.servizio-link:hover {
    color: var(--accent-color);
    gap: 12px;
}

.servizio-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.servizio-link:hover i {
    transform: translateX(4px);
}

.servizi-incluso {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
}

.servizi-incluso h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.servizi-incluso ul {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.servizi-incluso li {
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
    line-height: 1.7;
}

.servizi-incluso li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===================================
   CHI SIAMO SECTION
   =================================== */

/* Prodotti Utilizzati Section */
.prodotti-utilizzati {
    padding: 80px 20px;
    background: var(--bg-light);
}

.prodotti-utilizzati .timeline-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.prodotti-utilizzati .timeline-item {
    text-align: center;
    position: relative;
}

.prodotti-utilizzati .timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prodotti-utilizzati .timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.prodotti-utilizzati .timeline-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Lora', serif;
}

.prodotti-utilizzati .timeline-item p {
    color: var(--text-color);
    line-height: 1.7;
}

.prodotti-utilizzati .product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.prodotti-utilizzati .product-showcase-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #e8e8e8;
    position: relative;
    min-height: 350px;
}

.prodotti-utilizzati .product-showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.prodotti-utilizzati .product-showcase-item img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 450px;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.prodotti-utilizzati .prodotti-description {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.prodotti-utilizzati .prodotti-description.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.prodotti-utilizzati .prodotti-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Vantaggi Tecniche Section */
.vantaggi-tecniche {
    padding: 80px 20px;
    background: white;
}

.vantaggi-tecniche .split-comparison {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.vantaggi-tecniche .benefit-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.vantaggi-tecniche .benefit-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(10px);
    border-left: 4px solid var(--secondary-color);
}

.vantaggi-tecniche .benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.vantaggi-tecniche .benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

.vantaggi-tecniche .benefit-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: 'Lora', serif;
}

.vantaggi-tecniche .benefit-text p {
    color: var(--text-color);
    line-height: 1.7;
}

.vantaggi-tecniche .visual-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.vantaggi-tecniche .visual-card.highlight {
    background: #ffffff !important;
    color: #1a1a2e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #d4af37;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.vantaggi-tecniche .visual-card.highlight:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.vantaggi-tecniche .visual-card.highlight::before {
    content: none;
}

.vantaggi-tecniche .visual-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    color: #1a1a2e;
    opacity: 1 !important;
    visibility: visible !important;
}

.vantaggi-tecniche .visual-card.highlight .visual-header {
    border-bottom-color: rgba(212, 175, 55, 0.3) !important;
    color: #1a1a2e !important;
    background: transparent;
    opacity: 1 !important;
    visibility: visible !important;
}

.vantaggi-tecniche .comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vantaggi-tecniche .comparison-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.vantaggi-tecniche .comparison-list.negative li {
    color: #333333;
}

.vantaggi-tecniche .comparison-list.negative i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.vantaggi-tecniche .comparison-list.positive li {
    color: #2c3e50 !important;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.vantaggi-tecniche .visual-card.highlight:hover .comparison-list.positive li,
.vantaggi-tecniche .visual-card.highlight.animate-items .comparison-list.positive li {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0);
}

/* Staggered animation for list items */
.vantaggi-tecniche .comparison-list.positive li:nth-child(1) {
    transition-delay: 0.1s;
}
.vantaggi-tecniche .comparison-list.positive li:nth-child(2) {
    transition-delay: 0.2s;
}
.vantaggi-tecniche .comparison-list.positive li:nth-child(3) {
    transition-delay: 0.3s;
}
.vantaggi-tecniche .comparison-list.positive li:nth-child(4) {
    transition-delay: 0.4s;
}
.vantaggi-tecniche .comparison-list.positive li:nth-child(5) {
    transition-delay: 0.5s;
}

.vantaggi-tecniche .comparison-list.positive i {
    color: #ffffff !important;
    font-size: 0.85rem;
    background: #d4af37;
    padding: 0.35rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===================================
   CHI SIAMO SECTION
   =================================== */

.chi-siamo {
    padding: 80px 20px;
    background: var(--bg-light);
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chi-siamo-text {
    opacity: 0;
    transform: translateX(-50px);
}

.chi-siamo-text.slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

.chi-siamo-text .story p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateX(-30px);
}

.chi-siamo-text.slide-in-left .story p {
    animation: slideInLeft 0.6s ease-out forwards;
}

/* Staggered animation for paragraphs */
.chi-siamo-text .story p:nth-child(1) { animation-delay: 0.1s; }
.chi-siamo-text .story p:nth-child(2) { animation-delay: 0.2s; }
.chi-siamo-text .story p:nth-child(3) { animation-delay: 0.3s; }
.chi-siamo-text .story p:nth-child(4) { animation-delay: 0.4s; }
.chi-siamo-text .story p:nth-child(5) { animation-delay: 0.5s; }
.chi-siamo-text .story p:nth-child(6) { animation-delay: 0.6s; }
.chi-siamo-text .story p:nth-child(7) { animation-delay: 0.7s; }
.chi-siamo-text .story p:nth-child(8) { animation-delay: 0.8s; }
.chi-siamo-text .story p:nth-child(9) { animation-delay: 0.9s; }

.chi-siamo-text .story .highlight {
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0;
}

.chi-siamo-text .story strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.chi-siamo-image {
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
}

.chi-siamo-image.slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

.chi-siamo-image img {
    max-width: 300px;
    width: 100%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    opacity: 1 !important;
    transition: none !important;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
}

.chi-siamo-image.slide-in-right .stat {
    animation: popIn 0.5s ease-out forwards;
}

.chi-siamo-image.slide-in-right .stat:nth-child(1) {
    animation-delay: 0.3s;
}

.chi-siamo-image.slide-in-right .stat:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Lora', serif;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ===================================
   GALLERIA SECTION
   =================================== */

.galleria {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===================================
   CONTATTI SECTION
   =================================== */

.contatti {
    padding: 80px 20px;
    background: var(--white);
}

.contatti-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contatti-info h3,
.contatti-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-family: 'Lora', serif;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.whatsapp-btn-wrapper {
    margin-top: 2rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.whatsapp-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 3rem 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-logo p {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contatti-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .prodotti-utilizzati .timeline-container {
        grid-template-columns: 1fr;
    }

    .prodotti-utilizzati .product-showcase {
        grid-template-columns: 1fr;
    }

    .vantaggi-tecniche .split-comparison {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nav-wrapper {
        padding: 1rem 0;
    }

    .logo {
        padding-left: 0;
        margin-left: 0;
    }

    .logo img {
        height: 45px;
    }

    .logo span {
        font-size: 1rem;
    }

    .hero {
        min-height: 75vh;
        padding: 50px 15px;
        display: flex;
        align-items: center;
    }

    .hero-content {
        margin-left: 5%;
        padding-right: 5%;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        margin-top: 0.5rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 2rem;
    }

    .hero-cta .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
        max-width: none;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

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

    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .servizi-incluso {
        padding: 1.5rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
    animation-fill-mode: both;
}

/* Initial state for animated elements */
.servizio-card,
.info-item,
.gallery-item,
.whatsapp-btn-wrapper,
.contatti-form,
.timeline-item,
.product-showcase-item,
.benefit-item {
    opacity: 0;
    transform: translateY(30px);
}

/* Visual cards in vantaggi section should be visible immediately */
.vantaggi-tecniche .visual-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.servizio-card.fade-in-up,
.info-item.fade-in-up,
.gallery-item.fade-in-up,
.whatsapp-btn-wrapper.fade-in-up,
.contatti-form.fade-in-up,
.timeline-item.fade-in-up,
.product-showcase-item.fade-in-up,
.benefit-item.fade-in-up,
.visual-card.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.product-showcase-item:nth-child(1) { animation-delay: 0.5s; }
.product-showcase-item:nth-child(2) { animation-delay: 0.6s; }

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }

/* Synchronized list animations */
.comparison-list li {
    opacity: 0;
}

/* Remove individual delays - will be handled by JavaScript */

/* ===================================
   UTILITY CLASSES
   =================================== */

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }


/* ===================================
   SERVICE PAGES STYLES
   =================================== */

/* Service Hero */
.service-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.95)), 
                url("../images/hero/hero-bg.png") center/cover no-repeat;
    color: var(--white);
    margin-top: 80px;
    padding: 60px 20px;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.service-icon-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Service Description */
.service-description {
    padding: 5rem 0;
    background: var(--white);
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-content h3 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Spacing for service main content */
.service-main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: var(--primary-color);
}

.service-main-content h3 {
    font-size: 1.8rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 3rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--text-color);
}

.service-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Process Steps */
.process-steps {
    margin: 2rem 0 3rem 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.process-step:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0 3rem 0;
}

.application-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.application-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.application-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Service Gallery */
.service-gallery {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* Service CTA */
.service-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Logo Link Fix */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* Responsive Service Pages */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.2rem;
    }

    .service-icon-large {
        font-size: 3rem;
    }

    .service-content h2 {
        font-size: 2rem;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================================
   DESIGN 8 - SIDEBAR WITH IMAGES
   =================================== */

.service-layout-sidebar {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: start;
}

.service-main-content {
    padding-right: 1rem;
}

.service-sidebar-images {
    position: sticky;
    top: 100px;
    background: var(--white);
    padding: 0;
}

.sidebar-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: left;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
}

.sidebar-image-item {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.sidebar-image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.sidebar-image-item img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    color: var(--white);
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Responsive Design 8 */
@media (max-width: 968px) {
    .service-layout-sidebar {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-main-content {
        padding-right: 0;
    }
    
    .service-sidebar-images {
        position: static;
    }
    
    .sidebar-image-item img {
        min-height: 250px;
        max-height: 350px;
    }
}

