/*
Theme Name: Plugingo WC
Theme URI: https://plugingo.it
Author: Plugingo
Description: Tema minimal per WooCommerce con look Plugingo
Version: 1.1
Text Domain: plugingo-wc
*/

:root {
  --pg-orange: #f59319;
  --pg-orange-dark: #e47f00;
  --pg-border: rgba(0,0,0,.06);
  --pg-bg: #f4f6fb;
  --pg-radius: 24px;
  --pg-text: #1d1d25;
  --pg-muted: #5f6474;
  --pg-shadow: 0 24px 50px rgba(18,26,52,.08);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: white!important;
  color: var(--pg-text);
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

.pg-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.03);
  position: sticky;
  top: 0;
  z-index: 999;
}

.pg-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.pg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d1d25;
  font-weight: 600;
}
.pg-brand img {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(255,158,0,.35);
}

.pg-menu-desktop,
.pg-iconbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-cta {
  background: var(--pg-orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(245,147,25,0.25);
}

.pg-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 25px rgba(0,0,0,.04);
}

.pg-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pg-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg-hamburger,
.pg-mobile-menu {
  display: none;
}

.pg-hero {
  background: radial-gradient(circle, rgba(245,147,25,.14) 0%, #fff 60%);
  padding: 72px 0 36px;
}
.pg-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: .5rem;
}
.pg-hero p {
  max-width: 540px;
  line-height: 1.5;
}

.pg-filters {
  background: transparent;
  margin-top: 8px;
}
.pg-filters .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pg-chip {
  background: #fff;
  border: 1px solid rgba(0,0,0,.03);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  font-weight: 500;
}
.pg-chip[data-active="true"] {
  background: var(--pg-orange);
  color: #fff;
  border-color: transparent;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.pg-card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.02);
  box-shadow: 0 12px 45px rgba(0,0,0,.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-thumb {
  width: 100%;
  border-radius: 18px;
  display: block;
}
.pg-title {
  font-size: 1rem;
  margin: 0;
}
.pg-title a { color: inherit; text-decoration: none; }
.pg-meta {
  font-weight: 600;
  color: #1d1d25;
}
.pg-actions {
  display: flex;
  gap: 10px;
}
.pg-btn {
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  color: #1d1d25;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.pg-btn.primary,
.pg-btn-primary {
  background: var(--pg-orange);
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(245,147,25,0.25);
}

.pg-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245,147,25,.12);
  color: var(--pg-orange-dark);
  font-size: .85rem;
  font-weight: 700;
}

/* WooCommerce wrappers */
.woocommerce-page .container,
.woocommerce .container {
  padding-top: 40px;
  padding-bottom: 40px;
  background: none;
}

@media (max-width: 600px) {
  .pg-header .wrap { flex-wrap: wrap; }
  .pg-hero { text-align: left; }
  .pg-actions { flex-wrap: wrap; }
}

.woocommerce,
.woocommerce-page {
  float: none !important;
  overflow: visible !important;
  clear: both !important;
}

.woocommerce main.container {
  display: block;
  position: relative;
  padding-bottom: 60px;
}

main.container {
  overflow: auto;
}

footer {
  position: relative;
  clear: both;
  margin-top: 60px !important;
  border-top: 1px solid var(--pg-border);
  background: #fff;
  z-index: 1;
}

.woocommerce-page main.container {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 45px rgba(0,0,0,.02);
  padding: 40px 40px 80px;
  overflow:hidden;
}

.woocommerce-page {
  background: #fff;
}

.woocommerce-page .content-area,
.woocommerce-page .site-main,
.woocommerce-page .site-content {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
  background: var(--pg-orange);
  color: #fff;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(245,147,25,0.3);
  transition: all 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--pg-orange-dark)!important;
  transform: translateY(-1px);
}

.woocommerce span.onsale {
  background: var(--pg-orange);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245,147,25,0.4);
}

/* Blog */
.pg-blog-hero {
  padding: 72px 0 28px;
  background: radial-gradient(circle at top right, rgba(245,147,25,0.18), transparent 40%), linear-gradient(180deg, #fff 0%, #f8f9fd 100%);
}

.pg-blog-hero--compact {
  padding-top: 56px;
}

.pg-blog-hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pg-blog-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.pg-blog-hero p {
  max-width: 800px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--pg-muted);
}

.pg-blog-shell,
.pg-single-shell {
  padding-top: 28px;
  padding-bottom: 60px;
}

.pg-blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pg-chip-link {
  text-decoration: none;
}

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

.pg-blog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-blog-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--pg-shadow);
}

.pg-blog-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #202636 0%, #f59319 100%);
}

.pg-blog-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-blog-card-placeholder {
  min-height: 220px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}

.pg-blog-card-body {
  padding: 22px;
}

.pg-blog-card-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pg-blog-card-taxonomy--single {
  margin-bottom: 18px;
}

.pg-blog-card-taxonomy a,
.pg-blog-card-taxonomy span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(245,147,25,.12);
  color: var(--pg-orange-dark);
}

.pg-blog-card h2,
.pg-blog-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.pg-blog-card h2 a,
.pg-blog-card h3 a {
  text-decoration: none;
}

.pg-blog-card p {
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.65;
}

.pg-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.pg-blog-card-footer span {
  color: var(--pg-muted);
  font-size: .92rem;
}

.pg-blog-card-footer a {
  color: var(--pg-orange-dark);
  text-decoration: none;
  font-weight: 700;
}

.pg-pagination-wrap {
  margin-top: 28px;
}

.pg-pagination-wrap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pg-pagination-wrap a,
.pg-pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  text-decoration: none;
}

.pg-pagination-wrap .current {
  background: var(--pg-orange);
  color: #fff;
  border-color: transparent;
}

.pg-empty-state {
  background: #fff;
  border-radius: 24px;
  border: 1px dashed rgba(0,0,0,.12);
  padding: 40px;
  text-align: center;
}

.pg-single-article {
  max-width: 860px;
  margin: 0 auto 34px;
}

.pg-single-header {
  margin-bottom: 28px;
}


.pg-single-hero {
  position: relative;
  width: 100%;
  min-height: clamp(250px, 38vw, 400px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0f172a;
}

.pg-single-hero-media,
.pg-single-hero-media::after {
  position: absolute;
  inset: 0;
}

.pg-single-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-single-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, .16) 0%, rgba(7, 10, 18, .48) 45%, rgba(7, 10, 18, .82) 100%),
    linear-gradient(90deg, rgba(7, 10, 18, .42) 0%, rgba(7, 10, 18, .14) 45%, rgba(7, 10, 18, .42) 100%);
}

.pg-single-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 34px;
  color: #fff;
}

.pg-single-breadcrumbs--hero {
  color: rgba(255,255,255,.82);
  margin-bottom: 14px;
}

.pg-single-breadcrumbs--hero a {
  color: #fff;
}

.pg-blog-card-taxonomy--hero {
  margin-bottom: 14px;
}

.pg-blog-card-taxonomy--hero a,
.pg-blog-card-taxonomy--hero span {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.pg-single-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.pg-single-meta--hero {
  color: rgba(255,255,255,.86);
}

.pg-single-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: .95rem;
  color: var(--pg-muted);
}

.pg-single-breadcrumbs a {
  color: var(--pg-orange-dark);
  text-decoration: none;
}

.pg-single-header h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.pg-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--pg-muted);
  font-weight: 500;
}


.pg-single-content {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.8;
}

.pg-single-content h2,
.pg-single-content h3,
.pg-single-content h4 {
  margin-top: 1.8em;
  margin-bottom: .6em;
  line-height: 1.2;
}

.pg-single-content p,
.pg-single-content ul,
.pg-single-content ol,
.pg-single-content blockquote {
  margin: 0 0 1.15em;
}

.pg-single-content a {
  color: var(--pg-orange-dark);
}

.pg-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.pg-suggestion-block {
  margin-top: 42px;
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fd 100%);
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,.06);
}

.pg-block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.pg-block-head h2 {
  margin: 10px 0 0;
  font-size: 1.6rem;
}

.pg-plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pg-plugin-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 18px 30px rgba(18,26,52,.06);
}

.pg-plugin-card-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #f3f5fb;
}

.pg-plugin-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-plugin-card-body {
  padding: 18px;
}

.pg-plugin-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.pg-plugin-card-body h3 a {
  text-decoration: none;
}

.pg-plugin-card-body p {
  margin: 0 0 16px;
  color: var(--pg-muted);
  line-height: 1.6;
}

.pg-post-nav {
  max-width: 860px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pg-post-nav-item {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.pg-post-nav-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--pg-muted);
  font-size: .9rem;
}

.pg-post-nav-item a {
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
}

.pg-footer {
  padding-bottom: 30px;
}

.pg-footer-top,
.pg-footer-info {
  padding-top: 18px;
}

.pg-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pg-footer-info {
  color: var(--pg-muted);
  font-size: .92rem;
}

@media (max-width: 1024px) {
  .pg-blog-grid,
  .pg-blog-grid--related,
  .pg-plugin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .pg-blog-category-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pg-blog-category-actions {
    justify-content: center;
  }

  .pg-outline-button {
    min-height: 42px;
  }

  .pg-single-hero {
    min-height: 290px;
  }

  .pg-single-hero-inner {
    padding-top: 56px;
    padding-bottom: 26px;
  }

  .pg-single-hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.75rem);
  }

  .pg-single-content {
    font-size: 1rem;
    line-height: 1.75;
  }


  .pg-hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
  }

  .pg-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111;
    border-radius: 999px;
  }

  .pg-mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .2s ease;
    z-index: 1000;
  }

  .pg-mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .pg-mobile-inner {
    margin-left: auto;
    width: min(86vw, 360px);
    height: 100%;
    background: #fff;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: -12px 0 30px rgba(0,0,0,.1);
  }

  .pg-close-mobile {
    align-self: flex-end;
    border: none;
    background: rgba(0,0,0,.06);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 18px;
  }

  .pg-mobile-link {
    text-decoration: none;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7f8fc;
  }
}

@media (max-width: 680px) {
  .pg-blog-category-block {
    padding: 20px;
    border-radius: 22px;
  }

  .pg-blog-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .pg-blog-list-item-meta {
    align-items: flex-start;
  }

  .pg-single-hero {
    min-height: 240px;
  }

  .pg-single-hero-inner {
    padding-top: 48px;
    padding-bottom: 22px;
  }

  .pg-single-breadcrumbs--hero {
    font-size: .88rem;
    margin-bottom: 12px;
  }

  .pg-blog-card-taxonomy--hero {
    margin-bottom: 12px;
  }

  .pg-single-hero h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .pg-single-meta--hero {
    gap: 8px 12px;
    font-size: .94rem;
  }

  .pg-single-shell {
    margin-top: 24px;
  }

  .woocommerce-page main.container {
    padding: 24px 18px 48px;
  }

  .pg-blog-grid,
  .pg-blog-grid--related,
  .pg-plugin-grid,
  .pg-post-nav {
    grid-template-columns: 1fr;
  }

  .pg-suggestion-block {
    padding: 20px;
  }
}


.pg-blog-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pg-blog-category-block {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,249,253,.98) 100%);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--pg-shadow);
}

.pg-blog-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pg-blog-category-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.1;
}

.pg-blog-category-head p {
  margin: 0;
  color: var(--pg-muted);
  max-width: 780px;
}

.pg-blog-category-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.pg-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(245,147,25,.28);
  background: #fff;
  color: var(--pg-orange-dark);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pg-outline-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(245,147,25,.12);
  border-color: rgba(245,147,25,.45);
}

.pg-blog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pg-blog-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
}

.pg-blog-list-item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.pg-blog-list-item h3 a {
  text-decoration: none;
}

.pg-blog-list-item p {
  margin: 0;
  color: var(--pg-muted);
  line-height: 1.6;
}

.pg-blog-list-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.pg-blog-list-item-meta span {
  color: var(--pg-muted);
  font-size: .92rem;
}

.pg-blog-list-item-meta a {
  color: var(--pg-orange-dark);
  font-weight: 700;
  text-decoration: none;
}
