/* ===========================
   MAIN CSS - Gieffe Vending
   Colori: Ottanio & Oro
   =========================== */

/* ===========================
   VARIABILI CSS
   =========================== */
:root {
    /* Colori Primari - Ottanio */
    --primary-color: #0E7490;      /* Ottanio principale */
    --primary-dark: #0C5F78;       /* Ottanio scuro */
    --primary-darker: #0A4E63;     /* Ottanio molto scuro */
    --primary-light: #22A6C3;      /* Ottanio chiaro */
    --primary-lighter: #38BDF8;    /* Ottanio molto chiaro */
    --primary-bg: #F0FDFA;         /* Background ottanio */

    /* Colori Secondari - Oro */
    --secondary-color: #F59E0B;    /* Oro principale */
    --secondary-dark: #D97706;     /* Oro scuro */
    --secondary-darker: #B45309;   /* Oro molto scuro */
    --secondary-light: #FCD34D;    /* Oro chiaro */
    --secondary-lighter: #FDE68A;  /* Oro molto chiaro */
    --secondary-bg: #FFFBEB;       /* Background oro */

    /* Neutri */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Stati */
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* Ombre */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Main wrapper to prevent header overlap */
main {
    padding-top: 80px; /* Altezza header */
    min-height: 100vh;
}

/* Page Hero - Padding aumentato per evitare sovrapposizione con header fisso */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem; /* Aumentato padding top */
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    overflow: hidden;
}

/* Padding extra per le hero delle pagine interne */
.faq-hero,
.distributori-hero,
.servizi-hero,
.prodotti-hero,
.contatti-hero,
.chi-siamo-hero,
.products-hero,    /* FIX per prodotti.php */
.services-hero {   /* FIX per servizi.php */
    padding-top: 10rem !important; /* Extra padding per compensare header fisso */
}

/* Container */

/* Transizioni */
--transition-fast: 150ms ease-in-out;
--transition-base: 300ms ease-in-out;
--transition-slow: 500ms ease-in-out;

/* Border Radius */
--radius-sm: 0.25rem;
--radius: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-full: 9999px;

/* Font Sizes */
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.25rem;
--text-2xl: 1.5rem;
--text-3xl: 1.875rem;
--text-4xl: 2.25rem;
--text-5xl: 3rem;

/* Z-Index */
--z-negative: -1;
--z-normal: 1;
--z-tooltip: 10;
--z-sticky: 100;
--z-fixed: 1000;
--z-modal: 10000;
}

/* ===========================
   TIPOGRAFIA
   =========================== */
body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    color: var(--gray-800);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-base);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: var(--z-modal);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 50%, rgba(14, 116, 144, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.badge-text {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(14, 116, 144, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 116, 144, 0.5);
}

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

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

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(14, 116, 144, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(14, 116, 144, 0);
    }
}

/* ===========================
   TRUST INDICATORS
   =========================== */
.trust-indicators {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary-color);
    border-radius: var(--radius);
}

.trust-content strong {
    display: block;
    font-size: var(--text-xl);
    color: var(--primary-color);
}

.trust-content span {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ===========================
   SCROLL INDICATOR
   =========================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

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

/* ===========================
   STATS SECTION
   =========================== */
.stats-section {
    background: var(--primary-color);
    padding: 3rem 0;
    margin-top: -1px;
}

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

.stat-card {
    text-align: center;
    color: var(--white);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--secondary-bg);
    color: var(--secondary-dark);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    position: relative;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.feature-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 0.25rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-lg);
}

.feature-card.featured .feature-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    color: var(--white);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
}

.feature-card.featured h3 {
    color: var(--white);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.feature-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-base);
}

.feature-link:hover {
    gap: 1rem;
}

.feature-card.featured .feature-link {
    color: var(--secondary-light);
}

/* ===========================
   PRODUCTS SHOWCASE
   =========================== */
.products-showcase {
    padding: 6rem 0;
    background: var(--white);
}

.products-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-base);
}

.tab-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

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

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

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

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius);
}

.product-info {
    padding: 1rem;
}

.product-info h4 {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.product-info p {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* Brands Carousel */
.brands-section {
    margin-top: 4rem;
    text-align: center;
}

.brands-title {
    font-size: var(--text-2xl);
    margin-bottom: 2rem;
}

.brands-carousel {
    overflow: hidden;
    padding: 2rem 0;
}

.brands-track {
    display: flex;
    gap: 4rem;
    animation: scroll-brands 20s linear infinite;
}

.brands-track img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.brands-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===========================
   ROI CALCULATOR
   =========================== */
.roi-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.roi-calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-card,
.results-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.roi-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

/* ROI Results */
.savings-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
}

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

.savings-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.savings-value {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.savings-item.current .savings-value {
    color: var(--error);
}

.savings-item.new .savings-value {
    color: var(--success);
}

.savings-arrow {
    color: var(--gray-400);
}

.total-savings {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    border-radius: var(--radius-lg);
}

.savings-amount {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary-color);
}

.savings-percentage {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--success);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius);
}

.benefits-list {
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.benefit-item svg {
    color: var(--success);
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.testimonial-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.testimonial-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 0.25rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    color: var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-card.featured .testimonial-text {
    color: rgba(255, 255, 255, 0.95);
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.testimonial-card.featured .author-avatar {
    background: rgba(255, 255, 255, 0.2);
}

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

.testimonial-card.featured .author-info h4 {
    color: var(--white);
}

.author-info span {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.testimonial-card.featured .author-info span {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-footer {
    text-align: center;
    margin-top: 3rem;
}

.testimonials-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.testimonials-logos img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content {
    color: var(--white);
}

.cta-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.cta-title {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    gap: 2rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-feature svg {
    color: var(--secondary-light);
}

/* Modern Form */
.cta-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: var(--text-base);
    color: var(--gray-500);
    pointer-events: none;
    transition: all var(--transition-base);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: var(--text-sm);
    background: var(--white);
    padding: 0 0.25rem;
    color: var(--primary-color);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

.form-group:focus-within .form-line {
    width: 100%;
}

.form-privacy {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    position: relative;
    transition: all var(--transition-base);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.btn-block {
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: all var(--transition-base);
}

.phone-link:hover {
    color: var(--primary-dark);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--gray-300);
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

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

/* ===========================
   ANIMATIONS
   =========================== */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-up-delay {
    animation: slideUp 0.6s ease-out 0.3s both;
}

.animate-fade-in-delay {
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out 0.9s both;
}

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

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

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

/* Hero Visual Cards */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 300px;
    height: 200px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-1 {
    top: 20%;
    right: 10%;
    animation: float-1 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 30%;
    animation: float-2 8s ease-in-out infinite;
}

.card-3 {
    top: 70%;
    right: 15%;
    animation: float-3 10s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-30px) rotate(3deg);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translateY(0) rotate(1deg);
    }
    50% {
        transform: translateY(-25px) rotate(-1deg);
    }
}

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mt-xl { margin-top: 4rem; }

.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 4rem; }

.hidden { display: none !important; }

/* Particle Background */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-particles::before {
    top: 10%;
    left: 10%;
    animation: float-particle 20s infinite;
}

.hero-particles::after {
    bottom: 10%;
    right: 10%;
    animation: float-particle 15s infinite reverse;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}


/* ===========================
   WHY CHOOSE US SECTION
   =========================== */
.why-us-section {
    padding: 5rem 0;
    background: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-us-card {
    background: var(--gray-50);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    transition: all var(--transition-base);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: white;
}

.why-us-card.featured {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    border: 2px solid var(--primary-light);
}

.why-us-card .featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.why-us-card .card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    color: var(--primary-color);
}

.why-us-card.featured .card-icon {
    background: white;
    color: var(--primary-color);
}

.why-us-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.why-us-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.why-us-card .check-list {
    list-style: none;
}

.why-us-card .check-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: var(--text-sm);
}

.why-us-card .check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}
/* Fix essenziale per testo feature cards */
.feature-card {
    background: white !important;
    color: #111827 !important; /* gray-900 */
}

.feature-card h3 {
    color: #111827 !important;
}

.feature-card p {
    color: #4B5563 !important; /* gray-600 */
}

.feature-link {
    color: #0E7490 !important; /* primary-color */
}