/* 
* Agriturismo Le Due Torri - Main Stylesheet
* https://agriturismoleduetorri.com
* Version: 1.0
*/

/* ========== Base Styles ========== */
:root {
    --primary-color: #45996A;
    --secondary-color: #845D3B;
    --accent-color: #FFB347;
    --light-color: #F5F5F5;
    --dark-color: #2A2A2A;
    --text-color: #333333;
    --link-color: #45996A;
    --link-hover-color: #2E6B48;
    --gray-light: #E8E8E8;
    --gray-medium: #BBBBBB;
    --gray-dark: #777777;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --radius: 4px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --container-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover-color);
}

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

ul, ol {
    list-style: none;
    margin-bottom: 2rem;
}

button {
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 2px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    font-size: 1.8rem;
    margin-top: -4rem;
    margin-bottom: 5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--link-hover-color);
    color: white;
    border-color: var(--link-hover-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    color: var(--primary-color);
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    transition: var(--transition);
}

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

.logo-container {
    flex: 0 0 180px;
}

.logo img {
    width: 100%;
    height: auto;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--dark-color);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.nav-list {
    display: flex;
    margin: 0;
}

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

.nav-list a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    color: white;
    max-width: 800px;
}

.hero h1 {
    color: white;
    font-size: 5.6rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 2.2rem;
    margin-bottom: 4rem;
}

/* ========== Features Section ========== */
.features {
    background-color: white;
}

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

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    background-color: white;
    box-shadow: var(--shadow);
}

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

.feature-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(69, 153, 106, 0.1);
}

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

.feature-card p {
    color: var(--gray-dark);
}

/* ========== About Section ========== */
.about {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* ========== Games Section ========== */
.games {
    background-color: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.game-card {
    padding: 2rem;
    border-radius: var(--radius);
    background-color: var(--light-color);
    box-shadow: var(--shadow);
}

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.game-card p {
    margin-bottom: 0;
}

.news-sources {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-light);
}

.news-sources h3 {
    margin-bottom: 1.5rem;
}

.news-sources ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.news-sources a {
    font-weight: 500;
}

/* ========== Testimonials Section ========== */
.testimonials {
    background-color: var(--gray-light);
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease;
}

.testimonial-card {
    width: 33.333%;
    padding: 0 2rem;
}

.testimonial-content {
    padding: 3rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 3rem;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

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

.testimonial-author {
    text-align: center;
}

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

.testimonial-author p {
    color: var(--gray-dark);
    margin-bottom: 0;
}

.testimonial-dots {
    text-align: center;
    margin-top: 4rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: var(--gray-medium);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg') no-repeat center center / cover;
    text-align: center;
    color: white;
    padding: 10rem 0;
}

.cta h2 {
    color: white;
    margin-bottom: 2rem;
}

.cta p {
    margin-bottom: 4rem;
    font-size: 1.8rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.cta .btn-secondary {
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== Footer ========== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4rem;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--gray-medium);
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray-medium);
}

.footer-bottom-links a:hover {
    color: white;
}

address p {
    margin-bottom: 1rem;
}

address a {
    color: var(--gray-medium);
}

address a:hover {
    color: white;
}

/* ========== Responsive Styles ========== */
@media (max-width: 991px) {
    html {
        font-size: 56.25%; /* 9px */
    }

    .hero h1 {
        font-size: 4.8rem;
    }

    .section-title {
        margin-bottom: 4rem;
    }
}

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

    .menu-toggle {
        display: block;
        z-index: 2000;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 0;
        z-index: 1500;
    }

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

    .nav-list li {
        margin: 2rem 0;
    }

    .nav-list a {
        font-size: 2rem;
    }

    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 6rem 0;
    }

    .hero h1 {
        font-size: 3.6rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .testimonial-slider {
        width: 100%;
        flex-direction: column;
    }

    .testimonial-card {
        width: 100%;
        margin-bottom: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
