@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;
}
.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 (33).jpeg');
    }
}
@media (max-width: 1024px) {
    .parallax-image {
        background-image: url('../img/opalTablet/opal_tattoo_and_beauty_studio (333).jpeg');
    }
}
@media (max-width: 600px) {
    .parallax-image {
        margin-top: 83px;
        background-image: url('../img/opalMobile/opal_tattoo_and_beauty_studio (333).jpeg');
    }
}

.content-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    color: #000;
    text-shadow: 1px 1px 5px rgba(255, 255, 255, 0.7);
    margin: -80vh auto;
}
.content-overlay h2 {
    font-size: 62px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 400;
}
.content-overlay p {
    font-size: 37px;
    margin-top: 10px;
    margin-bottom: 50px;
}
@media (min-width: 768px) {
    .parallax-image {
        background-position: center;
    }
    .content-overlay h2 {
        font-size: 72px;
    }
    .content-overlay p {
        font-size: 42px;
    }
}
/* SECTION 1 */

/* SECTION 2 */
#section2 {
    width: 90%;
    margin: 50px auto 50px;
    height: auto;
}
.description {
    font-size: 28px;
    margin-bottom: 40px;
    max-width: 90%;
    margin: 50px auto 50px;
}
.hr-tag {
    width: 90%;
    margin: 4vh auto;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
.image-container {
    flex: 1;
}
.image-container img {
    width: 100%;
    height: auto;
}
.text-container {
    flex: 3;
    text-align: left;
    align-self: flex-start;
}
.text-container h3 {
    font-size: 28px;
    margin-bottom: 20px;
}
.text-container p {
    font-size: 20px;
    color: #333;
}
@media (min-width: 808px) {
    .hr-tag {
        width: 90%;
        margin: 4vh auto;
    }
    .container {
        flex-direction: row;
    }
    .image-container {
        flex: 2;
        width: 100%;
        align-self: start;
    }
    .image-container img {
        width: 100%;
        max-width: 700px;
        min-width: 250px;
    }
    .text-container {
        text-align: left;
        margin-left: 1rem;
        align-self: flex-start;
    }
    .text-container h3 {
        font-size: 42px;
        margin-bottom: 20px;
    }
    .text-container p {
        font-size: 22px;
        color: #333;
    }
}
@media (min-width: 1200px) {
    .image-container img {
        max-width: 600px;
        min-width: 400px;
    }
    .text-container h3 {
        font-size: 56px;
    }
    .text-container p {
        font-size: 28px;
    }
}
/* SECTION 2 */

/* SECTION 1.9 */
#section1-9 {
    width: 90%;
    margin: 0 auto;
    height: auto;
}
.container1 {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin: 0 auto;
}
@media (min-width: 808px) {
    .container1 {
        flex-direction: row;
    }
    .text-container {
        margin-right: 5px;
    }
}
/* SECTION 1.9 */

/* SECTION 3 */
#section3 {
    width: 90%;
    margin: 0 auto;
    height: auto;
}
.container1 {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin: 0 auto;
}
@media (min-width: 808px) {
    .container1 {
        flex-direction: row;
    }
    .text-container {
        margin-right: 5px;
    }
}
/* SECTION 3 */

/* SECTION 4 */
#section4 {
    height: auto;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 20px;
}
#section4 p {
    font-size: 28px;
    margin-bottom: 50px;
}
/* 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;
}
/* 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 */