/* CappoSmello.com static mirror — matches original widemag theme */

:root {
  --accent: #d5cb38;
  --text: #444444;
  --text-dark: #000;
  --bg: #f7f7f7;
  --white: #ffffff;
  --border: #ebebeb;
  --muted: #888;
  --nav-bg: #1e1e1e;
  --nav-text: #ccc;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-heading: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-montserrat: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-content: Verdana, Geneva, sans-serif;
  --max-width: 1100px;
}

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

body {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: all .2s linear; }
a:hover { text-decoration: none; opacity: 0.85; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 15px;
}
h1 { font-size: 35px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 15px;
}

.clearfix::after { content: ''; display: table; clear: both; }

.body-wrapper { width: 100%; margin: 0 auto; overflow: hidden; }

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

.span12 { width: 100%; float: left; }
.fullblock { width: 100%; }

/* ========== HEADER ========== */
/* ========== NAVIGATION (logo + categories in one bar) ========== */
.main_nav {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.nav_bg {
  background: transparent;
}
.main_nav_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
.main-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
.nav-item { position: relative; white-space: nowrap; }
.nav-logo {
  align-self: stretch;
  display: flex;
  align-items: stretch;
}
.nav-logo a {
  display: flex;
  align-items: center;
  padding: 0 24px 0 0;
}
.nav-logo img {
  height: 162px;
  width: auto;
  display: block;
}
.nav-item:not(.nav-logo) {
  margin-bottom: 58px;
}
.main-menu > li > a {
  display: block;
  padding: 14px 14px;
  color: #333;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: color .2s;
}
.nav-caret {
  font-size: 8px;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.5;
}
.main-menu > li > a:hover { color: #000; }

/* ── Nav dropdown panel ── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding-top: 8px;
}
.nav-dropdown-arrow {
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #222;
  margin: 0 auto;
}
.nav-dropdown-inner {
  background: #222;
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 3px;
  width: 540px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.nav-preview {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.nav-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.nav-preview-placeholder {
  width: 100%;
  height: 120px;
  background: #444;
  border-radius: 2px;
}
.nav-preview-title {
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 8px;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: block;
}
.nav-preview:hover .nav-preview-title { color: var(--accent); }
.has-dropdown:hover > .nav-dropdown { display: block; }

/* ========== CAROUSEL / SLIDER ========== */
.above-content {
  margin-bottom: 50px;
  background: var(--white);
}

.slider-mod {
  position: relative;
  overflow: hidden;
}

.carouselle3 {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carouselle3::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  scroll-snap-align: start;
  position: relative;
  text-align: left;
}
.carousel-item .post-thumbnail {
  position: relative;
  overflow: hidden;
}
.carousel-item .post-thumbnail > a:first-child > img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.carousel-item:hover .post-thumbnail > a:first-child > img {
  transform: scale(1.03);
}

.carouselle3 a.post-title {
  color: #fff;
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  transition: background .3s;
  padding: 20px;
  text-decoration: none;
}
.carouselle3 a.post-title:hover {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  opacity: 1;
}
.carouselle3 a.post-title span {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  display: block;
  position: relative;
  padding-bottom: 12px;
}
.carouselle3 a.post-title span::after {
  position: absolute;
  content: '';
  width: 40px;
  background: #fff;
  height: 1px;
  left: 50%;
  margin-left: -20px;
  bottom: 0;
}

.cnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}
.cnav span {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 80px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s;
  user-select: none;
}
.cnav span:hover { opacity: 1; }
.cnav .ocprev::before { content: '\2039'; }
.cnav .ocnext::before { content: '\203A'; }

/* ========== SECTION TITLE (mod-title) ========== */
.mod-title {
  padding: 10px 0 0;
  overflow: hidden;
  position: relative;
  border-color: var(--accent);
}
.mod-title .line {
  text-align: center;
  width: 100%;
  float: left;
}
.mod-title h1 {
  font-size: 30px;
  font-weight: lighter;
  text-transform: uppercase;
  line-height: 1;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQI12N4+PDhfwAI/gN5G7HSJQAAAABJRU5ErkJggg==') 0 50% repeat-x;
  text-align: center;
  margin: 0 5px;
}
.mod-title h1 span {
  padding: 0 20px;
  color: var(--text);
  background-color: var(--bg);
}
.mod-title h1 a {
  color: var(--text);
  text-decoration: none;
}
.mod-title h1 a:hover {
  text-decoration: underline;
  opacity: 1;
}
.mod-title .line > span {
  border-bottom: 2px solid transparent;
  width: 40px;
  display: inline-block;
}

/* ========== CONTENT AREA ========== */
#content {
  width: 100%;
  float: left;
  clear: both;
  min-height: 400px;
  margin: 0;
}

.content-wrap {
  display: block;
  clear: both;
  float: left;
  width: 100%;
  padding-top: 0;
}

.mod-wrap {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
  float: left;
  clear: both;
  box-sizing: border-box;
}

.mod-wrap * {
  box-sizing: border-box;
}

.mod-content {
  padding: 0;
  float: left;
  clear: both;
  width: 100%;
}

section.content-section {
  width: 100%;
  float: left;
  clear: both;
}

section.content-section p {
  line-height: 1.8;
}

/* ========== ARTICLE LIST (3-column grid) ========== */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list li {
  padding: 20px 0;
  text-align: center;
}

.format-article-list {
  padding: 0;
  margin-right: -30px;
}

.format-article-list li {
  width: 33.33%;
  padding: 20px 30px 0 0;
  border: none;
  display: inline-block;
  vertical-align: top;
  margin-right: -3px;
}

.format-article-list.recent-list li {
  margin-bottom: 40px;
}

.format-article-list li img {
  width: 100%;
  vertical-align: middle;
  margin: 0;
}

.article-list li .wrap-item {
  float: left;
  background: var(--white);
  width: 100%;
}

.post-thumbnail {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0;
}

.post-thumbnail * {
  -webkit-transition: all .9s ease 0s;
  -moz-transition: all .9s ease 0s;
  transition: all .9s ease 0s;
}

.article-list li .post-thumbnail img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.article-list li:hover .post-thumbnail a img,
.owl-item:hover .post-thumbnail a img {
  -webkit-transform: scale(1.03, 1.03);
  transform: scale(1.03, 1.03);
}

.imgoverlay {
  background-color: rgba(0, 0, 0, .3);
  position: absolute;
  top: 0; bottom: 0; right: 0; left: 0;
  opacity: 0;
}

.article-list li:hover .post-thumbnail .imgoverlay,
.owl-item:hover .post-thumbnail .imgoverlay {
  opacity: 1;
}

.article-list li .wrap-data {
  float: left;
  padding: 0 30px 40px;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.article-list .post-date {
  width: 100%;
  margin: 0;
  bottom: 0;
  position: relative;
}

.article-list .post-date div.dd {
  color: #bbb;
  font-size: 10px;
  background: var(--white);
  clear: both;
  padding: 4px 10px;
  position: absolute;
  top: -15px;
  left: 50%;
  margin-left: -49px;
}

.article-list .post-date div.dd span {
  padding: 4px 10px 2px;
  float: left;
  text-transform: uppercase;
}

.article-list li h1,
.carousel-item h1 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin: 15px 0 10px;
  clear: both;
}

.format-article-list li h1 {
  font-size: 16px;
  margin: 40px 0 15px;
}

.article-list li h1 a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
}

.article-list li h1 a:hover {
  text-decoration: underline;
}

.article-list li .wrap-data p,
.format-article-list li p,
.format-article-list li > div > p {
  color: #999;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 15px;
  text-align: center;
}

.article-list .themedo-link {
  text-decoration: none;
  font-weight: 400;
  display: block;
  text-align: center;
  color: var(--accent);
}

.article-list .themedo-link:hover {
  text-decoration: underline;
}

.post-cat-link { color: var(--accent); font-size: 12px; text-transform: uppercase; }

/* ========== SINGLE ARTICLE PAGE ========== */
.single-post-container {
  max-width: 1020px;
  margin: 0 auto;
}

.page-title.capo-page-title {
  margin-bottom: 15px;
}
.page-title.capo-page-title h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  position: relative;
  padding-bottom: 15px;
}
.page-title.capo-page-title h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  position: absolute;
  bottom: 0;
  left: 0;
}

.capo-single-post-featured-container {
  margin-bottom: 20px;
}
.capo-single-post-featured-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-meta-single {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.date-single {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 8px 10px;
  min-width: 55px;
  line-height: 1;
}
.date-single .day {
  display: block;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
}
.date-single .month {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}
.date-single .year {
  display: block;
  font-size: 10px;
  margin-top: 1px;
  opacity: 0.8;
}

.post-author { color: var(--muted); }
.post-author strong { color: var(--text); }
.post-cat { color: var(--muted); }
.post-cat a { color: var(--accent); text-transform: uppercase; font-weight: 700; font-size: 12px; }

.post-desc-single {
  font-family: var(--font-content);
  font-size: 14pt;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 30px;
}
.post-desc-single p {
  font-family: var(--font-content);
  font-size: 14pt;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.7;
}
.post-desc-single img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 15px auto;
}
.post-desc-single a { color: var(--text-dark); }
.post-desc-single a:hover { color: var(--accent); }

.post-desc-single blockquote {
  margin: 10px;
  font-style: italic;
  color: var(--muted);
  padding: 16px 0 1px 30px;
  border-left: 3px solid #ddd;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
}

.post-tags {
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 25px;
  font-size: 13px;
  color: var(--muted);
}
.post-tags > span { font-weight: 700; margin-right: 5px; }
.tag-link {
  display: inline-block;
  background: #eee;
  color: var(--muted);
  padding: 3px 10px;
  margin: 3px 3px 3px 0;
  font-size: 12px;
  border-radius: 2px;
}
.tag-link:hover { background: var(--accent); color: var(--white); }

.article-nav {
  margin-top: 30px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.article-nav a {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--nav-bg);
  color: #aaa;
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  clear: both;
  float: left;
  width: 100%;
}
.footer a { color: var(--accent); }
.capo-footer p { margin: 0; }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}
.pagination a, .pagination .page-current, .pagination .page-dots {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all .2s;
}
.pagination a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  opacity: 1;
}
.pagination .page-current {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 700;
}
.pagination .page-dots {
  border: none;
  background: none;
  padding: 8px 6px;
  color: var(--muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .format-article-list li { width: 50%; }
  .carousel-item { flex: 0 0 50%; min-width: 50%; }
  .main-menu > li > a { padding: 12px 10px; font-size: 11px; letter-spacing: 0.4px; }
  .nav-logo img { height: 130px; }
  .nav-item:not(.nav-logo) { margin-bottom: 46px; }
}
@media (max-width: 768px) {
  .main-menu {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .nav-logo a { padding: 4px 12px 4px 0; }
  .nav-logo img { height: 60px; }
  .nav-item:not(.nav-logo) { margin-bottom: 0; }
  .main-menu > li:not(.nav-logo) > a { padding: 8px 8px; font-size: 10px; letter-spacing: 0.2px; }
  .format-article-list li { width: 50%; }
  .format-article-list { margin-right: -15px; }
  .format-article-list li { padding-right: 15px; }
  .carousel-item { flex: 0 0 100%; min-width: 100%; }
  .carousel-item .post-thumbnail > a:first-child > img { height: 260px; }
  .page-title.capo-page-title h1 { font-size: 24px; }
  .post-desc-single, .post-desc-single p { font-size: 14px; line-height: 1.7; }
  .nav-dropdown { position: fixed; left: 3%; transform: none; width: 94%; }
  .nav-dropdown-inner { min-width: 0; width: auto; }
  .mod-title h1 { font-size: 18px; }
  .section-read-more a { font-size: 11px; padding: 10px 24px; }
  .article-list li .post-thumbnail img { height: 180px; }
}
@media (max-width: 480px) {
  .main-menu > li:not(.nav-logo) > a { padding: 5px 5px; font-size: 9px; letter-spacing: 0; }
  .nav-logo a { padding: 2px 8px 2px 0; }
  .nav-logo img { height: 40px; }
  .nav-caret { display: none; }
  .format-article-list li { width: 100%; padding-right: 0; margin-left: 0; }
  .format-article-list { margin-right: 0; }
  .article-list li .post-thumbnail img { height: 200px; }
  .post-meta-single { flex-direction: column; align-items: flex-start; }
  .carousel-item .post-thumbnail > a:first-child > img { height: 200px; }
  .carouselle3 a.post-title span { font-size: 14px; }
  .container { padding: 0 10px; }
  .capo-single-post-featured-image { max-height: 250px; }
  .post-desc-single img, .post-desc-single figure { max-width: 100% !important; height: auto !important; }
  .nav-dropdown-inner { padding: 10px; gap: 8px; }
  .nav-preview img { height: 80px; }
  .nav-preview-title { font-size: 9px; margin-top: 5px; }
}

/* WP embeds cleanup */
iframe { max-width: 100%; }
img { max-width: 100%; height: auto; }
.aligncenter { display: block; margin: 0 auto; text-align: center; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; padding: 5px 0; }
@media (max-width: 480px) {
  .alignleft, .alignright { float: none; display: block; margin: 10px auto; }
}

/* Section "read more" link */
.section-read-more {
  text-align: center; padding: 25px 0 10px; clear: both;
}
.section-read-more a {
  display: inline-block; font-family: 'Montserrat', sans-serif;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--border); padding: 12px 32px;
  transition: all .3s ease;
}
.section-read-more a em {
  font-style: normal; font-weight: 700;
}
.section-read-more a:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Full-width image divider bars between sections */
.section-divider {
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  overflow: hidden; height: 380px;
  margin-top: 20px; margin-bottom: 20px;
}
.section-divider img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.85) saturate(1.1);
  transition: filter .6s ease;
}
.section-divider:hover img { filter: brightness(.95) saturate(1.2); }
@media (max-width: 768px) { .section-divider { height: 220px; } }
@media (max-width: 480px) { .section-divider { height: 160px; } }

/* Carousel simple JS scroll helper */
.slider-mod { cursor: grab; }
.slider-mod:active { cursor: grabbing; }

/* Infinite-scroll loading */
.scroll-sentinel { height: 1px; }
.scroll-loading { text-align: center; padding: 30px 0; }
.scroll-spinner {
  display: inline-block; width: 28px; height: 28px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
