@import url('https://fonts.googleapis.com/css2?family=EB+Garamond&family=Playfair+Display:wght@600&display=swap');

/* ===== BASE ===== */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background: #fff;
  color: #2f3138;
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  overflow-x: hidden;
}

a {
  color: #d4b064;
  transition: 0.5s;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: #d4b064;
  outline: none;
  text-decoration: none;
}

ul {
  padding-inline-start: 0px !important;
  margin-bottom: 0;
}

p {
  color: #16163f;
}

address {
  font-size: 17px;
}

.text-justify {
  text-align: justify;
}

.center {
  text-align: center;
}

.white {
  color: #fff !important;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  padding: 0;
  color: #424242;
}

h2 {
  text-align: center;
}

h3 {
  font-size: 1.2rem;
  color: #16163f;
}

h5,
.h5,
h6,
.h6 {
  font-size: 1.3rem;
  letter-spacing: 1.2px;
  font-family: 'EB Garamond', serif;
}

h5 {
  font-size: 1.3rem;
  letter-spacing: 1.2px;
  font-family: 'EB Garamond', serif;
  margin-bottom: 0;
}

.section-header .h2 {
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header .h3 {
  font-size: 18px;
  text-align: center;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 30px !important;
  color: #d4b064 !important;
  font-weight: 600 !important;
  font-size: 21px !important;
}

.post_title {
  color: #d4b064;
  font-size: 19px;
}

.border-left-colored {
  border-left: solid 3px #d3b574;
}

.citazione {
  font-size: 20px;
}

.icon {
  width: 15px;
  height: auto;
}

.offcanvas-body a {
  text-decoration: unset;
  font-size: 20px;
}

/* ===== LAYOUT ===== */
.container {
  margin: 20px auto 0;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: auto;
  }
}

.container1 {
  padding: 50px 10%;
}

@media (min-width: 1200px) {
  .container1 {
    max-width: 1140px;
    margin: auto;
  }
}

.small-container {
  padding: 50px 6%;
}

section {
  padding: 8% 5%;
}

.row {
  width: 100%;
  margin: auto;
}

/* ===== HEADER ===== */
.header {
  padding: 10px 0;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 997;
  background: radial-gradient(#17183a, #0f0f1f);
}

@media (max-width: 991px) {
  .header {
    background: radial-gradient(#17183a, #0f0f1f);
    padding: 15px 15px;
  }

  .flex-sm {
    flex-direction: column-reverse;
    -webkit-flex-direction: column-reverse;
    display: flex;
    display: -webkit-flex;
  }

  .desktop-only {
    display: none;
  }

  .mobile-tablet-only {
    display: block;
  }
}

@media (max-width: 1199px) {
  .header .container {
    max-width: 100%;
  }

  .desktop-only {
    display: none;
  }

  .mobile-tablet-only {
    display: block;
  }

  .MsoNormal img {
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  .header-home {
    background-attachment: fixed;
  }

  .desktop-only {
    display: block;
  }

  .mobile-tablet-only {
    display: none;
  }
}

.hide {
  display: none !important;
}

.first-part {
  height: 70px;
  background: unset;
}

.offcanvas-header {
  justify-content: end;
}

/* ===== NAVBAR ===== */
.nav-menu,
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  width: 100% !important;
}

.nav-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}

.nav-menu li {
  position: relative;
  white-space: nowrap;
}

.nav-menu>li {
  float: left;
}

.nav-menu li:hover>ul {
  display: block;
}

.nav-menu ul ul {
  top: 0;
  left: 100%;
}

.nav-menu ul li {
  min-width: 180px;
}

#nav-menu-container {
  float: unset;
  margin: auto;
  max-width: 1100px;
}

.nav-menu a {
  padding: 8px;
  text-decoration: none;
  display: inline-block;
  color: #ffffffb5 !important;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 14px;
  outline: none;
}

@media (max-width: 1199px) {
  .nav-menu a {
    padding: 8px 4px;
  }
}

.nav-menu a:hover {
  color: #fff;
}

.nav-menu>li {
  margin-left: 8px;
}

.nav-menu>li>a:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #d4b064;
  visibility: hidden;
  transition: all 0.3s ease-in-out 0s;
}

.nav-menu a:hover:before,
.nav-menu li:hover>a:before {
  visibility: visible;
  width: 100%;
}

.nav-menu ul {
  margin: 4px 0 0 0;
  padding: 10px;
  box-shadow: 0px 0px 30px #7f89a140;
  background: #fff;
  border-radius: 3px;
}

.nav-menu ul li {
  transition: 0.3s;
}

.nav-menu ul li a {
  padding: 10px;
  color: #060c22;
  transition: 0.3s;
  display: block;
  font-size: 13px;
  text-transform: none;
  border-radius: 3px;
}

.nav-menu ul li:hover>a {
  background: #d4b064;
  color: #fff;
}

.nav-menu ul ul {
  margin: 0;
}

@media only screen and (min-width: 993px) {
  .desk-logo {
    display: none;
  }

  .desk {
    display: inline-flex;
    align-items: center;
    width: 100%;
  }
}

.mobile-logo {
  min-width: 250px !important;
}

@media only screen and (max-width: 992px) {
  .mobile-logo {
    display: none;
  }
}

.pull-left {
  float: none !important;
  text-align: center;
}

.hamburger {
  right: 20px;
  position: absolute;
  color: white;
  font-size: 50px;
  bottom: 0px;
  text-decoration: none;
}

.offcanvas-body p {
  font-size: 1.5rem;
}

/* ===== HERO HOME ===== */
.hero-home {
  background-image: url("/images/home-header.jpg");
  position: relative;
  width: 100%;
  background-size: auto 100vh;
  overflow: hidden;
  height: 100vh;
  background-position: center;
}

.real_height {
  min-height: -webkit-fill-available !important;
  height: calc(var(--vh, 1vh) * 100) !important;
  margin: 0 auto;
  max-width: 100%;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.intro-container {
  z-index: 1;
  text-align: center;
}

/* Arrow bounce animation */
.arrow {
  position: absolute;
  bottom: 100px;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -12px;
  border-left: 2px solid #d4b064;
  border-bottom: 2px solid #d4b064;
  transform: rotate(-45deg);
  animation: sdb05 1.5s infinite;
  box-sizing: border-box;
}

@keyframes sdb05 {
  0% {
    transform: rotate(-45deg) translate(0, 0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: rotate(-45deg) translate(-20px, 20px);
    opacity: 0;
  }
}

/* ===== SLIM HEADER (inner pages) ===== */
.intro-header {
  bottom: 0;
  left: 0;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 15px;
  height: 250px;
}

.slim {
  height: 80vh !important;
}

@media (max-width: 768px) {
  .slim {
    height: 60vh !important;
  }
}

.header-category {
  background: url(/images/categorie.jpg) bottom center no-repeat;
  background-size: cover;
  background-position: center;
}

.header-news {
  background: url(/images/news.jpg) center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.header-post {
  background: url(/images/news.jpg) center center no-repeat;
  background-size: cover;
  background-position: center;
}

.header-profile {
  background: url(/images/profilo.jpg) center center no-repeat;
  background-size: cover;
  background-position: center;
}

.header-of-counsel {
  background: url(/images/of-counsel.jpg) center center no-repeat;
  background-position: center;
  background-size: cover;
}

/* ===== SECTION SHARED ===== */
.section-header {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.section-header::before {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: #d4b064;
  bottom: 0;
  left: calc(50% - 30px);
}

/* ===== SLOGAN SECTION ===== */
#slogan {
  background: #fff;
}

#slogan .container {
  margin: 0 auto;
}

/* ===== AREE DI ATTIVITÀ ===== */
.hero-aree {
  background-image: url("/images/aree.jpg");
  position: relative;
  min-height: 800px;
  background-attachment: fixed;
  background-size: auto 110vh;
  padding: 80px 5% !important;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-aree {
    min-height: 1500px;
  }
}

#aree:before,
#intro:before {
  content: "";
  background: #07003ecc;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

/* ===== CARDS AREE ===== */
.card {
  border: unset !important;
}

.card-aree {
  background-color: #fff0;
  text-align: center;
  border-bottom: solid 3px #ffffff00 !important;
  border: 0;
  margin-bottom: 25px;
}

.card-body {
  padding: 20px 15px 15px 15px !important;
  min-height: 130px;
  background: #00000038;
  padding-bottom: 0 !important;
  border: solid 1px transparent;
  transition: all .5s;
}

.card-body:hover {
  border: solid 1px #d4b064;
  background: #0a06259c;
}

.card-title {
  color: #ffffffde;
  min-height: 72px;
}

@media (min-width: 992px) {
  .card {
    min-height: 130px;
  }
}

@media (max-width: 768px) {
  .card-title {
    min-height: 0px;
  }

  .card-body {
    min-height: 0px;
    background: #00000061;
  }
}

/* ===== BUTTONS ===== */
.btn {
  border: 0px solid transparent !important;
}

.btn-group {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.btn-outline-secondary {
  border-radius: 0;
  padding: 5px 20px;
  border-color: #6c757d00;
  font-size: 18px !important;
  color: #d4b064 !important;
}

.card-aree .btn {
  color: #d4b064 !important;
}

.card-body:hover .btn-outline-secondary {
  color: #ffffff !important;
  border-color: #6c757d00;
  font-size: 18px !important;
  background: #d4b064;
  border-radius: 0;
  padding: 5px 20px;
}

.btn-solid {
  color: #ffffff;
  border-color: #6c757d00;
  font-size: 18px !important;
  background: #d4b064;
  border-radius: 0;
  padding: 5px 20px;
}

.btn:hover {
  background: #07003d;
}

/* ===== NEWS SECTION ===== */
#news {
  overflow: hidden;
  position: relative;
  min-height: 655px;
}

.swiper-button-next {
  margin-top: 0px;
  position: absolute;
  top: 50%;
  right: 0;
  width: 45px;
  height: 45px;
  transform: translateY(-50%);
}

.swiper-button-prev {
  position: absolute;
  top: 50%;
  left: 0;
  width: 45px;
  height: 45px;
  transform: translateY(-50%);
  margin-top: 0px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  color: #111227;
}

.container-swiper {
  height: 100%;
  position: relative;
  display: block;
  text-align: left;
  padding: 0 55px;
  box-sizing: border-box;
}

.swiper-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 30px !important;
}

@media only screen and (max-width: 768px) {
  #news {
    padding: 70px 5% 61px;
  }

  .pr-m-4 {
    padding-right: 49px;
  }
}

/* ===== LOGO HERO ===== */
.logo-hero {
  width: 400px;
  padding-bottom: 30px;
}

@media only screen and (max-width: 768px) {
  .logo-hero {
    width: 80%;
    padding-bottom: 30px;
    margin-right: 50px;
  }
}

/* ===== CONTACT SECTION ===== */
#contact {
  overflow: hidden;
  position: relative;
}

#contact:before {
  content: "";
  background: #07003e;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.contact-address {
  text-align: left;
  height: 100%;
  padding: 10px;
  background: #181248bd;
}

.contact-address img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 20px;
}

.contact-address .h3 {
  color: #d4b064;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
}

address p {
  color: #fff;
}

.contacts-photo {
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .contact-address {
    text-align: left;
    min-height: 209px;
    padding: 10px;
    background: #181248bd;
  }

  #contact {
    padding: 80px 5% 61px;
  }

  .offcanvas-body {
    text-align: center;
  }

  .offcanvas-header {
    justify-content: end;
  }

  .offcanvas {
    width: 100% !important;
  }
}

/* ===== FOOTER ===== */
#footer {
  background: #101522;
  color: #eee;
  font-size: 14px;
}

#footer .footer-top {
  background: #f1f1f1;
  padding: 30px 0 1px 0;
}

#footer .footer-top .footer-info img {
  height: 40px;
  margin-bottom: 10px;
  margin-left: -49px;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: 'Playfair Display', serif;
  color: #313131;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
  color: #9a9a9a;
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  color: #9a9a9a;
  padding-top: 20px;
}

.logositi {
  margin-top: 5px;
  margin-left: 0 !important;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  background: #d4b064;
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50px;
  right: 15px;
  bottom: 15px;
  z-index: 999;
  transition: background 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}

/* ===== CATEGORY (AREA) PAGE ===== */
#categories .section-title {
  border-left: solid 4px #d4b064;
  padding-left: 15px;
  text-align: left;
}

.profile_text {
  padding: 20px;
}

/* ===== POST (NEWS ARTICLE) PAGE ===== */
#post-content {
  padding: 30px 0;
}

#post-content h5 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.post-date {
  color: #d4b064;
  font-size: 15px;
  margin-bottom: 15px;
  display: block;
}

.details {
  padding: 20px 0;
}

/* ===== NEWS LISTING ===== */
.news-list-card {
  background: #fff;
  border-bottom: solid 1px #e8e8e8;
  padding: 20px 0;
  display: flex;
  gap: 20px;
}

.news-list-card:last-child {
  border-bottom: none;
}

.news-list-img {
  width: 200px;
  min-width: 200px;
  height: 130px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .news-list-card {
    flex-direction: column;
  }

  .news-list-img {
    width: 100%;
    min-width: unset;
    height: 200px;
  }
}

/* ===== OF COUNSEL ===== */
#ofcounsel {
  padding: 50px 10%;
}

.partner {
  display: block;
  text-align: center;
}

/* ===== GRID ===== */
.grid {
  display: grid;
}

/* ===== SOCIAL / PARTNER ===== */
.social {
  text-align: center;
}

/* ===== LOADER ===== */
.loader {
  margin: auto;
  display: flex;
  max-width: 300px;
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.swiper-button-next,
.swiper-button-prev {
  color: #111227;
}

.container-swiper {
    height: 100%;
    position: relative;
    display: block;
    text-align: left;
    width: calc(100% - 100px);
    margin: auto;
}

@media (min-width: 1024px) {
    .container {
        max-width: 1140px;
        margin: auto;
    }
}