/* ============================================================
   Luciano Comacchio — style-home.css
   Versione ordinata e ottimizzata per lucianocomacchio.com
   Design system ispirato a MeLa Media Lab
   ============================================================ */


/* ============================================================
   1. BASE E RESET
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

body {
  font-family: "Inter Tight", "Inter", sans-serif;
  background-color: #000;
  color: #fff;
  font-display: swap;
  opacity: 1 !important;
}

section{
  padding: 40px 0px;
}


/* ============================================================
   2. TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: left;
  margin-bottom: 0.6em;
  line-height: 1.1em;
}

h1 {
  font-size: 3em;
}

h2 {
  font-size: 2.4em;
}

p {
  font-size: 1.5em;
  /* line-height: 1.4em; */
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.2em;
}


/* ============================================================
   3. LINK E COLORI
   ============================================================ */
a {
  color: #01f8ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(1, 248, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* ============================================================
   4. HEADER E NAVBAR
   ============================================================ */
.header {
  background: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 1em 2em;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.4em;
  font-weight: 600;
  color: #fff;
}

/* Navbar desktop */
.navbar {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2em;
}

.nav-list a {
  color: #01f8ff;
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-list a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(1, 248, 255, 0.9);
}


/* ============================================================
   5. MENU HAMBURGER (Mobile)
   ============================================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 32px;
  height: 24px;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #01f8ff;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Navbar mobile */
.navbar {
  display: flex;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
  }
}

.navbar.active {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.navbar.active .nav-list {
  flex-direction: column;
  gap: 2em;
  text-align: center;
}

.navbar.active a {
  font-size: 2em;
  color: #01f8ff;
}


/* ============================================================
   6. SEZIONI E CONTENUTO
   ============================================================ */
main {
  padding: 4em 2em;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  /* margin-bottom: 4em; */
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 4em;
  font-weight: 700;
}

.lead {
  font-size: 1.6em;
  line-height: 1.5em;
}


/* ============================================================
   7. SOCIAL SECTION (standard per tutte le pagine)
   ============================================================ */
.social-section {
  /* text-align: center; */
  margin: 80px 0px;
  max-width: 800px;
  color: #fff;
}

.social-section h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #01f8ff;
  text-align: left;
}

.social-section p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2em;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #01f8ff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-link .icon {
  transition: transform 0.3s ease, fill 0.3s ease;
}

.social-link:hover .icon {
  transform: scale(1.1);
  fill: #ffffff;
}


/* ============================================================
   8. CTA ("Scopri di più")
   ============================================================ */
.cta {
  background-color: #01f8ff;
  color: #000;
  padding: 3em 2em;
  border-radius: 8px;
  text-align: left;
  margin-top: 4em;
}

.cta h2 {
  color: #000;
  font-size: 2em;
  margin-bottom: 0.5em;
}

.cta p {
  color: #000;
  font-size: 1.3em;
  font-weight: 400;
  line-height: 1.4em;
  margin-bottom: 1.5em;
}

.cta ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0;
  padding: 0;
}

.cta ul li {
  display: inline-block;
}

.cta ul li a {
  background-color: #000;
  color: #01f8ff;
  padding: 0.8em 1.2em;
  border-radius: 4px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta ul li a:hover {
  background-color: #01f8ff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(1, 248, 255, 0.5);
}

/* CTA responsive */
@media (max-width: 768px) {
  .cta ul {
    flex-direction: column;
    gap: 1.2em;
  }

  .cta ul li a {
    display: block;
    text-align: center;
  }
}


/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background-color: #000;
  color: #fff;
  text-align: left;
  /* padding: 2em; */
  font-size: 1em;
  line-height: 1.4em;
  max-width: 1200px;
}

.footer a {
  color: #01f8ff;
}

.footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(1, 248, 255, 0.8);
}

/* Mini icone social nel footer */
.social-footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  margin-top: 20px;
}

.social-footer-icons a svg {
  transition: all 0.3s ease;
}

.social-footer-icons a:hover svg {
  transform: scale(1.2);
  fill: #ffffff;
}

/* ============================================================
   CTA BUTTON - "FISSA UNA CALL CONOSCITIVA"
   ============================================================ */

.container-cta {
  display: flex;
  /* justify-content: center; */
  margin-top: 2em;
}

.cta-wire {
  display: inline-block;
  color: #01f8ff;
  background-color: transparent;
  border: 2px solid #01f8ff;
  border-radius: 6px;
  padding: 1em 2em;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  text-decoration: none;
  font-family: "Inter Tight", "Inter", sans-serif;
  box-shadow: 0 0 0 transparent;
}

.cta-wire:hover {
  color: #000;
  background-color: #01f8ff;
  box-shadow: 0 0 12px rgba(1, 248, 255, 0.7), 0 0 24px rgba(1, 248, 255, 0.4);
  transform: translateY(-2px);
}

/* Pulsante versione "dark background" compatta per mobile */
@media (max-width: 768px) {
  .cta-wire {
    width: 100%;
    text-align: center;
    font-size: 1em;
    padding: 0.9em 1.5em;
  }
}



/* ============================================================
   10. ANIMAZIONI
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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


/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.8em; }
  h2 { font-size: 2em; }
  p { font-size: 1.2em; }
  .nav-list { gap: 1.2em; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar { display: none; }
  .navbar.active { display: flex; }
  .logo-text { font-size: 1.2em; }
  main { padding: 3em 1.5em; }
  h1 { font-size: 2.4em; }
  h2 { font-size: 1.8em; }
  p { font-size: 1.1em; }

  .social-section p {
    font-size: 1em;
  }

  .social-links {
    gap: 1.5em;
  }
}
