/* Importar fuentes locales */
@font-face {
    font-family: 'Acta';
    src: url('../fonts/acta-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acta Book';
    src: url('../fonts/acta-book.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Articulat';
    src: url('../fonts/Articulat_CF_Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Articulat';
    src: url('../fonts/Articulat_CF_Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Articulat', 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #ffffff;
    font-weight: normal;
    background: #fff;
   
        overflow-x: hidden;
        max-width: 100vw;
     
      
}

/* Contenedor principal de la página */
.page-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    
}


/* Sección Hero con gradiente sobre imagen - FONDO AL 100% */
.hero-section {
    background:
        linear-gradient(270deg, #FFFFFF 0%, #00000098 50%, #000000 100%),
        url('../images/imatge-fons-web.webp') center/cover no-repeat;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    position: relative;
    min-height: 100vh;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-overlay {
    background: transparent linear-gradient(270deg, #FFFFFF00 0%, #00000098 0%, #000000 100%) 0% 0% no-repeat padding-box;
    opacity: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    padding: 30px 0px;
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1250px;
    margin: 0 auto;
}

.logo img {
    height: 56px;
    width: auto;
}

/* Menú hamburguesa (oculto en desktop) */
button { color:#fff;}
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    
    padding: 5px;
    width: 40px;
    
}


.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    margin-top: 5px;
    
    transition: 0.3s;
}
.menu-toggle span:first-child { margin-top: 0px;}
.main-nav {
    display: flex;
    gap: 25px;
}

.nav-btn {
    font-family: 'Acta', sans-serif;
    font-weight: bold;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 1px;
}

/* Colores específicos para cada botón */
.nav-btn.agraria {
    background: #2F5B2A; /* Verde */
}

.nav-btn.espais {
    background: #B98C75; /* Beige */
}

.nav-btn.quotidiana {
    background: #D94E27; /* Naranja */
}

/* Hover común para todos */
.nav-btn:hover {
    background: white;
    color: black;
    
}

/* Contenido Hero - Texto a la izquierda SIN margin auto */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0px;
}

.hero-text-container {
    max-width: 400px;
    text-align: left;
}

.hero-title {
    font-family: 'Acta', serif;
    font-size: 4.2rem;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: 30px;
    letter-spacing: 2px;
    line-height: 1;

}

.hero-subtitle {
    font-family: 'Acta Book', serif;
    font-size: 1.9rem;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.2;

}

.intro-text {
    font-family: 'Articulat', sans-serif;
    font-weight: normal;
}

.intro-text p {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

/* Secciones de contenido - FONDOS AL 100% */
.content-section {
    padding: 60px 0;
    color: #2c3e50;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
}

/* Contenedores internos para el contenido */
.section-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0px;
}
.section-inner-header {
    width: 1250px;
    margin: 0 auto;
    padding: 0px;
}


.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0px;
}

/* Colores de fondo específicos */
.section-agraria {
    background: #2F5B2A; /* Verde */
    color: white;
}

.section-espais {
    background: #B98C75; /* Beige */
    color: white;
}

.section-quotidiana {
    background: #D94E27; /* Naranja */
    color: white;
}
#agraiments { padding: 100px 0;}

.section-agraiments {
    background: 
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url('../images/imatge-fons-web.webp') center/cover no-repeat;

    color: white;
}
.section-header {
    margin-bottom: 60px;
    text-align: left;
}

#agraiments .section-header {
    margin-bottom: 0px;
    text-align: left;
}

.section-header h2 {
    font-family: 'Acta', serif;
    font-size: 4.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing:2px;
    color: inherit;
    line-height: 1;
    
}

.section-header h3 {
    font-family: 'Acta', serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing:2px;
    color: inherit;
    line-height: 1;
    
}

.section-text {
    font-family: 'Articulat', sans-serif;
    font-weight: normal;
    color: inherit;
    text-align: left;
}

.section-text p {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}


.section-text strong {
    font-family: 'Articulat', sans-serif;
    font-weight: bold;
}

/* Galería */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 100%;
}

.gallery-item {
    text-align: center;
    font-family: 'Articulat', sans-serif;
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    border-radius: 10px;
    margin-bottom: 15px;
    font-family: 'Articulat', sans-serif;
}

.image-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-family: 'Articulat', sans-serif;
    font-weight: normal;
}

/* Footer blanco */
.main-footer {
    background: white;
    padding: 30px 0;
    color: #2c3e50;
    font-family: 'Articulat', sans-serif;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}

.logo-item {
    height: 50px;
    display: flex;
    align-items: center;
    
}

.logo-centrado { justify-content: center; }
.logo-derecha { justify-content: right; }

.logo-item img {
    height: 50px;
}
.salto { margin-bottom: 50px;}

.container-columns {
    display: flex;
    flex-wrap: wrap; /* Permite que se apilen en móvil */
    gap: 20px;
}

.content-left {
    flex: 0 0 50%; /* 60% de ancho */
}

.content-right {
    flex: 0 0 44%; /* 40% de ancho */
}

.content-right p { margin-bottom: 0px; }
.content-right .image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.content-right img {
    width: 100%;
    height: auto;
    display: block;
}

.content-right .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* capa negra semitransparente */
    pointer-events: none; /* no bloquea clicks */
}

/* Imagen normal */
.clickable-image {
    max-width: 550px; /* tamaño inicial */
    cursor: pointer;
    transition: transform 0.3s;
}

.clickable-image:hover {
    transform: scale(1.05); /* efecto pequeño al pasar mouse */
}

/* Modal */
.modal {
    display: none; /* oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* capa negra semitransparente */
}

/* Imagen ampliada dentro del modal */
.modal-content {
    margin: 1% auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
}

/* Botón cerrar */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* Responsive */
@media (max-width: 1300px) {
    .page-wrapper {
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.7rem;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-inner,
    .footer-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .content-left,
    .content-right {
        flex: 0 0 100%;
    }
    .content-right {
        margin-top: 20px; /* espacio entre columnas cuando se apilan */
    }
    .section-inner-header {
        width: auto;
        padding: 0 30px;
     
    }
    

    .logo { max-width: 60%; }
    .logo img { max-width: 100%; height: auto; }
    
.logo-derecha { justify-content: center; }

    .main-header {
        padding: 20px 15px !important;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-btn {
        text-align: left;
        width: 100%;
        padding: 5px 0;
    font-size: 16px;
    font-family: 'Acta Book';
}
    .nav-btn.quotidiana, .nav-btn.espais, .nav-btn.agraria { background: none;  }
    
    

    .hero-content {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }
    
    .hero-text-container {
        max-width: 100%;
        text-align: left;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    .section-header h3 {
        font-size: 1.5rem;
    }
    .section-header,
    .section-text {
        text-align: left;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-inner,
    .footer-container {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        padding: 5px 0;
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    .section-header h3 {
        font-size: 1.5rem;
    }
    .logos-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        right: 10px;
        top: 20px;
    }
    
    .section-inner,
    .footer-container {
        padding: 0 30px;
    }
    
    /* Ajustar márgenes de secciones para móvil */
    .content-section {
        margin-left: -50.5vw;
        margin-right: -50.5vw;
    }
}  


/* Wrapper centrado y con espacio lateral */
.carousel-wrapper {
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
    padding: 0 60px; /* espacio para las flechas fuera de la imagen */
  }
  
  /* Carrusel */
  .carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-item {
    min-width: 100%;
    position: relative;
  }
  
  .carousel-item img {
    width: 100%;
    display: block;
  }
  
  /* Caption */
  .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
    font-size: 1rem;
  }
  
  /* Flechas */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: 100;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
  }
  
  .carousel-btn:hover {
    color: #ddd;
  }
  
  /* Desktop: fuera de la imagen (gracias al padding del wrapper) */
  @media (min-width: 769px) {
    .carousel-btn.prev {
      left: 0; /* pegada al borde del wrapper */
    }
    .carousel-btn.next {
      right: 0;
    }
  }
  
  /* Móvil: dentro de la imagen */
  @media (max-width: 768px) {
    .carousel-btn.prev {
      left: 10px;
    }
    .carousel-btn.next {
      right: 10px;
    }
    .carousel-wrapper {
        padding: 0; /* elimina el padding lateral en móvil */
      }
  
}
  
