/*
Theme Name: OlivePress Pro
Theme URI: https://example.com/olivepress-pro
Author: You
Description: Tema leggero in stile GeneratePress per blog su infusi di foglie d'olivo. Menu centrale, hero full-width, griglia blog con "carica altro", sezione contatti, ottimizzazioni SEO e schema markup compatibile con Rank Math.
Version: 1.1.0
License: GPL-2.0-or-later
Text Domain: olivepress-pro
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root{
  --olive-900:#2f3d2b;
  --olive-700:#3f533b;
  --olive-600:#50684c;
  --olive-500:#6b8f63;
  --olive-300:#a7c79a;
  --olive-100:#e9f1e5;
  --cream:#fafaf7;
  --ink:#1b1b1b;
  --muted:#666;
  --radius:12px;
  --container:1200px;
}

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

/* Skip link */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{ position:static; width:auto; height:auto; padding:8px 12px; background:#fff; border:2px solid var(--olive-500); }

/* Header / Nav */
.header{
  position:sticky; top:0; z-index:50;
  background:#ffffffd8;
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid #00000010;
}
.nav{
  max-width:var(--container); margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:center; gap:24px;
}
.nav a{
  text-decoration:none; color:var(--olive-900); font-weight:600; padding:8px 12px; border-radius:999px;
}
.nav a:hover, .nav .current-menu-item>a{background:var(--olive-100)}

/* Hero / Jumbotron */
.hero{
  position:relative; width:100%; min-height:42vh; display:grid; place-items:center;
  color:white; text-align:center; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0; background:linear-gradient(180deg,#00000060,#00000050,#00000040);
}
.hero img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(105%) contrast(102%);
}
.hero .inner{
  position:relative; z-index:2; padding:60px 20px; max-width:900px;
}
.hero h1{margin:0 0 10px 0; font-size:clamp(32px,4.5vw,56px); letter-spacing:0.2px}
.hero p{margin:0; font-size:clamp(16px,1.8vw,20px); opacity:.95}

/* Sections */
.section{ max-width:var(--container); margin:40px auto; padding:0 20px; }
.section h2{ color:var(--olive-700); font-size:24px; margin:0 0 16px; letter-spacing:.2px; }

/* Blog grid */
.grid{ display:grid; gap:22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .grid{ grid-template-columns: 1fr;} }

.card{
  background:#fff; border:1px solid #00000010; border-radius:var(--radius); overflow:hidden;
  box-shadow:0 1px 3px #00000010;
  display:flex; flex-direction:column;
}
.card a{ color:inherit; text-decoration:none }
.card-thumb{ aspect-ratio: 16/9; background:var(--olive-100); display:block; overflow:hidden; }
.card-thumb img{ width:100%; height:100%; object-fit:cover; display:block }
.card-body{ padding:16px }
.card-title{ font-weight:700; font-size:18px; margin:0 0 10px 0; color:var(--olive-900) }
.card-meta{ font-size:12px; color:var(--muted); margin-bottom:12px }
.card-read{ margin-top:auto; padding:12px 16px; border-top:1px solid #0000000e; color:var(--olive-600); font-weight:600 }
.card-read:hover{ background:var(--olive-100) }

/* Load more */
.loadmore-wrap{ display:flex; justify-content:center; margin:28px 0 8px }
.loadmore{
  appearance:none; border:0; background:var(--olive-600); color:#fff; font-weight:700;
  padding:12px 20px; border-radius:999px; cursor:pointer;
}
.loadmore[disabled]{ opacity:.6; cursor:not-allowed }

/* Contattami */
.contact{
  background:linear-gradient(180deg, #ffffff, #f7fbf4);
  border-top:1px solid #0000000e; border-bottom:1px solid #0000000e;
  padding:40px 20px; margin-top:32px;
}
.form{
  max-width:720px; margin:0 auto; background:#fff; border:1px solid #00000010; border-radius:var(--radius);
  padding:20px; box-shadow:0 2px 6px #0000000c;
}
label{ display:block; font-weight:600; color:var(--olive-700); margin:4px 0 6px }
input[type="text"],input[type="email"],textarea{
  width:100%; padding:12px 14px; border:1px solid #0000001a; border-radius:10px; background:#fff;
}
textarea{ min-height:120px; resize:vertical }
button[type="submit"]{
  margin-top:10px; appearance:none; border:0; background:var(--olive-500); color:#fff; font-weight:700;
  padding:12px 18px; border-radius:10px; cursor:pointer;
}
.notice{ margin-top:12px; font-size:14px }
.notice.ok{ color:var(--olive-600) }
.notice.err{ color:#a33 }

.footer{ padding:30px 20px; text-align:center; color:var(--muted); font-size:14px }
.leaf{ position:absolute; width:140px; height:140px; right:-40px; bottom:-40px; opacity:.08; pointer-events:none;
  background: radial-gradient(closest-side, var(--olive-300), transparent 70%); filter: blur(10px);}
