:root {
    --primary-color: #d1a877;
    --secondary-color: #f7e6d2;
    --text-dark: #4a4a4a;
    --text-light: #6b6b6b;
    --bg-light: #fdfaf6;
    --bg-dark: #b88656;
}

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Tipografia */
h1, h2, h3, h4 {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    font-weight: normal;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    text-align: center;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: var(--text-light);
}

/* Capçalera i navegació */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2em 4em;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.logo {
    font-size: 1.5em;
    color: var(--bg-light);
    margin: 0;
}

.logo-link {
    text-decoration: none;
    color: var(--bg-light);
}

.logo-link:hover {
    opacity: 0.8;
}

.nav a {
    text-decoration: none;
    color: var(--bg-light);
    margin-left: 2em;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Seccions generals */
.content-section {
    padding: 8em 4em;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Secció Hero */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--bg-light);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 2em;
}

.hero-subtitle {
    font-size: 1.5em;
    margin: 0;
    color: var(--secondary-color);
}

.hero-subtitle span {
    display: inline-block;
}

.hero-title {
    font-size: 4em;
    margin: 0.2em 0 0.5em;
    color: var(--bg-light);
}

.cta-button {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8em 2em;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--bg-dark);
}

/* Secció Serveis */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin-top: 3em;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 2em;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

/* Secció Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    margin-top: 3em;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Secció de contacte */
.contact-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3em;
    margin-top: 3em;
    flex-wrap: wrap;
}

.social-links-container {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1em;
}

.social-link {
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.social-link img:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Secció de contacte - Capseta de missatge */
.message-box {
    flex: 1;
    min-width: 250px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 2em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.message-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.box-title {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-bottom: 0.5em;
}

.box-text {
    color: var(--text-dark);
}

.cta-button-small {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6em 1.5em;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1em;
    transition: background-color 0.3s ease;
}

.cta-button-small:hover {
    background-color: var(--bg-dark);
}

/* Pe de pàgina */
.footer {
    text-align: center;
    background-color: var(--bg-dark);
    color: var(--secondary-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4em 2em 2em;
    gap: 2em;
    flex-wrap: wrap;
}

.footer-contact,
.footer-map {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 1em;
}

.footer-contact p {
    margin: 0.5em 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    border: 0;
    height: 250px;
    width: 100%;
}

.copyright-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1em 0;
}

.copyright {
    margin: 0;
}

.back-to-top {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    margin-top: 1em;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--primary-color);
}
/* ========================================= */
/* MEDIA QUERIES - Disseny Responsive    */
/* ========================================= */

/* Ordinadors de sobretaula petits i tablets (mida màxima de 1024px) */
@media (max-width: 1024px) {
    .header {
        padding: 2em;
    }

    .nav a {
        margin-left: 1.5em;
    }

    .hero-title {
        font-size: 3.5em;
    }

    .services-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Telèfons mòbils grans (mida màxima de 768px) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
    }

    .nav {
        margin-top: 1em;
    }
    
    .nav a {
        margin: 0 0.8em;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .section-title {
        font-size: 2em;
    }
    
    .content-section {
        padding: 6em 2em;
    }
    
    .contact-grid {
        flex-direction: column;
        gap: 2em;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2em;
        text-align: center;
    }
    
    .footer-contact, .footer-map {
        text-align: center;
    }

    .map-container iframe {
        height: 200px;
    }
}

/* Telèfons mòbils petits (mida màxima de 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .cta-button {
        padding: 0.6em 1.5em;
    }
    
    .gallery-img {
        height: 200px;
    }
}