/* ===================================
   FINTEX - COMMON CSS
   Stili condivisi tra tutte le pagine
   =================================== */

/* ============= VARIABLES ============= */
:root {
    /* Brand Colors */
    --primary-red: #DC2626;
    --primary-dark-red: #B91C1C;
    --primary-black: #0F172A;
    --secondary-black: #1E293B;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-light: #94A3B8;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-lighter: #F1F5F9;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-red: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-red: 0 8px 32px rgba(220, 38, 38, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

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

p {
    font-family: 'Poppins', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============= CONTAINER ============= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-base);
    cursor: pointer;
}

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

.btn-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

/* ============= CTA SECTION ============= */
.cta-section {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Linee verticali principali */
        linear-gradient(90deg, transparent 0%, transparent calc(10% - 1px), rgba(255, 255, 255, 0.15) calc(10% - 1px), rgba(255, 255, 255, 0.15) 10%, transparent 10%),
        linear-gradient(90deg, transparent 0%, transparent calc(25% - 1px), rgba(255, 255, 255, 0.12) calc(25% - 1px), rgba(255, 255, 255, 0.12) 25%, transparent 25%),
        linear-gradient(90deg, transparent 0%, transparent calc(40% - 1px), rgba(255, 255, 255, 0.1) calc(40% - 1px), rgba(255, 255, 255, 0.1) 40%, transparent 40%),
        linear-gradient(90deg, transparent 0%, transparent calc(60% - 1px), rgba(255, 255, 255, 0.12) calc(60% - 1px), rgba(255, 255, 255, 0.12) 60%, transparent 60%),
        linear-gradient(90deg, transparent 0%, transparent calc(75% - 1px), rgba(255, 255, 255, 0.15) calc(75% - 1px), rgba(255, 255, 255, 0.15) 75%, transparent 75%),
        linear-gradient(90deg, transparent 0%, transparent calc(90% - 1px), rgba(255, 255, 255, 0.1) calc(90% - 1px), rgba(255, 255, 255, 0.1) 90%, transparent 90%),
        /* Linee orizzontali di connessione */
        linear-gradient(0deg, transparent 0%, transparent calc(30% - 1px), rgba(255, 255, 255, 0.08) calc(30% - 1px), rgba(255, 255, 255, 0.08) 30%, transparent 30%),
        linear-gradient(0deg, transparent 0%, transparent calc(70% - 1px), rgba(255, 255, 255, 0.08) calc(70% - 1px), rgba(255, 255, 255, 0.08) 70%, transparent 70%),
        /* Nodi di connessione */
        radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 75% 30%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.4) 3px, transparent 3px),
        /* Sfumature di profondità */
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
    opacity: 0.85;
    animation: circuitFlow 10s ease-in-out infinite;
}

@keyframes circuitFlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.cta-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.cta-text h2 {
    font-size: 64px;
    font-weight: 900;
    color: var(--bg-white);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease;
}

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

.cta-button .btn-white {
    position: relative;
    background: white;
    color: #DC2626;
    font-weight: 700;
    font-size: 18px;
    padding: 18px 40px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button .btn-white::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button .btn-white:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button .btn-white:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.cta-button .btn-white:active {
    transform: translateY(-2px) scale(1.02);
}

/* ============= FOOTER ============= */
.footer {
    background: #000000;
    color: var(--bg-white);
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.5) 50%, transparent);
}

.footer-top {
    margin-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    margin-bottom: 32px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: none;
}

.footer-contact h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.footer-contact p {
    font-size: 16px;
    color: var(--primary-red);
    font-weight: 500;
}

.footer-contact p a {
    color: var(--primary-red);
    transition: var(--transition-base);
}

.footer-contact p a:hover {
    color: #FF4444;
    text-decoration: underline;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-base);
    line-height: 1.6;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    display: inline-block;
}

.footer-list a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.footer-list a:hover {
    color: #FFFFFF;
    padding-left: 8px;
}

.footer-list a:hover::before {
    width: calc(100% - 8px);
}

.footer-bottom {
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    padding-top: 40px;
    margin-top: 20px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.copyright a {
    color: var(--primary-red);
    font-weight: 500;
    transition: var(--transition-base);
}

.copyright a:hover {
    color: #FF4444;
    text-decoration: underline;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 52px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .cta-text h2 {
        font-size: 42px;
    }
    
    .cta-button .btn-white {
        font-size: 16px;
        padding: 16px 32px;
    }
}

@media (max-width: 480px) {
    .cta-text h2 {
        font-size: 32px;
    }
}

