/*
Theme Name: Easy Seven Digital - Static Pro
Theme URI: https://easysevendigital.com
Author: Easy Seven Digital
Description: Tema one-page scuro in stile "neon" (contenuti fissi, senza builder). Include banner cookie + pagina privacy.
Version: 1.3.1
Text Domain: easy-seven-static
*/

:root{
  --bg:#070b1a;
  --card:rgba(9,16,35,.72);
  --card2:rgba(9,16,35,.88);
  --border:rgba(255,255,255,.08);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --accent1:#ff8a00;
  --accent2:#ffd34d;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius:22px;
  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:clip;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{color:inherit}
/* Keep images proportional (avoid "stretched" look on mobile) */
img{max-width:100%; height:auto; display:block}

.esd-bg{
  min-height: auto;
  background:
    radial-gradient(42% 30% at 50% 12%, rgba(58,123,213,.16), rgba(58,123,213,0) 68%),
    linear-gradient(180deg, rgba(4,9,22,.18), rgba(4,9,22,.30)),
    image-set(
      url('assets/hero-bg.webp') type('image/webp'),
      url('assets/hero-bg.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center top;
}

.esd-container{max-width:var(--max); margin:0 auto; padding:0 18px}

.esd-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3,6,16,.55);
  border-bottom:1px solid var(--border);
}
.esd-nav-inner{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 22px;
}
.esd-nav a{
  text-decoration:none;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:12px;
  color: rgba(255,255,255,.92);
  padding:10px 10px;
  border-radius: 999px;
}

.esd-cta{
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color:#061024 !important;
  box-shadow: 0 14px 30px rgba(255,138,0,.18);
}
.esd-cta:hover{filter:brightness(1.05)}

.esd-spacer{height:64px}

.hero{
  padding: 6px 0 18px;
  text-align:center;
}
.hero-logo{
  display:block;
  width:min(520px, 92vw);
  height:auto;
  margin: 18px auto 30px;
}

@keyframes esdGlow{
  0%{ filter: drop-shadow(0 8px 22px rgba(0,0,0,.28)) drop-shadow(0 0 10px rgba(31,143,255,.10)); }
  50%{ filter: drop-shadow(0 10px 28px rgba(0,0,0,.34)) drop-shadow(0 0 18px rgba(31,143,255,.22)); }
  100%{ filter: drop-shadow(0 8px 22px rgba(0,0,0,.28)) drop-shadow(0 0 10px rgba(31,143,255,.10)); }
}
.hero h1{
  margin: 0 auto 10px;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: min(100%, 15ch);
  text-align: center;
}
.hero p{
  margin: 0 auto 16px;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height:1.45;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.04em;
}
.btn-primary{
  background: linear-gradient(90deg, #ff9b24, #ffd45f);
  color:#061024;
  box-shadow: 0 16px 36px rgba(255,155,36,.18);
}
.btn-primary:hover{filter:brightness(1.05)}

.section{
  padding: 34px 0;
}
.section h2{
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  text-align:center;
}
.section .lead{
  text-align:center;
  margin: 0 auto 26px;
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad{padding: 22px}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px){
  .grid-3{grid-template-columns: 1fr; gap: 14px;}
  .esd-nav-inner{justify-content:space-around; gap: 8px;}
  .esd-nav a{font-size:11px; padding:10px 8px;}
}

.service-img{width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:18px;margin-bottom:14px;background:rgba(255,255,255,.02);}
.service-img img{width:100%;height:100%;object-fit:cover;display:block;}

.service-title{
  margin: 14px 0 8px;
  font-size: 22px;
}
.service-text{
  margin: 0;
  color: var(--muted);
  line-height:1.55;
}

.split{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
}
@media (max-width: 900px){
  .split{grid-template-columns: 1fr;}
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size: 12px;
}

.pack-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px){
  .pack-grid{grid-template-columns: 1fr;}
}
.pack h3{margin:0 0 10px; font-size: 20px}
.pack ul{margin: 0; padding-left: 18px; color: var(--muted); line-height:1.6}
.pack .meta{margin-top:12px; color: rgba(255,255,255,.9); font-weight:700}

.footer{
  padding: 28px 0 60px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.footer .row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px 18px;
  justify-content: space-between;
  align-items:center;
  color: var(--muted);
  font-size: 13px;
}
.footer a{color: rgba(255,255,255,.88); text-decoration:none}
.footer a:hover{text-decoration:underline}

/* Cookie banner */
.esd-cookie{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2000;
  display:none;
}
.esd-cookie .inner{
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(3,6,16,.88);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px;
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.esd-cookie p{margin:0; color: var(--muted); font-size: 13px; line-height:1.35}
.esd-cookie .actions{display:flex; gap:10px; flex-wrap:wrap}
.esd-cookie button{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight:800;
  cursor:pointer;
}
.esd-cookie button.accept{
  border:none;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color:#061024;
}
.esd-cookie button:hover{filter:brightness(1.05)}




/* Service card media: use the wrapper aspect-ratio instead of forcing a fixed img height */
.service-card .service-img{width:100%; aspect-ratio: 16 / 9; overflow:hidden; border-radius:18px; margin-bottom:14px; background:rgba(255,255,255,.02);}
.service-card .service-img img{width:100%; height:100%; object-fit:cover; display:block;}

/* Legal pages */
.legal-page { padding: 120px 16px 60px; max-width: 980px; margin: 0 auto; color: #eaf2ff; }
.legal-hero h1 { font-size: 38px; margin: 0 0 8px; }
.legal-hero p { opacity: .85; margin: 0 0 24px; }
.legal-content { background: rgba(10,14,25,.55); border: 1px solid rgba(120,160,255,.18); border-radius: 20px; padding: 18px 16px; }
.legal-content h2 { margin-top: 18px; font-size: 20px; }
.legal-content p, .legal-content li { opacity: .9; line-height: 1.6; }
.legal-updated { margin-top: 18px; opacity: .7; font-size: 13px; }
.esd-footer-cookie { display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; padding: 12px 0; }


/* Top hero image full width transparent */
.hero-top-image{
  width:100%;
  display:flex;
  justify-content:center;
  margin-bottom:20px;
}

.hero-top-image img{
  width:100%;
  max-width:1100px;
  height:auto;
  object-fit:cover;
  background:transparent;
}



/* Premium nav + hero refinements */
.esd-nav{
  background: rgba(3,6,16,.62);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.esd-nav a{
  position: relative;
  color: rgba(255,255,255,.88);
  transition: color .28s ease, text-shadow .28s ease, opacity .28s ease;
}




.hero .btn{
  padding: 15px 28px;
  font-size: 16px;
}
.hero .btn-primary:hover{
  filter: brightness(1.03);
}

@keyframes logoBreath{
  0%,100%{
    transform: translateY(0);
    filter:
      drop-shadow(0 0 4px rgba(255,255,255,.18))
      drop-shadow(0 0 10px rgba(255,217,163,.18))
      drop-shadow(0 6px 18px rgba(0,0,0,.18));
  }
  50%{
    transform: translateY(-1px);
    filter:
      drop-shadow(0 0 6px rgba(255,255,255,.24))
      drop-shadow(0 0 16px rgba(255,223,170,.24))
      drop-shadow(0 8px 20px rgba(0,0,0,.20));
  }
}

@media (max-width: 900px){
  .hero h1{
    max-width: 11ch;
  }
}
@media (max-width: 768px){
  .hero{
    padding: 0 0 14px;
  }
  .hero-logo{
    width:min(520px, 94vw);
    margin:-8px auto 8px;
  }
  .hero h1{
    margin: 0 auto 8px;
    font-size: clamp(28px, 9vw, 42px);
    line-height:1.02;
    max-width: 11ch;
  }
  .hero p{
    margin: 0 auto 14px;
    font-size: 15px;
    max-width: 92%;
  }
  
}


/* MENU CLEAN STILE LOGO */
.esd-nav a{
    position: relative;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.esd-nav a:hover{
    color: #ffffff;
}

.esd-nav a.active{
    color: #ffffff;
}



/* NAV GLASS EFFECT */
.esd-nav{
    backdrop-filter: blur(12px);
    background: rgba(5,10,25,0.65);
}


@media (max-width: 768px){
  .hero-logo{
    width:min(520px, 94vw);
    margin: 16px auto 24px;
  }
  .hero h1{
    font-size: clamp(28px, 8.4vw, 44px);
    max-width: 95vw;
    line-height: 1.04;
    margin: 0 auto 10px;
  }
  .hero p{
    max-width: 94vw;
  }
}


/* MENU FONT STILE LOGO */
.esd-nav a{
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.esd-nav a:hover{
    color: #ffffff;
}

/* ACTIVE SENZA LINEA */
.esd-nav a.active{
    color: #ffffff;
    font-weight: 700;
}


/* Portfolio, pulsanti animati e micro-interazioni */
[id]{scroll-margin-top:84px}

.section-kicker{
  width:max-content;
  margin:0 auto 10px;
  padding:7px 12px;
  border:1px solid rgba(255,190,92,.28);
  border-radius:999px;
  background:rgba(255,163,35,.08);
  color:#ffd37c;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.btn,
.esd-cta{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  transform:translateZ(0);
  transition:
    transform .28s cubic-bezier(.2,.75,.25,1),
    box-shadow .28s ease,
    filter .28s ease,
    border-color .28s ease;
}

.btn::after,
.esd-cta::after{
  content:"";
  position:absolute;
  top:-80%;
  left:-55%;
  width:28%;
  height:260%;
  pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform:rotate(18deg);
  transition:left .62s cubic-bezier(.2,.75,.25,1);
}

.btn:focus-visible,
.esd-cta:focus-visible,
.portfolio-card:focus-visible,
.wa-float:focus-visible{
  outline:3px solid rgba(255,211,77,.9);
  outline-offset:4px;
}

.portfolio-section{
  position:relative;
  isolation:isolate;
}

.portfolio-section::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(38% 32% at 15% 40%, rgba(255,138,0,.10), transparent 72%),
    radial-gradient(34% 34% at 88% 62%, rgba(47,126,255,.10), transparent 72%);
}

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
}

.portfolio-card{
  display:block;
  min-width:0;
  overflow:hidden;
  color:inherit;
  text-decoration:none;
  border-color:rgba(255,255,255,.10);
  background:linear-gradient(155deg, rgba(14,22,46,.94), rgba(7,12,28,.88));
  transition:
    transform .42s cubic-bezier(.2,.75,.25,1),
    border-color .32s ease,
    box-shadow .42s ease;
}

.portfolio-toolbar{
  height:38px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 13px;
  background:rgba(4,8,19,.96);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.portfolio-dots{
  display:flex;
  gap:5px;
  flex:0 0 auto;
}

.portfolio-dots i{
  width:7px;
  height:7px;
  display:block;
  border-radius:50%;
  background:rgba(255,255,255,.24);
}

.portfolio-dots i:first-child{background:#ff725f}
.portfolio-dots i:nth-child(2){background:#ffc34d}
.portfolio-dots i:nth-child(3){background:#57d98b}

.portfolio-domain{
  min-width:0;
  overflow:hidden;
  color:rgba(234,240,255,.64);
  font-size:11px;
  letter-spacing:.04em;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portfolio-shot{
  position:relative;
  aspect-ratio:3 / 2;
  overflow:hidden;
  background:#11182d;
}

.portfolio-shot::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, transparent 58%, rgba(3,7,18,.45));
}

.portfolio-shot img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  transition:transform .7s cubic-bezier(.2,.75,.25,1), filter .4s ease;
}

.portfolio-visit{
  position:absolute;
  z-index:2;
  right:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  background:rgba(3,8,20,.78);
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#fff;
  font-size:12px;
  font-weight:800;
  transform:translateY(5px);
  opacity:.90;
  transition:transform .3s ease, background .3s ease, opacity .3s ease;
}

.portfolio-content{padding:20px 20px 22px}

.portfolio-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
  color:#ffc96b;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.portfolio-meta span:last-child{color:rgba(234,240,255,.48)}

.portfolio-card h3{
  margin:0 0 9px;
  font-size:clamp(21px, 2.5vw, 27px);
  line-height:1.15;
}

.portfolio-card p{
  margin:0;
  color:var(--muted);
  line-height:1.58;
}

.portfolio-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:16px;
  color:#fff;
  font-size:13px;
  font-weight:800;
}

.portfolio-link span{
  color:#ffc85d;
  transition:transform .28s ease;
}

.portfolio-cta{
  margin-top:24px;
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  text-align:center;
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  background:rgba(5,10,24,.56);
}

.portfolio-cta p{
  margin:0;
  color:rgba(234,240,255,.86);
  font-weight:700;
}

.esd-js .esd-reveal{
  opacity:0;
  transform:translateY(24px);
}

.esd-js .esd-reveal.is-visible{
  opacity:1;
  transform:translateY(0);
  transition:
    opacity .62s ease,
    transform .62s cubic-bezier(.2,.75,.25,1),
    border-color .32s ease,
    box-shadow .42s ease;
}

.hero-video-wrap{
  width:100vw;
  max-width:none;
  aspect-ratio:1 / 1;
  margin:0 calc(50% - 50vw) 28px;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:#020817 url('assets/hero-logo-poster.webp') center / cover no-repeat;
  box-shadow:none;
  line-height:0;
}

.hero-video,
.hero-video-fallback{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.hero-video{background:#020817}

.wa-float{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:9999;
  width:55px;
  height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  box-shadow:0 10px 28px rgba(0,0,0,.30), 0 0 0 0 rgba(37,211,102,.35);
  color:#fff;
  font-size:26px;
  text-decoration:none;
  transition:transform .28s cubic-bezier(.2,.75,.25,1), box-shadow .28s ease;
  animation:waSoftPulse 3.2s ease-in-out infinite;
}

@keyframes waSoftPulse{
  0%,100%{box-shadow:0 10px 28px rgba(0,0,0,.30), 0 0 0 0 rgba(37,211,102,.30)}
  50%{box-shadow:0 12px 32px rgba(0,0,0,.34), 0 0 0 10px rgba(37,211,102,0)}
}

@media (hover:hover){
  .btn:hover,
  .esd-cta:hover{
    transform:translateY(-3px) scale(1.018);
    filter:brightness(1.06);
    box-shadow:0 18px 38px rgba(255,155,36,.25);
  }

  .btn:hover::after,
  .esd-cta:hover::after{left:130%}

  .btn:active,
  .esd-cta:active{transform:translateY(0) scale(.975)}

  .portfolio-card.esd-reveal.is-visible:hover,
  .portfolio-card:hover{
    transform:translateY(-8px);
    border-color:rgba(255,190,92,.38);
    box-shadow:0 24px 70px rgba(0,0,0,.52), 0 0 36px rgba(255,138,0,.08);
  }

  .portfolio-card:hover .portfolio-shot img{
    transform:scale(1.045);
    filter:saturate(1.06) contrast(1.02);
  }

  .portfolio-card:hover .portfolio-visit{
    transform:translateY(0);
    opacity:1;
    background:rgba(6,13,30,.90);
  }

  .portfolio-card:hover .portfolio-link span{transform:translate(3px,-3px)}
  .wa-float:hover{transform:translateY(-4px) scale(1.08); box-shadow:0 16px 36px rgba(0,0,0,.34)}
}

@media (max-width:900px){
  .portfolio-grid{grid-template-columns:1fr}

  .esd-nav .esd-container{
    max-width:none;
    padding:0;
  }

  .esd-nav-inner{
    justify-content:flex-start;
    gap:4px;
    overflow-x:auto;
    padding:0 12px;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }

  .esd-nav-inner::-webkit-scrollbar{display:none}
  .esd-nav a{flex:0 0 auto; font-size:10px; padding:10px 8px}
}

@media (max-width:560px){
  .portfolio-content{padding:17px 17px 19px}
  .portfolio-card h3{font-size:22px}
  .portfolio-card p{font-size:14px}
  .portfolio-visit{right:10px; bottom:10px; padding:8px 10px}
  .portfolio-cta{align-items:stretch}
  .portfolio-cta .btn{width:100%}
  .wa-float{right:16px; bottom:16px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    transition-delay:0ms !important;
  }
  .esd-js .esd-reveal{opacity:1; transform:none}
  .hero-video{display:none}
}
