/*
Theme Name: DMM OnePage SEO
Theme URI: https://digitalmarketingmanager.org/
Author: DigitalMarketingManager.org
Author URI: https://digitalmarketingmanager.org/
Description: Tema WordPress one‑page minimale e veloce, orientato a SEO e Widget (Block Widgets). Pensato per landing page su Digital Marketing / SEO, con sezioni gestibili da widget.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dmm-onepage
Tags: one-column, custom-logo, custom-menu, blog, accessibility-ready, translation-ready
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#000000;
  --muted:#000000;
  --line:rgba(0,0,0,.12);
  --accent:#0066ff;
  --accent2:#6d28d9;
  --max:1120px;
  --radius:16px;
}

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

a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.18em}
a:hover{color:var(--accent)}
img{max-width:100%;height:auto}

.skip-link{
  position:absolute;left:-9999px;top:0;
  background:#fff;color:#000;padding:.6rem 1rem;border-radius:.5rem;z-index:999;
}
.skip-link:focus{left:1rem;top:1rem}

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

.brand{
  display:flex;align-items:center;gap:12px;min-width:220px;
}
.site-title{
  margin:0;font-size:1rem;letter-spacing:.2px;
}
.site-title a{text-decoration:none}
.site-description{margin:0;color:var(--muted);font-size:.9rem}

.nav .current-menu-item > a{color:var(--text);background:rgba(255,255,255,.06)}
.nav-toggle{display:none}

main{display:block}
.section{
  padding:56px 0;
  border-bottom:1px solid var(--line);
}
.section:last-child{border-bottom:0}
.section .section-inner{display:block}
.section h1,.section h2,.section h3{line-height:1.18}
.section h1{font-size:2.1rem;margin:.2rem 0 1rem}
.section h2{font-size:1.55rem;margin:.2rem 0 1rem}
.section h3{font-size:1.15rem;margin:.2rem 0 .8rem}
.section p{margin:.75rem 0;color:var(--text)}
.section .muted{color:var(--muted)}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
}

.hero{
  padding:64px 0 56px;
}
.hero .card{padding:28px}
.hero .kicker{
  display:inline-block;
  font-size:.85rem;
  color:var(--muted);
  border:1px solid var(--line);
  padding:.35rem .6rem;border-radius:999px;
  margin-bottom:12px;
}

.button, .wp-block-button__link{
  display:inline-block;
  border-radius:999px;
  padding:.8rem 1.05rem;
  background:linear-gradient(90deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
  color:#061018;
  text-decoration:none;
  font-weight:700;
  border:0;
}
.button:hover, .wp-block-button__link:hover{filter:brightness(1.03)}
.button.secondary{
  background:transparent;color:var(--text);
  border:1px solid var(--line);
  font-weight:600;
}

.widget-area > *:first-child{margin-top:0}
.widget-area > *:last-child{margin-bottom:0}

/* Block Widgets look */
.widget-area .wp-block-heading{margin-top:0}
.widget-area .wp-block-separator{border-color:var(--line)}

/* Content pages */
.content{
  padding:48px 0;
}
.content .entry-title{margin:0 0 1rem;font-size:1.8rem}
.entry-meta{color:var(--muted);font-size:.92rem;margin:.2rem 0 1.2rem}
.entry-meta a{color:var(--muted)}
.entry-meta a:hover{color:var(--text)}

.post-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.post-card{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:18px;background:rgba(255,255,255,.03);
}
.post-card h2{font-size:1.05rem;margin:.2rem 0 .4rem}
.post-card p{color:var(--muted);margin:.4rem 0 0}
.post-card a{text-decoration:none}

.site-footer{
  padding:26px 0 34px;
  color:var(--muted);
  border-top:1px solid var(--line);
}
.footer-inner{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}

/* Responsive */
@media (max-width: 900px){
  .post-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 680px){
  .header-inner{flex-wrap:wrap}
  .brand{min-width:0}
  .post-list{grid-template-columns:1fr}
  .section{padding:46px 0}
  .hero{padding:52px 0 46px}
}






/* Menu (stile simile a quello "bello" di prima) */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(140%) blur(12px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  padding:.48rem .72rem;
  border-radius:999px;
  color:var(--text);
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.9);
  font-weight:600;
  letter-spacing:.1px;
}
.nav a:hover{ background:rgba(0,0,0,.04); }
.nav a.is-active{
  background:rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.20);
}
@media (max-width: 680px){
  .header-inner{flex-wrap:wrap}
  .nav{width:100%}
}
