/*
 * Sartori Sergio srl - Custom CSS
 * Bootstrap 5 + Custom Modern Styles
 */

/* ===== CSS VARIABLES ===== */
:root {
    --ss-primary: #2199ce;
    --ss-primary-dark: #1a7ba8;
    --ss-primary-light: rgba(33, 153, 206, 0.1);
    --ss-secondary: #167462;
    --ss-accent: #27af49;
    --ss-dark: #1a1a1a;
    --ss-shadow: 0 4px 6px rgba(0,0,0,0.07);
    --ss-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --ss-shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
    --ss-radius: 8px;
    --ss-radius-lg: 16px;
    --ss-transition: all 0.3s ease;
    --ss-font-display: 'Playfair Display', Georgia, serif;
}

/* ===== GENERAL STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #495057;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--ss-font-display);
    color: var(--ss-dark);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: var(--ss-transition);
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ss-primary);
    margin-bottom: 1rem;
}

/* ===== CUSTOM BUTTONS ===== */
.btn-ss-primary {
    background: var(--ss-primary);
    border-color: var(--ss-primary);
    color: #fff;
    padding: 0.875rem 2rem;
    font-weight: 500;
    border-radius: var(--ss-radius);
    transition: var(--ss-transition);
}

.btn-ss-primary:hover {
    background: var(--ss-primary-dark);
    border-color: var(--ss-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--ss-shadow-lg);
}

.btn-ss-light {
    background: #fff;
    color: var(--ss-primary);
    border: 2px solid #fff;
    padding: 0.875rem 2rem;
    font-weight: 500;
    border-radius: var(--ss-radius);
    transition: var(--ss-transition);
}

.btn-ss-light:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ===== NAVBAR ===== */
.navbar-ss {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: var(--ss-transition);
    padding: 1rem 0;
}

.navbar-ss .navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-ss .nav-link {
    font-weight: 500;
    color: #495057 !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--ss-radius);
    transition: var(--ss-transition);
}

.navbar-ss .nav-link:hover,
.navbar-ss .nav-link.active {
    color: var(--ss-primary) !important;
    background: var(--ss-primary-light);
}

.navbar-ss .nav-cta {
    background: var(--ss-primary) !important;
    color: #fff !important;
    margin-left: 0.5rem;
}

.navbar-ss .nav-cta:hover {
    background: var(--ss-primary-dark) !important;
}

.navbar-ss .nav-cta.active {
    color: #fff !important;
    background: var(--ss-primary-dark) !important;
}

.navbar-ss .dropdown-menu {
    border: none;
    box-shadow: var(--ss-shadow-lg);
    border-radius: var(--ss-radius);
    padding: 0.5rem 0;
}

.navbar-ss .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: var(--ss-transition);
}

.navbar-ss .dropdown-item:hover,
.navbar-ss .dropdown-item.active {
    background: #f8f9fa;
    color: var(--ss-primary);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section.hero-small {
    min-height: 50vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.7) 100%
    );
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: #fff;
}

.hero-scroll span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 100px 0;
}

.intro-image {
    position: relative;
}

.intro-image img {
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--ss-shadow-xl);
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--ss-primary);
    border-radius: var(--ss-radius-lg);
    z-index: -1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39,175,73,0.1);
    border-radius: 50%;
    color: var(--ss-accent);
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 500;
    color: #212529;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: #6c757d;
}

/* Products Filter */
.products-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    color: #495057;
    transition: var(--ss-transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--ss-primary);
    border-color: var(--ss-primary);
    color: #fff;
}

/* Product Cards */
.product-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow);
    transition: var(--ss-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ss-primary);
    transform: scaleY(0);
    transition: var(--ss-transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ss-shadow-lg);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-letter {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: #f8f9fa;
    font-family: var(--ss-font-display);
}

.product-card h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    margin: 0;
}

.product-card.hidden {
    display: none !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #fff;
    border-radius: var(--ss-radius-lg);
    overflow: hidden;
    box-shadow: var(--ss-shadow);
    transition: var(--ss-transition);
    display: block;
    height: 100%;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ss-shadow-xl);
    color: inherit;
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ss-primary);
    margin-bottom: 0.5rem;
}

.service-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== INFO BANNER ===== */
.info-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--ss-primary) 0%, var(--ss-primary-dark) 100%);
    color: #fff;
}

.info-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-text h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.info-text p {
    opacity: 0.9;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-primary-light);
    border-radius: 50%;
    color: var(--ss-primary);
    flex-shrink: 0;
}

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: var(--ss-radius-lg);
}

.contact-form .form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: var(--ss-radius);
    transition: var(--ss-transition);
}

.contact-form .form-control:focus {
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 4px var(--ss-primary-light);
}

/* ===== MAP SECTION ===== */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--ss-primary);
    color: #fff;
    padding: 60px 0 0;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
    margin: 0;
}

.footer-partners img {
    height: 20px;
    width: auto;
    opacity: 0.8;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--ss-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ss-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--ss-transition);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--ss-primary-dark);
    color: #fff;
    transform: translateY(-5px);
}

/* ===== DOWNLOAD CARDS ===== */
.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--ss-radius);
    box-shadow: var(--ss-shadow);
    transition: var(--ss-transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ss-shadow-lg);
    color: inherit;
}

.download-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ss-primary-light);
    border-radius: var(--ss-radius);
    color: var(--ss-primary);
}

.download-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.download-info span {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ===== HOURS CARD ===== */
.hours-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--ss-radius-lg);
    box-shadow: var(--ss-shadow);
    height: 100%;
}

.hours-card h5 {
    color: var(--ss-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== SEARCH INPUT ===== */
.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: var(--ss-radius);
    transition: var(--ss-transition);
    width: 100%;
    max-width: 400px;
}

.search-input:focus {
    outline: none;
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 4px var(--ss-primary-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }

    .intro-section,
    .products-section,
    .contact-section {
        padding: 60px 0;
    }

    .intro-image::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .products-filter {
        gap: 0.25rem;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .info-banner .row {
        text-align: center;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
