/*
Theme Name: Image Hotspots
Theme URI: https://pleaseup.com
Author: Pleaseup
Author URI: https://pleaseup.com
Description: Bilingual (IT/EN) landing page theme for the "Image Hotspots – Interactive Image Map & Tooltips" plugin. Defaults auto-switch based on site locale. All content editable via Page meta boxes and Customizer.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-image-hotspots
Domain Path: /languages
Tags: one-page, landing-page, custom-logo
*/

/* ─── CSS VARIABLES (values injected by Customizer via wp_head inline style) ── */
:root {
  --bg:     #EFEFED;
  --white:  #FFFFFF;
  --dark:   #0D0D0C;
  --mid:    #6B6B67;
  --accent: #00C896;
  --acc2:   #00A07A;
  --border: rgba(0,0,0,0.07);
  --r:      18px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
body{font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--dark);overflow-x:hidden}
h1,h2,h3,h4,h5{font-family:inherit}

/* A11y: skip link + focus + visually hidden helper */
.screen-reader-text{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.screen-reader-text:focus{
  background:var(--white);
  color:var(--dark);
  border-radius:4px;
  clip:auto !important;
  clip-path:none;
  display:block;
  font-size:14px;
  font-weight:600;
  height:auto;
  left:8px;
  line-height:normal;
  padding:12px 16px;
  text-decoration:none;
  top:8px;
  width:auto;
  z-index:100000;
  outline:2px solid var(--accent);
}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btn-dark:focus-visible,.btn-accent:focus-visible,.nav-btn:focus-visible{outline-offset:3px}

/* NAV — 3-column grid: logo | menu (center) | cta */
nav.site-nav{
  position:fixed;top:0;left:0;right:0;z-index:200;
  display:grid;grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:14px 44px;
  background:rgba(239,239,237,.82);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
  gap:16px;
}
/* Slot 1 — logo (sinistra) */
.nav-logo-wrap{display:flex;align-items:center;gap:8px;text-decoration:none;justify-content:flex-start}
.nav-logo-wrap .custom-logo{display:block;height:32px;width:auto;max-width:160px;object-fit:contain}
.nav-logo-text{font-weight:800;font-size:14px;letter-spacing:-.2px;color:var(--dark)}
.logo-pill{background:var(--accent);color:#fff;font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px;letter-spacing:.4px;white-space:nowrap}
/* Slot 2 — menu (centro) */
.nav-links{display:flex;gap:28px;list-style:none;justify-content:center}
.nav-links a{font-size:13px;font-weight:500;color:var(--mid);text-decoration:none;transition:color .2s}
.nav-links a:hover{color:var(--dark)}
/* WP wraps menu in <div class="menu-*"> — neutralize it */
nav.site-nav > div[class*="menu"]{display:contents}
/* Slot 3 — CTA (destra) */
.nav-cta{display:flex;justify-content:flex-end}
.nav-btn{background:var(--dark);color:#fff;padding:9px 20px;border-radius:50px;font-size:13px;font-weight:600;text-decoration:none;transition:background .2s;white-space:nowrap}
.nav-btn:hover{background:var(--accent)}
/* Remove WP's default custom-logo link wrapper styles */
.custom-logo-link{display:flex;align-items:center;line-height:1}

/* HERO */
.hero{padding:120px 44px 0;display:flex;flex-direction:column;align-items:flex-start}
.hero-bubble{background:var(--white);border-radius:24px;border:1px solid var(--border);padding:48px 52px 52px;box-shadow:0 20px 60px rgba(0,0,0,.08),0 2px 8px rgba(0,0,0,.04);position:relative;max-width:860px;animation:up .5s ease both}
.hero-bubble::after{content:'';position:absolute;bottom:-22px;left:60px;width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:22px solid var(--white)}
.hero-bubble::before{content:'';position:absolute;bottom:-24px;left:58px;width:0;height:0;border-left:16px solid transparent;border-right:16px solid transparent;border-top:24px solid var(--border)}
.hero-pin{position:absolute;bottom:-68px;left:58px;width:32px;height:32px}
.hero-pin-ring{width:32px;height:32px;border:2px solid rgba(0,0,0,.15);border-radius:50%;position:absolute;inset:0;animation:ringPulse 2.8s infinite}
.hero-pin-dot{width:12px;height:12px;background:var(--accent);border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 3px rgba(0,200,150,.25)}
@keyframes ringPulse{0%,100%{transform:scale(1);opacity:.8}55%{transform:scale(1.7);opacity:0}}
.hero-product-name{font-size:28px;font-weight:800;letter-spacing:-.5px;color:var(--dark);margin-bottom:16px;display:flex;align-items:center;gap:10px}
.hero-product-name::before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--accent);flex-shrink:0}
.hero h1{font-size:clamp(54px,7.5vw,104px);font-weight:800;line-height:.92;letter-spacing:-4px;max-width:820px}
.hero h1 .green{color:var(--accent)}
.hero-sub{font-size:17px;color:var(--mid);font-weight:400;max-width:480px;margin-top:22px;line-height:1.65}
.hero-actions{display:flex;align-items:center;gap:14px;margin-top:36px}
@keyframes up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* BUTTONS */
.btn-dark{background:var(--dark);color:#fff;padding:13px 26px;border-radius:50px;font-size:13px;font-weight:600;text-decoration:none;transition:background .2s,transform .15s;display:inline-flex;align-items:center;gap:7px}
.btn-dark:hover{background:var(--accent);transform:translateY(-1px)}
.btn-ghost{font-size:13px;font-weight:500;color:var(--mid);text-decoration:none;transition:color .2s}
.btn-ghost:hover{color:var(--dark)}
.btn-accent{background:var(--accent);color:var(--dark);padding:14px 30px;border-radius:50px;font-size:14px;font-weight:700;text-decoration:none;transition:background .2s,transform .15s;display:inline-flex;align-items:center;gap:8px}
.btn-accent:hover{background:var(--acc2);transform:translateY(-2px)}

/* HERO MOCKUP */
.hero-mockup{width:100%;max-width:1160px;margin:96px auto -10px;animation:up .7s .32s ease both;padding:0 44px}
/* Il div si adatta all'altezza reale dell'immagine — nessun aspect-ratio forzato */
.hero-mockup img{
  display:block;
  width:100% !important;   /* sovrascrive width="NNN" inline di WP */
  height:auto !important;  /* sovrascrive height="NNN" inline di WP — proporzionale */
  border-radius:16px;
  box-shadow:0 8px 40px rgba(0,0,0,.18);
}
.hero-mockup-ph{width:100%;border-radius:16px;aspect-ratio:16/9;background:#2a2a28;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 40px rgba(0,0,0,.18)}
.hero-mockup-ph span{color:rgba(255,255,255,.3);font-size:13px}

/* STATS */
.stats{display:flex;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--white)}
.stat{flex:1;padding:28px 0;text-align:center;border-right:1px solid var(--border)}
.stat:last-child{border-right:none}
.stat-n{font-size:28px;font-weight:800;letter-spacing:-1px;color:var(--accent)}
.stat-l{font-size:12px;color:var(--mid);margin-top:2px}

/* SHARED */
section{padding:96px 44px}
.wrap{max-width:1120px;margin:0 auto}
.label{font-size:11px;font-weight:600;letter-spacing:1.8px;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.h2{font-size:clamp(38px,4.5vw,62px);font-weight:800;letter-spacing:-2.5px;line-height:.95}
.h2 em{font-style:normal;color:var(--accent)}
.body-lead{font-size:16px;color:var(--mid);max-width:460px;margin-top:18px;font-weight:400;line-height:1.7}

/* HOW IT WORKS */
.how{background:var(--white)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:56px}
.step{background:var(--bg);border-radius:var(--r);overflow:hidden;transition:transform .3s;display:flex;flex-direction:column;list-style:none}
.step:hover{transform:translateY(-4px)}
.step--delay-1{transition-delay:.1s}
.step--delay-2{transition-delay:.2s}
.steps{padding:0;list-style:none}
.step-visual{display:none}
.step-body{padding:28px 28px 32px}
.step-num{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--accent);margin-bottom:10px}
.step-body h3{font-size:20px;font-weight:800;letter-spacing:-.6px;margin-bottom:8px}
.step-body p{font-size:14px;color:var(--mid);line-height:1.6}

/* USE CASES */
.cases{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:56px}
.case{border-radius:var(--r);overflow:hidden;background:var(--dark);display:flex;flex-direction:column;transition:transform .3s}
.case.light{background:var(--white);border:1px solid var(--border)}
.case:hover{transform:translateY(-4px)}
.case-art{width:100%;aspect-ratio:16/7;position:relative;overflow:hidden;background:#1a1a18}
.case.light .case-art{background:#eee}
.case-art img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;max-width:none!important}
.case-art .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:11px;color:rgba(255,255,255,.3)}
.case.light .case-art .ph{color:rgba(0,0,0,.3)}
.case-content{padding:28px 32px 32px;color:var(--white)}
.case.light .case-content{color:var(--dark)}
.case-content h3{font-size:20px;font-weight:800;letter-spacing:-.5px;margin-bottom:8px}
.case-content p{font-size:14px;opacity:.7;line-height:1.6}

/* FEATURES */
.feat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:56px}
.feat{background:var(--white);border-radius:var(--r);overflow:hidden;border:1px solid var(--border);transition:transform .3s;display:flex;flex-direction:column}
.feat:hover{transform:translateY(-4px)}
.feat-swatch{display:none}
.feat-text{padding:24px 26px 28px}
.feat-text h4{font-size:16px;font-weight:700;letter-spacing:-.3px;margin-bottom:7px}
.feat-text p{font-size:13px;color:var(--mid);line-height:1.6}

/* TECH STRIP */
.tech{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:22px 44px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--white)}
.tech-item{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--mid);padding:8px 24px}
.tech-div{width:1px;height:20px;background:var(--border)}
.chk{width:16px;height:16px;border-radius:50%;background:rgba(0,200,150,.12);border:1.5px solid var(--accent);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.chk::after{content:'';width:6px;height:4px;border-left:1.5px solid var(--accent);border-bottom:1.5px solid var(--accent);transform:rotate(-45deg) translateY(-1px);display:block}

/* CTA */
.cta-final{background:var(--dark);color:var(--white);padding:100px 44px;text-align:center;position:relative;overflow:hidden}
.cta-glow{position:absolute;top:-100px;left:50%;transform:translateX(-50%);width:600px;height:400px;background:radial-gradient(circle,rgba(0,200,150,.18) 0%,transparent 70%);pointer-events:none}
.cta-final h2{font-size:clamp(42px,5.5vw,76px);font-weight:800;letter-spacing:-3px;line-height:.93;margin-bottom:18px}
.cta-final h2 em{font-style:normal;color:var(--accent)}
.cta-final>.wrap>p{font-size:16px;color:rgba(255,255,255,.55);margin-bottom:36px}

/* FOOTER */
footer.site-footer{display:flex;align-items:center;justify-content:space-between;padding:24px 44px;border-top:1px solid var(--border);font-size:12px;color:var(--mid)}
footer.site-footer a{color:inherit;text-decoration:none}
footer.site-footer a:hover{color:var(--dark)}
.fl{font-weight:600}
.fl2{color:var(--accent)!important;font-weight:500}

/* SCROLL REVEAL */
.rv{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.rv.on{opacity:1;transform:translateY(0)}

/* RESPONSIVE */
@media(max-width:900px){
  nav.site-nav{padding:12px 22px;grid-template-columns:1fr auto;gap:8px}
  .nav-links{display:none}
  .nav-cta{grid-column:2}
  .hero{padding:90px 22px 0}
  .hero-bubble{padding:28px 24px 32px}
  .hero h1{letter-spacing:-2px}
  .steps,.cases,.feat-grid{grid-template-columns:1fr}
  section{padding:64px 22px}
  .tech{flex-direction:column;align-items:flex-start}
  .tech-div{display:none}
  footer.site-footer{flex-direction:column;gap:8px;text-align:center;padding:20px}
  .stats{flex-wrap:wrap}
  .stat{flex:1 1 50%}
  .hero-mockup{padding:0 22px}
}

/* ─── Immagini da shortcode nei meta box ─────────────────────────────────── */
/* Il plugin Image Hotspots wrappa l'immagine — forziamo piena larghezza */
.wihs-sc-wrap,
.wihs-sc-wrap > *,
.wihs-media-img {
  display: block;
  width: 100% !important;
  height: auto !important;
}
/* Nelle card (step-visual, case-art, feat-swatch) l'immagine riempie il box */
.step-visual .wihs-sc-wrap,
.case-art .wihs-sc-wrap,
.feat-swatch .wihs-sc-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.step-visual .wihs-sc-wrap > *,
.case-art .wihs-sc-wrap > *,
.feat-swatch .wihs-sc-wrap > * {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Hero mockup da shortcode */
.wihs-hero-sc,
.wihs-hero-sc > * {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

/* ═══════════════════════════════════════════════════
   CHANGELOG — reset WP globals
════════════════════════════════════════════════════ */
.changelog { background: var(--bg); }
.cl-list {
  margin-top: 52px !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.cl-release {
  background: var(--white) !important;
  border-radius: var(--r) !important;
  border: 1px solid var(--border) !important;
  overflow: hidden !important;
  transition: box-shadow .2s;
  padding: 0 !important;
  margin: 0 !important;
}
.cl-release:hover { box-shadow: 0 8px 32px rgba(0,0,0,.06) !important; }
.cl-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 20px 26px !important;
  cursor: pointer !important;
  user-select: none;
  margin: 0 !important;
}
.cl-version {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -.3px;
  color: var(--dark) !important;
  min-width: 52px;
  white-space: nowrap;
}
.cl-date {
  font-size: 11px !important;
  color: var(--mid) !important;
  font-weight: 500 !important;
  white-space: nowrap;
}
.cl-tags {
  display: flex !important;
  gap: 5px !important;
  flex-wrap: wrap;
  margin-left: auto !important;
  padding: 0 !important;
  list-style: none !important;
}
.cl-tag {
  display: inline-block !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  letter-spacing: .5px;
  text-transform: uppercase !important;
  line-height: 1.6 !important;
}
.cl-tag-new      { background: rgba(0,200,150,.1) !important;  color: #008060 !important; }
.cl-tag-fix      { background: rgba(255,140,0,.1) !important;  color: #b86000 !important; }
.cl-tag-improved { background: rgba(85,85,204,.1) !important;  color: #4444aa !important; }
.cl-chevron {
  margin-left: 8px;
  color: var(--mid);
  font-size: 12px;
  transition: transform .3s;
  flex-shrink: 0;
}
.cl-release.open .cl-chevron { transform: rotate(180deg); }
.cl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 26px !important;
}
.cl-release.open .cl-body { max-height: 800px !important; padding: 0 26px 22px !important; }

/* Voci changelog — reset lista WP */
.cl-items {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
.cl-items li {
  list-style: none !important;
  list-style-type: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  font-size: 13px !important;
  color: var(--mid) !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
}
.cl-items li::before,
.cl-items li::after { display: none !important; content: none !important; }
.cl-dot {
  flex-shrink: 0 !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--accent) !important;
  margin-top: 5px !important;
}

/* Responsive */
@media(max-width:700px){
  .cl-header { flex-wrap: wrap; gap: 8px; }
  .cl-tags { margin-left: 0 !important; }
}
