/*
Theme Name: Termosystems
Theme URI: https://www.termosystems.ro
Description: Tema SC Silva Termosystems SRL - replica a designului ja_portfolio (Joomla) pentru WordPress.
Version: 1.0.1
Requires PHP: 8.1
Text Domain: termosystems
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f5f6f7 url(assets/bd-bg.jpg) repeat;
  font: 12px/1.6 Arial, Helvetica, sans-serif;
  color: #525253;
}
a { color: #5f9729; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 12px; }
.wrap { width: 970px; max-width: 100%; margin: 0 auto; position: relative; }

/* Top panel */
#ts-top { background: url(assets/divider-3.gif) repeat-x bottom; height: 31px; }
#ts-top .wrap { text-align: right; }
.quick-contact { list-style: none; margin: 0; padding: 0; display: inline-block; }
.quick-contact li { display: inline-block; font-size: 11px; color: #7a7a7b; padding: 6px 10px 7px; border-left: 1px solid #dcdcdc; border-right: 1px solid #dcdcdc; background: #f3f3f3; }
.quick-contact strong { color: #6d6d6e; }

/* Header */
#ts-header { padding: 10px 0 4px; }
#ts-header .logo { display: block; width: 294px; height: 68px; background: url(assets/logo.png) no-repeat left center; text-indent: -9999px; overflow: hidden; }
#ts-header h1 { margin: 0; }

/* Main navigation */
#ts-nav { background: #313435 url(assets/noise-bg.png); box-shadow: 0 1px 2px rgba(0,0,0,.25); position: relative; z-index: 50; }
#ts-nav ul { list-style: none; margin: 0; padding: 0; }
#ts-nav > .wrap > ul { display: flex; flex-wrap: wrap; }
#ts-nav li { position: relative; }
#ts-nav > .wrap > ul > li { background: url(assets/mainnav-sep.gif) no-repeat right top; }
#ts-nav > .wrap > ul > li > a { display: block; padding: 15px 20px 10px; min-height: 51px; color: #cacccd; font-weight: bold; font-size: 12px; text-decoration: none; }
#ts-nav > .wrap > ul > li > a .ts-t { display: block; line-height: 14px; }
#ts-nav > .wrap > ul > li.menu-item-has-children > a .ts-t { padding-left: 12px; background: url(assets/arrow3.png) no-repeat left 4px; }
#ts-nav > .wrap > ul > li > a .ts-d { display: block; font-weight: normal; font-size: 11px; line-height: 13px; color: #8b8e8f; padding-left: 12px; }
#ts-nav > .wrap > ul > li:hover > a,
#ts-nav > .wrap > ul > li.current-menu-item > a,
#ts-nav > .wrap > ul > li.current-menu-ancestor > a,
#ts-nav > .wrap > ul > li.current-menu-parent > a,
#ts-nav > .wrap > ul > li.current_page_ancestor > a { color: #fff; }
#ts-nav > .wrap > ul > li.current-menu-item,
#ts-nav > .wrap > ul > li.current-menu-ancestor,
#ts-nav > .wrap > ul > li.current-menu-parent,
#ts-nav > .wrap > ul > li.current_page_ancestor { background-color: #5f9729; }
#ts-nav li.current-menu-item > a .ts-d,
#ts-nav li.current-menu-ancestor > a .ts-d,
#ts-nav li.current_page_ancestor > a .ts-d,
#ts-nav li:hover > a .ts-d { color: #e9f2df; }
#ts-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 210px; background: #313435 url(assets/noise-bg.png); border-top: 3px solid #5f9729; box-shadow: 0 3px 6px rgba(0,0,0,.3); padding: 6px 0; }
#ts-nav li:hover > .sub-menu { display: block; }
#ts-nav .sub-menu a { display: block; padding: 6px 16px; color: #cacccd; font-weight: bold; }
#ts-nav .sub-menu a .ts-d { display: block; font-weight: normal; font-size: 11px; color: #8b8e8f; }
#ts-nav .sub-menu a:hover, #ts-nav .sub-menu .current-menu-item > a { color: #fff; background: #5f9729; text-decoration: none; }
#ts-nav .sub-menu a:hover .ts-d { color: #e9f2df; }
#ts-nav-toggle { display: none; }
/* Active / hover subtitle contrast */
#ts-nav > .wrap > ul > li.current-menu-item > a .ts-d,
#ts-nav > .wrap > ul > li.current-menu-ancestor > a .ts-d,
#ts-nav > .wrap > ul > li.current-menu-parent > a .ts-d,
#ts-nav > .wrap > ul > li.current_page_ancestor > a .ts-d,
#ts-nav > .wrap > ul > li:hover > a .ts-d { color: #e9f2df; }


/* Slideshow / header media */
#ts-slideshow { margin-top: 8px; position: relative; height: 340px; overflow: hidden; background: #222; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
#ts-slideshow .ts-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
#ts-slideshow .ts-slide.active { opacity: 1; z-index: 2; }
#ts-slideshow .ts-slide img { width: 970px; height: 340px; object-fit: cover; display: block; }
#ts-slideshow .ts-cap { position: absolute; right: 0; bottom: 28px; width: 490px; min-height: 98px; background: rgba(40,40,40,.72); color: #fff; padding: 18px 16px; font-size: 14px; font-weight: bold; }
#ts-slideshow .ts-cap a { color: #fff; }
#ts-slideshow .ts-arrows { position: absolute; left: 12px; bottom: 28px; z-index: 5; display: flex; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
#ts-slideshow .ts-arrows button { width: 26px; height: 28px; border: 0; background: transparent; cursor: pointer; color: #999; font-size: 18px; line-height: 28px; padding: 0; }
#ts-slideshow .ts-arrows button:hover { color: #5f9729; }
.ts-header-video { margin-top: 8px; background: #000; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ts-header-video iframe { display: block; width: 970px; max-width: 100%; height: 340px; border: 0; }

/* Main box */
#ts-main { margin-top: 12px; background: #fff; border: 1px solid #e1e2e3; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ts-pad { padding: 16px; }
.ts-page-title { margin: 0; padding: 14px 16px; background: #f0f0f3; border-bottom: 1px solid #e6e6ea; font-size: 24px; line-height: 1.3; color: #525253; font-weight: bold; }
.ts-page-title a { color: #525253; }
.ts-content { padding: 18px 16px 10px; }
.ts-content p { text-align: justify; }
.ts-content h3 { font-size: 14px; color: #2d2d2e; }
.ts-content ul { padding-left: 22px; }
.ts-content li { margin-bottom: 4px; }
.ts-content hr, .ts-item hr { border: 0; border-top: 1px solid #ccc; margin: 6px 0 12px; }
img.img-border, .ts-intro img[align="left"] { float: left; margin: 0 12px 8px 0; padding: 4px; border: 1px solid #ddd; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ts-content img.img-border { width: 210px; }
.ts-docs { margin: 26px 0 10px; }
.ts-docs a { display: inline-block; margin: 0 4px 6px 0; padding: 4px; border: 1px solid #ddd; background: #fff; }
.ts-docs a:hover { border-color: #5f9729; }
.ts-docs img { display: block; width: 40px; height: 40px; }
.ts-clr { clear: both; }

/* Item meta */
.ts-meta { border-top: 1px dotted #ccc; padding: 6px 0; margin-top: 8px; }
.ts-meta strong { color: #333; margin-right: 6px; }
.ts-tags a { display: inline-block; background: #e5e5e5; color: #555; padding: 1px 6px; border-radius: 3px; font-size: 11px; margin-right: 3px; }
.ts-related { margin-top: 18px; }
.ts-related h3 { font-size: 13px; text-transform: uppercase; color: #333; margin: 0 0 10px; }
.ts-related ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; }
.ts-related li { padding: 5px 0 5px 10px; border-bottom: 1px dotted #ccc; break-inside: avoid; position: relative; }
.ts-related li:before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #bbb; }
.ts-related a { color: #666; text-transform: uppercase; font-size: 11px; }
.ts-next { margin-top: 18px; background: #fbfbe9; border-top: 1px dotted #ccc; border-bottom: 1px dotted #ccc; padding: 6px; display: flex; justify-content: space-between; color: #888; font-size: 11px; }
.ts-next a { text-transform: uppercase; }
.ts-backtop { text-align: right; padding: 12px 0; border-bottom: 1px dotted #ccc; font-size: 11px; }
.ts-backtop a { text-decoration: underline; }

/* Item listing (K2-like) */
.ts-list { list-style: none; margin: 0; padding: 0 16px; }
.ts-item { padding: 14px 0 6px; border-bottom: 1px dotted #ccc; overflow: hidden; }
.ts-item:last-child { border-bottom: 0; }
.ts-item h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; }
.ts-item h3 a { color: #2d2d2e; }
.ts-item .ts-intro { overflow: hidden; }
.ts-item .ts-intro p { text-align: justify; }
.ts-item .ts-intro img.img-border, .ts-item .ts-intro img[align="left"] { width: 130px; }
.ts-readmore { text-align: right; clear: both; padding: 4px 0; }
.ts-readmore a { display: inline-block; padding: 3px 5px 3px 22px; background: url(assets/check_alt_12x12.png) no-repeat 5px center; color: #525253; font-size: 11px; text-transform: uppercase; }
.ts-readmore a:hover { color: #5f9729; text-decoration: none; }
.ts-two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.ts-two-col .ts-item h3 { border-bottom: 1px solid #ccc; padding-bottom: 6px; }
.ts-pretext { padding: 14px 16px 0; overflow: hidden; }
.ts-pretext p { text-align: justify; }

/* Tabs */
.ts-tabs-nav { display: flex; background: #d3d4d5; border-bottom: 1px solid #c4c5c6; margin: 0; padding: 0; list-style: none; }
.ts-tabs-nav li { width: 116px; padding: 13px 8px 10px 45px; background: #cfd0d1 url(assets/icon3.png) no-repeat 12px center; border-right: 1px solid #bfc0c1; cursor: pointer; color: #848586; font-weight: bold; font-size: 11px; line-height: 13px; min-height: 52px; transition: background-color .2s; }
.ts-tabs-nav li:hover { color: #525253; }
.ts-tabs-nav li.active { background-color: #fff; color: #2d2d2e; margin-bottom: -1px; }
.ts-tab { display: none; }
.ts-tab.active { display: block; }

/* Featured (home "SC SILVA TERMOSYSTEMS SRL") */
.ts-section-head { background: #2d2f30 url(assets/noise-bg.png); color: #fff; font-weight: bold; text-transform: uppercase; padding: 9px 16px; font-size: 12px; margin: 14px -1px 0; }
.ts-featured { border-bottom: 1px solid #e6e6ea; }
.ts-featured:last-child { border-bottom: 0; }
.ts-featured .ts-page-title { font-size: 21px; }
.ts-featured .ts-content { padding-bottom: 4px; overflow: hidden; }
.ts-featured .ts-content img[style*="right"] { padding: 4px; border: 1px solid #ddd; background: #fff; }

/* Breadcrumbs / footer */
#ts-bottom { display: flex; justify-content: space-between; padding: 14px 0 30px; font-size: 10px; text-transform: uppercase; color: #6d6d6e; border-bottom: 1px solid #dcdcdc; }
#ts-bottom .ts-bc a { color: #5f9729; }
#ts-bottom .ts-bc .sep { display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-left-color: #e67e22; margin: 0 6px 0 8px; vertical-align: middle; }
#ts-footer { text-align: center; font-size: 11px; color: #8a8a8b; padding: 14px 0 70px; }

/* Contact */
.ts-contact-details p { margin: 0 0 8px; }
.ts-form { margin: 18px 0; max-width: 560px; }
.ts-form h3 { font-size: 14px; border-bottom: 1px solid #ddd; padding-bottom: 6px; }
.ts-form label { display: block; font-weight: bold; margin: 10px 0 3px; }
.ts-form input[type=text], .ts-form input[type=email], .ts-form textarea { width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 3px; font: inherit; }
.ts-form textarea { min-height: 150px; }
.ts-form .ts-check label { display: inline; font-weight: normal; }
.ts-form button { margin-top: 12px; background: #5f9729; color: #fff; border: 0; padding: 8px 18px; border-radius: 3px; font-weight: bold; cursor: pointer; }
.ts-form button:hover { background: #4d7d1f; }
.ts-hp { position: absolute !important; left: -9999px !important; }
.ts-notice { padding: 10px 12px; margin: 12px 0; border-radius: 3px; }
.ts-notice.ok { background: #e9f4dc; border: 1px solid #b6d68f; }
.ts-notice.err { background: #fbe9e7; border: 1px solid #e3a59c; }
.ts-map iframe { width: 100%; max-width: 600px; height: 450px; border: 0; }

/* Cookie bar */
#ts-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; background: #5c9a2e; color: #fff; text-align: center; padding: 8px 12px; font-size: 13px; display: none; }
#ts-cookie.show { display: block; }
#ts-cookie button { margin-left: 18px; background: #111; color: #fff; border: 0; padding: 6px 10px; cursor: pointer; font-size: 12px; }

/* Responsive */
@media (max-width: 990px) {
  .wrap { width: auto; margin: 0 10px; }
  #ts-slideshow { height: auto; aspect-ratio: 970 / 340; }
  #ts-slideshow .ts-slide img { width: 100%; height: 100%; }
  #ts-slideshow .ts-cap { width: 60%; min-height: 0; font-size: 12px; padding: 10px; bottom: 10px; }
  #ts-slideshow .ts-arrows { bottom: 10px; }
  .ts-header-video iframe { height: auto; aspect-ratio: 970 / 340; }
}
@media (max-width: 720px) {
  #ts-nav-toggle { display: block; width: 100%; background: transparent; color: #fff; border: 0; padding: 14px 16px; text-align: left; font-weight: bold; cursor: pointer; }
  #ts-nav > .wrap > ul { display: none; flex-direction: column; }
  #ts-nav.open > .wrap > ul { display: flex; }
  #ts-nav > .wrap > ul > li { background-image: none; border-top: 1px solid #444; }
  #ts-nav .sub-menu { position: static; display: block; box-shadow: none; border-top: 0; padding: 0 0 6px 16px; background: transparent; }
  .ts-tabs-nav { flex-wrap: wrap; }
  .ts-tabs-nav li { width: 50%; }
  .ts-two-col { grid-template-columns: 1fr; }
  .ts-related ul { columns: 1; }
  #ts-slideshow .ts-cap { display: none; }
  img.img-border, .ts-intro img[align="left"] { max-width: 45%; }
}