/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Custom styles
   ========================================================================== */

:root {
  --bs-body-font-family: 'book antiqua', palatino, serif;
  --bs-heading-color: #cc342e;
  --bs-body-font-size: 14pt;
  --bs-body-line-height: 1.7;
  --bs-body-color: rgba(33, 37, 41, 0.75);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: 'Play', sans-serif;
}

h2 {
  font-family: 'book antiqua', palatino, serif;
  color: var(--bs-secondary-color);
}

.subtitle,
.bio {
  display: none;
}

.nickname {
  color: var(--bs-secondary-color);
}

blockquote {
    font-style: italic;
}

/* ==========================================================================
   About
   ========================================================================== */

.block-title {
  margin-bottom: 55px;
}

.block-title__tag-line {
  margin: 0;
  color: #a5a5a5;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1em;
  border-top: 2px solid #cc342e;
  padding-top: 20px;
  display: inline-block;
}

.block-title__title {
  margin: 0;
  color: #cc342e;
  font-size: 44px;
  margin-top: 20px;
}

.block-title__sub-title {
  margin: 0;
  font-size: 30px;
  line-height: 44px;
  color: #302e2f;
  margin-top: 30px;
}

.about-two {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  .about-two {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.about-two .block-title,
.about-two .block-title__title,
.about-two .block-title__sub-title {
  margin: 0;
}

.about-two .block-title__title {
  margin-top: 15px;
}

.about-two .block-title__sub-title {
  /*margin-top: 30px;*/
  margin-bottom: 25px;
}

.about-two__text {
  margin: 0;
}

@media (max-width: 1199px) {
  .about-two__text br {
    display: none;
  }
}

.about-two__text + .about-two__text {
  margin-top: 15px;
}

.about-two__btn {
  margin-top: 35px;
}

.about-two__image {
  width: 370px;
  height: 360px;
  background-color: #cc342e;
  position: relative;
}

@media (max-width: 1199px) {
  .about-two__image {
    left: 50px;
  }
}

@media (max-width: 991px) {
  .about-two__image {
    left: 0;
    margin-top: 200px;
  }
}

@media (max-width: 480px) {
  .about-two__image {
    width: 85%;
    height: 320px;
    margin-top: 150px;
  }
}

.about-two__image-content {
  width: 370px;
  height: 320px;
  border: 2px solid #eaeaea;
  padding: 30px;
  position: absolute;
  bottom: 20px;
  left: 70px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 11;
}

@media (max-width: 480px) {
  .about-two__image-content {
    width: 85%;
    height: 280px;
  }
}

@media (max-width: 375px) {
  .about-two__image-content {
    width: 100%;
    height: 280px;
    left: 15px;
  }
}

[class*=about-two__image--] {
  position: absolute;
}

@media (max-width: 575px) {
  [class*=about-two__image--] {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
  }
}

.about-two__image--2 {
  top: -30px;
  right: 100px;
  z-index: 9;
}

@media (max-width: 375px) {
  .about-two__image--2 {
    right: 15px;
    top: -15px;
  }
}

.about-two__image--1 {
  bottom: -30px;
  left: 100px;
  z-index: 12;
}

@media (max-width: 375px) {
  .about-two__image--1 {
    left: 15px;
    bottom: -15px;
  }
}

.about-two__image-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.about-two__image-content-main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.about-two__image-decor {
  width: 148px;
  height: 48px;
  border-right: 2px solid #cc342e;
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(19%, #f2ebe8), to(white));
  background-image: linear-gradient(180deg, #f2ebe8 19%, white 100%);
  margin-right: 15px;
}

.about-two__image-content-left {
  font-size: 60px;
  color: #302e2f;
  line-height: 1em;
  font-family: "Prata";
}

.about-two__image-content-right {
  margin-left: 10px;
}

.about-two__image-content-right span {
  display: block;
  font-size: 18px;
  color: #302e2f;
  line-height: 1em;
  font-family: "Prata";
}

.about-two__year {
  font-size: 24px;
  margin-top: 15px;
}


/* ==========================================================================
   Caduti
   ========================================================================== */

.caduti {
  padding-top: 120px;
  padding-bottom: 90px;
  background-color: #ffffff;
  position: relative;
}

.caduti .block-title__title {
  color: #fff;
}

.caduti__single {
  margin-bottom: 30px;
}

.caduti__bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

@media (max-width: 425px) {
  .caduti__bottom {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

.caduti__bottom-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
}

@media (max-width: 425px) {
  .caduti__bottom-left {
    margin-bottom: 30px;
  }
}

.caduti__bottom-left:before {
  content: '';
  position: absolute;
  left: 100%;
  bottom: 10px;
  width: 44px;
  height: 32px;
  border-bottom: 1px solid #3f3e3f;
  border-right: 1px solid #3f3e3f;
}

.caduti__bottom-left:after {
  content: '';
  position: absolute;
  left: calc(100% - 67px);
  top: 2px;
  width: 110px;
  height: 1px;
  background-color: #3f3e3f;
}

.caduti__bottom-left span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  line-height: 1em;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.caduti__bottom-left span i {
  color: #646162;
  font-size: 21px;
  margin-left: 10px;
}

.caduti__bottom-left span:nth-child(2) {
  margin-top: 10px;
}

.caduti__bottom-left span:nth-child(2):before {
  content: '';
  width: 50px;
  height: 2px;
  background-color: var(--bs-heading-color);
  margin-right: 10px;
}

.caduti__btn {
  border-style: solid;
  border-width: 1px;
  border-color: #3f3e3f;
  border-radius: 4px;
  background-color: #393738;
  padding: 8px 27px;
}

.caduti__btn:hover {
  background-color: var(--bs-heading-color);
  border-color: var(--bs-heading-color);
}

.caduti__image {
  -webkit-transition: -webkit-box-shadow .4s ease;
  transition: -webkit-box-shadow .4s ease;
  transition: box-shadow .4s ease;
  transition: box-shadow .4s ease, -webkit-box-shadow .4s ease;
}

.caduti__image-inner {
  position: relative;
  overflow: hidden;
}

.caduti__image-inner > img {
  width: 100%;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: -webkit-transform .4s ease;
  transition: -webkit-transform .4s ease;
  transition: transform .4s ease;
  transition: transform .4s ease, -webkit-transform .4s ease;
}

.caduti__image-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  font-size: 44px;
  color: #fff;
  opacity: 0;
  -webkit-transform: perspective(100px) translateZ(40px);
  transform: perspective(100px) translateZ(40px);
  -webkit-transition: opacity .4s ease, -webkit-transform .4s ease;
  transition: opacity .4s ease, -webkit-transform .4s ease;
  transition: opacity .4s ease, transform .4s ease;
  transition: opacity .4s ease, transform .4s ease, -webkit-transform .4s ease;
}

.caduti__single:hover .caduti__image {
  -webkit-box-shadow: 5px 8.66px 40px 0px rgba(20, 20, 20, 0.75);
  box-shadow: 5px 8.66px 40px 0px rgba(20, 20, 20, 0.75);
}

.caduti__single:hover [class*=caduti__image-border-] {
  -webkit-transform: perspective(40px) translateZ(0px);
  transform: perspective(40px) translateZ(0px);
  opacity: 1;
}

.caduti__single:hover .caduti__image-inner > img {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.caduti__single:hover .caduti__image-link {
  color: #fff;
  opacity: 1;
  -webkit-transform: perspective(100px) translateZ(0px);
  transform: perspective(100px) translateZ(0px);
}

[class*=caduti__image-border-] {
  width: 32px;
  height: 32px;
  border: 2px solid var(--bs-heading-color);
  position: absolute;
  z-index: 10;
  -webkit-transform: perspective(40px) translateZ(-20px);
  transform: perspective(40px) translateZ(-20px);
  opacity: 0;
  -webkit-transition: opacity .4s ease, -webkit-transform .4s ease;
  transition: opacity .4s ease, -webkit-transform .4s ease;
  transition: opacity .4s ease, transform .4s ease;
  transition: opacity .4s ease, transform .4s ease, -webkit-transform .4s ease;
}

.caduti__image-border-1 {
  border-right: 0;
  border-bottom: 0;
  top: 0;
  left: 0;
}

.caduti__image-border-2 {
  border-left: 0;
  border-bottom: 0;
  top: 0;
  right: 0;
}

.caduti__image-border-3 {
  border-top: 0;
  border-right: 0;
  bottom: 0;
  left: 0;
}

.caduti__image-border-4 {
  border-top: 0;
  border-left: 0;
  bottom: 0;
  right: 0;
}

.caduti__page {
  padding-bottom: 120px;
  background-color: #fff;
}

.caduti__page:before {
  display: none;
}

.caduti__page .caduti__single {
  margin-bottom: 60px;
}

.caduti__page .caduti__title {
  color: #302e2f;
}

.caduti__page .caduti__bottom-left span {
  color: #777777;
}

.caduti__page .caduti__bottom-left::before {
  border-color: #e4e4e4;
}

.caduti__page .caduti__bottom-left::after {
  background-color: #e4e4e4;
}

.caduti__page .caduti__bottom-left span i {
  color: #aeaeae;
}

.caduti__page .caduti__btn {
  background-color: #fff;
  border: 1px solid #e4e4e4;
  color: #302e2f;
}

.caduti__page .caduti__btn:hover {
  background-color: var(--bs-heading-color);
  border-color: var(--bs-heading-color);
  color: #fff;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

    pre,
    blockquote {
        page-break-inside: avoid;
    }

    blockquote {
        font-style: italic;
    }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

