* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    background-color: #072439;
          background-image: linear-gradient(to bottom, #01121f, #072439);

}

html {
    scroll-behavior: smooth;
}

/* MOBILE FIRST */

/* CARD */

.container-inner-pages {
  max-width: 1600px;
  margin: 0 auto;

}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1600px;
  gap: 20px;
  padding: 10px;
  margin: 10px;
  box-sizing: border-box;
}

.card-item {
    flex: 0 0 350px;                /* Fixed width for each card */
    max-width: 350px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    border-radius: 5px;
}

.card-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    padding: 5px;
    border-radius: 10px;
}

.info-card-item {
    margin: 10px 0;
}

.info-card-item h2 {
    font-family: "Domine", serif;
    margin: 10px 20px;
    font-size: 24px;
    color: #333;
    font-weight: 800;
}


.card-item h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    margin: 0px 20px;
    color: #222222;
    line-height: 1.4;
}

.card-item p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 0px 20px 10px 20px;
    color: #555;
    line-height: 1.4;
}

.card-capsule {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    background-color: #072439fa;
    padding: 5px 10px;
    color: #fff;
    margin-left: 20px;
}

.date-capsule {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    background-color: #390707fa;
    padding: 5px 10px;
    color: #fff;
    margin-left: 0px;
}

.place-capsule {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    background-color: #073928;
    padding: 5px 10px;
    color: #fff;
    margin-left: 0px;
}




/* FOOTER */

footer {
    background-color: #15374F;
}

.main-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    gap: 20px;
}

.socials-text {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    color: #fff;
    font-size: 12px;
}

#footer-social-icons {
    background-color: #f8f8ff;
    color: #15374F;
}

.copyright {
    text-align: center;
    color: #15374F;
    padding: 15px 0;
    font-size: 10px;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
}


/* SOCIAL ICONS */


.fa {
    padding: 8px;
    font-size: 40px;
    line-height: 60px;
    transition: .6s;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 5px 5px 0;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.8;
}

.fa:active {
    opacity: 1;
}

.fa-instagram,
.fa-twitter,
.fa-facebook {
    background-color: rgba(21, 55, 79, 0.8);
    color: white;
}

#social-icons {
    background-color: #15374F;
}

/* HERO */

.hero {
    display: flex;

}

.hero-content {
    width: 1600px;
    position: relative;
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    margin: 50px 70px 0 70px;
    height: 500px;
    align-items: center;
    background-image: url(/img/hero/background-pattern-square.svg);
    background-position: center; /* Center the image */
    background-repeat: repeat; /* Do not repeat the image */
    background-size: cover; /* Resize the background image to cover the entire container */
    z-index: 0;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    backdrop-filter: blur(1px);
    background: linear-gradient(to top, #02132000, #021320);
    z-index: -1;
}


.hero-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    backdrop-filter: blur(1px);
    background: linear-gradient(to bottom, #01121f00, #021624);
    z-index: -1;
}

.hero-left {
    width: 50%;
    z-index: 10;
}

.hero-left > h1 {
    font-family: "Domine", serif;
    margin-bottom: 20px;
    font-size: 50px;
    color: #fff;
    font-weight: 800;
}

.hero-left > h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-left > h5 {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-button {
        font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    position: initial;
    display: inline-block;       /* makes the link behave like a button */
    padding: 15px 20px;
    background-color: #c1defd;
    border: 1px solid #fff;
    border-radius: 5px;
    color:#01121f;
    text-decoration: none;       /* removes underline */
    cursor: pointer;
    transition: all 0.3s ease 0s;
    z-index: 10;
}

.hero-button:hover {
    background-color: #01121f;
    color: white;
    border: 1px solid #fff;
}



.hero-right > img,
.hero-right-pintura > img {
    border-radius: 20px;
}

.hero-right > img:nth-of-type(1) {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    max-width: 165px;
    height: 480px;
    object-fit: cover;
    }

.hero-right > img:nth-of-type(2) {
    position: absolute;
    top: 0;
    right: 368px;
    z-index: 3;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    max-width: 165px;
    height: 480px;
    object-fit: cover;
}

.hero-right > img:nth-of-type(3) {
    position: absolute;
    top: 20px;
    right: 184px;
    z-index: 3;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    max-width: 165px;
    height: 480px;
    object-fit: cover;
}

.hero-right-pintura > img:nth-of-type(1) {
    position: absolute;
    top: 60px;
    right: 0;
    z-index: 3;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

.hero-right-pintura > img:nth-of-type(2) {
    position: absolute;
    top: 0px;   /* adjust */
    right: 300px;  /* adjust */
    z-index: 2;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* ------------------------------------------
   MOBILE FIRST (everything under 1024px)
-------------------------------------------*/
@media (max-width: 1023px) {

    .hero {
        display: block;
    }

    .hero-content {
        width: 100%;
        height: auto;
        margin: 20px auto;
        padding: 20px;
        flex-direction: column;
        text-align: center; /* center text on mobile */
    }

    .hero-left {
        width: 100%;
        text-align: center;
    }

    .hero-right,
    .hero-right-pintura {
        display: none; /* hide images on mobile */
    }
}

@media (min-width: 1024px) and (max-width: 1309px) {

    .hero-right > img,
    .hero-right-pintura > img {
        /* scale down proportionally using clamp */
        max-width: clamp(90px, 25vw, 250px);
        height: auto; /* keep proportion */
    }

    .hero-right-pintura > img:nth-of-type(1) {

    top: 135px;
    right: 0;

    }

.hero-right-pintura > img:nth-of-type(2) {
    top: 60px;   /* adjust */
    right: 150px;  /* adjust */

}

}

/* 3 BOXES */

/* ----------- FLEX LAYOUT ----------- */

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 90px 70px;
    gap: 40px;
    opacity: 0; /* for fade-up */
    transform: translateY(40px);
}

/* ----------- BOX STYLE (elegant + glass effect) ----------- */

.info-box {
    flex: 1;
    text-align: left;
    padding: 40px 28px;
    border-radius: 16px;
    background: #01121f;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: white;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background-color 0.35s ease;
}

/* Subtle gradient overlay */
.info-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(#01121f, 0.08),
        rgba(#062337, 0.2)
    );
    opacity: 0.5;
    pointer-events: none;
}

/* ----------- ICON STYLE ----------- */

.info-box img {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
    transition: transform 0.4s ease;
}

/* ----------- TEXT ----------- */

.info-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-family: "Domine", serif;
    color: #ffffff;
    line-height: 1.3;
}

.info-box p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Roboto", sans-serif;
}


/* ----------- FADE-UP ANIMATION ----------- */

.fade-up.visible {
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------- RESPONSIVE BEHAVIOR ----------- */

/* 2 columns */
@media (max-width: 1024px) {
    .info-row {
        flex-wrap: wrap;
    }
    .info-box {
        flex: 1 1 calc(50% - 40px);
    }
}

/* 1 column */
@media (max-width: 600px) {
    .info-row {
        margin: 60px 20px;
        gap: 24px;
    }
    .info-box {
        flex: 1 1 100%;
    }
}



/* TABLET */

/* Tablet and up */
@media (min-width: 768px) {

.main-footer {
    flex-direction: row;
    gap: 0px;
}

.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 1600px;
gap: 20px;
padding: 10px;
margin: 50px;
box-sizing: border-box;
}

}


/* DESKTOP AND UP */

@media (min-width: 1024px) {

.container-inner-pages {
  max-width: 1600px;
  margin: 0 auto;
}

.card-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}


.info-card-item h2 {
    font-family: "Domine", serif;
    margin: 10px 20px;
    font-size: 24px;
    color: #333;
    font-weight: 800;
}


.card-item h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    margin: 0px 20px;
    color: #222222;
    line-height: 1.4;
}

.card-item p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin: 0px 20px 10px 20px;
    color: #555;
    line-height: 1.4;
}

.card-capsule {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    background-color: #072439fa;
    padding: 5px 10px;
    color: #fff;
    margin-left: 20px;
}

.date-capsule {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    background-color: #390707fa;
    padding: 5px 10px;
    color: #fff;
    margin-left: 0px;
}

.place-capsule {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 12px;
    background-color: #073928;
    padding: 5px 10px;
    color: #fff;
    margin-left: 0px;
}




/* FOOTER */

footer {
    background-color: #15374F;
}

.main-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
}

.socials-text {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    color: #fff;
    font-size: 12px;
}

#footer-social-icons {
    background-color: #f8f8ff;
    color: #15374F;
}

.copyright {
    text-align: center;
    color: #15374F;
    padding: 15px 0;
    font-size: 10px;
    font-family: 'Open Sans', sans-serif;
    background-color: #fff;
}

/* SOCIAL ICONS */


.fa {
    padding: 8px;
    font-size: 40px;
    line-height: 60px;
    transition: .6s;
    width: 30px;
    text-align: center;
    text-decoration: none;
    margin: 5px 5px 5px 0;
    border-radius: 50%;
}

.fa:hover {
    opacity: 0.8;
}

.fa:active {
    opacity: 1;
}

.fa-instagram,
.fa-twitter,
.fa-facebook {
    background-color: rgba(21, 55, 79, 0.8);
    color: white;
}

#social-icons {
    background-color: #15374F;
}
}