/* Исправления стилей для сайта Faretti */
/* Центрирование карточек товаров */
.product-grid {
    justify-content: center !important;
}

/* Особое центрирование для контейнеров с маленькими карточками */
#classico .product-grid,
#uno .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Гарантируем, что маленькие карточки сохраняют свой размер, но центрируются */
@media (min-width: 992px) {
    .product-card-small {
        margin-left: auto;
        margin-right: auto;
    }
}
/* Базовые исправления */
.always-visible,
.product-card,
.product-grid,
.about-content,
.about-text,
.about-image,
.timeline,
.timeline-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.product-grid {
    display: grid !important;
}

.about-content {
    display: flex !important;
}

/* Исправления для шапки */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Исправления для навигации */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 10px;
}

.nav-item.active a {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-item.active a:before {
    width: 80%;
    opacity: 1;
}

/* Исправления для мобильного меню */
@media screen and (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        padding: 80px 30px 30px;
        display: flex;
        flex-direction: column;
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        transform: translateX(-100%);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1010;
    }
    
    .main-nav.active {
        right: auto;
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        padding-top: 20px;
    }
    
    .main-nav li {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
    
    .main-nav a {
        padding: 12px 0;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--secondary-color);
        text-shadow: none;
        position: relative;
        z-index: 1020;
        pointer-events: auto !important;
    }
    
    .main-nav a:hover,
    .nav-item.active a {
        color: var(--primary-color);
    }
    
    /* Улучшенные стили для кнопки мобильного меню */
    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 1020;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
      /*  margin-bottom: 6px; */
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Стили для затемнения фона при открытии мобильного меню */
body.menu-open:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1005;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Предотвращаем прокрутку при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* Исправления для секций */
.hero-content,
.section-header,
.advantage-item,
.product-card,
.store-item,
.brand-story,
.production-wrapper,
.contact-cards,
.footer-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    position: relative;
    z-index: 2;
}

/* Исправления для эффектов наведения */
.nav-item:hover,
.store-item:hover,
.product-card:hover,
.advantage-item:hover {
    transform: translateY(-5px) !important;
    transition: transform 0.3s ease !important;
}

/* Исправления для подчеркивания ссылок */
.main-nav a:hover:before,
.nav-item.active a:before {
    width: 80%;
    opacity: 1;
}

/* УЛУЧШЕННЫЕ анимации для первого экрана (Hero Section) */
.hero {
   min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
 /*   padding: 120px 0 60px; */
    overflow: hidden;
    background-attachment: fixed; /* Добавляем параллакс-эффект */
    perspective: 1000px;
    z-index: 1;
}
@media (max-width: 480px) {

.hero {
   min-height: 30vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    padding: 120px 0 60px;
    overflow: hidden;
    background-attachment: fixed; /* Добавляем параллакс-эффект */
    perspective: 1000px;
    z-index: 1;
}

}


/* Улучшенный темный оверлей для читаемости текста */
.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards 0.2s;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: contentAppear 1.2s cubic-bezier(0.17, 0.67, 0.32, 1.28) forwards 0.8s;
}

/* Контейнер для лого со свечением */
.logo-container {
    position: relative;
    display: inline-block;
    margin: 0 auto 30px;
    z-index: 2;
}

/* Основное пульсирующее свечение */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
    filter: blur(15px);
    animation: mainPulse 5s ease-in-out infinite;
    mix-blend-mode: overlay;
    box-shadow: 0 0 30px 15px rgba(255, 255, 255, 0.8);
}

/* Дополнительное свечение */
.logo-glow::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,0) 60%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.8;
    animation: secondaryPulse 6s ease-in-out infinite;
}

/* Центральное свечение */
.logo-glow::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    right: 30%;
    bottom: 30%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255,255,255,1) 40%, rgba(255,255,255,0.9) 70%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    filter: blur(3px);
    opacity: 0.9;
    z-index: 2;
    animation: centerPulse 5s ease-in-out infinite;
    box-shadow: 0 0 25px 10px rgba(255, 255, 255, 1);
}

/* Создаем фоновое свечение для всего логотипа */
.logo-container::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -15%;
    right: -15%;
    bottom: -15%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(15px);
    z-index: 0;
    opacity: 0;
    animation: backgroundPulse 8s ease-in-out infinite;
}

.hero-content img.hero-logo {
    max-width: 280px;
    display: block;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: scale(0.9);
    animation: logoReveal 1.8s cubic-bezier(0.17, 0.67, 0.3, 1.28) forwards 0.3s;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    margin-top: 40px;
}

.hero-content p {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 1s ease-out forwards 1.5s;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.hero-content .btn-primary {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: buttonAppear 1s cubic-bezier(0.17, 0.67, 0.45, 1.28) forwards 2s;
    font-weight: 500;
    letter-spacing: 1.2px;
    padding: 12px 28px;
    font-size: 14px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    background-color: transparent !important;
    color: white !important;
    border: 1px solid white !important;
    text-transform: uppercase;
}

.hero-content .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.hero-content .btn-primary:hover:before {
    left: 100%;
}

.hero-content .btn-primary:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hero-decorative {
    position: absolute;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 2;
    opacity: 0;
}

.hero-decorative-left {
    left: 8%;
    top: 30%;
    animation: decorAppearLeft 1.5s ease forwards 2.2s, floatLeft 8s ease-in-out infinite 3.7s;
}

.hero-decorative-right {
    right: 8%;
    bottom: 30%;
    animation: decorAppearRight 1.5s ease forwards 2.5s, floatRight 8s ease-in-out infinite 4s;
}

.hero-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.hero-particle-1 {
    width: 15px;
    height: 15px;
    top: 20%;
    left: 10%;
    animation: particleAppear 1s ease forwards 2.8s, floatParticle 12s ease-in-out infinite 3.8s;
}

.hero-particle-2 {
    width: 10px;
    height: 10px;
    top: 70%;
    left: 20%;
    animation: particleAppear 1s ease forwards 3s, floatParticle 10s ease-in-out infinite 4s;
}

.hero-particle-3 {
    width: 20px;
    height: 20px;
    top: 40%;
    right: 15%;
    animation: particleAppear 1s ease forwards 3.2s, floatParticle 14s ease-in-out infinite 4.2s;
}

.hero-particle-4 {
    width: 12px;
    height: 12px;
    bottom: 20%;
    right: 30%;
    animation: particleAppear 1s ease forwards 3.4s, floatParticle 11s ease-in-out infinite 4.4s;
}

/* Добавляем новые частицы */
.hero-particle-5 {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    animation: particleAppear 1s ease forwards 3.6s, floatParticleSpecial 20s linear infinite 4.6s;
}

.hero-particle-6 {
    width: 6px;
    height: 6px;
    top: 25%;
    left: 75%;
    animation: particleAppear 1s ease forwards 3.8s, floatParticleSpecial 25s linear infinite 4.8s;
}

/* Новые анимации для hero секции */
@keyframes contentAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
        filter: blur(5px) drop-shadow(0 0 10px rgba(0,0,0,0.1));
    }
    70% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
        filter: blur(0) drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0) drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes decorAppearLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotate(-20deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes decorAppearRight {
    0% {
        opacity: 0;
        transform: translateX(50px) rotate(20deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes particleAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes floatLeft {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes floatRight {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(25px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(20px);
        opacity: 1;
    }
    50% {
        transform: translateY(0) translateX(40px);
        opacity: 0.8;
    }
    75% {
        transform: translateY(20px) translateX(20px);
        opacity: 1;
    }
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
}

@keyframes floatParticleSpecial {
    0% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, -50px);
        opacity: 0.8;
    }
    50% {
        transform: translate(200px, 0);
        opacity: 0.6;
    }
    75% {
        transform: translate(100px, 50px);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Основная пульсация */
@keyframes mainPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.85);
        box-shadow: 0 0 30px 10px rgba(255,255,255,0.6);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 0 60px 25px rgba(255,255,255,0.9);
    }
}

/* Вторичная пульсация */
@keyframes secondaryPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* Пульсация центрального свечения */
@keyframes centerPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.9);
        filter: blur(5px);
    }
    50% {
    opacity: 1;
        transform: scale(1.1);
        filter: blur(3px);
    }
}

/* Пульсация фонового свечения */
@keyframes backgroundPulse {
    0%, 100% {
    opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Дополнительные стили для блока преимуществ */
.advantages {
    background-color: #f7f7f7;
    padding: 60px 0 80px;
}

.advantages-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.advantages-header h2 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 0;
}

.advantages-items {
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-item {
    padding: 0 15px;
    max-width: 250px;
    margin: 0 auto;
}

.advantage-icon {
    margin-bottom: 15px;
    color: #555;
}

.advantage-icon i {
    font-size: 38px;
}

.advantage-item h3 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.advantage-item p {
        font-size: 14px;
    line-height: 1.4;
    color: #666;
}

@media (max-width: 1140px) {
    .advantage-item {
        max-width: 220px;
    }
}

@media (max-width: 992px) {
    .advantages-header h2 {
        font-size: 34px;
    }
    
    .advantage-item {
        margin-bottom: 30px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .advantages-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .advantages-header h2 {
        font-size: 26px;
    }
    
    .advantage-item {
        margin-bottom: 40px;
    }
    
    .advantage-item:last-child {
        margin-bottom: 0;
    }
}

/* Стили для блока "О нас" */
.about-us {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-us-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-us-content {
    flex: 1;
    max-width: 600px;
}

.about-us-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
}

.about-us-separator {
    width: 80px;
    height: 2px;
    background-color: #333;
    margin-bottom: 30px;
}

.about-us-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.about-us-image {
    flex: 1;
    max-width: 500px;
}

.about-us-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-us-cta {
    margin-top: 30px;
}

.about-us-button {
    display: inline-block;
    padding: 12px 30px;
    background: none;
    color: #333;
    border: 1px solid #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.about-us-button:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 992px) {
    .about-us-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-us-content, 
    .about-us-image {
        max-width: 100%;
    }
    
    .about-us-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .about-us {
        padding: 60px 0;
    }
    
    .about-us-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .about-us-title {
        font-size: 28px;
    }
    
    .about-us-content p {
    font-size: 15px;
    }
} 