@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body {
    background-color: #0E1116;
    height: auto; 
    overflow-y: auto; 
    margin: 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
    font-family: "Poppins";
    display: flex;
    flex-direction: column;
    min-height: 100vh; 

    overflow-x: hidden;
}

body.fade-in {
    opacity: 1;
}

body.page-transition {
    opacity: 0; 
}

.logo-full > img {
    width: 60px;
    height: 60px;
}

.logo-full {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

header {
    position: fixed;
    top: 2;
    width: calc(100% - 100px); 
    left: 0;
    margin: 10px 30px 0 30px; 
    z-index: 1000; 
    background: rgba(233, 78, 26, 0.28);
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: blur(8.2px);
    -webkit-backdrop-filter: blur(8.2px);

    padding: 10px;
    color: white;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding-left: 20px; 
    padding-right: 20px; 
    margin-left: 30px; 
    animation: slideDown 0.8s ease-out; /* Aggiunge l'animazione di comparsa */
}

nav {
    font-family: "Boldonse", system-ui;
    font-weight: 400;
    font-style: normal;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease; /* Aggiunge una transizione fluida */
}

nav > a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block; /* Necessario per l'effetto di spostamento */
    transition: transform 0.3s ease, margin 0.3s ease; 
}

nav > a:hover {
    color: #e94e1a;
    text-shadow: 0 0 5px #e94e1a;
    transform: scale(1.2);
    margin: 0 10px; 
}

nav > a.selected {
    position: relative;
    color: #e94e1a;
}

nav > a.selected::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e94e1a;
    box-shadow: 0 0 8px #e94e1a;
    animation: glow 1.5s infinite alternate;
}

.boldonse-regular {
    font-family: "Boldonse", system-ui;
    font-weight: 400;
    font-style: normal;
}

.merriweather-normal {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings:
      "wdth" 100;
  }

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    object-position: center ; 
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-family: "Merriweather", serif;
    font-size: 24px;
}

.scroll-down .arrow {
    margin-top: 10px;
    margin-left: 20px;
    margin-bottom: 30px;
    width: 30px; 
    height: 30px;
    border-left: 6px solid white;
    border-top: none;
    border-bottom: 6px solid white;
    transform: rotate(135deg);
    animation: bounce-down 1.5s infinite;
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateY(0) rotate(-45deg); 
    }
    50% {
        transform: translateY(10px) rotate(-45deg); 
    }
}

.quote {
    position: absolute; 
    top: 50%; 
    left: 30px;
    right: auto; 
    transform: translateY(-50%); 
    height: auto; 
    width: 22%; 
    font-family: "Merriweather", serif;
    font-size: 35px; 
    color: white;
    text-align: left; 
    z-index: 1;
    background: none; 
    padding: 10px;
    border-radius: 8px; 
}

.orange-foto {
    color: #e94e1a;
}

.services {
    display: flex; 
    justify-content: space-between; 
    gap: 20px; 
    margin-top: 30px;
    margin-right: 50px;
}

.card {
    background: #1A1D23; 
    flex: 1; 
    margin: 0 10px; 
    padding: 40px;
    font-size: 20px;
    border: 1px solid #e94e1a;
    border-radius: 10px;
    color: white;
    position: relative;
    text-align: center;
    font-family: "Merriweather", serif; 
}

.quote-icon {
    font-size: 80px; 
    color: #e94e1a;
    position: absolute;
    top: -20px;
    left: 10px;
}

.card p {
    margin-top: 40px;
    font-size: 22px;
    font-weight: bold;
}

.card-caption {
    display: block;
    margin-top: 20px;
    font-size: 16px;
    color: #ccc;
    font-family: "Merriweather", serif;
    line-height: 1.4;
}

.caption {
    text-align: center;
    font-family: "Merriweather", serif;
    font-size: 20px;
    color: white;
    margin: 20px 30px;
    line-height: 1.5;
}

.gallery {
    text-align: center;
    margin: 50px 0;
    color: white;
    font-family: "Merriweather", serif;
}

.gallery h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    padding: 30px; 
}

.gallery-grid img {
    width: 100%; 
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover; 
    transition: transform 0.3s ease;
    background-color: transparent; 
    opacity: 0; 
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards; 
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-grid img:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-grid img:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-grid img:nth-child(3) {
    animation-delay: 0.3s;
}

.gallery-grid img:nth-child(4) {
    animation-delay: 0.4s;
}

.gallery-grid img:nth-child(5) {
    animation-delay: 0.5s;
}

.gallery-grid img:nth-child(6) {
    animation-delay: 0.6s;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    max-width: 600px;
    margin: 0 10px;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(233, 78, 26, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.image-popup .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 5px 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 8px #e94e1a;
    }
    to {
        box-shadow: 0 0 15px #e94e1a;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

footer {
    text-align: center;
    background-color: #1A1D23;
    color: white;
    font-family: "Merriweather", serif;
    font-size: 14px;
    padding: 20px 10px;
    margin-top: 50px;
    border-top: 1px solid #e94e1a;
    margin-top: auto; 
}

footer p {
    margin: 5px 0;
}

.mail-link {
    color: #e94e1a;
}

main {
    padding-top: calc(10px + 100px);
    padding-left: calc(30px);
    color: white;
    flex: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(233, 78, 26, 0.28); 
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: blur(8.2px);
    -webkit-backdrop-filter: blur(5px);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out;
}

.nav-menu.open {
    transform: scaleY(1); /* Espandi il menu */
    backdrop-filter: blur(8.2px);
        -webkit-backdrop-filter: blur(5px);
}

.body-text {
    max-width: 100%;
    font-family: "Poppins";
}

.main-who {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.main-left {
    width: 60%;
    margin-right: 20px;
}

.main-right {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-right > img {
    max-width: 70%; 
    border-radius: 10px;
}

@media (max-width: 768px) {
    .main-who {
        flex-direction: column;
    }

    .main-left, .main-right {
        width: 90%; 
    }

    .main-left {
        margin-right: 20px; 
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav:not(.nav-menu) {
        display: none;
        backdrop-filter: blur(8.2px);
        -webkit-backdrop-filter: blur(5px);
    }

    .nav-menu {
        display: flex;
        background: #0f1116;
        border: 1px solid #e94e1a;
        border-radius: 16px !important;

        max-width: 87%;
    }

    .logo-full h2 {
        display: none;
    }

    .logo-full {
        justify-content: space-between; 
    }

    header {    
        width: 76%; 
        margin: 2; 
        border-radius: 0; 
        padding: 10px 15px; 

        border-radius: 20px;
    }

    .logo-full img {
        width: 50px; 
        height: 50px;
    }

    .hamburger {
        display: flex; 
    }

    .logo-full {
        justify-content: space-between; 
    }

    .logo-full h2 {
        display: none;
    }

    .services {
        flex-direction: column; 
        gap: 20px;
    }

    .card {
        margin: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote {
        width:80%;
        height: auto;
        top: 30%;

        background-color: rgba(0, 0, 0, 0.7);

        font-size: 25px;

    }

    .quote-wrapper {
        text-align: center;
    }

    .services {
        margin-left: 50px;
    }

    .body-text{
        max-width: 100%;
    }

    .services30{
        margin-left: 30px !important;
    }
}

.social-btn, .email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #e94e1a;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 10px; 
}

.social-btn img, .email-btn img {
    width: 20px;
    height: 20px;
}

.social-btn:hover, .email-btn:hover {
    background-color: #ff6a3d;
    transform: scale(1.05);
}
