/* ========================================
   CIVITASDB WEBSITE - STYLES
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from brand image */
    --primary: #1e4d8b;
    --primary-dark: #153761;
    --accent: #d4a574;
    --accent-light: #e8c9a3;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-700: #495057;
    --white: #ffffff;
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 77, 139, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

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

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero-bg.png') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 77, 139, 0.85) 0%, rgba(21, 53, 97, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    margin-bottom: 20px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    letter-spacing: 8px;
    display: block;
    animation: fadeInUp 1s ease;
}

.brand-name .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    font-size: 24px;
}

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

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

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

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

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

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

.btn-block {
    width: 100%;
    text-align: center;
    display: block;
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

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

/* ========================================
   SOLUTIONS SECTION
   ======================================== */

.solutions {
    background: var(--gray-100);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.solution-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.solution-card.featured {
    border: 3px solid var(--accent);
    position: relative;
}

.solution-card.featured::before {
    content: "★ PIÙ RICHIESTO";
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-icon {
    font-size: 64px;
    margin-bottom: 20px;
    text-align: center;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.card-description {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.8;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 15px;
}

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--gray-200);
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Custom Solutions */
.custom-solutions {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 60px;
    color: var(--white);
    margin-top: 40px;
}

.custom-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.custom-icon {
    font-size: 80px;
}

.custom-text h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.custom-text p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--gray-700);
    line-height: 1.8;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-700);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-700);
    margin-top: 10px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(30, 77, 139, 0.3);
}

.image-placeholder span {
    font-size: 100px;
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-description {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
}

.contact-item strong {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--gray-100);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.3s;
}

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

.form-note {
    font-size: 12px;
    color: var(--gray-700);
    text-align: center;
    margin-top: 15px;
}

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

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
    font-size: 28px;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.8;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .brand-name {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
