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

html {
    overflow-x: hidden;
}

body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --pumpkin: #FF7518;
    --black: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--black);
}

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

/* Header */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    & img{
        height: 40px;
        margin-right: 10px;
        transition: height 0.3s ease;
    }
}

header.scrolled .logo img {
    height: 30px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--pumpkin);
    transition: font-size 0.3s ease;
}

header.scrolled .logo h1 {
    font-size: 1.4rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--pumpkin);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.85) 100%), 
                url('assets/images/Imatge\ 167.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 110px 0 4rem 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--pumpkin);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}


/* Event Section */
.event-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.event-header {
    text-align: center;
    margin-bottom: 3rem;
}

.boar-icon {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
}

.event-header h2 {
    font-size: 3rem;
    color: var(--black);
    border-bottom: 4px solid var(--pumpkin);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.event-description {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #333;
}

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

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--pumpkin);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 117, 24, 0.3);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.detail-card h3 i {
    color: var(--pumpkin);
    margin-right: 0.5rem;
}

.detail-card p {
    color: #555;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.image-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 117, 24, 0.4);
    cursor: pointer;
}

/* Registration Section *//* Registration Section */
.registration-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
                url('../assets/images/Imatge\\ 167.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.registration-section h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.registration-section p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.registration-description {
    font-weight: 600;
    color: var(--black);
}

.btn-register {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3rem;
    background-color: var(--pumpkin);
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 117, 24, 0.3);
}

.btn-register:hover {
    background-color: #e66610;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 117, 24, 0.5);
}

/* Latest Post Section */
#latest {
    padding: 2rem 0;
    background-color: var(--white);
}

#latest h2 {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    text-align: center;
}

#latest h2 a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
}

#latest h2 a:hover {
    color: var(--pumpkin);
}

#latest .latest-content {
    max-width: 800px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
    font-size: 1rem;
    overflow: hidden;
    width: 100%;
}

#latest .latest-content img {
    max-width: 100%;
    width: auto;
    max-height: 400px;
    height: auto;
    border-radius: 10px;
    margin: 0.5rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: contain;
}

#latest .latest-content iframe {
    max-width: 100%;
    margin: 0.5rem 0;
}

#latest .latest-content p {
    margin-bottom: 0.5rem;
}

#latest .latest-content h3,
#latest .latest-content h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.btn-read-more {
    display: inline-block;
    margin: 1rem auto 0;
    padding: 1rem 2rem;
    background-color: var(--pumpkin);
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 117, 24, 0.3);
}

.btn-read-more:hover {
    background-color: #e66610;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 117, 24, 0.5);
}

#latest .container {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.blog-section h2 {
    font-size: 2.5rem;
    color: var(--black);
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 4px solid var(--pumpkin);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.blog-section .container:first-child {
    text-align: center;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-post {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--pumpkin);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 117, 24, 0.3);
}

.blog-post a {
    display: block;
}

.blog-post img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.blog-post a img:hover {
    transform: scale(1.02);
}

.blog-post h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.blog-post h3 a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: var(--pumpkin);
}

.blog-post p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-post .post-images {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}


.btn-more-posts {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background-color: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-more-posts:hover {
    background-color: var(--pumpkin);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 117, 24, 0.4);
}

.blog-section .container:last-child {
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--black);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--pumpkin);
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info p i {
    color: var(--pumpkin);
    margin-right: 0.5rem;
}

.contact-info .social-link {
    color: var(--pumpkin);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info .social-link:hover {
    color: #e66610;
}

.contact-info .social-link i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #0d0d0d;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: var(--black);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 100;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .event-header h2 {
        font-size: 2rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .boar-icon {
        max-width: 120px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .image-gallery img {
        height: 200px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post {
        padding: 1.5rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .blog-post img {
        max-width: 100%;
        height: auto;
    }
    
    .blog-section h2 {
        font-size: 2rem;
    }
    
    .blog-section .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}