/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #343a40;
    background-color: #f5f5f5; /* Более светлый фон */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50; /* Зеленый цвет для названия */
    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: #343a40;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секция героя */
.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.5); /* Полупрозрачный черный фон на 50% */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.button-container {
    text-align: center; /* Выравнивание кнопок по центру */
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Отступ между кнопками */
    font-size: 18px;
}

.cta-button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секzioni контента */
.about, .workouts, .nutrition, .tips, .about-content, .workouts-content, .nutrition-content, .tips-content, .contact-form, .contact-info, .thank-you, .policy-content, .cookies-content, .terms-content, .recipe-content {
    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: 1000px;
}

/* Заголовки секций */
.about h2, .workouts h2, .nutrition h2, .tips h2, .about-content h2, .workouts-content h2, .nutrition-content h2, .tips-content h2, .contact-form h2, .contact-info h2, .thank-you h2, .policy-content h2, .cookies-content h2, .terms-content h2, .recipe-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

/* Текст секций */
.about-content p, .workouts-content p, .nutrition-content p, .tips-content p, .contact-form p, .contact-info p, .thank-you p, .policy-content p, .cookies-content p, .terms-content p, .recipe-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #343a40;
}

/* Сетка allenamenti */
.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Автоматическое адаптирование колонок */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.workout-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%;
}

.workout-card:hover {
    transform: translateY(-10px);
}

.workout-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.workout-card .workout-content {
    padding: 20px;
    flex: 1;
}

.workout-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #343a40;
}

.workout-card p {
    font-size: 16px;
    margin: 0 0 20px;
    color: #6c757d;
}

.workout-card .button-container {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    padding: 10px;
}

.workout-card .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Отступ между кнопками */
    font-size: 18px;
}

.workout-card .cta-button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Сетка nutrizione */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Автоматическое адаптирование колонок */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.nutrition-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%;
}

.nutrition-card:hover {
    transform: translateY(-10px);
}

.nutrition-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.nutrition-card .nutrition-content {
    padding: 20px;
    flex: 1;
}

.nutrition-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #343a40;
}

.nutrition-card p {
    font-size: 16px;
    margin: 0 0 20px;
    color: #6c757d;
}

.nutrition-card .button-container {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    padding: 10px;
}

.nutrition-card .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Отступ между кнопками */
    font-size: 18px;
}

.nutrition-card .cta-button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Сетка consigli */
.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Автоматическое адаптирование колонок */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.tip-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%;
}

.tip-card:hover {
    transform: translateY(-10px);
}

.tip-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tip-card .tip-content {
    padding: 20px;
    flex: 1;
}

.tip-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #343a40;
}

.tip-card p {
    font-size: 16px;
    margin: 0 0 20px;
    color: #6c757d;
}

.tip-card .button-container {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Выравнивание кнопок по нижнему краю */
    padding: 10px;
}

.tip-card .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Отступ между кнопками */
    font-size: 18px;
}

.tip-card .cta-button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секция Chiamata all'Azioni */
.call-to-action {
    text-align: center;
    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;
}

.call-to-action h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.call-to-action p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #343a40;
}

.call-to-action .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.call-to-action .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Отступ между кнопками */
    font-size: 18px;
}

.call-to-action .cta-button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секция Politica sui Cookie */
.cookies-content {
    text-align: center;
    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;
}

.cookies-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.cookies-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #343a40;
}

/* Секция Politica sulla Privacy */
.privacy-content {
    text-align: center;
    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;
}

.privacy-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.privacy-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #343a40;
}

/* Секция Condizioni e Posizioni */
.terms-content {
    text-align: center;
    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;
}

.terms-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.terms-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #343a40;
}

/* Секция Recetta di Esempio */
.recipe-content {
    text-align: center;
    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;
}

.recipe-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.recipe-content h3 {
    font-size: 28px;
    margin: 20px 0 10px;
    color: #343a40;
}

.recipe-content ul, .recipe-content ol {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 30px;
}

.recipe-content ul li, .recipe-content ol li {
    margin-bottom: 10px;
    color: #343a40;
}

.recipe-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #343a40;
}

.recipe-content img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recipe-content .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.recipe-content .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* Отступ между кнопками */
    font-size: 18px;
}

.recipe-content .cta-button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секция Form di Contatto */
.contact-form {
    text-align: center;
    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: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.contact-form p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #343a40;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form label {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background-color: #4CAF50; /* Зеленый цвет для кнопок */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.contact-form button:hover {
    background-color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секция Informazioni di Contatto */
.contact-info {
    text-align: center;
    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: 36px;
    margin-bottom: 30px;
    color: #4CAF50; /* Зеленый цвет для заголовков */
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #343a40;
}

.contact-info a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #45a049; /* Темно-зеленый цвет при наведении */
}

/* Секция Footer */
footer {
    background-color: #4CAF50; /* Зеленый фон для футера */
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ff6347;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e9543c;
}