/* === THEME GUGLIELMO WILSON - VERSIONE STABILE === */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* HEADER */
.custom-header {
  background: white;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, #6B21A8 0%, #F97316 50%, #FACC15 100%) 1;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(107, 33, 168, 0.15);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

/* MENU */
.menu-left ul, .menu-right ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu-left a, .menu-right a {
  color: #6B21A8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.menu-left a:hover, .menu-right a:hover {
  color: #F97316;
  transform: translateY(-2px);
}

/* LOGO */
.logo-center {
  justify-self: center;
  
  position: static;
  transform: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-center img {
  max-height: 110px;
  width: auto;
  display: block;
  transition: transform 0.3s;
}

.logo-center img:hover {
  transform: scale(1.05);
}

/* RIGHT SECTION */
.right-section {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* PAPPAGALLO */
.gw-parrot-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gw-parrot {
  width: 80px;
  height: auto;
  animation: parrotFloat 3s ease-in-out infinite;
  transform-origin: bottom center;
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.8));
}

@keyframes parrotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}

/* BOTTONE TELEFONO */
.phone-button-img {
  height: 110px;
  width: auto;
  transition: transform 0.3s;
}

.phone-button:hover .phone-button-img {
  transform: scale(1.1);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #6B21A8;
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #260047 0%, #6B21A8 100%);
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu.active {
  display: flex;
}

.close-menu {
  align-self: flex-end;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  text-align: center;
}

.mobile-menu li {
  margin: 25px 0;
}

.mobile-menu a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 600;
}

/* === MOBILE === */

/* ===== MOBILE DEFINITIVO ===== */
@media (max-width: 900px) {
  .header-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
  }
  .left-section, .menu-left, .menu-right { display: none !important; }
  .logo-center { position: static !important; transform: none !important; }
  .logo-center img { max-height: 75px !important; }
  .right-section {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto;
    flex-shrink: 0;
  }
  .phone-button-img { height: 70px !important; width: auto !important; }
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
  }
  .menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #6B21A8;
    border-radius: 2px;
  }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #260047 0%, #6B21A8 100%);
    z-index: 99999;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
  }
  .mobile-menu.active { display: flex !important; }
  .close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
  }
  .mobile-menu ul { list-style: none; padding: 0; margin: 40px 0 0; text-align: center; }
  .mobile-menu li { margin: 25px 0; }
  .mobile-menu a { color: white; font-size: 1.6rem; font-weight: 600; text-decoration: none; }
}

@media (min-width: 901px) {
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* === FOOTER === */
.gw-footer {
  background: linear-gradient(135deg, #260047 0%, #6B21A8 50%, #F97316 100%);
  color: white;
  padding: 40px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.regions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.region-card {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 700;
}

.region-header h4 {
  margin: 0;
}

.cities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  font-size: 0.9rem;
}

.contact-box {
  background: rgba(255,255,255,0.15);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
}

.phone-big {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #FACC15;
  text-decoration: none;
  margin: 15px 0;
}

.social-btn {
  display: block;
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  padding: 10px;
  margin: 8px 0;
  border-radius: 25px;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .gw-parrot { width: 50px !important; }
  .gw-parrot-wrap { flex-shrink: 0; }
}

/* SOCIAL ICONS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}
.social-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: transform 0.2s;
}
.social-btn:hover {
  transform: scale(1.15);
}
.social-fb { background: #1877F2 !important; }
.social-ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.social-yt { background: #FF0000 !important; }

/* MENU MOBILE CON FOTO */
.mobile-menu {
  background: linear-gradient(135deg, rgba(38,0,71,0.85) 0%, rgba(107,33,168,0.85) 100%), url("https://guglielmowilson.com/wp-content/uploads/2026/06/F256AB29-A0A0-4DC5-A329-4B3E7D4A0099.png") center/cover no-repeat !important;
}

/* === HERO VIDEO === */
.gw-hero {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gw-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: brightness(1.35);
}
.gw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(38,0,71,0.35) 100%);
}
.gw-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.gw-hero-title {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.gw-hero-sub {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.gw-hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #F97316, #FACC15);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(249,115,22,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gw-hero-cta:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 35px rgba(249,115,22,0.7);
}
@media (max-width: 900px) {
  .gw-hero { height: 65vh; }
  .gw-hero-title { font-size: 2.2rem; }
  .gw-hero-sub { font-size: 1.1rem; }
  .gw-hero-cta { font-size: 1.1rem; padding: 15px 35px; }
}

/* VIDEO HERO DESKTOP/MOBILE */
.gw-video-mobile { display: none; }
@media (max-width: 900px) {
  .gw-video-desktop { display: none; }
  .gw-video-mobile { display: block; }
}

/* CENTRAGGIO VIDEO MOBILE */
@media (max-width: 900px) {
  .gw-video-mobile {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* CENTRAGGIO VIDEO MOBILE */
@media (max-width: 900px) {
  .gw-video-mobile {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* CENTRAGGIO VIDEO DESKTOP */
@media (min-width: 901px) {
  .gw-video-desktop {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* === INTRO SEO === */
.gw-intro { background: #fff; padding: 60px 20px; }
.gw-intro-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.gw-intro h2 { color: #260047; font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.gw-intro p { color: #444; font-size: 1.1rem; line-height: 1.8; margin-bottom: 15px; }

/* === SERVIZI === */
.gw-servizi { padding: 60px 20px; background: #f8f9fa; }
.gw-servizi-title { text-align: center; color: #260047; font-size: 2.2rem; font-weight: 800; margin-bottom: 40px; }
.gw-servizi-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.gw-servizio-card { background: white; border-radius: 20px; padding: 35px 25px; text-align: center; text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; border: 2px solid transparent; }
.gw-servizio-card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(107,33,168,0.2); border-color: #6B21A8; }
.gw-servizio-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.gw-servizio-card h3 { color: #260047; font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.gw-servizio-card p { color: #666; font-size: 0.95rem; line-height: 1.5; }

@media (max-width: 900px) {
  .gw-intro h2 { font-size: 1.6rem; }
  .gw-intro p { font-size: 1rem; }
  .gw-servizi-grid { grid-template-columns: 1fr; max-width: 400px; }
  .gw-servizi-title { font-size: 1.6rem; }
}

/* === CHI SONO === */
.gw-chisono { background: #fff; padding: 60px 20px; }
.gw-chisono-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.gw-chisono-media { border-radius: 20px; overflow: hidden; box-shadow: 0 8px 30px rgba(107,33,168,0.15); }
.gw-chisono-media img, .gw-chisono-media video { width: 100%; height: auto; display: block; }
.gw-chisono-text h2 { color: #260047; font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.gw-chisono-text p { color: #444; font-size: 1.05rem; line-height: 1.8; margin-bottom: 15px; }
.gw-chisono-cta { display: inline-block; margin-top: 10px; padding: 14px 32px; background: linear-gradient(135deg, #6B21A8, #9333EA); color: #fff; font-weight: 700; text-decoration: none; border-radius: 999px; transition: transform 0.3s, box-shadow 0.3s; }
.gw-chisono-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(107,33,168,0.35); }

@media (max-width: 900px) {
  .gw-chisono-inner { grid-template-columns: 1fr; text-align: center; }
  .gw-chisono-text h2 { font-size: 1.6rem; }
  .gw-chisono-media { max-width: 400px; margin: 0 auto; }
}

/* === COLLABORAZIONI === */
.gw-collab { padding: 60px 20px; background: #fff; overflow: hidden; }
.gw-collab-title { text-align: center; color: #260047; font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.gw-collab-text { max-width: 800px; margin: 0 auto 40px; text-align: center; color: #444; font-size: 1.1rem; line-height: 1.8; }
.gw-collab-slider { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.gw-collab-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: gw-scroll 28s linear infinite; }
.gw-collab-track img { height: 70px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.65; transition: filter 0.3s, opacity 0.3s; }
.gw-collab-track img:hover { filter: grayscale(0%); opacity: 1; }
.gw-collab-slider:hover .gw-collab-track { animation-play-state: paused; }
@keyframes gw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .gw-collab-title { font-size: 1.6rem; }
  .gw-collab-text { font-size: 1rem; }
  .gw-collab-track { gap: 40px; }
  .gw-collab-track img { height: 50px; }
}
