/*
* Homenizza - Styles
* Theme: Nature
* Colors:
* - Background: #FFFFFF
* - Primary accent: #D0E8D0
* - Secondary accent: #A9C9AC
* - Text: #1F1F1F
* - Buttons: #A9C9AC
* Fonts:
* - Headings: 'Playfair Display', serif
* - Body: 'Open Sans', sans-serif
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #1F1F1F;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1F1F1F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #A9C9AC;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1F1F1F;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

h4 {
    font-size: 2.2rem;
}

p {
    margin-bottom: 1.6rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background-color: #A9C9AC;
}

.section-header p {
    font-size: 1.8rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.primary-btn {
    background-color: #A9C9AC;
    color: #FFFFFF;
}

.primary-btn:hover {
    background-color: #8eb591;
    color: #FFFFFF;
}

.secondary-btn {
    background-color: transparent;
    color: #1F1F1F;
    border: 2px solid #A9C9AC;
}

.secondary-btn:hover {
    background-color: #A9C9AC;
    color: #FFFFFF;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 5rem;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 3rem;
}

.nav-list a {
    font-weight: 600;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #A9C9AC;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 20rem 0 15rem;
    background: url('../images/img00.jpg') no-repeat center/cover;
    text-align: center;
}

.hero:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
    color: #FFFFFF;
}

.hero-slogan {
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 2rem;
    color: #A9C9AC;
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-text {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease 0.4s both;
    color: #FFFFFF;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ABOUT SECTION ========== */
.about {
    background-color: #F9FCFA;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature svg {
    margin-bottom: 1.5rem;
}

.feature h4 {
    margin-bottom: 1rem;
}

/* ========== PHILOSOPHY SECTION ========== */
.philosophy {
    background-color: #FFFFFF;
}

.philosophy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5rem;
}

.philosophy-text {
    flex: 1;
    min-width: 300px;
}

.philosophy-image {
    flex: 1;
    min-width: 300px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.philosophy-principles {
    margin-top: 3rem;
}

.philosophy-principles li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.principle-icon {
    margin-right: 1.5rem;
}

.principle-text {
    flex: 1;
}

/* ========== SERVICES SECTION ========== */
.services {
    background-color: #F9FCFA;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

.service-card p {
    margin-bottom: 2.5rem;
}

/* ========== RECIPES SECTION ========== */
.recipes {
    background-color: #FFFFFF;
}

.recipes-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    background-color: transparent;
    border: 2px solid #D0E8D0;
    color: #1F1F1F;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #A9C9AC;
    border-color: #A9C9AC;
    color: #FFFFFF;
}

.recipes-slider {
    position: relative;
    overflow: hidden;
}

.recipe-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
    display: flex;
    flex-wrap: wrap;
}

.recipe-image {
    flex: 1;
    min-width: 300px;
}

.recipe-content {
    flex: 2;
    min-width: 300px;
    padding: 3rem;
}

.recipe-info {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.4rem;
}

.recipe-description {
    font-style: italic;
    margin-bottom: 2rem;
}

.recipe-details {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.recipe-ingredients,
.recipe-instructions {
    flex: 1;
    min-width: 250px;
}

.recipe-ingredients h4,
.recipe-instructions h4 {
    margin-bottom: 1.5rem;
    color: #A9C9AC;
}

.recipe-ingredients ul li,
.recipe-instructions ol li {
    margin-bottom: 0.8rem;
}

.recipe-instructions ol {
    list-style-type: decimal;
    padding-left: 2rem;
}

.recipes-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #D0E8D0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #A9C9AC;
}

.slider-prev,
.slider-next {
    background: none;
    border: none;
    font-size: 2.4rem;
    cursor: pointer;
    color: #1F1F1F;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    color: #A9C9AC;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    background-color: #F9FCFA;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    margin-bottom: 4rem;
}

.testimonial-content {
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.quote-icon {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    margin-bottom: 0;
    color: #666;
}

.testimonials-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

/* ========== CONTACT SECTION ========== */
.contact {
    background-color: #FFFFFF;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-hours {
    margin: 3rem 0;
}

.contact-hours h4 {
    margin-bottom: 1.5rem;
}

.contact-hours ul li {
    margin-bottom: 0.8rem;
}

.map-container {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A9C9AC;
    box-shadow: 0 0 0 2px rgba(169, 201, 172, 0.2);
}

.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.form-checkbox input {
    width: 2rem;
    height: 2rem;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #F9FCFA;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 5rem;
    margin-bottom: 1.5rem;
}

.footer-nav,
.footer-legal {
    flex: 1;
    min-width: 200px;
}

.footer-nav h4,
.footer-legal h4 {
    margin-bottom: 2rem;
}

.footer-nav ul li,
.footer-legal ul li {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #E0E0E0;
}

/* ========== LEGAL PAGES ========== */
.legal-content {
    padding: 14rem 0 8rem;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.legal-text h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-text ul {
    list-style-type: disc;
}

.legal-text ol {
    list-style-type: decimal;
}

.legal-text ul li,
.legal-text ol li {
    margin-bottom: 1rem;
}

/* ========== SUCCESS PAGE ========== */
.success-content {
    padding: 14rem 0 8rem;
    text-align: center;
}

.success-message {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.success-icon {
    margin-bottom: 3rem;
}

.success-message h1 {
    margin-bottom: 2rem;
}

.success-message p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
}

.success-details {
    margin-bottom: 4rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.back-home {
    margin-top: 3rem;
}

/* ========== BACK TO TOP BUTTON ========== */
#back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #A9C9AC;
}

#back-to-top:hover svg path {
    fill: #FFFFFF;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    animation: fadeIn 1s ease;
}

.slide-up {
    animation: slideUp 1s ease;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1024px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }

    section {
        padding: 6rem 0;
    }

    .hero {
        padding: 18rem 0 12rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 8rem 3rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        margin-left: 0;
        width: 100%;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 1rem 0;
    }

    .about-content,
    .philosophy-content,
    .contact-content {
        gap: 3rem;
    }

    .recipe-card {
        flex-direction: column;
    }

    .recipe-image {
        min-width: 100%;
    }

    .recipe-content {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 4.2rem;
    }

    .hero-slogan {
        font-size: 2.4rem;
    }

    .filter-btn {
        font-size: 1.4rem;
        padding: 0.8rem 1.6rem;
    }

    .success-actions {
        flex-direction: column;
        gap: 1.5rem;
    }

    .success-message {
        padding: 3rem;
    }
}