/* ========================================================= */
/* --- RESET E STILI GLOBALI --- */
/* ========================================================= */

body {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant', serif;
    color: #000000;
}

/* Animazione fade-in per le pagine */
.page-fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.page-fade-in.is-visible {
    opacity: 1;
}

/* Separatore linea */
.line-separator {
    height: 1px;
    width: 100%;
    background-color: #000000;
    margin: 10px 0;
}

/* ========================================================= */
/* --- LAYOUT COMUNE PAGINE INTERNE --- */
/* ========================================================= */

.page-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #FFFFFF;
}

.left-spacer {
    flex: 0 0 10%;
}

.image-panel {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.image-panel img {
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.content-area {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
}

.text-container {
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

.header-content {
    display: block;
    margin-bottom: 50px;
}

.page-title {
    font-weight: 500;
    font-size: 1.8em;
    letter-spacing: 0.0em;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
}

.text-content {
    line-height: 1.3;
    font-size: 1em;
    color: #000000;
}

.text-content p {
    margin-bottom: 1em;
}

.ultime_frasi {
    margin-top: 40px;
    font-style: italic;
}

/* ========================================================= */
/* --- HOMEPAGE --- */
/* ========================================================= */

.homepage-container {
    width: 100vw;
    height: 100vh;
    background-image: url('../images/sfondo.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.homepage-container h1 {
    font-weight: 600;
    font-size: 3.5em;
    letter-spacing: 0.5em;
    margin-bottom: 0.2em;
    text-transform: uppercase;
    color: #000000;
}

.homepage-container .subtitle {
    font-weight: 500;
    font-style: italic;
    font-size: 1.8em;
    letter-spacing: 0.2em;
    margin: 0 0 3em 0;
    color: #000000;
}

.homepage-container nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.homepage-container nav li {
    margin-bottom: 1em;
}

.homepage-container nav a {
    font-weight: 600;
    font-size: 1.3em;
    color: #000000;
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.3s ease;
}

.homepage-container nav a:hover {
    color: #FFFFFF;
}

/* ========================================================= */
/* --- MENU FISSO --- */
/* ========================================================= */

.fixed-menu {
    position: fixed;
    top: 50px;
    right: 50px;
    font-weight: 600;
    font-size: 0.7em;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 1000;
    transition: color 0.3s ease;
}

.fixed-menu:hover {
    color: #666666;
}

.fixed-menu .desktop-link-text {
    display: inline-block;
}

.fixed-menu .mobile-icon-img {
    display: none;
}

.menu-link {
    font-weight: 600;
    font-size: 0.7em;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: #666666;
}

/* ========================================================= */
/* --- PAGINA CONTATTI --- */
/* ========================================================= */

.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.0em;
    line-height: 1.3;
    margin-bottom: 2em;
}

.contact-intro-social {
    margin-top: 3em;
}

.contact-address {
    font-style: normal;
    font-weight: 500;
    font-size: 1.3em;
    line-height: 1.8;
    letter-spacing: 0.1em;
    margin-bottom: 3em;
}

.contact-phone {
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.2;
}

.contact-phone span {
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    margin-top: 5px;
}

.contact-phone .contact-link {
    color: #000000 !important;
    text-decoration: none !important;
}

.contact-phone .contact-link:hover {
    color: #666666 !important;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.social-icon-link img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon-link:hover img {
    transform: scale(1.1);
}

/* ========================================================= */
/* --- PAGINA TATUAGGI DISPONIBILI --- */
/* ========================================================= */

.left-panel-tattoos {
    flex: 0 0 500px;
    padding: 60px 20px 60px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tattoo-category {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.tattoo-category img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.tattoo-category .category-text {
    margin-left: 20px;
    flex-grow: 1;
}

.category-title {
    font-weight: 500;
    font-size: 1.2em;
    margin: 0;
}

.category-subtitle {
    font-size: 0.9em;
    color: #555555;
    margin: 5px 0 0 0;
}

.right-panel-tattoos {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 80px;
    box-sizing: border-box;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.right-panel-tattoos .header-content {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    max-width: 600px;
}

.right-panel-tattoos .page-title {
    font-weight: 500;
    font-size: 1.8em;
    margin: 0;
}

.right-panel-tattoos .line-separator {
    max-width: 600px;
}

.right-panel-tattoos .text-content {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================================= */
/* --- PAGINA GALLERIA --- */
/* ========================================================= */

.gallery-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
}

.gallery-header {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 2.2em;
    font-weight: 500;
    margin: 0;
}

.gallery-subtitle {
    font-size: 1em;
    font-style: italic;
    color: #555555;
    margin: 10px 0;
}

.gallery-header .line-separator {
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.image-item {
    position: relative;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.1);
}

.overlay-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #000000;
    padding: 10px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.image-item:hover .overlay-text {
    opacity: 1;
}

/* ========================================================= */
/* --- FORM PRENOTAZIONE --- */
/* ========================================================= */

.form-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f8f8;
}

.form-container {
    max-width: 600px;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 90%;
}

.form-container h1 {
    font-size: 2.2em;
    font-weight: 500;
    margin-bottom: 10px;
}

.form-container .line-separator {
    margin: 20px auto;
    max-width: 300px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-container label {
    margin-top: 15px;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.form-container input,
.form-container textarea {
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    font-family: Cormorant;
    transition: border-color 0.3s ease;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: #999999;
    outline: none;
}

.form-container textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    margin-top: 30px;
    padding: 15px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-family: Cormorant;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #555555;
    transform: translateY(-2px);
}

.prenota-btn {
    display: block;
    width: fit-content;
    padding: 10px 20px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    border-radius: 5px;
    margin: -10px auto 0 auto;
    transition: background-color 0.3s ease;
}

.prenota-btn:hover {
    background-color: #555555;
}

/* ========================================================= */
/* --- LIGHTBOX --- */
/* ========================================================= */

.lightbox .lb-data .lb-details {
    text-align: center;
}

.lightbox .lb-close {
    display: none !important;
}

.lb-dataContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lb-dataContainer .lb-caption {
    width: 100%;
    text-align: center;
}

/* ========================================================= */
/* --- RESPONSIVE DESIGN --- */
/* ========================================================= */

/* Font globale per schermi piccoli */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .page-title,
    .gallery-title {
        letter-spacing: 0em;
    }
    
    .page-wrapper,
    .gallery-page-wrapper,
    .form-page-wrapper {
        padding-top: 80px;
    }
}

/* Layout comune per tablet e mobile */
@media (max-width: 1480px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .left-spacer,
    .image-panel,
    .content-area {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .image-panel img {
        height: 300px;
    }
    
    .content-area {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 2em;
        letter-spacing: 0.2em;
    }
    
    .menu-link {
        font-size: 0.9em;
    }
    
    .text-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* Menu fisso mobile */
@media (max-width: 768px) {
    .fixed-menu {
        position: fixed;
        top: 20px;
        left: 20px;
        right: auto;
    }
    
    .fixed-menu .desktop-link-text {
        display: none;
    }

    .fixed-menu .mobile-icon-img {
        display: block;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 414px), (max-width: 1024px) and (orientation: landscape) {
   .homepage-container {
        height: 100vh;
        width: 100vw;
        padding: 0 20px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .homepage-container .content {
        padding: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .homepage-container h1 {
        font-size: 2em;
        letter-spacing: 0.2em;
    }

    .homepage-container .subtitle {
        font-size: 1.2em;
        letter-spacing: 0.1em;
        margin-bottom: 2em;
    }
    
    .homepage-container nav ul {
        flex-direction: column;
    }

    .homepage-container nav li {
        margin-bottom: 0.8em;
    }

    .homepage-container nav a {
        font-size: 1.1em;
    }
}

/* Layout pagine interne mobile */
@media (max-width: 414px) {
    .page-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .left-spacer {
        display: none;
    }

    .image-panel {
        width: 100%;
        max-width: 250px;
        height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .image-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .content-area {
        width: 100%;
        text-align: center;
        padding: 0;
        overflow-y: visible;
        display: block;
    }

    .text-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .header-content {
        display: block;
        margin-bottom: 20px;
        text-align: center;
    }

    .page-title {
        font-size: 1.8em;
        letter-spacing: 0.1em;
    }
}

/* Tatuaggi disponibili mobile */
@media (max-width: 768px) {
    .right-panel-tattoos {
        width: 100%;
        order: 1;
        position: static;
        height: auto;
        padding: 0;
        margin-bottom: 20px;
    }

    .right-panel-tattoos .header-content,
    .right-panel-tattoos .text-content {
        text-align: center;
    }

    .right-panel-tattoos .page-title {
        font-size: 2em;
        letter-spacing: 0em;
        text-align: center;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .right-panel-tattoos .line-separator {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .left-panel-tattoos {
        width: 100%;
        order: 2;
        flex: none;
        padding: 0;
    }

    .tattoo-category {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    .tattoo-category img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .tattoo-category .category-text {
        text-align: center;
        margin: 0;
        margin-top: 10px;
    }
}
@media (max-width: 1024px) and (orientation: landscape) {
    .right-panel-tattoos .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .right-panel-tattoos .page-title {
        text-align: center;
        margin: 0 auto;
    }

    .right-panel-tattoos .text-content {
        text-align: center;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .right-panel-tattoos .text-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}

/* Galleria responsive */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Tablet (820x1180 e simili) */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        box-sizing: border-box;
    }
    
    .left-spacer {
        display: none;
    }

    .image-panel,
    .content-area,
    .left-panel-tattoos,
    .right-panel-tattoos {
        width: 100%;
        max-width: 700px;
        flex: none;
    }

    .image-panel img {
        height: auto;
        max-height: 500px;
    }

    .right-panel-tattoos {
        order: 1; 
        position: static;
        height: auto;
        margin-bottom: 20px;
    }

    .left-panel-tattoos {
        order: 2;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Layout verticale e quadrato (aspect ratio <= 1:1) */
@media (max-aspect-ratio: 1/1) {
    body {
        font-size: 14px;
    }
    
    .page-wrapper {
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 80px !important;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    .left-spacer {
        display: none !important;
    }

    .fixed-menu {
        position: fixed;
        top: 20px;
        left: 20px;
        right: auto;
    }
    
    .fixed-menu .desktop-link-text {
        display: none;
    }

    .fixed-menu .mobile-icon-img {
        display: block;
        width: 28px;
        height: 28px;
    }

    .page-title {
        font-size: 2em;
        letter-spacing: 0em;
        text-align: center;
    }

    .image-panel {
        width: 100%;
        max-width: 500px;
        height: 300px;
        margin-bottom: 20px;
    }

    .image-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .content-area,
    .contact-section {
        width: 100% !important;
        text-align: center !important;
        padding: 0;
        overflow-y: visible;
        display: block;
        margin: 50px auto 0 auto !important;
        order: 1 !important;
    }
    
    .header-content {
        margin-bottom: 20px;
    }
    
    .right-panel-tattoos {
        width: 100% !important;
        order: 1 !important;
        position: static;
        height: auto;
        padding: 0;
        margin: 50px 0 20px 0;
    }

    .right-panel-tattoos .header-content {
        margin-bottom: 0;
    }

    .right-panel-tattoos .line-separator {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .right-panel-tattoos .text-content {
        text-align: center;
    }

    .left-panel-tattoos {
        width: 100%;
        order: 2;
        flex: none;
        padding: 0;
    }

    .tattoo-category {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }

    .tattoo-category img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-top: 10px;
    }

    .tattoo-category .category-text {
        text-align: center;
        margin: 0;
        margin-top: 10px;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 1480px) and (orientation: landscape) {
    /* STILI GLOBALI DESKTOP SU SCHERMI ORIZZONTALI PIÙ PICCOLI */
    .page-wrapper {
        flex-direction: row !important;
        padding-top: 50px !important;
    }
    
    .left-spacer {
        display: block !important;
        flex: 0 0 10% !important;
    }
    
    .image-panel {
        flex: 0 0 40% !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto !important;
        height: auto !important;
    }
    
    .image-panel img {
        height: auto !important;
        max-height: 80vh !important;
        object-fit: contain !important;
    }
    
    .content-area,
    .right-panel-tattoos {
        flex: 1 !important;
        width: auto !important;
    }
    
    .fixed-menu .desktop-link-text {
        display: inline-block !important;
    }

    .fixed-menu .mobile-icon-img {
        display: none !important;
    }
}
.page-title,
.gallery-title,
.category-title {
    letter-spacing: 0em !important;
}

@media (orientation: portrait) {
    .page-wrapper {
        flex-direction: column !important;
        align-items: center !important;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
    }

    .page-wrapper {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        max-width: 800px;
        height: auto;
        padding: 20px !important;
        box-sizing: border-box;
    }

    .left-spacer {
        display: none !important;
    }

    .image-panel {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-bottom: 20px;
    }

    .image-panel img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .content-area {
        width: 100%;
        text-align: center;
        padding: 0 !important;
    }

    .fixed-menu {
        top: 10px;
        left: 10px;
    }
}
@media (max-width: 1024px) and (orientation: landscape) {
    .right-panel-tattoos .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .right-panel-tattoos .page-title {
        text-align: center;
        margin: 0 auto;
        width: 100%;
        display: block;
    }

    .right-panel-tattoos .line-separator {
        margin: 10px auto;
        max-width: 300px;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .homepage-container {
        width: 100vw;
        height: 100vh;
        background-image: url('../images/sfondo.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .homepage-container .content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .right-panel-tattoos .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .right-panel-tattoos .page-title {
        text-align: center;
        margin: 0 auto;
        width: 100%;
        display: block;
    }

    .right-panel-tattoos .line-separator {
        margin: 10px auto;
        max-width: 300px;
    }
}