/* Google Fonts */

/* Roboto Slap */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

/* Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Estils Generals */

body{
  margin: 0;
}

html {
  scroll-behavior: smooth;
}



/* BURGER MENU */

.nav-mbl{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0 5%;
}

.nav-mbl img{
   width: auto;
    max-height: 90px;
    max-width: 50%;
    margin-top: 10px;
}

/* Estat tancat */
.exit-mobile { display: none; }
.icon-bar { display: block; }

/* Estat obert  */
.menu-toggle.open .exit-mobile { display: block !important; }
.menu-toggle.open .icon-bar { display: none !important; }    

.icon-bar,
.icon-bar1,
.icon-bar2 {
    display: block;
    height: 2px;
    width: 25px;
    background: #fff;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.icon-bar1,
.icon-bar2 {
    width: 18px;
    background: #fff;
}

.icon-bar:before,
.icon-bar:after {
    background: #fff;
    content: "";
    height: 100%;
    left: 4px;
    position: absolute;
    bottom: -6px;
    right: 0;
}

.icon-bar:after {
    bottom: -12px;
    left: 8px;
    top: auto;
}

.icon-bar:before,
.icon-bar:after {
    background: #fff;
    content: "";
    height: 100%;
    left: 4px;
    position: absolute;
    bottom: -6px;
    right: 0;
}

.icon-bar:after {
    bottom: -12px;
    left: 8px;
    top: auto;
}

.icon-bar1 {
    top: 2px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.icon-bar2 {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}


/* 1. Estat inicial per a les seccions de la Home */
.about-section, 
.logos-section,
.hero-content, 
.contact-section .form-wrapper {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

/* 2. Classe d'activació */
.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. Efecte "cascada" per a la graella de logos */
.logo-item {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease-out;
}

.logos-section.reveal-visible .logo-item {
    opacity: 1;
    transform: scale(1);
}

/* MENU mòbils */


.hero-header-mbl{
  display: none;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}


/* Configuració de la Secció Hero */
.hero-section {
  position: relative;
  height: 90vh;
  width: 100%;
  background-image: 
  linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
  url('../img/brasa.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 

  display: flex;
  flex-direction: column;
  color: white;
  overflow: hidden;
  font-family: 'Playfair Display', serif; 
}

/* La Quadrícula (Grid Overlay) */
.grid-overlay {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 15% 25%; /* Ajusta aquests % per canviar la mida dels quadrats */
    pointer-events: none; /* Perquè no interfereixi amb els clics */
}

/* Header: Social, Menú i Idiomes */
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
}



.social-links{
  display: flex;
  flex-direction: row;
  gap: 20px;
 
}

.social-links a{
  background-color: #F9C83B;
  padding: 5px;
  border-radius: 500px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.social-links i{
  color: black;
  font-size: 18px;
}

.right-header{
  display: flex;
  flex-direction: row;
  gap: 100px;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
}

.lang-selector{
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.lang-selector a{
  color: white;
  text-decoration: none;
  opacity: 0.8;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 18px;
  
}
 
.lang-selector a.active {
  font-weight: 600;
  opacity: 1;
}

/* Contingut Central */
.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 6%; 
  z-index: 10;
  margin-top:-90px;
}

.hero-title {
  font-size: 5.5rem;
  font-style: italic;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 0;
}

/* El botó Groc "PROBA'NS" */
.btn-proba {
  background-color: #f1bc2d;
  color: #222;
  padding: 15px 45px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200; /* Molt fina */
  font-size: 3.5rem;
  letter-spacing: 8px;
  text-decoration: none;
  display: inline-block;
}

/* Logotip inferior */
.brand-footer {
  margin-top: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.brand-footer img{
  width: 350px;
  height: auto;
  margin-left: -30px;
}

/* SECCIÓ ABOUT */


.about-section {
    padding: 6% 10% 6% 6%; 
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.about-section .container {
    display: flex;
    align-items: flex-start; /* Alinea el text al principi de la imatge */
    gap: 60px; /* Espai entre imatge i text */
}

.about-image img {
    width: 494px;
    height: auto;
    display: block;
}

.about-text {
    flex: 1.5; /* Dona una mica més d'espai al text */
    font-family: 'Montserrat', sans-serif;
    color: #666; /* Color gris suau */
    line-height: 1.6; /* Interlineat per facilitar la lectura */
    font-size: 21px;
    font-weight: 400;
}

.about-text p {
    margin-bottom: 25px; /* Espai entre paràgrafs */
}


/* SECCIÓ LOGOS DEL GRUP */

.logos-section {
    padding: 80px 50px;
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px; 
    max-width: 1100px;
    width: 100%;
    align-items: center; 
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

/* Hover opcional per als logos */
.logo-item img:hover {
    filter: grayscale(0%);
}


/* SECCIÓ DE CONTACTE */

.contact-section {
    position: relative;
    background-color: #2A2D2C; 
    padding: 80px 0;
    color: white;
    overflow: hidden;
}

.contact-container {
    margin: 0 auto;
    position: relative;
    z-index: 2; 
}

.italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #f1bc2d;
    font-size: 6rem;
    font-weight: 400;
    margin-bottom: 50px;
    padding-left: 10%;
    margin-top: 0;
}

/* Mapa i Targeta Groga */
.map-wrapper {
    position: relative;
    margin-bottom: 80px;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255,255,255,0.1);
}

.info-card {
    position: absolute;
    bottom: -140px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f1bc2d;
    color: #333;
    padding: 20px;
    width: 60%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
}

.card-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.card-thumb {
    width: 507px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.card-details {
  display: flex;
  flex-direction: column;
  height: stretch;
  justify-content: space-between;
}

.card-details img{
  width: 420px;
}

.card-details p {
    margin: 5px 0;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    padding-left: 8%;
    color:#000000;
}

.card-details a {
    margin: 5px 0;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    color:#000000;
    text-decoration: none;
}


/* Formulari */
.form-wrapper {
  margin-top: 100px;
  width: 60%;
  display: block;

}

.form-wrapper .italic-serif{
  padding-left: 0;
}

.form-intro {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 22px;
    color: #fff;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #F9C83B;
    padding: 15px;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #fff;
    outline: none;
}



.form-footer {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-container span{
  font-size: 17px;
}

::placeholder {
    color:#808080;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    opacity: 1; /* Necessari per a Firefox */
    font-size: 22px;
}

.recaptcha-placeholder img{
  width: 396px;
  height: auto;
}

.submit-container {
    margin-top: 30px;
}

.btn-submit {
    background-color: #F9C83B; 
    color: #1a1a1a;
    border:none;
    border-radius: 10px;
    padding: 15px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #F9C83B70;
    transform: translateY(-2px); 
}

.mobile-logos-section-footer{
  display: none;
}

