/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #000 url('../images/topholder_bg.jpg') repeat-x top center;
    background-attachment: fixed;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header */
header {
    background: #000 url('../images/topholder_bg.jpg') repeat-x top center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    position: relative;
}

nav li {
    position: relative;
}

nav li.has-submenu:hover .submenu {
    display: block;
}

nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1001;
}

nav .submenu li {
    display: block;
    padding: 0;
}

nav .submenu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

nav .submenu a:hover {
    background: #333;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
    text-transform: uppercase;
}

nav a:hover,
nav a.active {
    color: #fff;
}

/* Main Content */
main {
    background: transparent;
    min-height: 70vh;
    width: 100%;
}

/* Homepage Hero */
body.home main {
    background: url('../images/slider/slide-1B.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: calc(100vh - 100px);
}

.hero {
    background: transparent;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

body.home .hero {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-signature {
    max-width: 600px;
    width: 80%;
    height: auto;
    animation: slideInFromLeft 1.5s ease-out forwards;
    transform: translateX(-15%);
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(-15%);
        opacity: 1;
    }
}

/* Intro section animation */
body.home .intro-animated {
    animation: slideInTextFromLeft 1.5s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
    transform: translateX(-100%);
}

@keyframes slideInTextFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 300;
}

.page-header {
    background: transparent;
    padding: 15px 0 15px 0;
    text-align: left;
    width: 100%;
}

.page-header .container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header h2 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
}

.page-header h2 img {
    height: 60px;
    width: auto;
    display: block;
}

.content-section,
.intro {
    padding: 5px 0;
    max-width: 100%;
    margin: 0 auto;
}

/* Biografia */
.three-column-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 0;
    width: 100%;
    margin: 0 auto;
}

.col-left {
    display: none;
}

.col-center {
    padding: 0 30px 0 0;
}

.col-center h2 {
    margin-bottom: 20px;
}

.col-center h2 img {
    height: auto;
    width: 15%;
    max-width: 90%;
}

.col-right {
    padding: 0 20px;
    text-align: left;
}

.col-right img {
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: cover;
}

.bio-content {
    display: flex;
    gap: 25px;
    align-items: start;
}

.bio-image-main {
    flex-shrink: 0;
    width: 500px;
}

.bio-image-main img {
    width: 100%;
    height: auto;
}

.bio-text-main {
    flex: 1;
}

.bio-text-main p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    color: #fff;
}

/* Mostre */
.mostre-images {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.mostre-images img {
    width: auto;
    height: auto;
    max-height: 450px;
    object-fit: contain;
}

/* Tabella Mostre */
.mostre-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.mostre-table td {
    padding: 15px 5px;
    border-bottom: 1px solid #333;
    vertical-align: top;
    color: #fff;
    font-size: 14px;
}

.mostre-table td:first-child {
    width: 150px;
    font-weight: bold;
}

.mostre-table tr:last-child td {
    border-bottom: none;
}

/* Gallery in column layout */
.col-center .gallery-main {
    margin-top: 0px;
    margin-bottom: 0px;
}

.col-center h2 {
    margin-bottom: 10px;
}

/* Dicono di Lei */
.dicono-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.dicono-image {
    flex-shrink: 0;
    width: 300px;
}

.dicono-image img {
    width: 100%;
    height: auto;
}

.dicono-text {
    flex: 1;
}

.dicono-text p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    color: #fff;
}

.dicono-text h3 {
    margin: 30px 0 15px 0;
}

.dicono-text h3 img {
    height: 50px;
    width: auto;
    display: block;
}

.bio-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.bio-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bio-text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    color: #fff;
}

.bio-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
}

/* Gallery */
.gallery-section {
    padding: 40px 0;
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-main {
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 600px; */
    margin-bottom: 30px;
    position: relative;
}

.gallery-main img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    display: block;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255,255,255,0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 40px;
    padding: 15px 25px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #000;
    font-weight: 300;
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev-lightbox {
    left: 50px;
}

.gallery-next-lightbox {
    right: 50px;
}

.gallery-prev-lightbox,
.gallery-next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 60px;
    padding: 20px 30px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    color: #000;
    font-weight: 300;
    line-height: 1;
}

.gallery-prev-lightbox:hover,
.gallery-next-lightbox:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: flex-start;
    padding: 20px 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.gallery-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.gallery-thumb:hover {
    border-color: #fff;
    transform: scale(1.05);
    opacity: 1;
}

.gallery-thumb.active {
    border-color: #4CAF50;
    opacity: 1;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}

.gallery-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 50px rgba(255,255,255,0.3);
}

.gallery-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-close:hover {
    transform: scale(1.2);
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 20px;
    background: rgba(0,0,0,0.8);
    padding: 15px 30px;
    border-radius: 5px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #333;
    width: 100%;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .col-left {
        display: none;
    }
    
    .bio-content {
        flex-direction: column;
    }
    
    .bio-image-main img {
        max-width: 100%;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    header .container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    
    .page-header h2 {
        font-size: 28px;
    }
    
    .gallery-thumb {
        width: 90px;
        height: 90px;
    }
    
    .gallery-main {
        min-height: 400px;
    }
    
    .gallery-main img {
        max-height: 400px;
    }
    
    .gallery-nav {
        font-size: 30px;
        padding: 10px 15px;
    }
}
