/* ==========================================
   LA MAISON DU FIL - ATELIER ARTIGIANALE STYLES
   ========================================== */

:root {
    --cream: #F9F6F0;
    --cream-dark: #EFECE6;
    --linen: #F3EFEA;
    --taupe: #8C7A6B;
    --taupe-dark: #594A3C;
    --sage: #7C8C73;
    --sage-dark: #566450;
    --terracotta: #C88A72;
    --terracotta-dark: #A26B55;
    --charcoal: #2C2A29;
    --text-muted: #6B6560;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --shadow-soft: 0 10px 30px rgba(44, 42, 41, 0.06);
    --shadow-hover: 0 20px 40px rgba(44, 42, 41, 0.12);
    --transition: all 0.35s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--charcoal);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--sage);
    color: var(--white);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.announcement-bar i {
    margin-right: 0.5rem;
}

/* Header & Navbar */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(44, 42, 41, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--taupe-dark);
}

.logo-fallback i {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--terracotta);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--taupe-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--taupe);
    color: var(--taupe-dark);
}

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

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(44, 42, 41, 0.45), rgba(44, 42, 41, 0.45)), url('https://images.unsplash.com/photo-1584917865442-de89df76afd3?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cream);
    background-color: rgba(124, 140, 115, 0.85);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--cream);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Common */
.section {
    padding: 6rem 0;
}

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

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--terracotta);
    display: block;
    margin-bottom: 0.5rem;
}

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

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--terracotta);
    margin: 0 auto 1.2rem auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Philosophy Section */
.philosophy {
    background-color: var(--white);
}

.phil-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.phil-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.phil-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.phil-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pfeat {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.pfeat i {
    font-size: 1.5rem;
    color: var(--sage);
    background-color: var(--linen);
    padding: 1rem;
    border-radius: 50%;
}

.pfeat h4 {
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.pfeat p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.phil-image-box {
    position: relative;
}

.image-frame {
    height: 450px;
    border-radius: 12px;
    background: linear-gradient(rgba(44,42,41,0.15), rgba(44,42,41,0.15)), url('https://images.unsplash.com/photo-1615485290382-441e4d049cb5?auto=format&fit=crop&q=80&w=800') center/cover no-repeat;
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.artisan-badge {
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    font-size: 0.9rem;
}

.artisan-badge i {
    color: var(--gold);
    font-size: 1.3rem;
}

/* Catalog Section */
.catalog-section {
    background-color: var(--linen);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--white);
    border: 1px solid var(--taupe-dark);
    color: var(--charcoal);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--taupe-dark);
    color: var(--white);
    border-color: var(--taupe-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
    background-color: var(--cream-dark);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--taupe);
    background: linear-gradient(135deg, #F3EFEA 0%, #E2DAD0 100%);
    transition: var(--transition);
}

.product-card:hover .product-img-placeholder {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--terracotta);
    color: var(--white);
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
}

.product-badge.new {
    background-color: var(--sage);
}

.product-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 42, 41, 0.7);
    color: var(--white);
    text-align: center;
    padding: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
    padding: 0.8rem 0;
    margin-bottom: 1.5rem;
}

.product-dims {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-dims i {
    color: var(--taupe);
    margin-right: 0.3rem;
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--taupe-dark);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-pay {
    background-color: #0070BA;
    color: var(--white);
    padding: 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
    text-align: center;
}

.btn-pay:hover {
    background-color: #005ea6;
    transform: translateY(-2px);
}

.btn-wa {
    background-color: #25D366;
    color: var(--white);
    padding: 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
    text-align: center;
}

.btn-wa:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
}

/* Atelier Su Misura Section */
.custom-atelier {
    background: linear-gradient(135deg, var(--taupe-dark) 0%, var(--charcoal) 100%);
    color: var(--white);
    position: relative;
}

.customizer-card {
    background-color: var(--white);
    color: var(--charcoal);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.customizer-form .form-group {
    margin-bottom: 2rem;
}

.customizer-form label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--terracotta);
    color: var(--white);
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.option-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.radio-card {
    border: 2px solid var(--cream-dark);
    border-radius: 10px;
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.radio-card input {
    display: none;
}

.rc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.rc-content i {
    font-size: 1.8rem;
    color: var(--taupe);
}

.radio-card:hover,
.radio-card.active {
    border-color: var(--terracotta);
    background-color: var(--linen);
}

.radio-card.active .rc-content i {
    color: var(--terracotta);
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #D8D2CB;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    background-color: var(--cream);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--terracotta);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 138, 114, 0.15);
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.color-swatch {
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
}

.color-swatch input {
    display: none;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: var(--terracotta);
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(200, 138, 114, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-submit-wrap {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cream-dark);
}

.btn-whatsapp-large {
    background-color: #25D366;
    color: var(--white);
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    background-color: #1EBE5D;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.form-note i {
    color: var(--sage);
    margin-right: 0.3rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    background-color: var(--linen);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testi-card p {
    font-style: italic;
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.client-info strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--cream);
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--terracotta);
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(249, 246, 240, 0.7);
    margin-bottom: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--terracotta);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(249, 246, 240, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--terracotta);
    padding-left: 5px;
}

.payment-badges {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.payment-badges span {
    background-color: rgba(255,255,255,0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    background-color: #211F1E;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(249, 246, 240, 0.5);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--white);
    color: var(--charcoal);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.floating-whatsapp:hover .wa-tooltip {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .phil-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .testi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .nav-cta {
        display: none;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .option-cards-grid {
        grid-template-columns: 1fr;
    }
    .color-picker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .customizer-card {
        padding: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .copyright {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}


/* Product Image Slider Styles */
.product-slider-wrap {
    position: relative;
}
.slider-images {
    width: 100%;
    height: 100%;
}
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--charcoal);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}
.slider-btn:hover {
    background-color: var(--white);
    color: var(--terracotta);
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}
.product-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* La Filosofia Section Styles */
.filosofia-section {
    background-color: var(--white);
    padding: 5rem 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

.filosofia-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.filosofia-text .lead-text {
    font-size: 1.15rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--taupe-dark);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.filosofia-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.filosofia-action {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.filosofia-image-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background-color: var(--cream);
    padding: 2rem 1.5rem;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.filosofia-img {
    width: 140px;
    height: 140px;
    max-width: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.filosofia-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--taupe-dark);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.filosofia-quote i {
    color: var(--terracotta);
    font-size: 1.35rem;
}

@media (max-width: 992px) {
    .filosofia-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 0.5rem;
    }
    .filosofia-section {
        padding: 4rem 1rem;
    }
}

/* Product Detail Modal Styles */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 42, 41, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.product-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-container {
    background-color: var(--white);
    width: 100%;
    max-width: 950px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalScaleUp 0.3s ease forwards;
}

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

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--cream);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--charcoal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--terracotta);
    color: var(--white);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-img-col {
    padding: 2.5rem;
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.modal-main-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
}

.modal-main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbs-wrap {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-thumb {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.modal-thumb.active, .modal-thumb:hover {
    border-color: var(--terracotta);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-col {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-cat {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.modal-info-col h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--taupe-dark);
    margin-bottom: 1.25rem;
}

.modal-divider {
    width: 50px;
    height: 2px;
    background-color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.modal-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-actions {
    margin-bottom: 1.5rem;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-note i {
    color: var(--sage);
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-img-col {
        padding: 1.5rem;
    }
    .modal-info-col {
        padding: 2rem 1.5rem;
    }
    .modal-info-col h2 {
        font-size: 1.75rem;
    }
}

.product-card {
    cursor: pointer;
}

.filosofia-logo-img {
  width: 140px !important;
  max-width: 140px !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto 1.5rem auto !important;
}
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}


/* === FIX RESPONSIVE GLOBALE & LOGO TONDO === */
*, *::before, *::after {
  box-sizing: border-box !important;
}

html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

header, nav, section, main, footer {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Ritaglio tondo pulito per il logo nell header e nella filosofia (elimina bordi scuri) */
header img, .navbar img, .logo img, .brand-logo img, .logo-tondo-pulito {
  border-radius: 50% !important;
  object-fit: cover !important;
  clip-path: circle(43% at 50% 50%) !important;
  -webkit-clip-path: circle(43% at 50% 50%) !important;
  transform: scale(1.16) !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  /* Hero section (L Arte dell Uncinetto...) perfettamente centrata nello schermo */
  .hero, .hero-section, .hero-content, .hero-container, [class*="hero"] {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: center !important;
    transform: none !important;
  }

  .hero h1, [class*="hero"] h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem) !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero p, [class*="hero"] p {
    font-size: 0.98rem !important;
    max-width: 100% !important;
    padding: 0 8px !important;
  }

  /* Evita che qualsiasi immagine o blocco esca dallo schermo su iPhone */
  img, video, iframe, svg {
    max-width: 100% !important;
  }

  #storia img,
  .filosofia-section img,
  .filosofia-image img,
  .filosofia-logo-img {
    width: 210px !important;
    max-width: 210px !important;
    height: 210px !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    border-radius: 50% !important;
    clip-path: circle(43% at 50% 50%) !important;
    -webkit-clip-path: circle(43% at 50% 50%) !important;
    transform: scale(1.16) !important;
  }
}


/* === STILI SEZIONI SU MISURA, COME ORDINARE E RECENSIONI === */
.lmdf-extra-section {
  width: 100%;
  padding: 56px 0;
  box-sizing: border-box;
}
.lmdf-bg-soft {
  background-color: rgba(216, 199, 179, 0.16);
}
.lmdf-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.lmdf-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px auto;
}
.lmdf-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c6a58;
  margin-bottom: 6px;
}
.lmdf-header h2 {
  margin: 0 0 10px 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}
.lmdf-custom-box {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.lmdf-custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.lmdf-field-full {
  grid-column: 1 / -1;
}
.lmdf-field label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: #333;
}
.lmdf-field select,
.lmdf-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5cfc7;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #faf9f7;
  box-sizing: border-box;
}
.lmdf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lmdf-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lmdf-swatch.active {
  transform: scale(1.14);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5c4b3b;
}
.lmdf-btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 22px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}
.lmdf-btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border: 1.5px solid #5c4b3b;
  color: #5c4b3b;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.lmdf-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lmdf-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}
.lmdf-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5c4b3b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.lmdf-stars {
  color: #c9a96e;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.lmdf-care-banner {
  margin-top: 28px;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(0,0,0,0.07);
}
.lmdf-care-banner h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
}
.lmdf-care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #4a3c2f;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .lmdf-custom-grid,
  .lmdf-steps-grid,
  .lmdf-care-grid {
    grid-template-columns: 1fr !important;
  }
  .lmdf-custom-box {
    padding: 20px 16px;
  }
}
