/*
Theme Name: WESELLING Blog
Theme URI: https://weselling.it
Author: WESELLING
Author URI: https://weselling.it
Description: Tema WordPress leggero, veloce e SEO-oriented per blog verticali (e-commerce, tech, guide).
Version: 1.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: weselling
Tags: blog, news, seo, lightweight, right-sidebar
*/

/* ==================================================
   RESET & BASE
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    background-color: #f5f6f7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==================================================
   LAYOUT
================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* ==================================================
   HEADER
================================================== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.site-header .container {
    display: block;
}

/* Top header (logo + search) */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.tagline {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Search */
.header-actions {
    display: flex;
    align-items: center;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input[type="search"] {
    width: 280px;
    max-width: 45vw;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #222;
    outline: none;
}

.header-search input[type="search"]:focus {
    border-color: #cfd8e3;
}

.header-search button {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-weight: 600;
}

.header-search button:hover {
    border-color: #cfd8e3;
}

/* ==================================================
   NAVIGATION
================================================== */

.main-nav {
    border-top: 1px solid #f0f0f0;
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.main-nav a:hover {
    color: #0066cc;
}

/* ==================================================
   CONTENT
================================================== */

.content article {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.content h1,
.content h2,
.content h3,
.content h4 {
    color: #111;
    line-height: 1.3;
}

.content h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.content h2 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content h3 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.content p {
    margin-bottom: 15px;
}

.content ul,
.content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Meta info (data, autore, categoria – pronto per template) */
.entry-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

/* ==================================================
   SIDEBAR
================================================== */

.sidebar .widget {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.sidebar h3,
.widget-title {
    font-size: 16px;
    margin-bottom: 10px;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
    padding: 20px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ==================================================
   WORDPRESS DEFAULTS
================================================== */

.wp-caption {
    max-width: 100%;
    font-size: 14px;
    color: #555;
}

.wp-caption-text {
    margin-top: 5px;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .layout {
        grid-template-columns: 1fr;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-search,
    .header-actions {
        width: 100%;
    }

    .header-search input[type="search"] {
        width: 100%;
        max-width: 100%;
    }

    .main-nav ul {
        gap: 15px;
    }
}
/* Archive cards extras */
.entry-thumb {
    margin: 12px 0 10px;
}

.entry-thumb img {
    border-radius: 6px;
    display: block;
}

/* Read more */
.readmore {
    font-weight: 600;
}

/* Pagination */
.pagination {
    margin: 10px 0 30px;
}

.pagination .page-numbers {
    display: inline-block;
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 8px 12px;
    border-radius: 6px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #222;
}

.pagination .page-numbers.current {
    border-color: #cfd8e3;
    font-weight: 700;
}
/* Single extras */
.entry-featured {
    margin: 15px 0 20px;
}

.entry-featured img {
    border-radius: 6px;
    display: block;
}

/* Links inside content */
.entry-content a {
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: none;
}

/* Post navigation (prev/next) */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-nav-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.post-nav a {
    font-weight: 600;
}

/* Related posts */
.related-posts {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.related-posts h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.related-list {
    margin: 0;
    padding-left: 18px;
}

.related-list li {
    margin: 8px 0;
}

.related-date {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #777;
}

/* Responsive nav */
@media (max-width: 900px) {
    .post-nav {
        grid-template-columns: 1fr;
    }
}
/* Search form (global) */
.site-search {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.site-search input[type="search"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #222;
    outline: none;
}

.site-search input[type="search"]:focus {
    border-color: #cfd8e3;
}

.site-search button {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.site-search button:hover {
    border-color: #cfd8e3;
}

/* Not found */
.not-found {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
}

.not-found h1,
.not-found h2 {
    margin-top: 0;
}

/* Mobile search */
@media (max-width: 900px) {
    .site-search {
        flex-direction: column;
    }
}
/* Comments */
.comments-area {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    margin-top: 25px;
}

.comments-title,
.comment-reply-title {
    margin-top: 0;
}

.comment-list {
    margin: 0;
    padding-left: 18px;
}

.comment-list .comment {
    margin: 18px 0;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.comment-list .comment:first-child {
    border-top: none;
    padding-top: 0;
}

.comment-meta {
    font-size: 13px;
    color: #777;
}

.comment-content p {
    margin: 10px 0;
}

.comment-form p {
    margin: 12px 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #cfd8e3;
}

.comment-submit {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.comment-submit:hover {
    border-color: #cfd8e3;
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 15px 0 0;
}

.no-comments {
    color: #777;
}

/* Breadcrumb inline con separatore > */
.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    margin: 0;
    padding: 0;
}

/* separatore ">" tra gli elementi */
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 8px;
    color: #999;
}
.weselling-faq { margin-top: 28px; padding: 18px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fff; }
.weselling-faq h2 { margin: 0 0 12px; font-size: 20px; }
.weselling-faq-item { border-top: 1px solid #eee; }
.weselling-faq-item:first-of-type { border-top: 0; }
.weselling-faq-q { width: 100%; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; background: transparent; border: 0; text-align: left; font-size: 16px; cursor: pointer; }
.weselling-faq-a { padding: 0 0 14px; color: #333; }
.weselling-faq-icon { font-weight: 700; }
.weselling-faq { margin-top: 28px; padding: 18px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fff; }
.weselling-faq h2 { margin: 0 0 12px; font-size: 20px; }
.weselling-faq-item { border-top: 1px solid #eee; }
.weselling-faq-item:first-of-type { border-top: 0; }
.weselling-faq-q { width: 100%; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; background: transparent; border: 0; text-align: left; font-size: 16px; cursor: pointer; }
.weselling-faq-a { padding: 0 0 14px; color: #333; }
.weselling-faq-icon { font-weight: 700; }

.footer-nav { margin-top: 10px; }
.footer-menu{
  list-style:none; margin:0; padding:0;
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
}
.footer-menu li{ margin:0; }
.footer-menu a{ color:#555; font-size:14px; }
.footer-menu a:hover{ color:#0066cc; }

/* Footer menu inline con separatore "-" */
.footer-menu {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* niente spazio, lo gestiamo col separatore */
}

.footer-menu li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* separatore "-" tra le voci */
.footer-menu li + li::before {
    content: "-";
    margin: 0 10px;
    color: #999;
}

.footer-menu a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #0066cc;
    text-decoration: underline;
}
/* Footer menu inline con separatore "-" */
.site-footer .footer-menu{
  list-style:none;
  margin:10px 0 0;
  padding:0;

  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
}

.site-footer .footer-menu li{
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
}

.site-footer .footer-menu li + li::before{
  content:"-";
  margin:0 10px;
  color:#999;
}

.site-footer .footer-menu a{
  font-size:14px;
  color:#555;
  text-decoration:none;
}

.site-footer .footer-menu a:hover{
  color:#0066cc;
  text-decoration:underline;
}

/* FORCE footer menu inline */
.site-footer nav.footer-nav ul.footer-menu{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  list-style:none !important;
  margin:10px 0 0 !important;
  padding:0 !important;
}

.site-footer nav.footer-nav ul.footer-menu > li{
  display:flex !important;
  align-items:center !important;
  width:auto !important;
  float:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* separatore "-" */
.site-footer nav.footer-nav ul.footer-menu > li + li::before{
  content:"-" !important;
  margin:0 10px !important;
  color:#999 !important;
}
