/* Generals */
html {
  scroll-behavior: smooth;
}

body{
    margin: 0;
}


/* 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: #000;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

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

.icon-bar:before,
.icon-bar:after {
    background: #000;
    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: #000;
    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: Invisible i una mica desplaçat cap avall */
.restaurant-row {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Millora el rendiment de l'animació */
}

/* 2. Estat quan la secció és visible */
.restaurant-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Retard per a les imatges (perquè apareguin una mica després que el text) */
.restaurant-row.is-visible .restaurant-gallery {
    transition-delay: 0.3s;
    opacity: 1;
}

/* També fem que la galeria tingui el seu propi efecte */
.restaurant-gallery {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Header de la pàgina Grup */
.grup-header {
    padding: 20px 50px;
    background-color: #fff;
}

.hero-header-mbl{
    display: none;
}

.header-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
}

.logo-grup img {
    height: auto; 
    width: 400px;
}

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

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


/* Estructura de files de restaurants */
.restaurant-row {
    display: flex;
    align-items: start;
    gap: 60px;
    padding: 80px 50px;
    max-width: 1300px;
    margin: 0 auto;
}

/* La clau per alternar l'ordre */
.restaurant-row.reverse {
    flex-direction: row-reverse;
}

.restaurant-info {
    flex: 1;
    font-family: 'Montserrat', sans-serif;
}

*
.restaurant-row.reverse .restaurant-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Per defecte, tot a l'esquerra */
    text-align: left;        /* Assegurem que el text no es mogui */
}


.restaurant-row.reverse .res-logo, 
.restaurant-row.reverse .rest-logo {
    align-self: flex-end;    /* Aquesta línia empeny NOMÉS la imatge a la dreta */
    margin-left: auto;       /* Reforç per assegurar el desplaçament */
    margin-right: 0;
}

.res-logo {
    max-width: 120px;
    margin-bottom: 30px;
    display: block;
}

.restaurant-info h3 {
    font-size: 23px;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: "Roboto Slab", serif;
}

.restaurant-info p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Botó arrodonit tipus pastilla */
.btn-descobreix {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #333;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-descobreix:hover {
    background-color: #333;
    color: #fff;
}

/* Galeria d'imatges lateral */
.restaurant-gallery {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.restaurant-gallery img {
    width: 100%;
    height: 636px; 
    object-fit: cover;
}

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


