/* ===== CUSTOM CSS FOR STARZERO ===== */
/* 
 * Note: cover.css (old Bootstrap cover template) has been removed
 * This file now contains all custom styles for the new design
 */

/* Variables - StarZero Brand Colors */
:root {
    /* Accent Color - Red from Logo (discrete use) */
    --accent-color: #dc2626;
    /* Red accent for CTAs and highlights */
    --accent-light: #fca5a5;
    /* Light red for subtle accents */
    --accent-dark: #991b1b;
    /* Dark red for hover states */

    /* Content Colors - Earth tones and Ivory */
    --content-bg: #fefcf8;
    /* Ivory background */
    --content-warm: #f5f1eb;
    /* Warm beige */
    --content-earth: #d4c4a8;
    /* Earth tone */
    --content-cream: #f9f6f0;
    /* Cream */

    /* Neutral Colors - Grays */
    --gray-dark: #374151;
    /* Dark gray for main text */
    --gray-medium: #6b7280;
    /* Medium gray for secondary text */
    --gray-light: #9ca3af;
    /* Light gray for muted text */
    --gray-pale: #f3f4f6;
    /* Pale gray for backgrounds */
    --gray-border: #e5e7eb;
    /* Gray for borders */

    /* System Colors */
    --white: #ffffff;
    --black: #111827;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;

    /* Gradients - Subtle and professional */
    --gradient-hero: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    --gradient-accent: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --gradient-warm: linear-gradient(135deg, #fefcf8 0%, #f5f1eb 100%);

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 300;
    line-height: var(--line-height-base);
    color: var(--gray-dark);
    background-color: var(--content-bg);
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    /* Poppins ottimizzazione */
}

/* Poppins specific optimizations */
body {
    font-feature-settings: "kern" 1, "liga" 1;
    /* Better kerning and ligatures */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.03em;
    /* Poppins specific spacing */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--gray-pale);
    margin-bottom: 1.5rem;
}


.hero-tagline {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--content-bg);
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    letter-spacing: -0.025em;
    /* Poppins specific spacing */
}

.section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin: 0.75rem auto 0;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--gray-medium);
    margin-bottom: 0;
}

/* Titoli di card / principi: accento brand, corpo resta neutro */
.engagement-mode-title,
.skill-category h4,
.faq-item dt {
    color: var(--accent-dark);
}

/* Navigation */
.navbar {
    background: rgba(55, 65, 81, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 300;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

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

.hero-cta .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.engagement-modes {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.engagement-mode-card {
    background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.engagement-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0.85;
}

.engagement-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: rgba(220, 38, 38, 0.25);
}

.engagement-mode-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.08);
    color: var(--accent-color);
}

.engagement-mode-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}

.engagement-mode-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.engagement-mode-text {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gray-medium);
    margin-bottom: 0;
    line-height: 1.5;
}

.engagement-mode-text a,
.section-subtitle a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-weight: 400;
}

.engagement-mode-text a:hover,
.section-subtitle a:hover {
    color: var(--accent-dark);
}

.engagement-mode-actions {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    text-align: left;
    font-size: 0.875rem;
    color: var(--gray-dark);
    line-height: 1.45;
}

.engagement-mode-actions li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1rem;
    border-top: 1px solid var(--gray-border);
}

.engagement-mode-actions li:first-child {
    border-top: none;
    padding-top: 0.15rem;
}

.engagement-mode-actions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red-accent, #dc2626);
    opacity: 0.85;
}

/* Case study section */
.cases-section {
    padding: 5rem 0;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(220, 38, 38, 0.35);
    padding: 0.4rem 0.9rem;
    border-radius: var(--border-radius);
}

.case-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.cases-aside {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-border);
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--gray-light);
    letter-spacing: 0.01em;
}

.cases-aside-label {
    display: inline-block;
    margin-right: 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-light);
}

.cases-aside a {
    color: var(--gray-medium);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid rgba(156, 163, 175, 0.5);
}

.cases-aside a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-color);
}

.cases-aside-sep {
    margin: 0 0.35rem;
    color: var(--gray-border);
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: var(--content-warm);
}

.skill-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-border);
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.skill-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--gray-medium);
    font-weight: 300;
    border-bottom: 1px solid var(--gray-border);
    transition: var(--transition);
}

.skill-list li:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.skill-list small {
    font-size: 0.75rem;
    color: var(--gray-light);
    font-weight: 300;
}

.skill-list li:last-child {
    border-bottom: none;
}

.contact-section .section-title::after {
    background: rgba(255, 255, 255, 0.85);
}

.process-principle {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--accent-dark);
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0 auto 0.75rem;
    max-width: 36rem;
}

/* FAQ */
.faq-section {
    background-color: var(--content-bg);
}

.faq-list {
    margin: 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item dt {
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.faq-item dd {
    margin: 0;
    color: var(--gray-medium);
    font-weight: 300;
    line-height: 1.6;
}

/* Case study label */
.case-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
    margin-bottom: 0.35rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

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

/* Footer */
.footer {
    background: var(--gray-dark) !important;
    padding: 2rem 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .skill-category {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {

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

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }

    .skill-category {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-pale);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Print styles */
@media print {

    .navbar,
    .hero-cta,
    .contact-section,
    .footer {
        display: none;
    }

    .hero-section {
        background: white !important;
        color: black !important;
    }

    .hero-title {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: black !important;
    }
}
