/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ff6f61;
}

/* Hamburger */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: #222;
    transition: all 0.3s;
}

.hamburger.active .bar1 { transform: rotate(45deg) translate(5px, 5px);}
.hamburger.active .bar2 { opacity: 0; }
.hamburger.active .bar3 { transform: rotate(-45deg) translate(5px, -5px);}

/* Mobile nav & overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.2);
    padding: 2rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6f61;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #ff3b2d;
}

.mobile-nav:not(.hidden) {
    transform: translateX(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Sections */
.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.section.active,
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ff6f61;
    text-align: center;
}

/* Home */
.home-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.home-left {
    flex: 1 1 400px;
    animation: fadeInLeft 1s ease forwards;
}

.title {
    font-size: 2.5rem;
}

.accent {
    color: #ff6f61;
}

.subtitle {
    margin: 1rem 0;
    font-weight: 300;
    font-size: 1.1rem;
}

.home-pitch {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    animation: pulse 2s infinite;
}

.hero-cta .btn {
    margin-right: 1rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.btn.primary {
    background: #ff6f61;
    color: #fff;
}

.btn.primary:hover {
    background: #ff3b2d;
    transform: scale(1.05) translateY(-2px);
}

.btn.ghost {
    background: transparent;
    border: 2px solid #ff6f61;
    color: #ff6f61;
}

.btn.ghost:hover {
    background: #ff6f61;
    color: #fff;
    transform: scale(1.05) translateY(-2px);
}

/* Cube 3D */
.home-animation {
    perspective: 1000px;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ff6f61;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #fff;
}

.front  { transform: rotateY(0deg) translateZ(75px); }
.back   { transform: rotateY(180deg) translateZ(75px); }
.right  { transform: rotateY(90deg) translateZ(75px); }
.left   { transform: rotateY(-90deg) translateZ(75px); }
.top    { transform: rotateX(90deg) translateZ(75px); }
.bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes rotateCube {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Gallery / Cards */
.gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 2rem;
}

.work-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.work-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.work-info {
    padding: 1rem;
}

.work-info h4 {
    margin-bottom: 0.5rem;
    color: #ff6f61;
}

/* Features cards */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    flex: 1 1 250px;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Animazioni */
@keyframes fadeInLeft {
    0% {opacity: 0; transform: translateX(-50px);}
    100% {opacity: 1; transform: translateX(0);}
}

@keyframes pulse {
    0%, 100% {opacity: 1;}
    50% {opacity: 0.6;}
}

/* Footer */
.site-footer {
    background: #222;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive */
@media(max-width: 768px){
    .home-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-right {
        margin-bottom: 1rem;
    }
}
/* Lightbox */
.lightbox {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}
.img-icon{
margin-left:60px;
}
.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

/* Gallery MyLido */
#mylido .work-card img {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

#mylido .work-card img:hover {
    transform: scale(1.05);
}

#mylido .work-info {
    padding: 0.8rem 0.5rem;
}

#mylido .gallery {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 2rem;
}
/* Contatti: riga icone centrata */
#contatti .social-row {
    display: flex;
    justify-content: center; /* centra orizzontalmente */
    align-items: center;     /* centra verticalmente */
    gap: 15px;               /* spazio tra le icone */
    flex-wrap: wrap;         /* va a capo se lo schermo è stretto */
    margin-top: 1rem;
}

/* Icone social come immagini */
#contatti .social-icon {
    width: 28px;   /* larghezza fissa */
    height: auto;  /* altezza automatica per mantenere proporzioni */
    display: block;
}

/* Per l'icona email in SVG: stessa grandezza delle altre */
#contatti .social .icon {
    width: 28px;
    height: 28px;
    display: block;
}
