/* IFS Worldwide — flat site stylesheet
   Rebuilt from the original Joomla/T4 site design (ifsww.uk) */

:root {
  --green: #45b549;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: #000;
  background-repeat: no-repeat;
  background-position: 50% 0;
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* Per-page background images */
body.homepage  { background-image: url(/images/site/home-bkg.jpg); }
body.about     { background-image: url(/images/site/about-bkg.jpg); }
body.italian   { background-image: url(/images/site/freight_bkg.jpg); }
body.worldwide { background-image: url(/images/site/worldwide-bkg.jpg); }
body.contact   { background-image: url(/images/site/contact-bkg.jpg); }
body.newspage  { background-image: url(/images/site/news-bkg.jpg); }

a { color: var(--green); text-decoration: none; }
p { margin-top: 0; margin-bottom: 0.5rem; color: #fff; font-family: 'Nunito', 'Nunito Sans', sans-serif; }
h1 { color: #fff; font-family: 'Nunito', 'Nunito Sans', sans-serif; }
h2, h3, h4, h5, h6 { color: var(--green); font-family: 'Nunito', 'Nunito Sans', sans-serif; }
h2 { margin-top: 0; font-size: 18pt; }
h3 { margin: 0; }
strong { font-family: 'Nunito', 'Nunito Sans', sans-serif; }
ul { color: #fff; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.green { color: var(--green); }
.white-link { color: #fff; }
.white-link:hover { color: var(--green); }

/* ============ HEADER ============ */
.site-top { padding-top: 25px; }
.site-top .container { position: relative; }

.logo-wrapper { text-align: right; }
.logo-wrapper img { display: block; position: absolute; top: -25px; right: 15px; max-width: 406px; height: auto; }

.mainmenu { padding-top: 30px; width: 58.33%; }

.nav-strip {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: #000;
}
.nav-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  color: #fff;
}
.nav-strip li a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-size: 18px;
  color: #fff;
}
.nav-strip li a:hover,
.nav-strip li a:focus { color: var(--green); }
.nav-strip li a.active { color: var(--green); }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 0;
  font-size: 22pt;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
}
.offcanvas {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #111;
  z-index: 1000;
  transition: right 0.25s ease;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0,0,0,0.7);
}
.offcanvas.open { right: 0; }
.offcanvas .close-btn {
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  padding: 12px 18px;
  cursor: pointer;
  display: block;
  margin-left: auto;
}
.offcanvas ul { list-style: none; margin: 0; padding: 0; }
.offcanvas li a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 17px;
  border-bottom: 1px solid #222;
}
.offcanvas li a.active,
.offcanvas li a:hover { color: var(--green); }
.offcanvas-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.offcanvas-backdrop.show { display: block; }

/* ============ MAIN ============ */
.main-body { padding-top: 20px; padding-bottom: 40px; }

/* Content panel used on inner pages */
.article-body {
  max-width: 475px;
  height: 620px;
  overflow: auto;
  display: block;
  position: relative;
  left: calc(100% - 475px);
  background: rgba(0,0,0,0.6);
  padding: 15px;
}
.article-body a:hover { color: #fff; }
.subnav { padding-bottom: 20px; }
.subnav h1 { margin: 0 0 10px 0; font-size: 40px; font-weight: 700; line-height: 1.1; }
.nav-switch { margin-bottom: 0; }
.nav-switch a { font-size: 14pt; padding-right: 15px; color: #fff; }
.nav-switch a.active { color: var(--green); }

/* Bios (Who's Who) */
.bio { width: 214px; float: left; margin: 0 0 20px 0; }
.bio .bioImg { width: 76px; padding: 0 3px; float: left; }
.bio img { padding: 0; max-width: 100%; height: auto; }
.bio .bioContent { width: 135px; float: left; }
.bio .bioContent h2 { font-size: 18px; color: #fff; line-height: 16px; margin: 0; padding: 0 0 0 5px; font-weight: bold; text-transform: none; }
.bio .bioContent p { font-size: 13px; line-height: 14px; margin: 0; padding: 0 0 0 5px; }

/* ============ HOMEPAGE ============ */
.homepage .main-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 3rem;
  background: rgba(0,0,0,0.6);
  margin-top: -20px;
  margin-bottom: 8px;
  font-size: clamp(2rem, calc(1.5rem + 1.5vw), 3.6rem);
  width: max-content;
  max-width: 100%;
  padding: 5px 5px 5px 0;
}
.home-links-wrapper { background: rgba(0,0,0,0.6); width: max-content; max-width: 100%; padding: 5px; }
.home-links-wrapper table { border-collapse: collapse; }
.home-links-wrapper td { padding: 2px; vertical-align: top; }
.home-links-wrapper td img { display: block; }
.home-links-wrapper h2 { font-size: 14pt; padding: 0; margin: 0; }
.home-links-wrapper h2 a:hover { color: #fff; }
.table-right { padding-left: 5px; padding-top: 0; }
.home-lower { max-width: 690px; line-height: 14pt; display: block; position: relative; top: 30px; }

/* ============ NEWS ============ */
.page-header { border-bottom: 1px solid #fff; }
.page-header h2 { margin: 0 0 6px 0; }
.page-header h2, .page-header h2 a { color: var(--green) !important; font-size: 18px; font-weight: 400; }
.newspage h1.page-subtitle { font-size: 40px; font-weight: 700; margin: 0 0 15px 0; }
time { color: #fff; font-size: 12pt; display: block; position: relative; text-align: right; }
.blog {
  max-width: 475px;
  height: 620px;
  overflow: auto;
  display: block;
  position: relative;
  left: calc(100% - 475px);
  background: rgba(0,0,0,0.6);
  padding: 15px;
}
.blog .item { margin-bottom: 30px; }
.blog img { max-width: 100%; height: auto; }

/* Single news article */
.article-page .page-header h2 { font-size: 28px; }
.article-page .article-header { margin-bottom: 20px; }
.article-page .article-body { margin-top: 20px; }
.article-page .article-body img { max-width: 100%; height: auto; }

/* ============ FOOTER ============ */
.footnav {
  background: #000;
  color: #6c757d;
}
.footnav .container {
  padding-top: 50px;
  padding-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.footnav .col { flex: 0 0 16.66%; max-width: 16.66%; padding: 0 15px 0 0; }
.footnav .col-logos { flex: 0 0 33.33%; max-width: 33.33%; }
.footnav a { color: #fff; }
.footnav a:hover { color: var(--green); }
.footnav p { margin-bottom: 0.5rem; }
.footer-links { display: block; right: 50px; position: absolute; }
.footer-links img { margin-left: 15px; vertical-align: middle; }

.site-footer { background: #000; }
.site-footer .container { padding-top: 1rem; padding-bottom: 0.5rem; }
.site-footer p { color: #444; display: inline; }
.site-footer time { display: inline; color: #fff; font-size: inherit; text-align: left; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .container { max-width: 100%; }
}
@media (max-width: 1120px) {
  .nav-strip li a { padding: 0 11px; }
}
@media (max-width: 1020px) {
  .logo-wrapper img { max-width: 350px; }
}
@media (max-width: 991px) {
  .article-body, .blog { max-width: 80%; left: 0; }
  .mainmenu { width: auto; }
  .nav-strip { display: none; }
  .mobile-menu-btn { display: block; }
  .footnav { text-align: center; }
  .footnav .container { display: block; }
  .footnav .col, .footnav .col-logos { max-width: 100%; padding: 0 0 20px 0; }
  .footer-links { position: relative; right: unset; text-align: center; }
  .footer-links img { margin-left: unset; padding: 5px; }
  .site-footer { text-align: center; }
}
@media (max-width: 900px) {
  .logo-wrapper img { max-width: 290px; }
}
@media (max-width: 768px) {
  .article-body, .blog { max-width: 100%; }
  .home-lower { background: rgba(0,0,0,0.6); padding-bottom: 60px; }
  .break { display: none; }
  .homepage .main-title { margin-top: 0; width: 100%; }
}
@media (max-width: 575px) {
  .home-links-wrapper { max-width: 100%; }
  .home-links-wrapper td img { width: 110px; height: auto; }
  .mobile-menu-btn { position: relative; top: -20px; }
  .home-lower { top: 15px; }
  .main-body { display: block; position: relative; padding-top: 70px; }
  .logo-wrapper img { position: static; margin-left: auto; max-width: 260px; }
  .site-top .container { display: flex; align-items: flex-start; justify-content: space-between; }
  .mainmenu { padding-top: 10px; }
  .subnav h1, .newspage h1.page-subtitle { font-size: 30px; }
}
