@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
:root {
    --main-color: #FF653F;
    --second-color: #1E104E;
    --background-color: #F8F9FA;
    --text-color: #0F172A;
}

* {
    transition-duration: 0.3s;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Playfair, serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 6em;
    border-radius: 10px;
}

header#landing {
    height: 100vh;
    width: 100%;
}

header {
    position: relative;
    overflow: hidden;
}

header .background {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 1;
    
    filter: brightness(0.6)
}

header .gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Sopra l'immagine, sotto il testo */
  
  /* 1. Applica una sfocatura forte a tutto questo livello */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(50px); /* Supporto Safari */

  /* 2. Nascondi gradualmente questo livello sfocato andando verso il basso */
  /* 'black' significa che la sfocatura è visibile, 'transparent' la nasconde */
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 250%);
}

header .content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    color: var(--background-color);
    text-align: center;
}

header .logo {
    position: absolute;
    top: 1em;
    left: 1em;
}

header h1 {
    font-family: Limelight;
    font-size: 6em;
}

header h2 {
    font-weight: 100;
    font-size: 2em;
}

header #discover-activities {
    background-color: var(--main-color);
    padding: 1em;
    font-size: 1.5em;
    border-radius: 3em;
}
header #discover-activities:hover .fa-arrow-down {
    transform: translateY(8px);
}
#discover-activities a {
    color: inherit;

    text-decoration: none;
}

.blue {
    color: var(--second-color);
}

#locations {
    margin: 2em auto;
    width: 80%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2em;
}

#locations .card {
    position: relative;
    width: 30%;
    background-color: white;
    height: 30em;
    border-radius: 20px;
    box-shadow: 0 0 20px 2px #e2e2e2;

    background-image: url('../img/landing-background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

#locations .card:hover {
    transform: scale(1.07);
    cursor: pointer;
    box-shadow: 0 0 20px 2px #8b8b8b;
}

#locations .card .overlay {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 50%;
    bottom: 0;

    background-image: linear-gradient(to top, #00000090, #00000070, #00000040, #00000000);
}

#locations .card .text {
    width: 100%;
    z-index: 2;
    position: absolute;
    bottom: 0;
    color: var(--background-color);
    padding: 2em 2em;
    box-sizing: border-box;
}

#locations .card .text h4 {
    font-size: 3em;
    margin: 0;
    white-space: nowrap;
}

#locations .card .text p {
    margin: 0;
    font-size: 1.5em;
}

footer {
    background-color: #1f1f1f;
    color: var(--background-color);
    margin: 0;
    padding: 1em;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 1000px) {
    #locations {
        width: 90%
    }
    #locations .card {
        width: 100%;
    }
}

header.location {
    height: 50vh;
}

.location h1 {
    margin-bottom: 2em;
}

#activities {
    position: relative;
    margin: -5em auto 2em auto;
    width: 80%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

#activities .card {
    background-color: var(--background-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em;
    border-radius: 15px;
    gap: 1.2em;
    box-shadow: 0 0 20px 1px #929292;
    min-height: 5.5em;
}

#activities .card .image {
    position: relative;
    border-radius: 12px;
    width: 9.5em;
    align-self: stretch;
    overflow: hidden;
}

#activities .card .image img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#activities .card .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#activities .card .text h4 {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
}

#activities .card .text p {
    margin: 0;
    font-size: 1.2em;
}

#activities .card .button {
    display: block;
    text-decoration: none;
    color: var(--background-color);
    background-color: var(--main-color);
    padding: 0.5em 1.3em;
    border-radius: 2em;
    font-size: 1.6em;
    margin-left: auto;
}