/* Modern Overrides for Braglia Ceramiche */

:root {
    --primary-color: #F28123;
    --secondary-color: #051922;
    --text-color: #333333;
    /* Softer black */
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
    /* Slight negative spacing for modern look */
}


/* Glassmorphism Header - REMOVED per user request */

/* Hero Section Enhancement - REMOVED per user request */

.hero-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

/* Modern Cards */
.single-product-item {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    overflow: hidden;
}

.single-product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.single-product-item img {
    border-radius: 12px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.single-product-item:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}

.single-product-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Modern Buttons */
a.cart-btn,
a.boxed-btn,
a.bordered-btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(242, 129, 35, 0.3);
}

a.cart-btn:hover,
a.boxed-btn:hover {
    background-color: #d96c14;
    /* Darker orange */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 129, 35, 0.4);
}

/* List/Services Section */
.list-box {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}

.list-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.list-icon i {
    color: var(--primary-color);
    font-size: 2rem;
    background: rgba(242, 129, 35, 0.1);
    padding: 15px;
    border-radius: 50%;
    margin-right: 20px;
}

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

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

/* Section Titles */
.section-title h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title h3::after {
    background-color: var(--primary-color);
    height: 4px;
    width: 60px;
    border-radius: 2px;
}

/* Contact Form */
#contact-form {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
}

#contact-form input,
#contact-form textarea {
    background-color: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
}

#contact-form input:focus,
#contact-form textarea:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(242, 129, 35, 0.1);
    outline: none;
}

/* Fix Magnific Popup z-index to be above Bootstrap modal */
.mfp-bg,
.mfp-wrap {
    z-index: 2000 !important;
}

/* Bug Fix #1: Remove white background under hero video, make fullscreen on mobile */
.hero-area {
    background-color: #000 !important;
    min-height: 100vh;
}

.hero-area video {
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 767px) {
    .hero-area {
        height: 100vh !important;
        min-height: 100vh;
    }

    .hero-area video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Bug Fix #2: Center "Scopri" buttons on mobile */
@media (max-width: 767px) {
    .product-section .col-lg-4.col-md-6[class*="offset-md-3"] {
        margin-left: 0 !important;
    }

    .product-section .col-lg-4.col-md-6 {
        margin-left: 0 !important;
    }

    .single-product-item {
        text-align: center;
    }

    a.cart-btn {
        display: inline-block;
        margin: 0 auto;
    }
}

/* Bug Fix #3: Ensure modals are scrollable */
.modal-dialog {
    max-height: 90vh;
}

.modal-body {
    overflow-y: auto;
    max-height: 75vh;
}

/* Modal header: pulsante chiudi a destra */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .btn[data-bs-dismiss="modal"] {
    margin-left: auto;
}