body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #0f1c2e, #1b2e3f);
    color: #f0f0f0;
}

header {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	transition: opacity 0.5s ease;
}

.logo-header {
	margin-left: 10px;
    height: 90px;
    width: 90px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #00afc2;
    font-weight: bolder;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffffff;
}

.hero {
    margin-top: 0px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease;
}

.herocookie {
    margin-top: 40px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s ease;
}

.heroprivacy {
    margin-top: 40px;
    text-align: left;
    position: relative;
    display: flex;
    justify-content: left;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.slide {
    width: 100%;
    height: 400px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

.services {
    padding: 50px 20px;
    text-align: center;
}

.services h2 {
    color: #00ffff;
    margin-bottom: 30px;
}

.services ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.services li {
    margin-bottom: 15px;
    font-size: 1.2em;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #0a141f;
    color: #999;
}

.test {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 20px;
}

.dots {
    text-align: center;
    margin-top: 10px;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #00d1d1;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    display: none;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider:hover .prev,
.slider:hover .next {
    display: block;
}

.overlay-tab {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00d1d1;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.overlay-tab:hover {
    background-color: #009b9b;
}

/* SPLASH SCREEN CINEMA STYLE */
#splash-screen {
  display: none; /* Nascondi inizialmente */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 1s ease;
  font-family: 'Segoe UI', sans-serif;
}

.splash-content {
  text-align: center;
  animation: fadeIn 1s ease-in forwards;
}

.splash-logo {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  animation: spin 3s linear infinite;
}

#splash-text {
  font-size: 2rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: auto;
  animation: blink 0.7s step-end infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 15ch; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* fine splash*/

/* SERVIZI */

.detailed-services {
  padding: 80px 20px;
  background-size: cover;
}

.service-block {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}

.service-block.reverse {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1 1 400px;
}

.service-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.service-text {
  flex: 1 1 500px;
  color: #f0f0f0;
}

.service-text h3 {
  color: #00d1d1;
  margin-bottom: 15px;
}

.service-text p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* Fade animations on scroll */
.fade-in-left, .fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-right {
  transform: translateX(-50px);
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* FIne servizi */


/*Footer*/

.footer-deria {
  background-color: #0f1c2e;
  color: #ccc;
  padding: 30px 20px 10px 20px;
  text-align: center;
  font-size: 0.95rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 15px;
}

.footer-column {
  flex: 1 1 150px;
  margin: 10px;
}

.footer-column a {
  color: #00d1d1;
  text-decoration: none;
  display: block;
  margin: 4px 0;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #00afc2;
}

.footer-bottom {
  margin-top: 10px;
  color: #999;
}

.icon {
  width: 16px;
  height: 16px;
  fill: #00d1d1; /* Colore icona coerente con il tema */
}

ul li {
  display: block;
  align-items: center;
  gap: 6px; /* Spazio tra icona e testo */
  margin-bottom: 6px;
}

.social-columns {
    display: flex;
    gap: 20px;
	justify-content: center;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto; /* Spinge i social verso destra se vuoi */
  margin-right: 20px;
}

.social-icons img {
  width: 50px;  /* dimensione media */
  height: 50px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}