/* CSS UNIFICATO SCRIPTIDEA - Combinazione di styles.css (priorità) + assets/css/style.css */

/* ===== VARIABILI CSS DA STYLES.CSS (PRIORITÀ) ===== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --dark-blue: #0a2540;
    --light-blue: #e6f0ff;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Variabili aggiuntive da assets/css/style.css */
    --primary-dark: #0b1e3c;
    --primary-light: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== STILI BASE DA STYLES.CSS ===== */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

html, body {
    overflow-x: hidden;
}

.container-fluid {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}


/* ===== NAVBAR STYLES (DA STYLES.CSS CON INTEGRAZIONE ASSETS) ===== */
.navbar-custom {
    background-color: white !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-custom .navbar-brand img {
    max-height: 50px;
}

/* Logo con stili migliorati */
img.logo { 
    width: 200px !important;
    height: auto !important;
}

/* Logo Testuale da assets */
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.logo-script {
    color: #0d6efd;
    font-weight: 700;
}

.logo-idea {
    color: #ffc107;
    font-weight: 700;
}

.navbar-custom .navbar-brand:hover .logo-text {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}


.navbar-custom .nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-custom .nav-link::after {
    display: none;
}

.navbar-custom .dropdown-menu {
    background-color: var(--primary-dark);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 0.5rem;
}

.navbar-custom .dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.8rem;
}

/* Dropdown toggle con freccia Bootstrap di default */
.navbar-custom .dropdown-toggle::after {
    display: inline-block !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
}

.navbar-custom .social-icons a {
    color: #212529;
    margin-left: 0.8rem;
    font-size: 1.2rem;
    background-color: transparent;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-custom .social-icons a:hover {
    transform: translateY(-3px);
    color: #0d6efd;
    background-color: transparent;
}

/* Navbar Toggler */
.navbar-custom .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== FOOTER STYLES (DA STYLES.CSS CON INTEGRAZIONE ASSETS) ===== */
.footer-custom {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-custom h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: var(--accent-color);
}

.footer-custom ul {
    list-style: none;
    padding-left: 0;
}

.footer-custom ul li {
    margin-bottom: 10px;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-custom a:hover {
    color: #fff;
    text-decoration: underline;
    padding-left: 5px;
}

.footer-custom .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.footer-custom .social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-custom .copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom .copyright a:hover {
    color: var(--text-light);
}

/* ===== OFFCANVAS MOBILE MENU ===== */
.offcanvas-custom {
    background-color: #ffffff;
}

.offcanvas-custom .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-custom .offcanvas-title {
    color: #212529;
    font-weight: bold;
}

.offcanvas-custom .btn-close {
    filter: none;
}

.offcanvas-custom .nav-link {
    color: #212529 !important;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.offcanvas-custom .nav-link:hover,
.offcanvas-custom .nav-link.active {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    padding-left: 1.5rem;
}

/* ===== HERO SECTION (DA ASSETS/CSS/STYLE.CSS) ===== */
.hero-section {
    min-height: 60vh;
    position: relative;
    margin-top:100px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), 
                url('https://images.pexels.com/photos/574071/pexels-photo-574071.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover no-repeat;
}

.hero-background {
    z-index: 2;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/><circle cx="10" cy="10" r="1"/><circle cx="50" cy="10" r="1"/><circle cx="10" cy="50" r="1"/><circle cx="50" cy="50" r="1"/></g></svg>') repeat;
    animation: float-particles 20s ease-in-out infinite;
}

.hero-gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 3;
}

@keyframes float-particles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-text-section {
    padding: 3rem 2rem;
}

.hero-main-title {
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #ffc107 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-text {
    border-right: 3px solid #ffc107;
    white-space: nowrap;
    display: inline-block;
    min-width: 200px;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ffc107; }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-benefits .benefit-item {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-benefits .benefit-item i {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* CTA Buttons */
.hero-cta-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    color: #000 !important;
    text-shadow: none;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.6);
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
    color: #000 !important;
}

.hero-cta-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* ===== SEZIONI E COMPONENTI (DA STYLES.CSS) ===== */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.title-border {
    height: 4px;
    width: 150px;
    background-color: var(--light-color);
    margin-bottom: 1.5rem;
}

.section-title .title-border {
    margin-left: 0;
}

.section-title.text-center .title-border {
    margin-left: auto;
    margin-right: auto;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Skills Section */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 5px;
}

.tech-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: var(--primary-color);
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

/* Portfolio Section */
.portfolio-item {
    overflow: hidden;
    border: none;
    box-shadow: var(--box-shadow);
}

.portfolio-img {
    overflow: hidden;
}

.portfolio-img img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 86, 179, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.portfolio-info h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.portfolio-info p {
    margin-bottom: 15px;
}

/* Blog Section */
.blog-item {
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-item:hover {
    transform: translateY(-10px);
}

.blog-item img {
    height: 200px;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-form {
    border: none;
    box-shadow: var(--box-shadow);
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ===== BUTTONS (DA STYLES.CSS) ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== COMPONENTI AGGIUNTIVI DA ASSETS ===== */

/* Trust Indicators */
.hero-trust-indicators {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-item {
    text-align: center;
}

.trust-number {
    color: #ffc107;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.trust-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Floating Cards */
.floating-cards-container {
    width: 100%;
    height: 500px;
    max-width: 600px;
    margin: 0 auto;
}

.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-card .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: all 0.3s ease;
    width: 200px;
}

.floating-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ai-card {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.web-card {
    top: 150px;
    right: 30px;
    animation-delay: 2s;
}

.design-card {
    bottom: 80px;
    left: 100px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    z-index: 15;
    animation: bounce-slow 2s ease-in-out infinite;
}

.scroll-indicator-content {
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator-content:hover {
    transform: scale(1.1);
}

.scroll-text {
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
}

@keyframes bounce-slow {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

/* Services Hero Sections */
.services-hero-section, .ai-services-hero-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-hero-bg, .ai-services-hero-bg {
    transition: transform 0.3s ease;
}

.services-hero-section:hover .services-hero-bg,
.ai-services-hero-section:hover .ai-services-hero-bg {
    transform: scale(1.02);
}

.service-stat, .ai-service-stat {
    transition: transform 0.3s ease;
}

.service-stat:hover, .ai-service-stat:hover {
    transform: translateY(-5px);
}

.scroll-down {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40%, 43% {
        transform: translate(-50%, -10px);
    }
    70% {
        transform: translate(-50%, -5px);
    }
    90% {
        transform: translate(-50%, -2px);
    }
}

/* AI Service Cards */
.ai-service-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.ai-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.ai-service-card .card-img-top {
    transition: all 0.3s ease;
}

.ai-service-card:hover .card-img-top {
    transform: scale(1.05);
}

.ai-service-card .btn {
    transition: all 0.3s ease;
}

.ai-service-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Section Title Box */
.section-title-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.section-title-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.ai-intro-box {
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.ai-intro-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .navbar-custom .social-icons {
        display: none;
    }
    
    .footer-custom .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text-section {
        padding: 2rem 1rem;
    }
    
    .hero-main-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-benefits .benefit-item span {
        font-size: 1rem !important;
    }
    
    .hero-benefits .benefit-item i {
        font-size: 1.2rem !important;
    }
    
    .floating-cards-container {
        height: 300px;
    }
    
    .floating-card .card {
        width: 150px;
    }
    
    .ai-card {
        top: 20px;
        left: 20px;
    }
    
    .web-card {
        top: 80px;
        right: 10px;
    }
    
    .design-card {
        bottom: 40px;
        left: 60px;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
    
    .trust-number {
        font-size: 2rem !important;
    }
    
    .trust-label {
        font-size: 0.9rem !important;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    img.logo { 
        width: 120px !important;
        height: auto !important;
    }

    .hero-text-section,
    .hero-visual-section {
        padding: 1.5rem 1rem;
    }
    
    .hero-main-title {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem;
    }
    
    .hero-benefits .benefit-item {
        margin-bottom: 1rem;
    }
    
    .hero-benefits .benefit-item span {
        font-size: 0.95rem !important;
    }
    
    .floating-cards-container {
        height: 250px;
    }
    
    .hero-cta-buttons {
        text-align: center;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 15px 20px !important;
    }
    
    .trust-number {
        font-size: 1.8rem !important;
    }
}

@media (min-width: 1200px) {
    .hero-main-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-benefits .benefit-item span {
        font-size: 1.1rem;
    }
}

/* ===== ANIMAZIONI AOS PERSONALIZZATE ===== */
[data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0);
}

[data-aos="fade-down"] {
    transform: translate3d(0, -30px, 0);
}

[data-aos="fade-right"] {
    transform: translate3d(-30px, 0, 0);
}

[data-aos="fade-left"] {
    transform: translate3d(30px, 0, 0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

/* ===== FINE CSS UNIFICATO ===== */
