/*
Theme Name: Cube Solution Service
Theme URI: https://cubesolutionservice.it
Author: Cube Solution Service
Author URI: https://cubesolutionservice.it
Description: Tema professionale per Cube Solution Service. Consulenza strategica, finanza agevolata, assistenza tecnica e servizi per imprese. Santa Croce di Magliano (CB).
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cube-solution
Tags: business, consulting, one-page, custom-colors, custom-logo, full-width-template
*/

/* === VARIABILI BRAND === */
:root {
  --teal:       #1aafb0;
  --teal2:      #138a8b;
  --teal3:      #0d6465;
  --amber:      #EF9F27;
  --coral:      #D85A30;
  --verde:      #5DCAA5;
  --dark:       #1c2424;
  --mid:        #3d5555;
  --light:      #7a9999;
  --pale:       #f2fafa;
  --border:     #daeaea;
  --white:      #ffffff;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--teal2); }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  line-height: 1.08;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .75rem; }
h3 { font-size: 1rem; }

.section-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: .67rem; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .55rem;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--teal); border-radius: 2px; flex-shrink: 0;
}
.section-sub { font-size: .93rem; line-height: 1.8; color: var(--mid); font-weight: 300; max-width: 500px; }

/* === BUTTONS === */
.btn, .btn-ghost, .btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .72rem 1.6rem; border-radius: 6px;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900; font-size: .85rem;
  text-decoration: none; transition: all .22s;
  cursor: pointer; border: none;
}
.btn { background: var(--teal); color: #fff; }
.btn:hover { background: var(--teal2); color: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline { border: 1.5px solid var(--border); color: var(--dark); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* === LAYOUT === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 6%; }
section { padding: 5.5rem 6%; }

/* === NAVBAR === */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 86px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; background: #fff; border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

/* Brand / Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo svg, .site-logo img { height: 68px; width: auto; display: block; }

/* ISO Badges */
.iso-badges { display: flex; align-items: center; gap: 6px; margin-left: 1rem; }
.iso-badge { opacity: .85; transition: all .3s; cursor: pointer; }
.iso-badge:hover { opacity: 1; transform: scale(1.12); }
.iso-badge svg, .iso-badge img { display: block; width: 46px; height: 46px; }

/* Navigation Menu */
.main-nav ul {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.main-nav a {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: .88rem; font-weight: 900; color: var(--mid);
  text-decoration: none; transition: color .25s;
  position: relative; padding-bottom: 3px; letter-spacing: .01em;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2.5px; border-radius: 2px;
  transition: width .28s cubic-bezier(.34,1.2,.64,1);
}
.main-nav li:nth-child(1) a::after { background: var(--teal); }
.main-nav li:nth-child(1) a:hover  { color: var(--teal); }
.main-nav li:nth-child(2) a::after { background: var(--amber); }
.main-nav li:nth-child(2) a:hover  { color: #c47f10; }
.main-nav li:nth-child(3) a::after { background: var(--coral); }
.main-nav li:nth-child(3) a:hover  { color: var(--coral); }
.main-nav li:nth-child(4) a::after { background: var(--verde); }
.main-nav li:nth-child(4) a:hover  { color: #0d8a65; }
.main-nav li a:hover::after { width: 100%; }
.main-nav .nav-cta {
  background: var(--teal); color: #fff !important;
  padding: .45rem 1.2rem; border-radius: 6px; font-size: .78rem;
}
.main-nav .nav-cta::after { display: none !important; }
.main-nav .nav-cta:hover { background: var(--teal2) !important; color: #fff !important; }

/* WA button navbar */
.wa-nav {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25D366; color: #fff; text-decoration: none;
  padding: .42rem 1rem; border-radius: 100px;
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: .8rem; font-weight: 900; white-space: nowrap;
  transition: all .25s;
}
.wa-nav:hover { background: #1eab55; transform: translateY(-1px); color: #fff; }
.wa-nav span { font-size: .76rem; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 201;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; display: block; transition: all .3s; }

/* === HERO === */
#hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding-top: 86px; overflow: hidden; position: relative;
}
.hero-left {
  background: var(--dark); min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 5% 10rem 6%; position: relative; overflow: hidden;
}
.hero-accent-line {
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--teal), transparent);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: .65rem 1.4rem .65rem 1rem; margin-bottom: 1.8rem;
  font-size: 1.25rem; font-weight: 400; font-style: italic;
  color: var(--teal2); font-family: Georgia, 'Times New Roman', serif;
  background: rgba(26,175,176,.08); border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0; line-height: 1.3;
}
#hero h1 { color: #fff; margin-bottom: 1.2rem; }
#hero h1 em { color: var(--teal); font-style: normal; }
.hero-desc { font-size: .95rem; line-height: 1.82; color: rgba(255,255,255,.55); max-width: 420px; margin-bottom: 2.2rem; font-weight: 300; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-cta-phrase {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 1.6rem; font-family: Georgia, serif;
  font-size: .95rem; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,.5); line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem;
}
.hero-cta-phrase em { color: var(--teal); }
.hero-logo-deco {
  position: absolute; bottom: -40px; right: -40px; width: 340px;
  opacity: .05; pointer-events: none; overflow: hidden;
}
.hero-logo-deco svg { width: 100%; height: auto; }

.hero-right {
  background: var(--pale); min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 6% 10rem 5%; position: relative;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(26,175,176,.07) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
/* Hero dashboard card */
.hero-brand-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 32px rgba(0,0,0,.07); overflow: hidden; position: relative; z-index: 1; }
.hbc-header { background: var(--dark); padding: 1.4rem 1.8rem; display: flex; align-items: center; justify-content: space-between; }
.hbc-logo svg, .hbc-logo-wrap svg { height: 42px; width: auto; display: block; }
.hbc-badge { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(26,175,176,.35); padding: .22rem .65rem; border-radius: 4px; background: rgba(26,175,176,.08); }
.hbc-body { padding: 1.5rem 1.8rem; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.kpi { background: var(--pale); border-radius: 10px; padding: .9rem 1rem; border: 1px solid var(--border); }
.kpi-n { font-family: 'Arial Black', Arial, sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--teal); line-height: 1; }
.kpi-l { font-size: .7rem; color: var(--light); margin-top: 2px; }
.svc-row { display: flex; flex-direction: column; gap: .45rem; }
.svc-item { display: flex; align-items: center; gap: .7rem; background: var(--pale); border-radius: 7px; padding: .55rem .85rem; border: 1px solid var(--border); font-size: .8rem; color: var(--dark); font-weight: 500; }
.si-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.si-ok { margin-left: auto; font-size: .68rem; color: var(--teal); font-weight: 700; background: rgba(26,175,176,.1); padding: .15rem .45rem; border-radius: 3px; }
.hbc-footer { padding: .8rem 1.8rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--pale); }
.hbc-footer span { font-size: .72rem; color: var(--light); }
.hbc-footer strong { font-size: .72rem; color: var(--teal); font-weight: 600; }

/* Float badges hero */
.float-badge { position: absolute; background: #fff; border-radius: 10px; padding: .6rem .9rem; box-shadow: 0 4px 16px rgba(0,0,0,.1); border: 1px solid var(--border); font-size: .73rem; display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--dark); white-space: nowrap; z-index: 2; }
.fb1 { top: 18%; right: 5%; }
.fb2 { bottom: 22%; left: 5%; }

/* Stats bar */
.stats-bar { background: #fff; border-top: 1px solid var(--border); padding: .85rem 6%; display: flex; align-items: center; position: absolute; bottom: 0; left: 0; right: 0; z-index: 10; }
.sb-item { flex: 1; display: flex; align-items: center; gap: .75rem; padding: 0 1.2rem; }
.sb-item:not(:last-child) { border-right: 1px solid var(--border); }
.sb-item:first-child { padding-left: 0; }
.sb-n { font-family: 'Arial Black', Arial, sans-serif; font-size: 1.35rem; font-weight: 900; color: var(--dark); }
.sb-l { font-size: .72rem; color: var(--light); line-height: 1.4; }
.sb-wa { flex: 1.4 !important; }
.sb-wa a { display: flex; align-items: center; gap: .65rem; text-decoration: none; transition: all .25s; }
.sb-wa a:hover { transform: scale(1.04); }
.sb-wa-n { display: block; font-family: 'Arial Black', Arial, sans-serif; font-size: 1.1rem; font-weight: 900; color: var(--dark); line-height: 1; transition: color .25s; }
.sb-wa a:hover .sb-wa-n { color: #25D366; }
.sb-wa-l { display: block; font-size: .68rem; color: var(--light); margin-top: 2px; font-style: italic; }

/* === STRIP === */
.strip { background: var(--teal); padding: 1.1rem 6%; display: flex; gap: 2.5rem; align-items: center; overflow: hidden; flex-wrap: wrap; }
.strip-item { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.95); letter-spacing: .04em; font-family: 'Arial Black', Arial, sans-serif; }
.strip-sep { color: rgba(255,255,255,.3); }

/* === SERVIZI === */
#servizi { background: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.8rem; }
.svc-card {
  border: 1px solid var(--border); border-left-width: 4px !important;
  border-radius: 0 12px 12px 0; padding: 1.7rem;
  transition: all .28s cubic-bezier(.34,1.2,.64,1);
  background: #fff; cursor: pointer; position: relative; overflow: hidden;
}
.svc-card::after { display: none; }
.svc-card:hover { transform: translateY(-5px) scale(1.02); }
.svc-card[style*="#1aafb0"]:hover { background: rgba(26,175,176,.07); border-color: #1aafb0; box-shadow: 0 12px 32px rgba(26,175,176,.18); }
.svc-card[style*="#EF9F27"]:hover { background: rgba(239,159,39,.07); border-color: #EF9F27; box-shadow: 0 12px 32px rgba(239,159,39,.18); }
.svc-card[style*="#D85A30"]:hover { background: rgba(216,90,48,.07); border-color: #D85A30; box-shadow: 0 12px 32px rgba(216,90,48,.18); }
.svc-card[style*="#5DCAA5"]:hover { background: rgba(93,202,165,.07); border-color: #5DCAA5; box-shadow: 0 12px 32px rgba(93,202,165,.18); }
.svc-icon { width: 44px; height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 1rem; transition: background .25s; }
.ic-t { background: rgba(26,175,176,.1); } .ic-a { background: rgba(239,159,39,.1); }
.ic-c { background: rgba(216,90,48,.1); } .ic-g { background: rgba(93,202,165,.12); }
.ic-e { background: rgba(240,192,48,.13); } .ic-cl { background: rgba(26,175,176,.13); }
.svc-title { font-family: 'Arial Black', Arial, sans-serif; font-size: .88rem; font-weight: 900; color: var(--dark); margin-bottom: .4rem; transition: color .25s; }
.svc-desc { font-size: .83rem; line-height: 1.7; color: var(--mid); font-weight: 300; }
.svc-card[style*="#1aafb0"]:hover .svc-title { color: #1aafb0; }
.svc-card[style*="#EF9F27"]:hover .svc-title { color: #c47f10; }
.svc-card[style*="#D85A30"]:hover .svc-title { color: #D85A30; }
.svc-card[style*="#5DCAA5"]:hover .svc-title { color: #0d8a65; }
.svc-card[style*="#1aafb0"]:hover .svc-icon { background: rgba(26,175,176,.2); }
.svc-card[style*="#EF9F27"]:hover .svc-icon { background: rgba(239,159,39,.2); }
.svc-card[style*="#D85A30"]:hover .svc-icon { background: rgba(216,90,48,.2); }
.svc-card[style*="#5DCAA5"]:hover .svc-icon { background: rgba(93,202,165,.2); }
.svc-link-wrap { margin-top: .8rem; }
.svc-link { display: inline-flex; align-items: center; gap: 4px; font-size: .73rem; font-weight: 900; font-family: 'Arial Black', Arial, sans-serif; transition: all .25s; }
.svc-card:hover .svc-link { letter-spacing: .04em; }

/* === CHI SIAMO === */
#chi-siamo { background: var(--pale); }
.chi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.chi-card { background: var(--dark); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 30px rgba(0,0,0,.12); }
.cc-top { padding: 2rem 2rem 1.5rem; position: relative; overflow: hidden; }
.cc-top-logo { position: absolute; right: -20px; bottom: -10px; width: 160px; opacity: .06; pointer-events: none; }
.cc-top-logo svg { width: 100%; height: auto; }
.cc-stat { font-family: 'Arial Black', Arial, sans-serif; font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }
.cc-stat-label { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: .3rem; font-weight: 300; }
.cc-divider { height: 1px; background: rgba(255,255,255,.08); margin: 0 2rem; }
.cc-vals { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: .7rem; }
.cv { display: flex; align-items: flex-start; gap: .75rem; font-size: .83rem; color: rgba(255,255,255,.6); font-weight: 300; line-height: 1.55; }
.cv-chk { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; background: rgba(26,175,176,.15); border: 1px solid rgba(26,175,176,.3); display: flex; align-items: center; justify-content: center; font-size: .58rem; color: var(--teal); font-weight: 700; }

/* === BANDI === */
#bandi { background: #fff; }
.bandi-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.bandi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.bando { border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; background: var(--pale); transition: all .28s; }
.bando:hover { background: #fff; border-color: rgba(26,175,176,.3); box-shadow: 0 4px 18px rgba(26,175,176,.08); transform: translateY(-2px); }
.b-pill { display: inline-block; font-size: .63rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-family: 'Arial Black', Arial, sans-serif; padding: .22rem .7rem; border-radius: 4px; margin-bottom: .85rem; }
.p-eu { background: rgba(26,175,176,.1); color: var(--teal2); }
.p-reg { background: rgba(239,159,39,.1); color: #8a6010; }
.p-naz { background: rgba(216,90,48,.1); color: #8a3010; }
.b-title { font-family: 'Arial Black', Arial, sans-serif; font-size: .88rem; font-weight: 900; color: var(--dark); margin-bottom: .4rem; }
.b-desc { font-size: .81rem; line-height: 1.65; color: var(--mid); font-weight: 300; }
.b-foot { margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.b-date { font-size: .7rem; color: var(--light); }
.b-lnk { font-size: .73rem; font-weight: 700; font-family: 'Arial Black', Arial, sans-serif; color: var(--teal); text-decoration: none; transition: color .2s; }
.b-lnk:hover { color: var(--teal2); }

/* === CONTATTI === */
#contatti { background: var(--pale); }
.cnt-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.cnt-intro { font-size: .92rem; line-height: 1.8; color: var(--mid); margin: 1rem 0 1.8rem; font-weight: 300; }
.cnt-items { display: flex; flex-direction: column; gap: .85rem; }
.ci { display: flex; align-items: flex-start; gap: .85rem; }
.ci-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.ci-text strong { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 1px; }
.ci-text span, .ci-text a { font-size: .8rem; color: var(--mid); font-weight: 300; }
/* Form */
.cnt-form { background: #fff; border-radius: 14px; padding: 2rem; border: 1px solid var(--border); box-shadow: 0 2px 18px rgba(0,0,0,.04); }
.fg { margin-bottom: .85rem; }
.fg label { display: block; font-family: 'Arial Black', Arial, sans-serif; font-size: .66rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; color: var(--mid); margin-bottom: .38rem; }
.fg input, .fg select, .fg textarea { width: 100%; background: var(--pale); border: 1px solid var(--border); border-radius: 7px; padding: .68rem .88rem; color: var(--dark); font-family: 'DM Sans', Arial, sans-serif; font-size: .86rem; outline: none; transition: border-color .2s, background .2s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); background: #fff; }
.fg textarea { resize: vertical; min-height: 95px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.submit { width: 100%; padding: .82rem; background: var(--teal); color: #fff; border: none; border-radius: 7px; font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: .88rem; cursor: pointer; transition: all .22s; margin-top: .25rem; }
.submit:hover { background: var(--teal2); transform: translateY(-1px); }
/* Form feedback */
.form-msg { padding: .75rem 1rem; border-radius: 7px; font-size: .85rem; margin-bottom: .8rem; display: none; }
.form-msg.ok { background: rgba(26,175,176,.1); border: 1px solid rgba(26,175,176,.25); color: var(--teal2); }
.form-msg.err { background: rgba(216,90,48,.1); border: 1px solid rgba(216,90,48,.25); color: var(--coral); }

/* === MODALS === */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 500; backdrop-filter: blur(4px); }
.svc-modal { display: none; position: fixed; inset: 0; z-index: 501; align-items: center; justify-content: center; padding: 1.5rem; }
.svc-modal.open { display: flex !important; }
.svc-modal-inner { background: #fff; border-radius: 20px; width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.18); position: relative; animation: modalIn .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes modalIn { from { opacity:0; transform:scale(.92) translateY(20px); } to { opacity:1; transform:none; } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,.06); border: none; border-radius: 50%; width: 32px; height: 32px; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; color: #666; z-index: 2; }
.modal-close:hover { background: rgba(0,0,0,.12); }
.modal-header { display: flex; align-items: flex-start; gap: 1rem; padding: 1.8rem 2rem 1.2rem; }
.modal-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.modal-title { font-family: 'Arial Black', Arial, sans-serif; font-size: 1.3rem; font-weight: 900; line-height: 1.1; margin-bottom: .3rem; }
.modal-short { font-size: .85rem; color: var(--mid); font-weight: 300; line-height: 1.5; }
.modal-desc { padding: 0 2rem 1.2rem; font-size: .92rem; line-height: 1.78; color: #3d5555; font-weight: 300; border-top: 1px solid #eef4f1; padding-top: 1.2rem; }
.modal-points-title { padding: 0 2rem .6rem; font-family: 'Arial Black', Arial, sans-serif; font-size: .78rem; font-weight: 900; color: var(--dark); letter-spacing: .06em; text-transform: uppercase; }
.modal-points { list-style: none; padding: 0 2rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.modal-points li { display: flex; align-items: center; gap: .75rem; font-size: .88rem; color: #3d5555; font-weight: 300; }
.mp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.modal-cta { display: block; margin: 0 2rem 2rem; padding: .85rem 1.5rem; border-radius: 8px; color: #fff; text-align: center; font-family: 'Arial Black', Arial, sans-serif; font-weight: 900; font-size: .9rem; text-decoration: none; transition: opacity .2s, transform .2s; }
.modal-cta:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* === FOOTER === */
#site-footer { background: var(--dark); padding: 2.2rem 6%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; position: relative; overflow: hidden; }
.foot-logo { display: flex; align-items: center; text-decoration: none; position: relative; z-index: 1; }
.foot-logo svg { height: 48px; width: auto; display: block; }
.foot-logo-deco { position: absolute; right: -30px; bottom: -20px; width: 220px; opacity: .04; pointer-events: none; }
.foot-logo-deco svg { width: 100%; height: auto; }
.foot-links { display: flex; gap: 1.4rem; position: relative; z-index: 1; }
.foot-links a { font-size: .76rem; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--teal); }
.foot-copy { font-size: .7rem; color: rgba(255,255,255,.25); position: relative; z-index: 1; }
/* WA footer button */
.wa-footer { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; text-decoration: none; padding: .7rem 1.4rem; border-radius: 12px; transition: all .28s; box-shadow: 0 4px 16px rgba(37,211,102,.3); position: relative; z-index: 1; }
.wa-footer:hover { background: #1eab55; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); color: #fff; }
.wa-footer-cta { font-family: 'Arial Black', Arial, sans-serif; font-size: .95rem; font-weight: 900; color: #fff; display: block; }
.wa-footer-num { font-size: .72rem; color: rgba(255,255,255,.8); display: block; margin-top: 1px; }

/* === LOGO ANIMATIONS === */
@keyframes cubeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes faceTop { 0% { opacity:0; transform:translateY(-10px); } 100% { opacity:1; transform:none; } }
@keyframes faceLeft { 0% { opacity:0; transform:translateX(-10px); } 100% { opacity:1; transform:none; } }
@keyframes faceRight { 0% { opacity:0; transform:translateX(10px); } 100% { opacity:1; transform:none; } }
@keyframes diamondPop { 0% { opacity:0; transform:scale(.3); } 70% { transform:scale(1.2); } 100% { opacity:.55; transform:scale(1); } }
@keyframes textSlide { 0% { opacity:0; transform:translateX(-12px); } 100% { opacity:1; transform:none; } }
@keyframes subFade { 0%,50% { opacity:0; } 100% { opacity:1; } }
@keyframes glowC { 0%,100% { filter:drop-shadow(0 0 0px #1aafb0); } 50% { filter:drop-shadow(0 0 10px rgba(26,175,176,.6)); } }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* === RESPONSIVE === */

/* ═══════════════════════════════════════
   RESPONSIVE — OTTIMIZZATO MOBILE
   ═══════════════════════════════════════ */

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {
  /* Hero: stack verticale */
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 86px;
  }
  .hero-left {
    min-height: auto;
    padding: 3rem 5% 5rem;
  }
  .hero-right { display: none; }
  .stats-bar {
    position: static;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .sb-item { padding: .5rem .8rem; }

  /* Layout 1 colonna */
  .chi-grid, .cnt-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .bandi-grid { grid-template-columns: 1fr 1fr; }
  .float-badge { display: none; }
}

/* ── MOBILE (max 768px) ── */
@media (max-width: 768px) {

  /* Header */
  #site-header {
    height: 64px;
    padding: 0 4%;
    gap: .5rem;
  }
  .site-logo svg, .site-logo img { height: 46px; }
  .iso-badges { display: none; }
  .wa-nav span { display: none; }
  .wa-nav { padding: .38rem .7rem; }

  /* Nav hamburger */
  .main-nav ul { display: none; }
  .main-nav ul.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: rgba(28,36,36,.98);
    align-items: center; justify-content: center;
    gap: 2.5rem; z-index: 200;
  }
  .main-nav ul.open a { font-size: 1.3rem; }
  .nav-hamburger { display: flex; }

  /* Hero */
  #hero {
    padding-top: 64px;
    min-height: auto;
  }
  .hero-left {
    padding: 2.5rem 5% 4rem;
    min-height: auto;
  }
  .hero-eyebrow {
    font-size: .95rem;
    padding: .5rem .9rem .5rem .7rem;
    margin-bottom: 1.2rem;
  }
  .hero-eyebrow svg { width: 22px; height: 22px; }
  #hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    margin-bottom: 1rem;
  }
  .hero-desc {
    font-size: .88rem;
    margin-bottom: 1.5rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: .7rem;
    align-items: flex-start;
  }
  .btn, .btn-ghost {
    font-size: .82rem;
    padding: .7rem 1.4rem;
    width: 100%;
    justify-content: center;
  }
  .hero-cta-phrase {
    font-size: .82rem;
    padding-top: 1rem;
    margin-top: 1.2rem;
  }
  .hero-logo-deco { display: none; }
  .hero-accent-line { width: 2px; }

  /* Stats bar */
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: .6rem 4%;
  }
  .sb-item {
    padding: .6rem .8rem;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .sb-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .sb-n { font-size: 1.1rem; }
  .sb-l { font-size: .65rem; }
  .sb-wa { grid-column: 1 / -1; border-bottom: none !important; }
  .sb-wa-n { font-size: .95rem; }

  /* Strip */
  .strip {
    padding: .8rem 4%;
    gap: 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .strip-item { font-size: .78rem; white-space: nowrap; }

  /* Sezioni */
  section { padding: 3rem 4%; }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .section-sub { font-size: .88rem; }

  /* Servizi */
  .svc-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-top: 1.8rem;
  }
  .svc-card { padding: 1.3rem; }
  .svc-icon { width: 40px; height: 40px; font-size: 1rem; }
  .svc-title { font-size: .85rem; }
  .svc-desc { font-size: .8rem; }

  /* Chi siamo */
  #chi-siamo { padding: 3rem 4%; }
  .chi-grid { gap: 2rem; }
  .chi-card .cc-top { padding: 1.5rem; }
  .cc-stat { font-size: 2.2rem; }
  .cc-vals { padding: 1rem 1.5rem; }
  .cv { font-size: .8rem; }

  /* Bandi */
  .bandi-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bandi-grid { grid-template-columns: 1fr; gap: .9rem; }
  .bando { padding: 1.2rem; }
  .b-title { font-size: .85rem; }
  .b-desc { font-size: .78rem; }

  /* Contatti */
  .cnt-grid { gap: 2rem; }
  .cnt-intro { font-size: .85rem; margin-bottom: 1.2rem; }
  .cnt-items { gap: .7rem; }
  .ci-icon { width: 34px; height: 34px; font-size: .82rem; }
  .ci-text strong { font-size: .78rem; }
  .ci-text span, .ci-text a { font-size: .78rem; }

  /* Form */
  .cnt-form { padding: 1.4rem; }
  .fg-row { grid-template-columns: 1fr; }
  .fg label { font-size: .62rem; }
  .fg input, .fg select, .fg textarea {
    padding: .6rem .8rem;
    font-size: .84rem;
  }
  .submit { font-size: .84rem; padding: .75rem; }

  /* Modali */
  .svc-modal { padding: .75rem; }
  .svc-modal-inner { max-height: 92vh; border-radius: 14px; }
  .modal-header { padding: 1.4rem 1.4rem 1rem; gap: .8rem; }
  .modal-icon { font-size: 1.6rem; }
  .modal-title { font-size: 1.1rem; }
  .modal-desc { padding: 0 1.4rem 1rem; font-size: .85rem; }
  .modal-points-title { padding: 0 1.4rem .5rem; font-size: .73rem; }
  .modal-points { padding: 0 1.4rem 1.2rem; gap: .5rem; }
  .modal-points li { font-size: .82rem; }
  .modal-cta { margin: 0 1.4rem 1.5rem; font-size: .84rem; }

  /* Footer */
  #site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 4%;
    gap: 1.2rem;
  }
  .foot-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .foot-links a { font-size: .78rem; }
  .foot-copy { font-size: .68rem; }
  .wa-footer { padding: .6rem 1.2rem; }
  .wa-footer-cta { font-size: .85rem; }
}

/* ── MOBILE PICCOLO (max 480px) ── */
@media (max-width: 480px) {
  #site-header { height: 58px; }
  #hero { padding-top: 58px; }
  .hero-left { padding: 2rem 4% 3.5rem; }
  #hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hero-eyebrow { font-size: .82rem; }
  
  .stats-bar { padding: .5rem 3%; }
  .sb-n { font-size: 1rem; }

  section { padding: 2.5rem 4%; }
  .svc-card { padding: 1.1rem; }

  .iso-badges { display: none; }
  .strip { padding: .7rem 4%; gap: .8rem; }
  .strip-item { font-size: .72rem; }
}
