/* ===== General Styles ===== */
:root {
    --primary-color: #dc3545;
    --secondary-color: #212529;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--secondary-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

/* ===== Navbar ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

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

.nav-link {
    color: var(--white-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

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

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

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Desktop */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(220, 53, 69, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white-color);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-features {
    animation: fadeInUp 1s ease 0.8s both;
}

.feature-box {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-box:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.feature-box i {
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-box:hover i {
    transform: scale(1.2) rotate(10deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--white-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===== Animations ===== */
.animate-fade-in {
    animation: fadeIn 1s ease both;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease 0.3s both;
}

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

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

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

/* ===== Section Padding ===== */
.section-padding {
    padding: 100px 0;
}

/* ===== Section Titles ===== */
.section-title {
    margin-bottom: 2rem;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 15px;
}

/* ===== About Section ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 15px;
    transition: var(--transition);
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.image-badge i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-description {
    color: #6c757d;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.service-list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.service-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.mini-service-card {
    background: var(--white-color);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.mini-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.mini-service-card i {
    color: var(--primary-color);
}

/* ===== Why Choose Us ===== */
.why-card {
    padding: 30px;
    transition: var(--transition);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    transform: rotate(360deg) scale(1.1);
}

.why-card h4 {
    margin-bottom: 15px;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white-color);
    font-size: 3rem;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== Contact ===== */
.contact-info-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(220, 53, 69, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.contact-info-card h4 {
    margin-bottom: 15px;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer p {
    color: #adb5bd;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(220, 53, 69, 0.2);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contacts {
    list-style: none;
    padding: 0;
}

.footer-contacts li {
    color: #adb5bd;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contacts i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.footer-contacts a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-contacts a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 130px; /* Mobile - più spazio */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-buttons .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }

    .hero-section {
        padding-top: 130px; /* Mobile - più spazio */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
     .hero-section {
        padding-top: 130px; /* Mobile - più spazio */
    }
}

/* ===== Powered By Link ===== */
.powered-by-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.powered-by-link:hover {
    color: var(--white-color);
    text-decoration: underline;
}
