@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Cormorant:ital,wght@0,300..700;1,300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

ul {
    text-decoration: none;
    list-style-type: none;
}

/* MENU */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5);
}

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

.logo a img {
    width: 120px;
    margin-top: 10px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    transition: 0.3s;
}

#menu {
    display: flex;
    align-items: center;
}

.links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.links a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s;
}

.links a h3 {
    font-size: 1.3em;
}

.links a:hover {
    color: #666;
}

.dropdown {
    position: relative;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(255, 255, 255, .9);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    #menu.active {
        right: 0;
    }

    .links {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 2rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .links {
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 600px;
    }

    .links li {
        width: calc(21% - 1rem);
        text-align: left;
    }
}

/* MENU */


/* SECTION 1 */
#section1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.section-side-bar {
    height: 100vh;
    position: relative;
    text-align: center;
}

.background-container {
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* SCROLL IMAGE */
.parallax-image {
    width: 100vw;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #fff;
}

@media (min-width: 1025px) {
    .parallax-image {
        background-image: url('../img/opalDesktop/opal_tattoo_and_beauty_studio (43).jpeg');
    }
}

@media (max-width: 1024px) {
    .parallax-image {
        background-image: url('../img/opalTablet/opal_tattoo_and_beauty_studio (433).jpeg');
    }
}

@media (max-width: 600px) {
    .parallax-image {
        margin-top: 83px;
        background-image: url('../img/opalMobile/opal_tattoo_and_beauty_studio (433).jpeg');
    }
}

.content-overlay {
    position: relative;
    z-index: 10;
    text-align: end;
    padding: 20px;
    border-radius: 10px;
    color: #000;
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.7);
    margin: -50vh 0px 0 0;
}

.content-overlay h2 {
    font-size: 62px;
    color: #000;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .parallax-image {
        background-position: center;
    }

    .content-overlay {
        margin: -50vh 50px 0 0;
    }

    .content-overlay h2 {
        font-size: 72px;
    }

    .content-overlay p {
        font-size: 42px;
    }
}

/* SECTION 1 */


/* SECTION 4 */
#section4 {
    height: auto;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.section4-intro {
    text-align: left;
    position: relative;
    margin-bottom: 50px;
}

.section4-intro p {
    font-size: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

.section4-intro input {
    display: none;
}

.section4-intro .content {
    max-height: 70px;
    overflow: hidden;
    position: relative;
}

.section4-intro input:checked~.content {
    max-height: none;
}

.read-more {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    text-align: right;
    
    margin-bottom: 50px;
    transition: all 0.3s ease;
    padding: 5px;
    width: 250px;
    margin: 0 auto;
    margin-right: 10px;
    margin-top: -10px;
    text-decoration: underline;
}
/*@media (max-width: 468px) {*/
/*    .read-more {*/
/*        font-size: 18px;*/
/*        margin-top:-10px;*/
/*    }*/
/*}*/

.read-more::before {
    content: '...Continua';
}

.section4-intro input:checked~.read-more::before {
    content: ' Nascondi';
}

.section4-container1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px
}

.section4-container1-1 {
    text-align: left;
}

.section4-container1-1 h3 {
    margin-bottom: 30px;
    font-size: 28px;
}

.section4-container1-1 p {
    font-size: 24px;
    margin-bottom: 40px;
}

.section4-container1-2 button {
    background-color: #fff;
    color: #000;
    padding: 30px 40px;
    font-size: 26px;
    border-radius: 5px;
}

.section4-container1-2 button a {
    text-decoration: none;
    color: #000;
}

.section4-container1-2 button:hover {
    background-color: #000;
}

.section4-container1-2 button:hover a {
    color: #fff;
}

/* CAROUSELLO */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.carousel-image {
    height: 220px;
    width: 200px;
    border-radius: 5px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .section4-container1 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 50px
    }

    .section4-container1-1 {
        text-align: left;
    }

    .section4-container1-1 h3 {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .section4-container1-1 p {
        font-size: 24px;
    }
}

/* CAROUSELLO */
/* SECTION 4 */


/* FOOTER */
footer {
    background-color: #F5F0E1;
    color: #000;
    padding: 20px 10px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.footer-logo a img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.footer-links ul,
.footer-social ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-links ul li,
.footer-social ul li,
.footer-legal ul li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-legal a {
    color: #000;
    text-decoration: none;
}

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

.footer-social img {
    width: 30px;
    margin: 0 5px;
}

.footer-contacts p {
    margin: 5px 0;
}

.footer-contacts p a {
    text-decoration: none;
    color: #000;
}

.footer-copyright {
    margin-top: 15px;
    opacity: 0.7;
}

.footer ul li a,
.footer p,
.footer-legal p,
.footer-legal ul li a {
    font-size: 22px;
}

@media (min-width: 600px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        text-align: left;
    }

    .footer-logo {
        flex-basis: 100%;
        text-align: center;
    }

    .footer-links,
    .footer-social,
    .footer-contacts,
    .footer-legal {
        flex-basis: 25%;
        text-align: center;
    }

    .footer-social img {
        width: 35px;
    }

    .footer-legal ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 50px;
    }
}

@media (min-width: 1024px) {
    footer {
        padding: 30px 0 10px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }

    .footer-logo {
        flex-basis: auto;
        text-align: left;
    }

    .footer-links,
    .footer-social,
    .footer-contacts,
    .footer-legal {
        flex-basis: auto;
        text-align: left;
    }

    .footer-links ul,
    .footer-legal ul {
        text-align: left;
    }

    .footer-links a,
    .footer-legal a {
        font-size: 15px;
    }

    .footer-copyright {
        font-size: 14px;
        text-align: center;
    }
}

/* FOOTER */

/* COOKIE */
.cookie-banner {
    position: fixed;
    z-index: 9999;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    color: white;
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

#cookie-toggle {
    width: 35px;
    height: 35px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: -55px;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

.cookie-content p {
    margin: 0 10px 10px 0;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    background: #333;
    color: white;
}

#accept-cookies {
    background: #4CAF50;
}

#decline-cookies {
    background: #D9534F;
}

#open-popup {
    color: #ffb84d;
    cursor: pointer;
}

.cookie-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10000;
    width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    text-align: center;
    overscroll-behavior: contain;
}

.cookie-popup-content label {
    text-align: left;
    padding-left: 15px;
}

.cookie-popup::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

.cookie-popup::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 0, 0.8);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
}

.cookie-popup h2 {
    margin-bottom: 10px;
}

.cookie-popup label {
    display: block;
    margin: 10px 0;
}

.popup-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-buttons button {
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

#save-cookies {
    background: #4CAF50;
    color: white;
}

#close-popup {
    background: #D9534F;
    color: white;
}

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

    .cookie-buttons {
        flex-direction: row;
        position: static;
        margin-top: 10px;
    }

    .cookie-popup {
        width: 90%;
        max-height: 70vh;
    }
}

/* COOKIE */