body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    color: #fff;
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 25px 60px;
    background: rgba(0,0,0,0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: gold;
    font-weight: 600;
    font-size: 1.5rem;
}

nav a {
    color: #ddd;
    margin-left: 30px;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: gold;
}

/* HERO ANIMATO */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
url('https://images.unsplash.com/photo-1581093458791-9f3c1d1a6f03');
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    animation: fadeUp 1s ease forwards;
}

.hero p {
    color: #ccc;
    animation: fadeUp 1.5s ease forwards;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: gold;
    color: black;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* SEZIONI */
.section {
    padding: 80px 60px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #141414;
    padding: 30px;
    border-radius: 10px;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 20px rgba(255,215,0,0.2);
}

footer {
    text-align: center;
    padding: 30px;
    background: black;
    color: #777;
}

/* ANIMAZIONI */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media(max-width:768px){
    header {
        padding: 20px;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    filter: brightness(0.9);
    transition: 0.3s;
}

.card:hover img {
    filter: brightness(1.1);
}

/* HERO CONTENT */
.hero-content {
    animation: fadeUp 1s ease forwards;
}

/* FULL IMAGE */
.full-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
}

/* DARK SECTION */
.dark {
    background: #111;
}

/* SPLIT SECTION */
.split {
    display: flex;
    align-items: center;
    padding: 80px 60px;
    gap: 40px;
}

.split-text {
    flex: 1;
}

.split-img img {
    width: 100%;
    border-radius: 10px;
}

/* CTA */
.cta {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, black, #1a1a1a);
}

/* ANIMAZIONI */
.section, .split, .cta {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */
@media(max-width:768px){
    .split {
        flex-direction: column;
    }
}

/* animazioni scroll */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}

/* MAPPA */
.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* HERO */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('images/dettaglio-lusso.jpg') center/cover no-repeat;
    filter: brightness(0.5);
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.2s ease-out;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1s ease forwards;
}

/* SEZIONI */
.section, .split, .cta {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* SPLIT SECTION */
.split {
    display: flex;
    align-items: center;
    padding: 80px 60px;
    gap: 40px;
}
.split-text { flex: 1; }
.split-img img { width: 100%; border-radius: 10px; }

/* SERVIZI */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    flex: 1 1 220px;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    filter: brightness(0.9);
    transition: 0.3s;
}
.card:hover img { filter: brightness(1.1); }

/* CTA */
.cta {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, black, #1a1a1a);
}

/* RESPONSIVE */
@media(max-width:768px){
    .split { flex-direction: column; }
}



.menu a {
    position: relative;
    text-decoration: none;
    color: inherit;
    padding-bottom: 5px;
}

/* linea nascosta */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

/* animazione hover */
.menu a:hover::after {
    width: 100%;
}

/* link attivo */
.menu a.active {
    color: #ffd700;
}

/* linea sempre visibile sull'attivo */
.menu a.active::after {
    width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}



/* Contenitore immagine aziendale */
.company-img-container {
  position: relative;
  width: 100%;
  max-width: 2000px; /* Larghezza massima per desktop */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* Immagine con zoom su hover */
.company-img-container img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.company-img-container:hover img {
  transform: scale(1.05);
}

/* Overlay testuale elegante */
.company-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  padding: 20px;
  font-size: 22px;
  font-weight: 500;
  transition: background 0.3s ease;
}

/* Overlay leggermente più evidente al hover */
.company-img-container:hover .company-img-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

/* Responsive per mobile */
@media (max-width: 600px) {
  .company-img-overlay {
    font-size: 18px;
    padding: 15px;
  }
}