/**
 * Faretti - Улучшенная типографика
 * Дополнительные стили для красивой типографики на лендинге
 */

/* Улучшенные типографические стили */

/* Основные заголовки */
h1 {
    font-family: var(--font-heading);
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h2 {
    font-family: var(--font-heading);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

h3 {
    font-family: var(--font-heading);
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

/* Основной текст */
p {
    font-family: var(--font-primary);
    font-variation-settings: "wght" 400;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Аккуратные отступы для всего текста */
p + p {
    margin-top: 0.5em;
}

/* Акцентный текст */
.accent-text, blockquote, .quote, em, .section-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-variation-settings: "wght" 400;
    color: #666;
}

/* Подзаголовки секций */
.section-subtitle {
    font-family: 'TT Livret', serif !important;
    font-style: italic !important;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

/* Заголовки секций - с красивым акцентом */
.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.section-header:hover h2:after {
    width: 100px;
}

/* Особые стили для hero-секции */
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Стили для карточек продуктов */
.product-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.product-card:hover h4 {
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

/* Стили для преимуществ */
.advantage-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.advantage-item:hover h3 {
    color: var(--primary-color);
}

.advantage-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Красивый акцент для текста в блоке контактов */
.contact-card h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.contact-card h3:after {
    content: '';
    display: block;
  /*  width: 30px;*/
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 0.3rem;
    transition: width 0.3s ease;
}

.contact-card:hover h3:after {
    width: 60px;
}

/* Стили для футера */
.footer h2, .footer h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer h2:after, .footer h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    margin-top: 0.5rem;
    opacity: 0.5;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.footer h2:hover:after, .footer h3:hover:after {
    width: 50px;
    opacity: 1;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Анимации для текста при наведении */
a, button, .btn, .nav-item, .product-card h4, .advantage-item h3, .contact-card h3 {
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover, button:hover, .btn:hover, .nav-item:hover, 
.product-card:hover h4, .advantage-item:hover h3, .contact-card:hover h3 {
    transform: translateY(-2px);
}

/* Особые стили для начертаний */
.light-text {
    font-variation-settings: "wght" 300;
}

.bold-text {
    font-variation-settings: "wght" 700;
}

.extra-bold-text {
    font-variation-settings: "wght" 800;
}

/* Красивые отступы и размер текста на всем сайте */
body {
    line-height: 1.6;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Красивый текст для кнопок */
.btn {
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Улучшенные стили для главного заголовка */
h1 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Улучшенные стили для брендового названия FARETTI PERFETTO */
#perfetto .section-header h2 {
    font-family: var(--font-accent);
    font-weight: bold;
    font-style: italic;
    text-transform: capitalize;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    font-size: 3.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#classico .section-header h2,
#uno .section-header h2 {
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    font-size: 3.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Улучшенные стили для подзаголовка "итальянский десерт" */
#perfetto .section-subtitle,
#classico .section-subtitle,
#uno .section-subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-variation-settings: "wght" 400;
    letter-spacing: 0.03em;
    font-size: 1.6rem;
    margin-top: 3px;
    color: #555;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.05);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    #perfetto .section-header h2,
    #classico .section-header h2,
    #uno .section-header h2 {
        font-size: 2.5rem;
    }
    
    #perfetto .section-subtitle,
    #classico .section-subtitle,
    #uno .section-subtitle {
        font-size: 1.3rem;
    }
} 