/* ============================================
   RASSTUTTOFARE - Main Stylesheet
   Modern, professional design for Ticino
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1B5E20;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B12;
    --accent: #FF6F00;
    --accent-light: #FF8F00;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--gray-800);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Navbar ---------- */
.navbar-rass {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-rass.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-rass .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-rass .navbar-brand span {
    color: var(--accent);
}

.navbar-rass .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-800) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

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

.navbar-rass .nav-link:hover::after,
.navbar-rass .nav-link.active::after {
    width: 60%;
}

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

.btn-quote-nav {
    background: var(--accent);
    color: var(--white) !important;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-quote-nav:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,111,0,0.3);
}

.lang-select {
    border-radius: 50px !important;
    border: 2px solid var(--gray-200) !important;
    font-size: 0.85rem !important;
    padding: 0.3rem 2rem 0.3rem 0.75rem !important;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--white) !important;
    min-width: 130px;
}

.lang-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(27,94,32,0.1) !important;
}

.lang-select:hover {
    border-color: var(--primary) !important;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,59,18,0.75) 0%, rgba(26,26,46,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 550px;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    width: 60px;
    background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-primary-rass {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-rass:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27,94,32,0.3);
}

.btn-accent-rass {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent-rass:hover {
    background: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,111,0,0.3);
}

.btn-outline-rass {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ---------- Sections ---------- */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    margin: 1rem auto 1.5rem;
}

/* ---------- Service Cards ---------- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(27,94,32,0.3);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Benefits Section ---------- */
.benefits-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.benefit-item h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* ---------- About Page ---------- */
.about-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: 6rem 0 4rem;
    color: var(--white);
}

.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ---------- FAQ ---------- */
.faq-section .accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-section .accordion-button {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    padding: 1.25rem 1.5rem;
    background: var(--white);
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--gray-50);
    color: var(--primary);
    box-shadow: none;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
}

.faq-section .accordion-body {
    padding: 1rem 1.5rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: rgba(27,94,32,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ---------- Forms ---------- */
.form-rass .form-control,
.form-rass .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-rass .form-control:focus,
.form-rass .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}

.form-rass .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.form-rass .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---------- Google Map ---------- */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    /*box-shadow: var(--shadow-md);*/
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

iframe {
    border: 0;
    width: 100%;
    height: 36vh;
}
/* ---------- WhatsApp Button ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

/* ---------- Footer ---------- */
.footer-rass {
    /*background: var(--dark);*/
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-rass h5 {
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-rass a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-rass a:hover {
    color: var(--accent);
}

.footer-rass .footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-rass .footer-brand span {
    color: var(--accent);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--accent);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- Page Headers ---------- */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: 7rem 0 3rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
}

/* ---------- Alert ---------- */
.alert-success-rass {
    background: rgba(27,94,32,0.1);
    border: 1px solid rgba(27,94,32,0.2);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
}

/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-slider {
        height: 70vh;
    }

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

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

    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .page-header {
        padding: 6rem 0 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
    .hero-slide-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto; 
        height: auto;
        object-fit: cover; 
        transform: translate(-50%, -50%);
        z-index: 0;
    }
 

   

   
}
