/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9; /* Светло-серый фон */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    background-color: #2e7d32; /* Зеленый цвет для шапки */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff; /* Белый цвет для названия сайта */
    margin: 0;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

header nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #4caf50;
}

/* Секция героя */
.hero {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный черный фон на 40% */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.hero .button-container {
    display: flex;
    justify-content: center; /* Центрирование кнопок */
    gap: 20px; /* Пространство между кнопками */
}

.cta-button {
    background-color: #4caf50; /* Зеленый цвет для кнопок */
    color: #ffffff; /* Белый цвет текста кнопок */
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin: 15px;
    border: none;
}

.cta-button:hover {
    background-color: #388e3c; /* Темнее зеленый цвет для hover */
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Основной контент */
.main-content {
    background-color: #fff;
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.content-card {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.content-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Секции кнопок возвращения */
.return-section {
    margin-top: 40px; /* Уменьшенный отступ сверху */
    text-align: center;
}

.return-section .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #2e7d32; /* Зеленая рамка */
    transition: all 0.3s ease;
    background-color: #ffffff; /* Белый фон для кнопок */
    color: #2e7d32; /* Зеленый цвет текста кнопок */
}

.return-section .cta-button:hover {
    background-color: #2e7d32; /* Зеленый цвет для hover */
    color: #ffffff; /* Белый цвет текста для hover */
    border-color: #2e7d32; /* Зеленая рамка для hover */
}

/* Сетка рецептов */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.recipe-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Размещение содержимого по краям */
    height: 100%;
    padding: 15px; /* Добавлен внутренний отступ */
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100%;
    height: 200px; /* Уменьшил высоту изображений */
    object-fit: cover; /* Сохраняем пропорции */
    border-radius: 10px 10px 0 0; /* Закругляем верхние углы изображений */
}

.recipe-content {
    padding: 15px;
    flex: 1; /* Растягиваем контент по вертикали */
}

.recipe-card h3 {
    font-size: 20px;
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    color: #2e7d32; /* Зеленый цвет для заголовков рецептов */
}

.recipe-card p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

/* Кнопки "Dettagli" в карточках рецептов */
.recipe-card .button-container-return {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    margin-top: 20px; /* Уменьшенный отступ сверху */
}

.recipe-card .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #2e7d32; /* Зеленая рамка */
    transition: all 0.3s ease;
    background-color: #ffffff; /* Белый фон для кнопок */
    color: #2e7d32; /* Зеленый цвет текста кнопок */
}

.recipe-card .cta-button:hover {
    background-color: #2e7d32; /* Зеленый цвет для hover */
    color: #ffffff; /* Белый цвет текста для hover */
    border-color: #2e7d32; /* Зеленая рамка для hover */
}

/* Сетка напитков */
.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.drink-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Размещение содержимого по краям */
    height: 100%;
    padding: 15px; /* Добавлен внутренний отступ */
}

.drink-card:hover {
    transform: translateY(-5px);
}

.drink-card img {
    width: 100%;
    height: 200px; /* Уменьшил высоту изображений */
    object-fit: cover; /* Сохраняем пропорции */
    border-radius: 10px 10px 0 0; /* Закругляем верхние углы изображений */
}

.drink-content {
    padding: 15px;
    flex: 1; /* Растягиваем контент по вертикали */
}

.drink-card h3 {
    font-size: 20px;
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    color: #2e7d32; /* Зеленый цвет для заголовков рецептов */
}

.drink-card p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

/* Кнопки "Dettagli" в карточках напитков */
.drink-card .button-container-return {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    margin-top: 20px; /* Уменьшенный отступ сверху */
}

.drink-card .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #2e7d32; /* Зеленая рамка */
    transition: all 0.3s ease;
    background-color: #ffffff; /* Белый фон для кнопок */
    color: #2e7d32; /* Зеленый цвет текста кнопок */
}

.drink-card .cta-button:hover {
    background-color: #2e7d32; /* Зеленый цвет для hover */
    color: #ffffff; /* Белый цвет текста для hover */
    border-color: #2e7d32; /* Зеленая рамка для hover */
}

/* Сетка упражнений */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.exercise-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Размещение содержимого по краям */
    height: 100%;
    padding: 15px; /* Добавлен внутренний отступ */
}

.exercise-card:hover {
    transform: translateY(-5px);
}

.exercise-card img {
    width: 100%;
    height: 200px; /* Уменьшил высоту изображений */
    object-fit: cover; /* Сохраняем пропорции */
    border-radius: 10px 10px 0 0; /* Закругляем верхние углы изображений */
}

.exercise-content {
    padding: 15px;
    flex: 1; /* Растягиваем контент по вертикали */
}

.exercise-card h3 {
    font-size: 20px;
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    color: #2e7d32; /* Зеленый цвет для заголовков рецептов */
}

.exercise-card p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

/* Кнопки "Dettagli" в карточках упражнений */
.exercise-card .button-container-return {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    margin-top: 20px; /* Уменьшенный отступ сверху */
}

.exercise-card .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #2e7d32; /* Зеленая рамка */
    transition: all 0.3s ease;
    background-color: #ffffff; /* Белый фон для кнопок */
    color: #2e7d32; /* Зеленый цвет текста кнопок */
}

.exercise-card .cta-button:hover {
    background-color: #2e7d32; /* Зеленый цвет для hover */
    color: #ffffff; /* Белый цвет текста для hover */
    border-color: #2e7d32; /* Зеленая рамка для hover */
}

/* Сетка советов */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px; /* Добавлен внутренний отступ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Размещение содержимого по краям */
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tip-card img {
    width: 100%;
    height: 150px; /* Уменьшил высоту изображений */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.tip-card h3 {
    font-size: 18px; /* Уменьшил размер заголовка */
    margin: 15px 0 10px;
    font-family: 'Playfair Display', serif;
    color: #2e7d32; /* Зеленый цвет для заголовков советов */
}

.tip-card p {
    font-size: 14px;
    color: #666666;
}

/* Кнопки "Dettagli" в карточках советов */
.tip-card .button-container-return {
    display: flex;
    justify-content: center; /* Выравнивание по центру */
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    margin-top: 20px; /* Уменьшенный отступ сверху */
}

.tip-card .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #2e7d32; /* Зеленая рамка */
    transition: all 0.3s ease;
    background-color: #ffffff; /* Белый фон для кнопок */
    color: #2e7d32; /* Зеленый цвет текста кнопок */
}

.tip-card .cta-button:hover {
    background-color: #2e7d32; /* Зеленый цвет для hover */
    color: #ffffff; /* Белый цвет текста для hover */
    border-color: #2e7d32; /* Зеленая рамка для hover */
}

/* Секция Chiamata all'azione */
.call-to-action {
    background-color: #ffffff; /* Белый фон */
    padding: 60px 0;
    border-radius: 10px;
    margin: 40px auto;
    text-align: center;
}

.call-to-action h2 {
    color: #2e7d32; /* Зеленый цвет для заголовков */
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.call-to-action p {
    color: #333333;
    margin-bottom: 30px;
}

.call-to-action .button-container {
    display: flex;
    justify-content: center; /* Кнопки в центре */
    gap: 20px; /* Пространство между кнопками */
}

/* Специальные стили для главной страницы */
.home .about-us .button-container-return {
    text-align: center;
}

/* Стили для формы контактов */
.contact-form {
    padding: 60px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
}

.contact-form h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    color: #2e7d32; /* Зеленый цвет для заголовков */
}

.contact-form p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333333;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.form-group label {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #2e7d32; /* Зеленый цвет при фокусе */
    outline: none;
}

.contact-form button {
    background-color: #2e7d32; /* Зеленый цвет для кнопки */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.contact-form button:hover {
    background-color: #388e3c; /* Темнее зеленый цвет для hover */
}

/* Секция Informazioni di Contatto */
.contact-info {
    padding: 60px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    color: #2e7d32; /* Зеленый цвет для заголовков */
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333333;
}

.contact-info a {
    color: #2e7d32; /* Зеленый цвет для ссылок */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #388e3c; /* Темнее зеленый цвет для hover */
}

/* Футер */
footer {
    background-color: #2e7d32; /* Зеленый цвет для футера */
    color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #4caf50; /* Светло-зеленый цвет для hover в футере */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 0;
    }

    header h1 {
        font-size: 24px;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 18px;
    }

    .recipe-grid,
    .drinks-grid,
    .exercise-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recipe-card img,
    .drink-card img,
    .exercise-card img,
    .tip-card img {
        height: 150px; /* Уменьшил высоту изображений для мобильных устройств */
    }

    .return-section {
        margin-top: 30px; /* Уменьшенный отступ для мобильных устройств */
    }

    .contact-form h2 {
        font-size: 28px;
    }

    .contact-form p {
        font-size: 14px;
    }

    .contact-form button {
        padding: 12px 30px;
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .contact-info p {
        font-size: 14px;
    }
}