/*
Theme Name: Ricotest theme
Theme URI:
Author: Elia Signorato
Author URI:
Description: Starter Theme with Font Awesome and Bootstrap 5
Version: 0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready
Text Domain: nx

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/


/* General
-------------------------------------------------------- */
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

main {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.main-loaded {
  opacity: 1;
  /* Visibile */
}

/* Colori
-------------------------------------------------------- */
a {
  color: #a31b40;
  text-decoration: none;
}

a:hover:not(.btn-primary, .nav-link) {
  color: #a31b40 !important;
  -webkit-filter: brightness(0.8);
  filter: brightness(0.8);
}

.color-primary {
  color: #a31b40 !important;
}

.bg-primary {
  background: #a31b40 !important;
}

.bg-secondary {
  background: #f2f2f2 !important;
}

/* Typography
-------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

@media (min-width: 1200px) {
  h2 {
    font-size: 2.5em;
    text-transform: uppercase;
  }
}

@media (max-width: 1199px) {
  h2 {
    font-size: 30px;
    text-transform: uppercase;
  }
}

body,
p:not(.lato-thin) {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-thin {
  font-family: "Lato", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.sub {
  text-transform: uppercase;
}

/* Helpers
-------------------------------------------------------- */
@media (min-width: 768px) {
  .py-custom {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .pt-custom {
    padding-top: 75px;
  }

  .pb-custom {
    padding-bottom: 75px;
  }
}

@media (max-width: 767px) {
  .py-custom {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .pt-custom {
    padding-top: 50px;
  }

  .pb-custom {
    padding-bottom: 50px;
  }
}

.trattino {
  width: 60px;
  height: 8px;
  margin-bottom: 3em;
  margin-top: 0.5em;
  background: #a31b40;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* Buttons
-------------------------------------------------------- */
.btn.btn-primary,
.btn.btn-outline-light,
.btn.btn-outline-primary,
.mepr-submit,
.mepr-share-button {
  border-radius: 3px;
  font-size: 14px;
  padding: 12px 25px;
  text-transform: uppercase;
}

.btn-outline-primary {
  border: solid 1px #a31b40 !important;
  color: #a31b40 !important;
}

.btn-primary,
.mepr-submit,
.mepr-share-button {
  border: #a31b40;
  background: #a31b40;
}

.btn-secondary {
  border: grey;
  background: grey;
}

.mepr-submit,
.mepr-share-button,
.btn-area:not(.btn-outline-primary.btn-area) {
  color: #fff;
}

.btn-primary:hover,
.mepr-submit:hover,
.mepr-share-button:hover {
  background: #a31b40;
  -webkit-filter: brightness(0.8);
  filter: brightness(0.8);
}



.btn-outline-primary:hover {
  background: #a31b40;
  color: #fff !important;
  text-shadow: none !important;
}

.btn-outline-light:hover {
  border: 1px solid transparent;
  -webkit-filter: brightness(0.8);
  filter: brightness(0.8);
}

/* Animazioni
-------------------------------------------------------- */
.fade-in,
.nascosto {
  opacity: 0;
}

.fade-in.show,
.visibile {
  opacity: 1;
  -webkit-transition: opacity 1s ease-in;
  transition: opacity 1s ease-in;
}


/* Header
-------------------------------------------------------- */

.navbar-transparent {
  background: #fff !important;
}

.navbar-transparent .nav-link:not(.nav-tabs .nav-link) {
  color: var(--bs-text-default);
  margin-left: 2px !important;
  margin-right: 2px !important;
  text-transform: uppercase;
  position: relative;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .navbar-transparent .nav-link {
    font-size: 16px !important;
  }
}

.navbar-transparent.is-scrolled .navbar {
  background: #fff;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.navbar-transparent.is-scrolled .navbar img,
.navbar-transparent.is-scrolled .navbar-toggler-icon {
  -webkit-filter: none;
  filter: none;
}

.navbar-transparent.is-scrolled .nav-link:not(footer .nav-link, .btn-area),
.navbar:has(.navbar-collapse.show) .nav-link:not(footer .nav-link, .btn-area),
.navbar:has(.dropdown-menu.megamenu.show) .nav-link:not(footer .nav-link, .btn-area),
.navbar-collapse.collapsing .nav-link {
  color: initial !important;
  text-shadow: none !important;
}

.navbar:has(.navbar-collapse.show) {
  background: #fff !important;
}

.navbar:has(.navbar-collapse.show) img,
.navbar:has(.navbar-collapse.show) .navbar-toggler-icon {
  -webkit-filter: none !important;
  filter: none !important;
}

.navbar:has(.dropdown-menu.megamenu.show) {
  background: #fff;
}

.navbar:has(.dropdown-menu.megamenu.show) img,
.navbar:has(.dropdown-menu.megamenu.show) .navbar-toggler-icon {
  -webkit-filter: none;
  filter: none;
}


.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-brand img {
  max-width: 80px;
  padding: 5px 0px;
}

@media (max-width: 1199px) {
  .navbar-brand img {
    margin-left: 10px;
    max-width: 75px;
  }

  .navbar-toggler-icon {
    font-size: 25px;
  }

  .navbar-transparent .nav-link {
    padding: 12px;
  }

  .navbar-transparent .navbar {
    background: #fff !important;
  }
}

/* Megamenu
-------------------------------------------------------- */
.nav-link:focus-visible {
  -webkit-box-shadow: none;
  box-shadow: none;
  color: transparent;
}

.navbar .megamenu {
  padding: 1rem;
}



@media (min-width: 1200px) {
  .lav-menu {
    columns: 2;
  }

  .navbar .has-megamenu {
    position: static !important;
  }

  .navbar .megamenu {
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  }

  .megamenu li {
    list-style: square;
    text-align: left;
  }

  .nav-link:not(.percorso .nav-link, .btn-area, .nav-tabs .nav-link):before {
    -webkit-transition: 300ms;
    transition: 300ms;
    height: 4px;
    content: "";
    position: absolute;
    background-color: #a31b40;
  }

  .nav-link::before {
    width: 0%;
    max-width: 100px;
    bottom: 10px;
  }

  .nav-link:hover::before {
    width: 20px;
  }

  .nav-link:not(.nav-link.btn, .navbar .nav-link, .documenti .nav-link) {
    padding-right: 0px !important;
    padding-left: 0px !important;
    margin-right: 0px !important;
    margin-left: 0px !important;
  }
}

@media (max-width: 1199px) {

  .lav-menu li,
  .azienda-menu li {
    list-style: none;
  }

  .navbar.fixed-top .navbar-collapse,
  .navbar.sticky-top .navbar-collapse {
    overflow-y: auto;
    max-height: 90vh;
    margin-top: 10px;
  }

  .navbar-nav>li::after {
    content: '';
    border-bottom: solid 1px #f2f2f2;
    display: block;
    margin-bottom: 10px;
  }

}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
}

body:has(.dropdown-menu.show)>.modal-overlay,
body:has(.navbar-collapse.collapsing, .navbar-collapse.collapse.show)>.modal-overlay {
  display: block !important;
}

/* Footer
-------------------------------------------------------- */
footer {
  background-color: #333333;
}

footer img {
  max-width: 130px;
  -webkit-filter: brightness(0) saturate(100%) invert(100%) sepia(97%) saturate(17%) hue-rotate(210deg) brightness(103%) contrast(100%);
  filter: brightness(0) saturate(100%) invert(100%) sepia(97%) saturate(17%) hue-rotate(210deg) brightness(103%) contrast(100%);
}

footer h3 {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
}

footer p {
  font-size: 15px;
}

footer .dropdown-menu {
  background-color: transparent;
}





/* hero 2
-------------------------------------------------------- */

#carouselautoplaying .carousel-inner {
  z-index: -1;
}

.carousel-item {
  height: 80vh;
}

.carousel-item h1 {
  text-transform: uppercase;
  font-size: 110px;
  font-weight: 600;
  text-align: center;
}

@media screen and (max-width: 1199px) {
  .carousel-item h1 {
    font-size: 40px;
  }
}

.servizi {
  margin-top: -150px;
}

.servizi .card {
  background-size: cover;
  background-position: center center;
}

.servizi h3 {
  text-transform: uppercase;
  font-size: 20px;
}

.servizi p {
  font-size: 15px;
  color: #333333;
}

.servizi h3,
.servizi i {
  color: #a31b40 !important;
}


/* Punti di forza
-------------------------------------------------------- */
.card-home p {
  font-size: 14px;
}

/* Carosello (tiny-slider)
-------------------------------------------------------- */

.overlay {
  background: linear-gradient(180deg, rgba(112, 112, 112, 0) 0%, rgba(48, 48, 48, 1) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 16px);
  height: 100%;
}

.tns-controls button {
  padding: 7px 16px;
  border-radius: 250px;
  font-size: 20px;
  margin: 7px;
  background-color: transparent;
  color: #a31b40;
  border-color: #a31b40;
}

.carosello-home .tns-controls {
  text-align: center !important;
}


/* Griglia news
-------------------------------------------------------- */

@media (min-width: 1200px) {
  .griglia-news {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }


  .grid-item:first-child {
    grid-column: span 2;
    /* Larghezza di 3 celle nella prima colonna */
    grid-row: span 2;
    height: 500px;
  }

  .grid-item:first-child .card-title {
    font-size: 28px;
  }

  .grid-item .card-title {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
  }
}

@media (max-width: 1199px) {
  .griglia-news .grid-item {
    height: 300px;
    margin-bottom: 20px;
  }

  .griglia-news .grid-item .card-title {
    color: #fff;
    font-size: 25px;
    text-decoration: none;
  }
}

/* Cit
-------------------------------------------------------- */
.cit img {
  width: 70%;
}




/* Page header
-------------------------------------------------------- */
.page-header {
  height: 400px !important;
  width: 100%;
}

.bg-intestazione {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
  z-index: -1;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 3em;
  }

  .page-header p {
    font-size: 16px;
    font-weight: 100;
  }
}

@media (max-width: 767px) {
  .page-header h1 {
    font-size: 35px;
    font-weight: bold;
  }

  .page-header p {
    font-size: 15px;
    font-weight: 300;
  }
}


/* Pagina test
-------------------------------------------------------- */

iframe {
  width: 100%;
  height: 100%;
}


/* Contatti
-------------------------------------------------------- */
.wpcf7-form-control {
  height: auto;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wpcf7-select {
  padding-top: 13px;
  padding-bottom: 13px;
}

.wpcf7 p {
  font-size: 14px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.wpcf7 label {
  width: 100%;
}

.wpcf7-submit {
  background: #a31b40 !important;
  padding-top: 15px;
  padding-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
}


.post h3 {
  margin-top: 50px !important;
}

/* Pagina account
-------------------------------------------------------- */
#mepr-account-nav {
  display: none;
}

.mepr_price {
  display: none !important;
}

#v-pills-tab .nav-link {
  font-size: 17px;
  line-height: 2.5em;
  text-shadow: none;
  color: #333333;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#v-pills-tab .nav-link.active {
  background-color: #a31b40;
  color: #fff !important;
}

/* Pagina documenti
-------------------------------------------------------- */
.documenti .nav-link {
  text-transform: uppercase;
  color: #333333;
}

/* Pagine archivio e ricerca
-------------------------------------------------------- */
td {
  border-width: 1px;
}

.sidebar p {
  font-size: 13px;
}

.sidebar h5 {
  font-size: 15;
  color: #333333;
}

/* Pagine archivio e ricerca
-------------------------------------------------------- */
.page-archive {
  padding-top: 100px;
}

/* Comments
-------------------------------------------------------- */
#comments {
  margin-bottom: 40px;
}

.comments {
  padding-top: 40px;
}

.comments textarea {
  width: 100%;
}

.comments label {
  min-width: 80px;
}

.comments ul,
.comments ol {
  list-style-type: none;
}

.comment-author img {
  border-radius: 999px;
  width: 50px;
}

.comment .reply {
  border-bottom: 1px solid #ccc;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

/* Input & textarea
-------------------------------------------------------- */
input,
textarea {
  padding: 5px 10px;
  border: 1px solid;
}

/* Widgets
-------------------------------------------------------- */
.widget_search .screen-reader-text {
  display: block;
}

.widget_search #s {
  width: 70%;
  float: left;
}

.widget_search #searchsubmit {
  width: 30%;
  float: left;
  background: #fff;
}

/* pagination
-------------------------------------------------------- */
.pagination {
  margin-bottom: 40px;
}

.page-numbers {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #ddd;
  margin-right: 4px;
}


/* general wordpress style
-------------------------------------------------------- */
.post img {
  max-width: 100%;
  height: auto;
}

/* WordPress Core Styles
-------------------------------------------------------------- */
.gallery-caption {
  padding: 5px;
  font-size: 10px;
}

.bypostauthor {
  border-left: 3px solid #ddd;
  padding-left: 20px;
}

.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 5px auto;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

a img.alignnone {
  margin: 5px 20px 20px 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  /* Image does not overflow the content area */
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
  margin: 5px 0 20px 20px;
}

.wp-caption img {
  border: 0 none;
  height: auto;
  margin: 0;
  max-width: 98.5%;
  padding: 0;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  white-space: nowrap;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}