:root {
  --color-principal: #1a237e;
  --color-accent: #ffca28;
  --color-text: #333;
  --font-principal: 'Montserrat', sans-serif;
}

/* Base */
body {
  margin: 0;
  font-family: var(--font-principal);
  color: var(--color-text);
  background: #fff;
}

/* Container */
    .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 60px;
      padding-bottom: 60px;
      max-width: 1000px;
      margin: 0 auto;
    }

    .text-content {
      max-width: 50%;
    }

    .text-content h1 {
      font-size: 3em;
      color: var(--color-principal);
      margin-bottom: 10px;
    }

    .text-content p {
      font-size: 2em;
      color: var(--color-principal);
      margin-bottom: 50px;
    }

.cta-button {
  background:var(--color-accent);;
  color: var(--color-principal);
  font-weight: bold;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #f4b400;
}


    .image-content img {
      max-width: 350px;
      border-radius: 10px;
    }

    @media (max-width: 768px) {
      .container {
        flex-direction: column;
        text-align: center;
      }

      .text-content, .image-content {
        max-width: 100%;
      }



      .image-content {
        margin-top: 20px;
      }
    }

/* Header */
/* --- Navbar --- */

header {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-principal);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text);
  max-width: 25%;
}



.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

/* Responsive */
/* --- MENU HAMBURGUESA --- */

.nav-links a,
.dropbtn,
.dropdown-content button {
  font-family: var(--font-principal);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.dropbtn:hover,
.dropdown-content button:hover {
  color: #007bff;
}


.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #fff;
  min-width: 160px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  flex-direction: column;
}

.dropdown-content button {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  font-size: 0.95rem;
}

.dropdown:hover .dropdown-content {
  display: flex;
}


/* --- Dropdown original para escritorio --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 16px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;  /* justo debajo del botón */
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dropdown-content button {
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: white;
  cursor: pointer;
  text-align: left;
}

.dropdown-content button:hover {
  background-color: #ddd;
}


/* --- Estilos menú hamburguesa para móvil --- */

/* Ocultar menú principal y mostrar hamburguesa en móvil */
@media (max-width: 768px) {
  /* Haz que el dropdown ya no sea inline, para que pueda ser bloque */
  .dropdown {
    display: block;
  }

  /* Dropdown content ya no está absolute, se integra en el flujo */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: white;
    display: none; /* por defecto oculto */
    border-radius: 0 0 4px 4px;
    margin-top: 0;
  }

  /* Para mostrar el dropdown cuando se active via JS */
  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* --- Estilos para el botón hamburguesa --- */
.hamburger {
  display: none; /* oculto por defecto en escritorio */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black;
  border-radius: 2px;
}

/* Mostrar hamburguesa en móvil */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Ocultar el menú principal inicialmente */
  .nav-links {
    padding: 25px 40px;
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 55px; /* ajusta según altura navbar */
    right: 0;
    width: 200px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  /* Mostrar menú al activar */
  .nav-links.active {
    display: flex;
  }
}




/* Hero */
    
    .serveis-section {
      width: 100%;
      padding: 60px 0px;
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #f2f2f2;
    }

    #services-title {
      font-size: 28px;
      color: #0b2b52;
      font-weight: bold;
      margin-bottom: 40px;
    }

    .serveis-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      max-width: 800px;
      width: 100%;
    }

    .servei {
      background-color: white;
      border-radius: 12px;
      padding: 30px 20px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease;
    }

    .servei:hover {
      transform: translateY(-4px);
    }

    .servei img {
      height: 150px;
      margin-bottom: 20px;
    }

    .servei p {
      margin: 0;
      font-size: 16px;
      color: #0b2b52;
      line-height: 1.4;
    }

    @media (max-width: 600px) {
      .serveis-grid {
        grid-template-columns: 1fr;
      }
    }
    
.sobre-nosaltres {
  padding: 4rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.sobre-nosaltres h2 {
  font-size: 2.2rem;
      color: var(--color-principal);
  margin-bottom: 1.5rem;
}

.sobre-nosaltres p {
  font-size: 1.1rem;
  color: #444;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

.css_honeypot{
left: -9999px!important;
position: absolute!important;
}

.contacte {
  padding: 4rem 1rem;
  background: #f2f2f2;
  text-align: center;
}

.contacte h2 {
  font-size: 2.2rem;
      color: var(--color-principal);
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px; /* Cantons arrodonits iguals als inputs */
  font-size: 16px;
  background-color: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Estils específics per personalitzar la fletxa del desplegable */
.form-group select {
  appearance: none; /* Elimina l'estil per defecte del navegador */
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Fletxa personalitzada elegant */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px; /* Espai per a la fletxa */
  cursor: pointer;
}

/* Efecte en fer clic (focus) */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #fbc02d; /* Canvia-ho pel color primari de la teva web si vols */
  box-shadow: 0 0 5px rgba(251, 192, 45, 0.4);
}

.contacte p {
  color: #555;
  margin-bottom: 2rem;
}

.form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-principal);
  resize: vertical;
}

.form-status {
  margin-top: 1.5rem;
  font-weight: 600;
      color: var(--color-principal);
}

.footer-text {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: underline;
  margin: 0 1rem;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: none;
}

footer {
  background-color: #1f1f1f;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-lang {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.footer-lang button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 0.3rem;
  padding: 0;
  transition: transform 0.2s;
}

.footer-lang button:hover {
  transform: scale(1.1);
}

.img_lang{
  width: 20px;
}




/* --- casal d'estiu --- */
.casal-section {
  padding: 2% 40px;
  background: linear-gradient(to bottom, #fff7ed, #ffffff, #fef9c3);
}

.container_casal {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffedd5;
  color: #ea580c;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.casal_titol {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: black;
  margin-bottom: 24px;
}

.casal_titol span {
  display: block;
  color: #f97316;
}

.description1 {
  font-size: 1.3em;
  line-height: 1.7;
  color: black;
  margin: 0 auto 40px auto;
  max-width: 550px;
  text-align: center;
}

.info-grid-casal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-card-casal {
  background: white;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid #fed7aa;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.label-casal {
  font-size: 1.1em;
  margin: 0;
}

.value-casal {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.img-lateral {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  opacity: 0.75;
  pointer-events: none;
}

.img-lateral.esquerra {
  left: 30px;
  width: 25%;
}

.img-lateral.dreta {
  right: 30px;
  width: 25%;
}

/* important */
.casal-section {
  position: relative;
  overflow: hidden;
}

/* responsive */
@media (max-width: 768px) {
  .img-lateral {
    display: none;
  }
}

@media (max-width: 768px) {

  .info-card-casal {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 4px;
  }

  .label-casal {
    text-align: center;
  }

  .value-casal {
    text-align: center;
  }

  .info-grid-casal {
    grid-template-columns: 1fr;
  }
  .img-lateral.esquerra,
  .img-lateral.dreta {
    display: none;
  }
}

.visual-card {
  background: white;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  max-width: 500px;
  margin: 0 auto;
}

.highlight-box1 {
  min-height: 280px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fb923c, #facc15);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.small-text1 {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 10px;
}

.h3rese {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.highlight-description1 {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}



.casal_titol {
  text-align: center;
}

.casal_titol span {
  display: block;
  text-align: center;
}

.boto-inscripcio {
  margin-top: 40px;
  text-align: center;
}

.btn-casal {
  display: inline-block;
  padding: 18px 40px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
  transition: 0.3s ease;
}

.btn-casal:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.35);
}

/* ==========================================
   SECCIÓ CONTACTE I ICONES (FIX DEFINITIU)
   ========================================== */

/* Contenidor principal de les icones */
.icones-section div.icones {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5rem !important;
  flex-wrap: wrap !important;
}

/* Enllaç del correu: Imatge i text SEMPRE de costat i centrats verticalment */
.icones-section .bloc-correu a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: var(--color-principal) !important;
  font-family: var(--font-principal) !important;
  font-size: 1rem !important;
}

/* Imatges / Icones */
.icones-section img.icones {
  height: 60px !important;
  width: auto !important;
  display: block !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
  opacity: 0.85 !important;
}

/* Efecte Hover */
.icones-section img.icones:hover {
  transform: scale(1.12) !important;
  opacity: 1 !important;
}

/* --- ADAPTACIÓ MÒBIL --- */
@media (max-width: 768px) {
  /* En mòbil les 3 opcions es posen en vertical */
  .icones-section div.icones {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Redueix mida d'icones per a pantalles petites */
  .icones-section img.icones {
    height: 45px !important;
  }

  /* El correu se manté en horitzontal (icona + text a la dreta) */
  .icones-section .bloc-correu a {
    font-size: 0.9rem !important;
    word-break: break-all;
  }
}