/*
 Theme Name:   Astra Child - La Miette
 Theme URI:    https://lamiette.it
 Description:  Tema child personalizzato di Astra per La Miette - Negozio di Abbigliamento
 Author:       La Miette
 Author URI:   https://lamiette.it
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child-lamiette
*/

/* ========================================
   LA MIETTE - MODERN FASHION DESIGN
   Palette: Teal #1B8B8A, White #FFFFFF, Black #1A1A1A
   ======================================== */

/* ========== VARIABILI COLORE ========== */
:root {
    --lamiette-teal: #1B8B8A;
    --lamiette-teal-light: #2BABA9;
    --lamiette-teal-dark: #156B6A;
    --lamiette-white: #FFFFFF;
    --lamiette-black: #1A1A1A;
    --lamiette-grey: #F5F5F5;
    --lamiette-gold: #D4AF37;
}

/* ========== BODY E TIPOGRAFIA GLOBALE ========== */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #1A1A1A !important;
    background: #FFFFFF !important;
    line-height: 1.6 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
}

a {
    color: #1B8B8A !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: #156B6A !important;
}

/* ========== NASCONDI HEADER/FOOTER ASTRA DEFAULT ========== */
.main-header-bar,
.ast-header-break-point .main-header-bar {
    display: none !important;
}

/* Nascondi TUTTI i footer di Astra */
.site-footer,
#colophon,
.ast-footer-overlay,
.ast-small-footer,
.site-footer-primary-section,
.site-footer-bar-section,
.ast-footer-copyright,
.footer-adv,
.footer-adv-overlay,
.ast-container .site-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ========== HEADER PERSONALIZZATO LA MIETTE ========== */
#masthead,
.main-header-bar,
.site-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%) !important;
    box-shadow: 0 4px 30px rgba(27, 139, 138, 0.08) !important;
    padding: 25px 0 !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(27, 139, 138, 0.1) !important;
}

.lamiette-header {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    box-shadow: 0 4px 30px rgba(27, 139, 138, 0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(27, 139, 138, 0.1);
}

/* Rimuovi padding e border header sulla home */
body.home .lamiette-header {
    padding: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Rimuovi OGNI spazio tra header e contenuto */
body.home .lamiette-header + *,
body.home header + *,
body.home .site-header + * {
    margin-top: -10px !important;
    padding-top: 0 !important;
}

/* Tira su il primo elemento della entry-content */
body.home .entry-content > *:first-child {
    margin-top: -10px !important;
}

.lamiette-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Logo */
.lamiette-logo {
    flex-shrink: 0;
}

.lamiette-logo img {
    max-height: 70px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(27, 139, 138, 0.15));
}

.lamiette-logo:hover img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(27, 139, 138, 0.25));
}

/* Icone Social - tra logo e menu */
.lamiette-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lamiette-social-icons .social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B8B8A, #2BABA9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(27, 139, 138, 0.2);
    text-decoration: none;
}

.lamiette-social-icons .social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(27, 139, 138, 0.4);
    background: linear-gradient(135deg, #156B6A, #1B8B8A);
}

.lamiette-social-icons .social-icon i {
    color: white;
}

/* Call to Action Telefono */
.lamiette-cta-phone {
    margin-left: auto;
    margin-right: 30px;
}

.cta-phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #1B8B8A;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 139, 138, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-phone-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 139, 138, 0.3);
    background: #156B6A;
    color: white !important;
}

.cta-phone-link i {
    font-size: 14px;
    color: white !important;
}

.cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cta-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85) !important;
}

.cta-number {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: white !important;
}

/* Menu Navigazione */
.lamiette-nav {
    margin-left: 0;
}

.lamiette-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.lamiette-menu li {
    position: relative;
}

.lamiette-menu > li > a {
    color: #1A1A1A;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.lamiette-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1B8B8A, #D4AF37);
    transition: width 0.3s ease;
}

.lamiette-menu > li > a:hover::after,
.lamiette-menu > li.current-menu-item > a::after {
    width: 100%;
}

.lamiette-menu > li > a:hover {
    color: #1B8B8A;
}

/* Submenu */
.lamiette-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
}

.lamiette-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lamiette-menu .sub-menu a {
    padding: 12px 24px;
    display: block;
    font-size: 13px;
    text-transform: none;
    color: #1A1A1A;
    text-decoration: none;
}

.lamiette-menu .sub-menu a:hover {
    background: #F5F5F5;
    color: #1B8B8A;
}

/* Mobile Menu Toggle */
.lamiette-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.lamiette-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #1B8B8A;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Nascondi site title e tagline - solo logo */
.site-title,
.site-description,
.ast-site-identity .site-title,
.ast-site-identity .site-description {
    display: none !important;
    visibility: hidden !important;
}

/* Logo styling */
.site-branding,
.site-logo-img,
.custom-logo-link {
    display: inline-block !important;
}

.site-branding img,
.custom-logo-link img,
.site-logo-img img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-height: 70px !important;
    width: auto !important;
    filter: drop-shadow(0 2px 8px rgba(27, 139, 138, 0.15)) !important;
}

.site-branding:hover img,
.custom-logo-link:hover img,
.site-logo-img:hover img {
    transform: scale(1.08) translateY(-2px) !important;
    filter: drop-shadow(0 8px 20px rgba(27, 139, 138, 0.25)) !important;
}

/* ========== MENU NAVIGAZIONE FASHION ASTRA ========== */
.main-header-menu,
.ast-desktop-menu {
    font-family: 'Montserrat', 'Arial', sans-serif !important;
}

.main-header-menu .menu-item > a,
.ast-desktop-menu .menu-item > a {
    color: #1A1A1A !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 20px !important;
    transition: color 0.3s ease;
}

/* Effetto underline animato */
.main-header-menu .menu-item > a::after,
.ast-desktop-menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1B8B8A, #D4AF37);
    transition: width 0.3s ease;
}

.main-header-menu .menu-item > a:hover::after,
.main-header-menu .current-menu-item > a::after,
.ast-desktop-menu .menu-item > a:hover::after,
.ast-desktop-menu .current-menu-item > a::after {
    width: calc(100% - 40px);
}

.main-header-menu .menu-item > a:hover,
.ast-desktop-menu .menu-item > a:hover {
    color: #1B8B8A !important;
}

/* Submenu dropdown moderno */
.main-header-menu .sub-menu,
.ast-desktop-menu .sub-menu {
    background: white !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    border: none !important;
}

.main-header-menu .sub-menu .menu-item > a,
.ast-desktop-menu .sub-menu .menu-item > a {
    padding: 12px 24px !important;
    font-size: 13px !important;
    text-transform: none !important;
}

.main-header-menu .sub-menu .menu-item > a:hover,
.ast-desktop-menu .sub-menu .menu-item > a:hover {
    background: #F5F5F5 !important;
    color: #1B8B8A !important;
}

/* ========== FOOTER PERSONALIZZATO LA MIETTE ========== */
.lamiette-footer {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.lamiette-footer-top {
    height: 4px;
    background: linear-gradient(90deg, #1B8B8A, #D4AF37, #1B8B8A);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

.lamiette-footer-content {
    padding: 60px 0 30px;
}

.lamiette-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #1B8B8A;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
}

.footer-col ul li:last-child {
    border-bottom: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #1B8B8A !important;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(27, 139, 138, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #1B8B8A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(27, 139, 138, 0.4);
}

.footer-social a i {
    color: white !important;
}

.footer-contact li,
.footer-hours li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-contact i {
    color: #1B8B8A !important;
    margin-top: 3px;
    font-size: 14px;
}

.lamiette-footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #1A1A1A;
}

.lamiette-footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    margin: 0;
}

/* Forza colori bianchi per tutto il footer */
.lamiette-footer,
.lamiette-footer * {
    color: rgba(255, 255, 255, 0.8) !important;
}

.lamiette-footer h3 {
    color: #1B8B8A !important;
}

.lamiette-footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.lamiette-footer a:hover {
    color: #1B8B8A !important;
}

/* Footer Astra completamente nascosto */

/* Decorazione artistica footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B8B8A, #D4AF37, #1B8B8A);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
    z-index: 1;
}

/* Footer Content */
.footer-adv .footer-adv-overlay {
    background: transparent !important;
}

.footer-adv-overlay {
    padding: 60px 30px 30px !important;
}

/* Footer Widget Styling */
.footer-adv .widget,
.footer-adv .widget-title {
    color: #FFFFFF !important;
}

.footer-adv .widget-title {
    color: #1B8B8A !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 25px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.footer-adv .widget a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.footer-adv .widget a:hover {
    color: #1B8B8A !important;
    transform: translateX(5px) !important;
    display: inline-block !important;
}

.footer-adv .widget ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-adv .widget ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Copyright Footer */
.ast-footer-copyright {
    text-align: center !important;
    padding: 30px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
    background: #1A1A1A !important;
}

.ast-footer-copyright a {
    color: #1B8B8A !important;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Widget footer */
.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--lamiette-teal);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-widget a:hover {
    color: var(--lamiette-teal);
    transform: translateX(5px);
}

/* Info contatti footer */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.footer-contact-info i {
    color: var(--lamiette-teal);
    font-size: 18px;
}

/* Social icons fashion */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(27, 139, 138, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: var(--lamiette-teal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(27, 139, 138, 0.4);
}

/* Copyright bar */
.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.site-info a {
    color: var(--lamiette-teal);
    text-decoration: none;
}

/* ========== BOTTONI CTA FASHION ========== */
.btn-lamiette {
    background: linear-gradient(135deg, var(--lamiette-teal), var(--lamiette-teal-light));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 139, 138, 0.3);
}

.btn-lamiette:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(27, 139, 138, 0.4);
    background: linear-gradient(135deg, var(--lamiette-teal-dark), var(--lamiette-teal));
}

/* ========== RESPONSIVE DESIGN MOBILE ========== */
@media (max-width: 921px) {
    /* Header mobile */
    .lamiette-header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Logo e hamburger sulla stessa riga */
    .lamiette-logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .lamiette-mobile-toggle {
        display: flex !important;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* Icone social sotto il logo - centrate */
    .lamiette-social-icons {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
        padding: 10px 0;
        border-top: 1px solid rgba(27, 139, 138, 0.1);
        border-bottom: 1px solid rgba(27, 139, 138, 0.1);
    }
    
    /* CTA telefono su mobile - sotto icone social */
    .lamiette-cta-phone {
        order: 4;
        width: 100%;
        margin: 15px 0;
        display: flex;
        justify-content: center;
    }
    
    .cta-phone-link {
        width: auto;
    }
    
    /* Menu mobile nascosto di default */
    .lamiette-nav {
        order: 5;
        width: 100%;
        margin-left: 0;
        display: none;
    }
    
    .lamiette-nav.active {
        display: block;
    }
    
    .lamiette-menu {
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
    }
    
    .lamiette-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(27, 139, 138, 0.1);
    }
    
    .lamiette-menu > li > a {
        display: block;
        padding: 15px 20px;
    }
    
    /* Submenu mobile */
    .lamiette-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: #F8F8F8;
        display: none;
    }
    
    .lamiette-menu li.menu-item-has-children.active > .sub-menu {
        display: block;
    }
    
    .lamiette-menu .sub-menu a {
        padding: 12px 40px;
    }
}

@media (max-width: 768px) {
    /* Logo più piccolo su mobile */
    .lamiette-logo img {
        max-height: 55px;
    }
    
    /* Icone social più grandi su mobile */
    .lamiette-social-icons .social-icon {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }
    
    /* Footer responsive */
    .lamiette-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========== HOME PAGE - RIMUOVI TITOLO E SPAZI ========== */
/* Sovrascrivi variabili CSS Astra sulla home */
body.home {
    --wp--custom--ast-default-block-top-padding: 0;
    --wp--custom--ast-default-block-bottom-padding: 0;
    --wp--custom--ast-default-block-left-padding: 0;
    --wp--custom--ast-default-block-right-padding: 0;
    --wp--custom--ast-container-width: 1200px;
    --wp--custom--ast-content-width-size: 1200px;
}

/* Nascondi titolo "Home" sulla home page */
body.home .entry-header,
body.home .page-header,
body.home .entry-title {
    display: none !important;
}

/* RIMUOVI TUTTE LE BARRE GRIGIE - ULTRA AGGRESSIVO */
body.home .site-header,
body.home .lamiette-header,
body.home .lamiette-header-container,
body.home .main-header-bar-wrap,
body.home .ast-main-header-wrap,
body.home header,
body.home .site-header-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Rimuovi pseudo-elementi dell'header */
body.home .site-header::after,
body.home .site-header::before,
body.home .lamiette-header::after,
body.home .lamiette-header::before {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .site-content,
body.home #content,
body.home .ast-container,
body.home main,
body.home #primary,
body.home article,
body.home .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Rimuovi max-width per fullwidth */
body.home .ast-container {
    max-width: 100% !important;
}

/* Nascondi qualsiasi elemento che crea spazio */
body.home .site-content::before,
body.home .site-content::after,
body.home #primary::before,
body.home #primary::after {
    display: none !important;
}

/* Rimuovi padding Gutenberg blocks sulla home */
body.home .entry-content > .wp-block-group,
body.home .entry-content > .wp-block-cover,
body.home .entry-content > .wp-block-columns,
body.home .entry-content > * {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* MOBILE - Rimuovi spazi e rendi hero fullscreen */
@media (max-width: 921px) {
    /* Rimuovi spazi header Astra su mobile home - ULTRA SPECIFICO */
    body.home .site-header,
    body.home #masthead,
    body.home .ast-main-header-wrap,
    body.home .main-header-bar-wrap,
    body.home .ast-primary-header-bar,
    body.home .site-primary-header-wrap,
    body.home .ast-builder-grid-row-container,
    body.home .ast-builder-grid-row,
    body.home #ast-mobile-header,
    body.home .ast-mobile-header-wrap {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.home .site-header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    body.home #masthead::after,
    body.home .site-header::after {
        display: none !important;
    }
    
    /* Header mobile - sticky per rimanere bloccato durante scroll */
    body.home .lamiette-header {
        position: sticky !important;
        top: 0;
        z-index: 1000;
    }
    
    body.home .lamiette-header-container {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        padding: 10px 20px !important;
    }
    
    /* Logo e hamburger rimangono nell'header */
    body.home .lamiette-logo {
        order: 1;
    }
    
    body.home .lamiette-mobile-toggle {
        order: 2;
        margin-left: auto;
    }
    
    /* Nascondi completamente icone social e CTA dall'header su mobile home */
    body.home .lamiette-header .lamiette-social-icons,
    body.home .lamiette-header .lamiette-cta-phone {
        display: none !important;
    }
    
    /* Sezione mobile sotto hero video - solo mobile */
    .mobile-social-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 25px 20px;
        background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
        gap: 20px;
        border-top: 1px solid rgba(27, 139, 138, 0.1);
    }
    
    .mobile-social-cta .social-icons-row {
        display: flex;
        gap: 15px;
    }
    
    .mobile-social-cta .social-icon {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, #1B8B8A, #2BABA9);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF !important;
        font-size: 17px;
        text-decoration: none;
        box-shadow: 0 2px 10px rgba(27, 139, 138, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-social-cta .social-icon:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 5px 20px rgba(27, 139, 138, 0.4);
    }
    
    .mobile-social-cta .cta-phone-mobile {
        background: linear-gradient(135deg, #1B8B8A, #2BABA9);
        color: #FFFFFF !important;
        padding: 10px 20px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 12px;
        box-shadow: 0 4px 15px rgba(27, 139, 138, 0.3);
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        text-align: center;
    }
    
    .mobile-social-cta .cta-phone-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(27, 139, 138, 0.4);
    }
    
    .mobile-social-cta .cta-phone-mobile i {
        font-size: 14px;
    }
    
    .mobile-social-cta .cta-phone-mobile span {
        color: #FFFFFF !important;
        line-height: 1.3;
    }
}

/* Nascondi sezione mobile su desktop */
@media (min-width: 922px) {
    .mobile-social-cta {
        display: none !important;
    }
    
    /* Rimuovi spazi header Astra su desktop home - ULTRA SPECIFICO */
    body.home .site-header,
    body.home #masthead,
    body.home .ast-main-header-wrap,
    body.home .main-header-bar-wrap,
    body.home .ast-primary-header-bar,
    body.home .site-primary-header-wrap,
    body.home .ast-builder-grid-row-container,
    body.home .ast-builder-grid-row,
    body.home #ast-desktop-header,
    body.home .ast-container {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.home .site-header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    body.home #masthead::after,
    body.home .site-header::after {
        display: none !important;
    }
    
    body.home .site-content,
    body.home #content,
    body.home .ast-container,
    body.home main,
    body.home #primary,
    body.home article,
    body.home .entry-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Video hero fullscreen su mobile */
    body.home .entry-content > div:first-child {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }
    
    body.home .entry-content > div:first-child video {
        width: 100% !important;
        height: auto !important;
        min-height: 400px !important;
        object-fit: cover !important;
    }
}

/* ========== ANIMAZIONI SCROLL ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== SEZIONE ABOUT - SOTTO HERO VIDEO ========== */
.about-section {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1B8B8A;
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #333333;
    margin: 0;
}

/* Mobile */
@media (max-width: 921px) {
    .about-section {
        padding: 50px 20px;
    }
    
    .about-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .about-section p {
        font-size: 16px;
    }
}

/* ========== FIX OVERFLOW PAGINA MOBILE ========== */
body {
    overflow-x: hidden !important;
}

.services-section {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

.services-slider-container {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
}

.services-slider {
    display: flex !important;
    width: max-content !important;
}

/* Mobile - contenimento stretto */
@media (max-width: 921px) {
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .services-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .services-slider-container {
        touch-action: pan-y pinch-zoom !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ========== SLIDESHOW SERVIZI - VERSIONE FINALE ========== */
.services-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    overflow: hidden;
}

.services-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1B8B8A;
    margin-bottom: 20px;
}

.services-section > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.services-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.services-slider {
    display: flex;
    gap: 30px;
    animation: slideRight 30s linear infinite;
}

.services-slider.animating {
    animation: slideRight 30s linear infinite;
}

.services-slider:hover {
    animation-play-state: paused;
}

.service-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(27, 139, 138, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(27, 139, 138, 0.2);
}

.service-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #E0E0E0, #F5F5F5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.service-name {
    padding: 25px 20px;
    text-align: center;
    background: white;
}

.service-name h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover .service-name h3 {
    color: #1B8B8A;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 921px) {
    .services-section {
        padding: 50px 20px;
    }
    
    .services-section h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .services-section > p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .service-card {
        flex: 0 0 250px;
    }
    
    .service-image {
        height: 350px;
    }
    
    .service-name h3 {
        font-size: 18px;
    }
}

/* ========== FIX TITOLO RECENSIONI CENTRATO ========== */
.reviews-section h2 {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.reviews-section > p {
    text-align: center !important;
    max-width: 900px !important;
    margin: 0 auto 40px !important;
    padding: 0 20px !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

/* ========== SEZIONE ABBIGLIAMENTO CASUAL ========== */
.casual-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    overflow: hidden;
}

.casual-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1B8B8A;
    margin-bottom: 20px;
}

.casual-section > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.casual-slider-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    cursor: grab;
}

.casual-slider-container:active {
    cursor: grabbing;
}

.casual-slider-container::-webkit-scrollbar {
    display: none;
}

.casual-slider-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.casual-slider {
    display: flex;
    gap: 25px;
    padding: 0 20px;
    width: max-content;
}

.casual-item {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.casual-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(27, 139, 138, 0.2);
}

.casual-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #E8E8E8, #F5F5F5);
    overflow: hidden;
}

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

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

.casual-cta {
    text-align: center;
    margin-top: 50px;
}

.casual-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #1B8B8A;
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(27, 139, 138, 0.3);
}

.casual-cta-button:hover {
    background: #156d6c;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 139, 138, 0.4);
    color: white;
    text-decoration: none;
}

@media (max-width: 921px) {
    .casual-section {
        padding: 50px 20px;
    }
    
    .casual-section h2 {
        font-size: 28px;
    }
    
    .casual-section > p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .casual-item {
        flex: 0 0 240px;
    }
    
    .casual-image {
        height: 300px;
    }
    
    .casual-cta-button {
        padding: 15px 35px;
        font-size: 16px;
    }
}

/* ========== FIX COLORE TESTO PULSANTE BIANCO ========== */
.casual-cta-button,
.casual-cta-button span,
.casual-cta-button * {
    color: #FFFFFF !important;
}

.casual-cta-button:hover,
.casual-cta-button:hover span,
.casual-cta-button:hover * {
    color: #FFFFFF !important;
}

/* ========== FIX BACKGROUND SEZIONE CASUAL ========== */
.casual-section {
    background: #FFFFFF !important;
    padding: 80px 20px !important;
}

/* Aggiungi spazio tra sezioni */
.reviews-section {
    margin-bottom: 0 !important;
    padding-bottom: 60px !important;
}

.casual-section {
    padding-top: 60px !important;
}

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== CAROUSEL INTERNO CARD ========== */
.service-image .card-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-image .card-image-carousel .carousel-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out !important;
    transform: none !important;
}

.service-image .card-image-carousel .carousel-image.active {
    opacity: 1 !important;
}

.service-image .card-image-carousel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Disabilita l'hover zoom quando c'è il carousel */
.service-card:hover .service-image .card-image-carousel .carousel-image {
    transform: none !important;
}

/* ========== FIX CASUAL SLIDER - IMMAGINI COMPLETE ========== */
.casual-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
}

.casual-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* Mostra l'immagine completa senza tagli */
    object-position: center !important;
}

/* Scroll automatico */
.casual-slider-container {
    position: relative;
    overflow: hidden;
}

.casual-slider {
    display: flex;
    gap: 20px;
    animation: casualAutoScroll 60s linear infinite;
    animation-play-state: running;
}

.casual-slider:hover {
    animation-play-state: paused !important;
}

@keyframes casualAutoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========== HERO VIDEO CANVA - RESPONSIVE ========== */
.lamiette-hero-canva {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-canva-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 per desktop */
    height: 0;
    overflow: hidden;
}

.hero-canva-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile: aumenta l'altezza */
@media (max-width: 768px) {
    .hero-canva-container {
        padding-bottom: 100%; /* Altezza maggiore su mobile (quasi quadrato) */
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-canva-container {
        padding-bottom: 75%; /* Altezza media su tablet */
    }
}

/* ========== HERO VIDEO CANVA - RESPONSIVE ========== */
.lamiette-hero-canva {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-canva-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 per desktop */
    height: 0;
    overflow: hidden;
}

.hero-canva-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile: aumenta l'altezza */
@media (max-width: 768px) {
    .hero-canva-container {
        padding-bottom: 100%; /* Altezza maggiore su mobile (quasi quadrato) */
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-canva-container {
        padding-bottom: 75%; /* Altezza media su tablet */
    }
}

/* ========== HERO VIDEO CANVA - PIÙ GRANDE SU MOBILE ========== */
@media (max-width: 768px) {
    .hero-canva-container {
        padding-bottom: 133% !important; /* Ancora più alto su mobile */
        min-height: 500px; /* Altezza minima */
    }
}

@media (max-width: 480px) {
    .hero-canva-container {
        padding-bottom: 150% !important; /* Altissimo su schermi piccoli */
        min-height: 600px;
    }
}
