:root {
    --gold: #F1B151;
    --dark-bg: #000000;
    --light-text: #FFFFFF;
    --dark-text: #333333;
    --card-bg: #000000;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--light-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 800;
}

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

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

.text-gold {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/main-background.jpg');
    background-size: cover;
    background-position: center 20%;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero-content {
    max-width: 50%;
    padding-left: 5%;
}

.hero-content h1 {
    font-size: 40px;
}

.pre-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--gold);
    font-size: 15px;
    line-height: 21px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--light-text);
    font-size: 18px;
    line-height: 25px;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

/* Button styles (inverted) */
.btn {
    background-color: transparent;
    color: var(--gold);
    padding: 1rem 2rem;
    font-family: var(--font-title);
    font-size: 22px; /* Aumentato */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--gold);
    transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
    }
    .hero-content h1 {
        font-size: 36px; /* Adjusted for mobile */
    }
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    .pre-title {
        font-size: 14px;
    }
    .about-us-content p {
        font-size: 16px;
    }
    .service-card h3 {
        font-size: 1.5rem;
        min-height: auto;
    }
    .btn {
        font-size: 18px;
        padding: 0.8rem 1.5rem;
    }
}

/* General Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    line-height: 56px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gold);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--dark-bg);
    padding: 40px;
    text-align: center;
    border: 2px solid var(--gold);
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px auto;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--light-text);
    min-height: 60px;
}

.service-card p {
    font-family: var(--font-title);
    font-weight: 300;
    line-height: 1.6;
    color: #ccc;
}

/* About Us Section */
.about-us {
    background-color: var(--dark-bg);
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-us-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-us-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-us-content .section-title {
    text-align: left;
    margin-bottom: 30px;
    color: var(--light-text);
}

.about-us-content p {
    font-family: var(--font-title);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

.about-us-content .btn {
    margin-top: auto;
}

/* Responsive About Us */
/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background-color: var(--dark-bg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #222;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 3px solid var(--gold);
}

.testimonial-text {
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #ccc;
}

.testimonial-author {
    font-weight: 700;
    color: var(--gold);
}

/* CTA Section */
.cta {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cta-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
    .cta-content p {
        font-size: 1rem;
    }
}

/* Star Rating */
.star-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.star-icon {
    width: 20px;
    height: 20px;
    fill: var(--gold);
    margin: 0 2px;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    border-top: 1px solid #222;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Allinea in alto */
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-info p,
.footer-hours p {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.copyright-text {
    text-align: center;
    width: 100%; /* Ensure it takes full width to center properly */
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px; /* Spazio tra titolo e icone */
}

.social-links a {
    color: #ccc;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--gold);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center; /* Centra gli elementi figli in un layout a colonna */
    }

    .footer-info,
    .footer-hours,
    .social-links {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center; /* Centra i link social su mobile */
    }

    .social-links a {
        margin: 0 10px;
    }

    /* Order for mobile */
    .social-links {
        order: 1;
        align-items: center;
    }

    .footer-info {
        order: 2;
    }

    .footer-hours {
        order: 3;
    }

    .copyright-text {
        order: 4;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    /* Hero Section Tablet */
    .hero-content h1 {
        font-size: 38px;
    }
    .btn {
        font-size: 20px;
        padding: 0.9rem 1.8rem;
    }

    /* Grids Tablet */
    .services-grid,
    .testimonials-grid,
    .about-us-grid {
        grid-template-columns: 1fr;
    }

    /* About Us Tablet */
    .about-us-content {
        align-items: center; /* Centra gli elementi figli */
    }
    .about-us-content .section-title,
    .about-us-content p,
    .about-us-content .btn {
        text-align: center; /* Centra il testo e il pulsante */
    }
}
