/* --- BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Importa un font moderno (opzionale, se non già incluso) */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

.glass-float-container {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.glass-float-image {
  position: relative;
  z-index: 2;
  border-radius: 12px; /* opzionale: arrotonda l'immagine */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* ombra base */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto luce dietro */
.glass-float-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Hover: mostra la luce */
.glass-float-container:hover::before {
  opacity: 1;
}

/* Hover immagine: sollevamento + glow */
.glass-float-container:hover .glass-float-image {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
}


body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color 0.5s ease, color 0.5s ease;
  padding-top: 120px ;
}

/* --- Dark Mode --- */
body.light-mode {
  background-color: #ffffff;
  color: #212529;
}

body.dark-mode {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

/* --- NAVBAR --- */
.navbar {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.4s ease;
  padding: 0.8rem 1rem;
  z-index: 1030;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: #0d6efd;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.navbar .navbar-brand:hover {
  color: #0b5ed7;
}

.navbar .nav-link {
  color: #e9ecef;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #0d6efd;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #0d6efd;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* Navbar toggler */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Navbar, section bg-dark, footer background transparent */
.navbar,
.section.bg-dark,
footer {
  background-color: transparent !important;
  transition: background-color 0.5s ease;
}

body.light-mode .navbar,
body.light-mode .section.bg-dark,
body.light-mode footer {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

body.dark-mode .navbar,
body.dark-mode footer,
body.dark-mode .section.bg-dark {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}

/* --- SEZIONI GENERALI --- */
.section {
  padding: 6rem 0;
  position: relative;
}

/* Titoli sezioni */
h2 {
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: 1.2px;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: #fff;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, #0d6efd, #3a8dff);
  border-radius: 3px;
  margin-top: 8px;
}

/* --- HOME --- */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* background-image: url('assets/bg-home-parallax.jpg'); */
}

#home h1 {
  font-weight: 900;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

#home p.lead {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  color: #cbd5e1;
}

/* Pulsante principale */
#home .btn-primary {
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  font-size: 1.2rem;
  border-radius: 40px;
  background: linear-gradient(90deg, #0d6efd, #3a8dff);
  border: none;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
  transition: all 0.3s ease;
  user-select: none;
}

#home .btn-primary:hover {
  background: linear-gradient(90deg, #3a8dff, #0d6efd);
  box-shadow: 0 10px 35px rgba(58, 141, 255, 0.7);
  transform: scale(1.05);
}

/* --- SEZIONE CHI SIAMO --- */
#chi-siamo {
  background: rgba(0, 123, 255, 0.15);        /* Blu trasparente */
  backdrop-filter: blur(8px);                /* Sfocatura vetro */
  -webkit-backdrop-filter: blur(8px);        /* Safari support */
  border-radius: 16px;                       /* Angoli arrotondati */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Bordo vetro */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);  /* Ombra soft */

  color: #fff;                /* Testo chiaro */
  padding-top: 5rem;
  padding-bottom: 5rem;
  text-align: center;
}

#chi-siamo h2 {
  color: #fff;                /* Titolo bianco per contrasto */
  margin-bottom: 3rem;
}

#chi-siamo p {
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.8;
  color: #f0f0f0;             /* Testo paragrafi leggermente meno bianco */
}



/* --- COSA OFFRIAMO --- */
#offriamo {
  background-color: #121212;
}

#offriamo .card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 2rem 1rem;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
  user-select: none;
}

#offriamo .card:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.5);
}

#offriamo .card i {
  font-size: 3.8rem;
  color: #0d6efd;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

#offriamo .card:hover i {
  color: #3a8dff;
}

#offriamo h5 {
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #fff;
}

#offriamo p {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.5;
}

/* --- PORTFOLIO --- */
#portfolio {
  background: rgba(0, 123, 255, 0.15);        /* Blu trasparente */
  backdrop-filter: blur(8px);                /* Sfocatura vetro */
  -webkit-backdrop-filter: blur(8px);        /* Safari support */
  border-radius: 16px;                       /* Angoli arrotondati */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Bordo vetro */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);  /* Ombra soft */
  
  color: #fff;
  padding-bottom: 6rem;
  padding-top: 5rem;
  text-align: center;
}

#portfolio h2 {
  color: #fff; /* Titolo bianco per contrasto */
}


.portfolio-card-glass {
  background: rgba(0, 123, 255, 0.15);              /* Blu trasparente */
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);        /* Bordo vetro */

  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card-glass:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.3); /* Ombra blu */
}

.portfolio-card-glass .image-wrapper {
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  height: 220px;
  position: relative;
}

.portfolio-card-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-card-glass:hover img {
  transform: scale(1.1);
}

.portfolio-card-glass .content {
  padding: 1.5rem 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-card-glass h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff; /* Titolo bianco */
  font-size: 1.25rem;
}

.portfolio-card-glass p {
  font-size: 1rem;
  color: #e6e6e6; /* Testo chiaro per leggibilità */
  line-height: 1.4;
  margin-bottom: 0;
}


/* --- CONTATTI --- */
#contatti {
  background-color: #121212;
  color: #eee;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#contatti h2 {
  color: #fff;
}

#contatti ul {
  max-width: 400px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.6;
}

#contatti ul li {
  margin-bottom: 1.3rem;
}

#contatti a {
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contatti a:hover {
  color: #3a8dff;
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  background-color: #121212;
  color: #ddd;
  font-size: 0.9rem;
  padding: 2.5rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.7);
  transition: background-color 0.4s ease;
  user-select: none;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Wrapper icone social */
footer .social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Usa lo stile dei bottoni social che hai */
footer .icon {
  position: relative;
  padding: 20px;
  width: 70px;
  height: 70px;
  background-color: #fff;
  border-radius: 50px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3),
              0 8px 20px rgba(0, 0, 0, 0.15),
              0 0 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
}

/* Icona font-awesome */
footer .icon i {
  font-size: 28px;
  color: #333;
  transition: all 0.4s ease;
  min-width: 28px;
}

/* Etichetta (nome del social) */
footer .label {
  margin-left: 15px;
  color: #fff;
  opacity: 0;
  font-weight: 600;
  font-size: 18px;
  transform: translateX(-10px);
  transition: all 0.4s ease;
  white-space: nowrap;
}

/* Hover: espansione e mostra etichetta */
footer .icon:hover {
  width: 180px;
  transform: scale(1.05);
}

footer .icon:hover .label {
  opacity: 1;
  transform: translateX(0);
}

footer .icon:hover i {
  color: #fff;
}

/* Colori social con ombre */
footer .facebook:hover {
  background-color: #1877f2;
  box-shadow: 0 0 15px #1877f2, 0 0 30px #1877f2;
}

footer .instagram:hover {
  background: radial-gradient(circle at 30% 107%, 
              #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 0 15px #d6249f, 0 0 30px #fd5949;
}

footer .twitter:hover {
  background-color: #1da1f2;
  box-shadow: 0 0 15px #1da1f2, 0 0 30px #1da1f2;
}

footer .youtube:hover {
  background-color: #ff0000;
  box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000;
}

/* Testo copyright */
footer p {
  margin: 0;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0.02em;
}



/* --- UTILITY --- */
.text-white {
  color: #f8f9fa !important;
}

/* --- ANIMAZIONI LEGGERISSIME --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Applica animazione AOS fallback */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  animation-duration: 0.8s;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
  #home h1 {
    font-size: 2.8rem;
  }

  #portfolio .card-img-top {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  .navbar-nav {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 10px;
  }

  #home h1 {
    font-size: 2.2rem;
  }

  #home p.lead {
    font-size: 1.1rem;
  }

  #offriamo .card {
    padding: 1.2rem;
  }

  footer a {
    margin: 0 8px;
  }
}

/* --- Pulsante Back to Top --- */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 14px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* --- Focus accessibile --- */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* --- Portfolio Hover --- */
.card:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* --- Form contatti validazione --- */
input:invalid,
textarea:invalid {
  border-color: lightblue  !important;
}

input:valid,
textarea:valid {
  border-color: #198754 !important;
}

.btn:hover, 
.card:hover {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  }
}

/* From Uiverse.io by gharsh11032000 */
.card {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card svg {
  width: 48px;
  fill: #333;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f2f2f2;
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: 700;
}

.card:hover svg {
  scale: 0;
}

.card__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  padding-bottom: 100px;
}

#contact {
  width: 100%;
  height: 100%;
}

.section-header {
  text-align: center;
  margin: 0 auto;
  padding: 40px 0;
  font: 300 60px 'Oswald', sans-serif;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 6px;
}

.contact-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  max-width: 840px;
}

/* Left contact page */
.form-horizontal {
  /*float: left;*/
  max-width: 400px;
  font-family: 'Lato';
  font-weight: 400;
}

.form-control, 
textarea {
  max-width: 400px;
  background-color: #000;
  color: #fff;
  letter-spacing: 1px;
}

.send-button {
  margin-top: 15px;
  height: 34px;
  width: 400px;
  overflow: hidden;
  transition: all .2s ease-in-out;
}

.alt-send-button {
  width: 400px;
  height: 34px;
  transition: all .2s ease-in-out;
}

.send-text {
  display: block;
  margin-top: 10px;
  font: 700 12px 'Lato', sans-serif;
  letter-spacing: 2px;
}

.alt-send-button:hover {
  transform: translate3d(0px, -29px, 0px);
}

/* Begin Right Contact Page */
.direct-contact-container {
  max-width: 400px;
}

/* Location, Phone, Email Section */
.contact-list {
  list-style-type: none;
  margin-left: -30px;
  padding-right: 20px;
}

.list-item {
  line-height: 4;
  color: #aaa;
}

.contact-text {
  font: 300 18px 'Lato', sans-serif;
  letter-spacing: 1.9px;
  color: #bbb;
}

.place {
  margin-left: 62px;
}

.phone {
  margin-left: 56px;
}

.gmail {
  margin-left: 53px;
}

.contact-text a {
  color: #bbb;
  text-decoration: none;
  transition-duration: 0.2s;
}

.contact-text a:hover {
  color: #fff;
  text-decoration: none;
}


/* Social Media Icons */
.social-media-list {
  position: relative;
  font-size: 22px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.social-media-list li a {
  color: #fff;
}

.social-media-list li {
  position: relative; 
  display: inline-block;
  height: 60px;
  width: 60px;
  margin: 10px 3px;
  line-height: 60px;
  border-radius: 50%;
  color: #fff;
  background-color: rgb(27,27,27);
  cursor: pointer; 
  transition: all .2s ease-in-out;
}

.social-media-list li:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 1px #fff;
  transition: all .2s ease-in-out;
}

.social-media-list li:hover {
  background-color: #fff; 
}

.social-media-list li:hover:after {
  opacity: 1;  
  transform: scale(1.12);
  transition-timing-function: cubic-bezier(0.37,0.74,0.15,1.65);
}

.social-media-list li:hover a {
  color: #000;
}

.copyright {
  font: 200 14px 'Oswald', sans-serif;
  color: #555;
  letter-spacing: 1px;
  text-align: center;
}

hr {
  border-color: rgba(255,255,255,.6);
}

/* Begin Media Queries*/
@media screen and (max-width: 850px) {
  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }
  .direct-contact-container, .form-horizontal {
    margin: 0 auto;
  }  
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 300px;
  }    
  .social-media-list li {
    height: 60px;
    width: 60px;
    line-height: 60px;
  }
  .social-media-list li:after {
    width: 60px;
    height: 60px;
    line-height: 60px;
  }
}

@media screen and (max-width: 569px) {

  .direct-contact-container, .form-wrapper {
    float: none;
    margin: 0 auto;
  }  
  .form-control, textarea {
    
    margin: 0 auto;
  }
 
  
  .name, .email, textarea {
    width: 280px;
  } 
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 280px;
  }  
  .social-media-list {
    left: 0;
  }
  .social-media-list li {
    height: 55px;
    width: 55px;
    line-height: 55px;
    font-size: 2rem;
  }
  .social-media-list li:after {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
  
}

@media screen and (max-width: 410px) {
  .send-button {
    width: 99%;
  }
}
@media (max-width: 767.98px) {
  #offriamo .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #offriamo .card {
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
  }

  #offriamo .card i {
    font-size: 2.5rem;
  }

  #offriamo .card__title {
    font-size: 1.2rem;
  }

  #offriamo .card__description {
    font-size: 0.95rem;
  }
}
@media (max-width: 576px) {
  .section {
    padding: 3rem 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  #home h1 {
    font-size: 2rem;
  }

  #home p.lead {
    font-size: 1rem;
  }
}
@media screen and (max-width: 576px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer .icon {
    width: 60px;
    height: 60px;
    padding: 15px;
  }

  footer .icon .label {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  .form-control, textarea {
    width: 100% !important;
  }

  .send-button,
  .alt-send-button {
    width: 100% !important;
  }

  .contact-wrapper {
    padding: 10px;
  }

  .contact-list {
    padding-right: 0;
    margin-left: -10px;
  }
}
#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background-color: #25D366;
  color: white;
  font-size: 24px;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#whatsapp-button:hover {
  background-color: #1ebea5;
  transform: scale(1.1);
}

/* Centra tutto il contenuto dentro la sezione */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}

/* Contenitore interno per centratura */
.contact-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Centra la lista contatti */
.direct-contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Lista contatti verticale */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list .list-item {
  margin: 10px 0;
  font-size: 16px;
}

.contact-list i {
  margin-right: 10px;
  color: #0d6efd;
}

/* Icone social */
.social-media-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-media-list li a {
  font-size: 20px;
  color: #0d6efd;
  transition: color 0.3s ease;
}

.social-media-list li a:hover {
  color: #0b5ed7;
}

/* Divider line */
hr {
  width: 100%;
  max-width: 400px;
  border: 0;
  border-top: 1px solid #ccc;
}

/* Copyright */
.copyright {
  font-size: 0.85rem;
  color: #666;
  margin-top: 20px;
}

/* Card moderna con bagliore blu e gradiente */
.m2 {
  position: relative;
  width: 20vmin;
  height: 20vmin;
  background: linear-gradient(135deg, #1e1e24 10%, #050505 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  animation: gradient-shift 5s ease-in-out infinite;
  background-size: 200% 200%;
  border-radius: 1vmin;
  margin: 2rem auto 0 auto; /* centra la card */
}

/* Logo / immagine interna */
.m2 .logo {
  display: inline-block;
  vertical-align: baseline;
  user-select: none;
  font-size: 5vmin;
  color: white;
  background-image: linear-gradient(to right, #7bbcff, #ffffff);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-weight: bold;
}

.m2 .logo img {
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 💙 Bagliori blu */
.m2::before,
.m2::after {
  --size: 5px;
  content: "";
  position: absolute;
  top: calc(var(--size) / -2);
  left: calc(var(--size) / -2);
  width: calc(100% + var(--size));
  height: calc(100% + var(--size));
  background:
    radial-gradient(circle at 0 0, #00bfff, transparent),
    radial-gradient(circle at 100% 0, #0080ff, transparent),
    radial-gradient(circle at 0 100%, #00aaff, transparent),
    radial-gradient(circle at 100% 100%, #0040ff, transparent);
}

.m2::after {
  --size: 2px;
  z-index: -1;
}

.m2::before {
  --size: 10px;
  z-index: -2;
  filter: blur(2vmin);
  animation: blur-animation 3s ease-in-out alternate infinite;
}

/* Animazione del bagliore */
@keyframes blur-animation {
  to {
    filter: blur(3vmin);
    transform: scale(1.05);
  }
}

/* Animazione del gradiente di sfondo */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

