:root { --primary-color: #1e3a5f; /* Blu scuro */ --secondary-color: #000000; --accent-color: #64748b; /* Grigio metallizzato */ --white: #ffffff; --text-color: #0f172a; --shadow: rgba(0, 0, 0, 0.1); } body { font-family: 'Lato', sans-serif; background-image: url('sfondo.jpg'); background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--secondary-color); color: var(--text-color); line-height: 1.6; } h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; } .navbar { font-family: 'Montserrat', sans-serif; } .hero { color: white; padding: 120px 0; text-align: center; position: relative; } .section-title { position: relative; margin-bottom: 30px; padding-bottom: 15px; font-weight: 600; } .section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 70px; height: 4px; background: var(--primary-color); } .card { border: none; border-radius: 12px; box-shadow: 0 8px 20px var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; background-color: var(--white); overflow: hidden; } .card:hover { transform: translateY(-8px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15); } .card-img-top { height: 220px; object-fit: cover; } .card-title { color: var(--primary-color); font-weight: bold; } .form-container { background: var(--white); border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); padding: 35px; margin-bottom: 50px; } .form-label { font-weight: 600; color: #333; } .form-control, .form-select { border: 2px solid #cbd5e1; border-radius: 8px; padding: 12px 15px; transition: all 0.3s ease; } .form-control:focus, .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.2); } .btn-primary { background-color: var(--primary-color); border: none; padding: 12px 30px; font-weight: 600; border-radius: 8px; transition: all 0.3s ease; } .btn-primary:hover { background-color: #172d4d; transform: translateY(-2px); } .features-list li { list-style: none; margin-bottom: 10px; } .features-list i { color: var(--primary-color); margin-right: 10px; } .footer { background: var(--primary-color); color: #ccc; padding: 50px 0 20px; } .footer a { color: #ddd; text-decoration: none; } .footer a:hover { color: var(--white); } .social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; margin-right: 10px; transition: all 0.3s ease; } .social-icon:hover { background: var(--accent-color); color: white; } .back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: all 0.3s ease; opacity: 0; visibility: hidden; z-index: 999; } .back-to-top.active { opacity: 1; visibility: visible; } .back-to-top:hover { background-color: #172d4d; transform: translateY(-3px); } /* Galleria Immagini */ .gallery { } .main-image img { max-width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; } .thumbnails { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; } .thumbnails img { width: 100%; height: auto; object-fit: cover; border: 2px solid transparent; border-radius: 5px; cursor: pointer; transition: border-color 0.3s ease; } .thumbnails img:hover { border-color: #ffffff; } /* Lightbox */ .lightbox { display: none; /* Nascosto di default */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; z-index: 1000; } .lightbox-content { position: relative; max-width: 90%; max-height: 90%; /* Limita l'altezza massima */ overflow: hidden; /* Nasconde le parti fuori dal bordo arrotondato */ border-radius: 10px; /* Arrotonda gli angoli del contenitore */ } .lightbox img { max-width: 100%; max-height: 100vh; /* Altezza massima uguale all'altezza del viewport */ width: auto; height: auto; border-radius: 10px; /* Arrotonda gli angoli dell'immagine */ object-fit: contain; /* Mantiene le proporzioni */ } .close { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; font-weight: bold; cursor: pointer; } .close:hover { color: #ccc; } /* Frecce Next e Previous */ .prev, .next { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.5); color: white; font-size: 2rem; font-weight: bold; padding: 10px; border: none; cursor: pointer; z-index: 1001; } .prev { left: 20px; } .next { right: 20px; } .prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); } .white-text { color: #ffffff !important; } .background-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); /* Nero semi-trasparente */ z-index: -1; /* Mantiene l'overlay sotto il contenuto */ } .description-text { font-size: 1.1rem; line-height: 1.8; color: #ffffff; } .card:hover { transform: translateY(-8px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15); }