/*
Theme Name: Design Gottein Theme
Theme URI: https://www.design-gottein.com
Description: Tema su misura per Design Gottein. Dark Mode Luxury, Bento Grid integrata e stili globali.
Author: Antigravity AI
Template: hello-elementor
Version: 1.1.3
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --dg-bg: #080809;
  --dg-bg-card: rgba(15, 15, 17, 0.45);
  --dg-border-card: rgba(255, 255, 255, 0.07);
  --dg-border-hover: rgba(223, 177, 91, 0.25);
  --dg-text-primary: #ffffff;
  --dg-text-secondary: rgba(255, 255, 255, 0.65);
  --dg-accent-gold: #dfb15b;
  --dg-accent-gold-rgb: 223, 177, 91;
  --dg-font-display: 'Outfit', sans-serif;
  --dg-font-body: 'Inter', sans-serif;
  --dg-card-radius: 20px;
}

/* Rimossa l'impostazione che creava i bordi sui lati su mobile */
html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--dg-bg);
  color: var(--dg-text-primary);
  font-family: var(--dg-font-body);
  margin: 0; padding: 0;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--dg-font-display); }

/* ==========================================
   HEADER / MENU GLOBALE
   ========================================== */
.dg-site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 100px; 
  /* SFONDO SOLIDO SCURO - NIENTE PIÙ GRADIENTI O EFFETTI LUCE CHE TRASPAIONO */
  background: var(--dg-bg);
  z-index: 9999;
}

.dg-header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  position: relative;
  display: flex;
  align-items: center; 
  justify-content: space-between;
}

.dg-site-branding {
  display: flex;
  align-items: center;
  height: 100%;
}
.dg-site-branding a { display: flex; align-items: center; text-decoration: none; height: 100%; }
.dg-custom-logo {
  max-height: 85px;
  width: auto; 
  display: block;
  transition: opacity 0.3s ease;
}
.dg-site-branding a:hover .dg-custom-logo { opacity: 0.8; }

.dg-site-navigation { 
  display: flex; 
  align-items: center; 
  height: 100%;
}
.dg-site-navigation ul {
  display: flex; list-style: none; margin: 0; padding: 0; gap: 40px; align-items: center;
}
.dg-site-navigation li { display: flex; align-items: center; }
.dg-site-navigation a {
  font-family: var(--dg-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dg-text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  display: flex;
  align-items: center;
}
.dg-site-navigation a::after {
  content: ''; position: absolute; bottom: -8px; left: 50%;
  width: 0; height: 1px; background-color: var(--dg-text-primary);
  transition: all 0.3s ease; transform: translateX(-50%);
}
.dg-site-navigation a:hover,
.dg-site-navigation li.current-menu-item a { opacity: 1; }
.dg-site-navigation a:hover::after,
.dg-site-navigation li.current-menu-item a::after { width: 100%; }

.dg-mobile-toggle {
  display: none; 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  padding: 10px; 
  position: relative; 
  z-index: 10000;
}
.dg-bar {
  display: block; width: 24px; height: 2px; background: #fff; margin: 5px auto; transition: all 0.3s ease;
}

/* ==========================================
   FIX DEFINITIVO SMARTPHONE
   ========================================== */
@media (max-width: 900px) {
  .dg-site-header { height: 80px; }
  .dg-custom-logo { max-height: 65px; }
  .dg-header-container { padding: 0 20px; }
  .dg-mobile-toggle { display: block; }
  
  .dg-site-navigation {
    position: fixed; 
    top: 0; 
    right: 0; 
    left: auto; 
    transform: translateX(100%); 
    visibility: hidden; 
    width: 100vw; 
    height: 100vh;
    /* MENU COMPLETAMENTE SOLIDO: NESSUN EFFETTO SFOCATURA O LUCE CHE PASSA */
    background: var(--dg-bg); 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s; 
    z-index: 9998;
  }
  .dg-site-navigation.is-active { 
    transform: translateX(0) !important; 
    visibility: visible !important; 
  }
  .dg-site-navigation ul { flex-direction: column; align-items: center; gap: 40px; }
  .dg-site-navigation a { font-size: 20px; }
  
  .dg-mobile-toggle.is-active .dg-bar:nth-child(2) { opacity: 0; }
  .dg-mobile-toggle.is-active .dg-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .dg-mobile-toggle.is-active .dg-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================
   FOOTER GLOBALE
   ========================================== */
.dg-site-footer {
  background: #040405; border-top: 1px solid rgba(255,255,255,0.05); padding: 80px 40px 40px; margin-top: 100px;
}
.dg-footer-container {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px;
}
.dg-logo-text-small {
  font-family: var(--dg-font-display); font-size: 16px; font-weight: 700; letter-spacing: 3px; color: #fff; margin-bottom: 20px; display: block;
}
.dg-footer-desc {
  font-size: 14px; color: var(--dg-text-secondary); line-height: 1.6; max-width: 300px; margin: 0;
}
.dg-footer-heading {
  font-family: var(--dg-font-display); font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--dg-accent-gold); letter-spacing: 1.5px; margin: 0 0 24px 0;
}
.dg-footer-links ul { list-style: none; margin: 0; padding: 0; }
.dg-footer-links li { margin-bottom: 12px; }
.dg-footer-links a {
  color: var(--dg-text-secondary); text-decoration: none; font-size: 14px; transition: color 0.3s;
}
.dg-footer-links a:hover { color: #fff; }
.dg-footer-contact p, .dg-footer-contact a {
  font-size: 14px; color: var(--dg-text-secondary); line-height: 1.8; margin: 0 0 10px 0; display: block; text-decoration: none;
}
.dg-footer-contact a:hover { color: var(--dg-accent-gold); }
.dg-footer-bottom {
  text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 12px; color: rgba(255,255,255,0.4);
}

@media (max-width: 900px) {
  .dg-footer-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .dg-footer-desc { margin: 0 auto; }
}

/* ==========================================
   BENTO GRID - STILI GLOBALI
   ========================================== */
.dg-bento-wrapper {
  position: relative; width: 100% !important; display: flow-root !important; clear: both !important; background: transparent; padding: 40px 0; box-sizing: border-box; overflow: hidden;
}
.dg-bento-ambient-glow {
  position: absolute; width: 500px; height: 500px; top: 50%; left: 30%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--dg-accent-gold-rgb), 0.03) 0%, transparent 70%); pointer-events: none; z-index: 0;
}
.dg-bento-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 16px; width: 95%; max-width: 960px; margin: 0 auto; box-sizing: border-box; position: relative; z-index: 1;
}
.dg-bento-card {
  position: relative; border-radius: var(--dg-card-radius); background: var(--dg-bg-card); border: 1px solid var(--dg-border-card); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding: 24px; box-sizing: border-box;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.dg-bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(var(--dg-accent-gold-rgb), 0.3) 0%, rgba(var(--dg-accent-gold-rgb), 0.05) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 5; opacity: 0; transition: opacity 0.4s ease;
}
.dg-bento-card:hover {
  transform: translateY(-4px); border-color: var(--dg-border-hover); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--dg-accent-gold-rgb), 0.02);
}
.dg-bento-card:hover::before { opacity: 1; }
.dg-bento-card-content { position: relative; width: 100%; z-index: 3; pointer-events: none; }
.dg-bento-badge { display: inline-block; font-family: var(--dg-font-display); font-size: 9px; font-weight: 600; text-transform: uppercase; color: var(--dg-accent-gold); background: rgba(var(--dg-accent-gold-rgb), 0.08); border: 1px solid rgba(var(--dg-accent-gold-rgb), 0.15); padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; letter-spacing: 1.2px; }
.dg-bento-title { font-family: var(--dg-font-display); font-size: 19px; font-weight: 600; margin: 0 0 6px 0; color: var(--dg-text-primary); letter-spacing: -0.3px; }
.dg-bento-description { font-size: 13px; color: var(--dg-text-secondary); line-height: 1.5; margin: 0; font-weight: 300; }
.dg-bento-image-container { position: absolute; pointer-events: none; z-index: 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dg-bento-img-right { top: 0; right: 0; width: 45%; height: 100%; padding: 12px; }
.dg-bento-img-bottom { bottom: 0; left: 0; width: 100%; height: 52%; padding-bottom: 5px; }
.dg-bento-img-bottom-right { bottom: 0; right: 0; width: 65%; height: 55%; padding: 8px; }
.dg-bento-floating-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease; }
.dg-bento-card:hover .dg-bento-floating-img { transform: scale(1.05) translateY(-5px); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 15px rgba(var(--dg-accent-gold-rgb), 0.08)); }
.dg-img-zeus { max-height: 85%; }
.dg-img-pc { max-height: 105%; transform: translateY(5px); }
.dg-bento-card-2:hover .dg-img-pc { transform: scale(1.04) translateY(-3px) rotate(-1deg); }
.dg-img-wand { max-height: 95%; transform: translate(5px, 5px); }
.dg-bento-card-5:hover .dg-img-wand { transform: scale(1.06) translate(0px, 0px); }
.dg-img-olympus { max-height: 95%; }

.dg-bento-wide { grid-column: span 2; grid-row: span 1; flex-direction: row; justify-content: flex-start; align-items: center; }
.dg-bento-wide .dg-bento-card-content { width: 55%; }
.dg-bento-tall { grid-column: span 1; grid-row: span 2; justify-content: space-between; }
.dg-bento-square { grid-column: span 1; grid-row: span 1; }

.dg-bento-card-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
.dg-bento-card-2 { grid-column: 3 / 4; grid-row: 1 / 3; }
.dg-bento-card-3 { grid-column: 1 / 2; grid-row: 2 / 3; }
.dg-bento-card-4 { grid-column: 2 / 3; grid-row: 2 / 3; }
.dg-bento-card-5 { grid-column: 1 / 2; grid-row: 3 / 4; }
.dg-bento-card-6 { grid-column: 2 / 4; grid-row: 3 / 4; }

.dg-center-content { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 100%; }
.dg-bento-stat-glow { position: absolute; width: 100px; height: 100px; background: radial-gradient(circle, rgba(var(--dg-accent-gold-rgb), 0.06) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.dg-bento-number-wrap { display: flex; align-items: baseline; margin-bottom: 4px; z-index: 1; }
.dg-bento-number { font-family: var(--dg-font-display); font-size: 52px; font-weight: 700; line-height: 1; color: var(--dg-text-primary); background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.6) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.dg-bento-number-plus { font-family: var(--dg-font-display); font-size: 32px; font-weight: 600; color: var(--dg-accent-gold); margin-left: 2px; }
.dg-bento-stat-label { font-family: var(--dg-font-display); font-size: 13px; font-weight: 600; color: var(--dg-accent-gold); letter-spacing: 0.5px; margin: 0 0 4px 0; text-transform: uppercase; z-index: 1; }
.dg-bento-stat-desc { font-size: 11px; color: var(--dg-text-secondary); line-height: 1.4; margin: 0; z-index: 1; }

.dg-bento-card-4 { justify-content: center; background: linear-gradient(135deg, rgba(20, 20, 22, 0.45) 0%, rgba(10, 10, 12, 0.6) 100%), var(--dg-bg-card); }
.dg-bento-quote-icon { position: absolute; top: -10px; right: 15px; font-family: var(--dg-font-display); font-size: 110px; line-height: 1; font-weight: 800; color: rgba(var(--dg-accent-gold-rgb), 0.035); pointer-events: none; z-index: 0; transition: color 0.5s ease, transform 0.5s ease; }
.dg-bento-card-4:hover .dg-bento-quote-icon { color: rgba(var(--dg-accent-gold-rgb), 0.06); transform: translateY(4px) rotate(4deg); }
.dg-bento-blockquote { position: relative; font-size: 13px; font-style: italic; line-height: 1.6; color: var(--dg-text-primary); margin: 0 0 10px 0; padding: 0; border: none; z-index: 1; font-weight: 300; }
.dg-bento-cite { font-family: var(--dg-font-display); font-size: 11px; font-weight: 500; color: var(--dg-accent-gold); letter-spacing: 1px; text-transform: uppercase; z-index: 1; display: block; }

/* TABLET */
@media (max-width: 900px) {
  .dg-bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(180px, auto); gap: 12px; width: 92%; }
  .dg-bento-tall { grid-column: auto; grid-row: auto; }
  .dg-bento-card-1 { grid-column: 1 / -1; grid-row: 1; }
  .dg-bento-card-3 { grid-column: 1 / 2; grid-row: 2; }
  .dg-bento-card-2 { grid-column: 2 / 3; grid-row: 2 / 4; justify-content: space-between; }
  .dg-bento-card-4 { grid-column: 1 / 2; grid-row: 3; }
  .dg-bento-card-5 { grid-column: 1 / -1; grid-row: 4; flex-direction: row; justify-content: flex-start; align-items: center; }
  .dg-bento-card-6 { grid-column: 1 / -1; grid-row: 5; flex-direction: row; justify-content: flex-start; align-items: center; }
  
  .dg-bento-card-5 .dg-bento-card-content, .dg-bento-card-6 .dg-bento-card-content { width: 55%; }
  .dg-bento-card-5 .dg-bento-img-bottom-right, .dg-bento-card-6 .dg-bento-img-right { top: 0; right: 0; bottom: 0; left: auto; width: 45%; height: 100%; padding: 12px; }
  .dg-img-wand, .dg-img-olympus { max-height: 90%; transform: none; }
}

/* SMARTPHONE */
@media (max-width: 600px) {
  .dg-bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; width: 90%; }
  .dg-bento-card { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 240px; padding: 20px; flex-direction: column !important; justify-content: flex-start !important; align-items: flex-start !important; }
  .dg-bento-card-content { width: 100% !important; margin-bottom: auto; }
  .dg-bento-image-container { position: relative !important; width: 100% !important; height: 140px !important; margin-top: 20px; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; padding: 0 !important; }
  .dg-bento-floating-img { max-height: 100% !important; max-width: 100% !important; transform: none !important; }
  .dg-bento-card-2 { min-height: 300px; }
  .dg-bento-number { font-size: 44px; }
}