/* © 2025 eurowebagency.web.app di max giorgetti */

@import url(https://fonts.googleapis.com/css?family=Oswald:400,700);

:root {
    --light blue: #2478ab;
    --blue: #fff;
    --red: #f00;
    --black: #000;
    --white: #fff;
    --gray-light: #f5f5f5;
}

body {
	background: #5A6769;
	/* box-shadow: 0 0 50px rgba(0,0,0,0.5) inset;  vignette effect */
    color: white;
    user-select: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Cookie Pop Up */
#cook{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10000;opacity:0.9;
animation:fadeInAnimation ease 2s;animation-iteration-count:1;animation-fill-mode:forwards;}
@keyframes fadeInAnimation{0%{opacity:0;}100%{opacity:1;}}
.card{width:300px;padding:35px;background:#6A7779;opacity:0.9;color:white;text-align:center;border-radius:15px;}
.csvg{fill:#fff;margin-top:20px;color:#fff;}


/* Container for the sliding text */
.sliding-text-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

h1 {
  /* This is the key element that will slide */
  display: inline-block;
  font-size: 2em;
  color: white;
  margin: 0;
  padding-left: 100%;
  animation: slideText 25s linear infinite;
}

@keyframes slideText {
  from {
    transform: translateX(0);
  }
  to {
    /* The animation moves the element to the left by its own full width */
    transform: translateX(-100%);
  }
}


/* euroweb svg logo with hover */
.logo-container {
  /* Set the size of the container to match your logo */
  position: relative;
  width: 50px;
  height: 50px;
}

.default-logo,
.hover-logo {
  /* Position both images at the same spot within the container */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Add a transition for a smooth fade effect */
  transition: opacity 0.3s ease-in-out;
}

/* Initially hide the hover logo */
.hover-logo {
  opacity: 0;
}

.topimage {
    -webkit-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.9);
    -moz-box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.9);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.9);
	will-change: filter;
	transition: filter .2s ease-out;
}
.topimage:hover {
  filter: drop-shadow(0px 0px 20px #fff);
}

/* On hover of the container, change the opacity */
.logo-container:hover .default-logo {
  opacity: 0;
}

.logo-container:hover .hover-logo {
  opacity: 1;
}


a {
    color: gold;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:active {
    color: white;
}

/* Span class ... */
.black {
    color: black;
}
.gold {
    color: gold;
}
.cyan {
    color: cyan;
}
.cyan {
    color: red;
}

h1{
  text-transform:uppercase;
  font-size:9vw;
}

h2{
  text-transform:uppercase;
  font-size:5vw;
}

h-mail{
  text-transform:uppercase;
  font-size:6vw;
  padding: 0 30px 3px 30px;
  margin: 15px 0 ;
  border: 12px solid;
  border-radius: 3px;
  color: white;
  animation: blink 800ms step-end infinite;
}
h-mail a{
color: white;
}
h-mail:hover{
color: black;
background: gold;
}


/* Lista con icona svg allineata */
.lista-allineata {
    
	text-align: left;

    margin-bottom: 0px;
}

.lista-allineata img {
    /* Sposta l'immagine a sinistra e permette al testo di avvolgersi */
    float: left;
    /* Aggiunge uno spazio a destra dell'immagine */
    margin-right: 14px; 
    /* Rimuovi qualsiasi altro margin-top */
    margin-top: 9px;
}

/* Per evitare che gli elementi successivi si posizionino accanto all'immagine flottante,
   è buona pratica 'azzerare' il float.
   Puoi usare un clearfix o, più semplicemente, aggiungere un overflow: hidden
   al contenitore padre.
*/
.lista-allineata::after {
    content: "";
    display: table;
    clear: both;
}

.lista-allineata p {
    margin-top: 0;
}


/* Span class BLACK */
.black {
    color: black;
    font-size: 1.1em; 
}
/* Span class GOLD */
.gold {
    color: gold;
}


img {
    height: auto;
    max-width: 100%;
    display: block;
}

/* FADE IN images */
.fade-in-image {
  opacity: 0;
  transition: opacity 2s ease-in;
}

.fade-in-image.is-visible {
  opacity: 1;
}

/* Hover effect for images */
.hover-effect {
    transition: transform 0.3s ease;
    margin: 15px 0 15px 0;
}

.hover-effect:hover {
    transform: translateY(-5px) scale(1.2);
    box-shadow: 0;
}

/* Hover effect for Whatsapp */
.hover-what {
    transition: transform 0.3s ease;
}
.hover-what:hover {
    transform: translateY(-10px) scale(2);
    box-shadow: 0;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1% 5%;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.hero-headline h1 {
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

#morphing-text {
    color: var(--blue);
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.service-card {
    background-color: var(--white);
    color: var(--black);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--blue);
}

.service-card h4 {
    color: var(--blue);
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: var(--red);
}

.section-container {
    padding: 30px 0;
}

.white-section {
    background-color: var(--white);
    color: var(--black);
}

.split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        gap: 50px;
        text-align: left;
    }
    .split-layout .text-content {
        flex: 1;
    }
    .split-layout .image-content {
        flex: 1;
    }
}

.ml2 {
    font-weight: 800;
    font-size: 3em;
    text-align: center;
    color: black;
    width: 100%;
}

.ml2 .letter {
    display: inline-block;
    line-height: 2em;
}



/* Blinking text animation */
.blinking-text {
    animation: blinker 4s linear infinite;
}
@keyframes blinker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* back to totop button */

button.back-to-top{
  opacity:0.8;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
	height: 0px;
  width: 0px;
  overflow: hidden;
	border-radius: 50px;
	-webkit-border-radius: 50px;
	-moz-border-radius: 50px;
  color: transparent;
	clear: both;
  visibility: hidden;
  position: fixed;
  cursor: pointer;
  display: block;
  border: none;
  right: 50px;
	bottom: 75px;
  font-size: 0px;
  outline: 0 !important;
  z-index: 99;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}
button.back-to-top:hover,
button.back-to-top:active,
button.back-to-top:focus,{
  outline: 0 !important;
}
button.back-to-top::before,
button.back-to-top::after {
  content: "";
    display: block;
    vertical-align: middle;
    border-bottom: solid 10px #333;
    border-left: solid 10px transparent;
    line-height: 0;
    border-right: solid 10px transparent;
    height: 0;
    margin: 18px auto 0;
    width: 0;
  border-radius:20px;
  visibility: hidden;
}
button.back-to-top.show::after,
button.back-to-top.show::before{
  visibility: visible;
}
button.back-to-top::after {
  border-bottom-color:#fff;
      position: relative;
  top:-24px;
}
button.back-to-top.show {
  display: block;
  background: #fefefe;
  color: white;
  font-size: 25px;
  right: 50px;
  bottom: 50px;
  height: 50px;
  width: 50px;
  visibility: visible;
	box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.20);
  -webkit-box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.20);
  -moz-box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.20);
}
button.back-to-top.show:active {
  box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.20);
  -webkit-box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.20);
  -moz-box-shadow: 0px 4px 8px 2px rgba(0, 0, 0, 0.20);
}




/* --- Stile del fumetto --- */
/* Stile base per il pop-up */
.comic-pop-up {
    position: relative;
    cursor: pointer;
    font-weight: bold;
}

/* Nasconde il contenuto del pop-up per impostazione predefinita */
.comic-pop-up::before {
    content: attr(data-comic-text);
    position: absolute;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    white-space: normal;
    background-color: #fff;
    color: #111;
    border: 1px solid #777;
    border-radius: 50%;
    padding: 15px 20px; /* Ridotto il padding per un fumetto più piccolo */
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    font-family: 'Comic Sans MS', sans-serif;
    text-transform: uppercase;
    text-align: center;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 100;
    font-size: 0.9rem; /* Questo imposta la dimensione del carattere del fumetto */
}

/* Mostra il pop-up al passaggio del mouse */
.comic-pop-up:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}



/* SIMPLE COOKIE pop-up container */
#simple-cookie-consent .cookie-header {
  display: flex; /* Makes the container a flexbox */
  align-items: center; /* Vertically aligns the items */
  gap: 15px; /* Adds space between the logo and the text */
  margin-bottom: 15px; /* Adds space below the header */
}
#simple-cookie-consent .cookie-header h4 {
  margin: 0; /* Removes default margin from the h4 to prevent extra space */
}

#simple-cookie-consent {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  resize: vertical;
  overflow: auto;
  z-index: 999999999;
  background: rgba(0, 0, 0, 0.7);
  font-size: 1em;
  color: #111;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}
#simple-cookie-consent .cookie-consent-container {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  margin: -100px auto 0;
  background: #fff;
  padding: 30px;
  max-width: 520px;
  border-radius: 12px;
}
#simple-cookie-consent .cookie-consent-selection {
  text-align: right;
}
#simple-cookie-consent button {
  border: none;
  padding: 10px 20px;
  margin: 10px 0 0 10px;
  background: none;
  font-size: 0.9em;
  border-radius: 4px;
	font-family: 'Comic Sans MS', sans-serif;
    text-transform: uppercase;
}
#simple-cookie-consent button.cookie-consent-allow {
  background-color: #47d;
  color: #fff;
}
#simple-cookie-consent button.cookie-consent-allow:focus,
#simple-cookie-consent button.cookie-consent-allow:hover {
  background-color: #137;
  cursor: pointer;
}
#simple-cookie-consent button.cookie-consent-deny {
  padding: 5px 0;
  font-size: 0.9em;
  opacity: 0.8;
}
#simple-cookie-consent button.cookie-consent-deny:focus,
button.cookie-consent-deny:hover {
  opacity: 1;
  cursor: pointer;
}
#simple-cookie-consent hr {
  margin: 15px 0;
}


/* IMAGE TOP EFFECT RENZIX MELONIX HENDRIX */
/* Container is responsive with fixed aspect ratio */
.image-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  aspect-ratio: 5/3;
  border-radius: 20px;
}

/* All images absolutely stacked */
.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

/* Only one visible */
.image.active {
  opacity: 1;
  z-index: 2;
}

/* Glitch effect on transition */
.image.glitch-effect {
  animation: glitch-strong 0.5s ease-in-out;
  filter: contrast(1.5) brightness(1.3) saturate(1.8) blur(1px);
}

/* Strong glitch animation */
@keyframes glitch-strong {
  0% { transform: translate(0); filter: none; }
  10% { transform: translate(-5px, 2px) skew(-5deg); filter: hue-rotate(20deg) saturate(2); }
  20% { transform: translate(5px, -2px) skew(5deg); filter: contrast(2) brightness(1.2); }
  30% { transform: translate(-3px, 3px) skew(-3deg); filter: blur(1px); }
  40% { transform: translate(3px, -3px) skew(3deg); filter: invert(1); }
  50% { transform: translate(-5px, 0px); }
  60% { transform: translate(5px, 0px); }
  70% { transform: translate(0, -5px); }
  80% { transform: translate(0, 5px); }
  90% { transform: translate(-2px, 2px); filter: hue-rotate(-10deg); }
  100% { transform: translate(0); filter: none; }
}

/* Static overlay */
.tv-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('./sounds/static-glitch.gif');
  background-size: cover;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.1s ease;
}

.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  opacity: 0.1;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.2) 1px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: overlay;
  filter:
    contrast(1.2)
    brightness(1.1)
    saturate(1.2)
    drop-shadow(0 0 2px rgba(0,255,0,0.3))
    drop-shadow(0 0 2px rgba(0,255,255,0.2));
  animation: crt-warp 6s infinite linear;
}

/* CRT warping animation */
@keyframes crt-warp {
  0%, 100% {
    transform: perspective(800px) scale(1.01) translateZ(0) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(800px) scale(1.01) rotateX(0.3deg) rotateY(-0.2deg);
  }
  50% {
    transform: perspective(800px) scale(1.02) rotateX(-0.4deg) rotateY(0.3deg);
  }
  75% {
    transform: perspective(800px) scale(1.01) rotateX(0.2deg) rotateY(0.1deg);
  }
}

.mute-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.mute-button:hover {
  opacity: 1;
}
.mute-button svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* When muted, hide the sound wave */
.muted #sound-wave {
  display: none;
}