/**
 * Corale G. Verdi visual theme
 * Shaper Helix Ultimate / Joomla 5+
 *
 * This file is loaded automatically by Helix Ultimate after template.css.
 */

:root {
  --corale-burgundy: #861f2c;
  --corale-burgundy-dark: #65151f;
  --corale-ink: #211f1d;
  --corale-muted: #6d6761;
  --corale-paper: #f7f3ec;
  --corale-paper-light: #fcfaf6;
  --corale-line: #ddd5ca;
  --corale-card: #fffefa;
  --corale-shadow: 0 10px 30px rgba(48, 35, 25, 0.09);
  --corale-serif: Georgia, "Times New Roman", Times, serif;
  --corale-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.site {
  background: var(--corale-paper-light);
  color: var(--corale-ink);
  font-family: var(--corale-sans);
  font-size: 16px;
  line-height: 1.65;
}

body.site h1,
body.site h2,
body.site h3,
body.site h4,
body.site h5,
body.site h6 {
  color: var(--corale-ink);
  font-family: var(--corale-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

body.site a {
  color: var(--corale-burgundy);
}

body.site a:hover,
body.site a:focus {
  color: var(--corale-burgundy-dark);
}

body.site a:focus-visible,
body.site button:focus-visible,
body.site input:focus-visible {
  outline: 3px solid rgba(134, 31, 44, 0.3);
  outline-offset: 3px;
}

body.site .container {
  max-width: 1180px;
}

/* Header and navigation ---------------------------------------------------- */

#sp-top-bar {
  display: none;
}

#sp-header {
  height: auto;
  background: rgba(255, 254, 250, 0.98);
  border-bottom: 1px solid rgba(64, 48, 40, 0.14);
  box-shadow: none;
}

#sp-header > .container {
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}

#sp-header .container-inner > .row {
  flex-wrap: wrap;
  margin: 0;
}

#sp-header #sp-logo {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 22px 30px 14px;
  text-align: center;
}

#sp-header #sp-logo .sp-column,
#sp-header .logo,
#sp-header .logo a {
  display: flex;
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
}

#sp-header .logo-image,
#sp-header .logo-image-phone {
  width: min(460px, 52vw);
  max-width: 100%;
  height: auto !important;
}

#sp-header #sp-menu {
  flex: 0 0 100% !important;
  max-width: 100%;
  padding: 0 34px;
  border-top: 1px solid rgba(64, 48, 40, 0.08);
}

#sp-header #sp-menu > .sp-column {
  min-height: 62px;
  gap: 22px;
  justify-content: center !important;
}

#sp-header .sp-megamenu-wrapper {
  flex: 1 1 auto;
  justify-content: center;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  position: relative;
  padding: 0 19px;
  color: var(--corale-ink) !important;
  font-family: var(--corale-serif) !important;
  font-size: 16px;
  line-height: 62px;
}

.sp-megamenu-parent > li.active > a::after,
.sp-megamenu-parent > li.current-item > a::after {
  position: absolute;
  right: 18px;
  bottom: 9px;
  left: 18px;
  height: 2px;
  background: var(--corale-burgundy);
  content: "";
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > span,
.sp-megamenu-parent > li.active > a {
  color: var(--corale-burgundy) !important;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  padding: 14px;
  background: var(--corale-card);
  border-top: 3px solid var(--corale-burgundy);
  border-radius: 0 0 5px 5px;
  box-shadow: var(--corale-shadow);
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > span {
  padding: 9px 11px;
  color: var(--corale-ink);
  font-family: var(--corale-sans);
  font-size: 14px;
  line-height: 1.35;
}

#sp-header .header-modules {
  flex: 0 0 190px;
}

#sp-header .header-modules .sp-module,
#sp-header .header-modules .mod-finder {
  width: 100%;
}

#sp-header .mod-finder .form-control {
  height: 38px;
  padding: 7px 38px 7px 13px;
  background: var(--corale-paper-light);
  border: 1px solid #aaa29a;
  border-radius: 4px;
  color: var(--corale-ink);
  font-size: 14px;
}

#sp-header .mod-finder {
  position: relative;
}

#sp-header .mod-finder::after {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--corale-burgundy);
  content: "\f002";
  font-family: "Font Awesome 5 Free", FontAwesome, sans-serif;
  font-weight: 900;
  transform: translateY(-50%);
  pointer-events: none;
}

#offcanvas-toggler {
  color: var(--corale-ink);
}

#offcanvas-toggler .burger-icon > span {
  width: 25px;
  height: 2px;
  background-color: var(--corale-ink);
}

#sp-header.header-sticky #sp-logo {
  display: none;
}

#sp-header.header-sticky #sp-menu > .sp-column {
  min-height: 64px;
}

/* Homepage hero ----------------------------------------------------------- */

.view-featured.itemid-101 #sp-section-1,
.view-featured.itemid-101 #sp-main-body {
  display: none;
}

.view-featured.itemid-101 #sp-hero {
  overflow: hidden;
  background: #2e261f !important;
}

.view-featured.itemid-101 #sp-hero .row,
.view-featured.itemid-101 #sp-hero [class*="col-"] {
  margin: 0;
  padding: 0;
}

.view-featured.itemid-101 #sp-hero .mod-custom p {
  margin: 0;
}

.view-featured.itemid-101 #sp-hero img {
  width: 100%;
  height: clamp(340px, 37vw, 540px);
  object-fit: cover;
  object-position: center 50%;
}

/* Homepage introduction -------------------------------------------------- */

.view-featured.itemid-101 #sp-il-coro {
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  padding: 58px 0 62px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 15px,
      rgba(134, 31, 44, 0.055) 16px,
      transparent 17px
    ),
    linear-gradient(110deg, #fffdf9 0%, var(--corale-paper) 100%);
}

.view-featured.itemid-101 #sp-il-coro::after {
  position: absolute;
  z-index: 0;
  top: 46%;
  right: 7%;
  color: rgba(134, 31, 44, 0.075);
  content: "𝄞";
  font-family: var(--corale-serif);
  font-size: clamp(180px, 24vw, 330px);
  line-height: 1;
  transform: translateY(-50%) rotate(-7deg);
  pointer-events: none;
}

.view-featured.itemid-101 #sp-il-coro .container,
.view-featured.itemid-101 #sp-il-coro .sp-module {
  position: relative;
  z-index: 1;
}

.view-featured.itemid-101 #sp-il-coro .mod-custom {
  max-width: 720px;
}

.view-featured.itemid-101 #sp-il-coro h2 {
  margin: 0 0 36px;
  color: var(--corale-burgundy);
  font-size: clamp(36px, 4.3vw, 52px);
  line-height: 1.12;
}

.view-featured.itemid-101 #sp-il-coro h2::after {
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 21px;
  background: var(--corale-burgundy);
  content: "";
}

.view-featured.itemid-101 #sp-il-coro p {
  max-width: 690px;
  margin-bottom: 13px;
  color: #3f3a36;
  font-size: 17px;
  line-height: 1.58;
}

.view-featured.itemid-101 #sp-il-coro h3 {
  margin: 24px 0 0;
  font-family: var(--corale-sans);
  font-size: 15px;
}

.view-featured.itemid-101 #sp-il-coro h3 a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 21px;
  align-items: center;
  gap: 18px;
  background: var(--corale-burgundy);
  border-radius: 3px;
  box-shadow: 0 5px 14px rgba(134, 31, 44, 0.19);
  color: #fff;
  font-weight: 600;
  text-decoration: none !important;
}

.view-featured.itemid-101 #sp-il-coro h3 a::after {
  content: "→";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.view-featured.itemid-101 #sp-il-coro h3 a:hover,
.view-featured.itemid-101 #sp-il-coro h3 a:focus {
  background: var(--corale-burgundy-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Homepage article cards ------------------------------------------------- */

.view-featured.itemid-101 #sp-ultime-notizie,
.view-featured.itemid-101 #sp-i-concerti {
  margin: 0 !important;
  padding: 54px 0 68px;
  background: var(--corale-paper-light);
}

.view-featured.itemid-101 #sp-i-concerti {
  padding-top: 10px;
  padding-bottom: 76px;
}

.view-featured.itemid-101 .sp-module-title {
  display: flex;
  margin: 0 0 28px;
  align-items: center;
  gap: 20px;
  color: var(--corale-ink);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
}

.view-featured.itemid-101 .sp-module-title::after {
  width: 58px;
  height: 3px;
  background: var(--corale-burgundy);
  content: "";
}

.view-featured.itemid-101 .mod-articles-items {
  gap: 24px;
  padding: 0;
}

.view-featured.itemid-101 .mod-articles-items > li {
  min-width: 0;
  list-style: none;
}

.view-featured.itemid-101 .mod-articles-item,
.view-featured.itemid-101 .mod-articles-item-content {
  height: 100%;
}

.view-featured.itemid-101 .mod-articles-item-content {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: var(--corale-card);
  border: 1px solid var(--corale-line);
  border-radius: 5px;
  box-shadow: 0 4px 18px rgba(47, 35, 27, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.view-featured.itemid-101 .mod-articles-item-content:hover {
  border-color: rgba(134, 31, 44, 0.32);
  box-shadow: var(--corale-shadow);
  transform: translateY(-3px);
}

.view-featured.itemid-101 .article-intro-image {
  margin: 0;
  background: #e9e2d8;
}

.view-featured.itemid-101 .article-intro-image a {
  display: block;
  overflow: hidden;
}

.view-featured.itemid-101 .article-intro-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 350ms ease;
}

.view-featured.itemid-101 .mod-articles-item-content:hover .article-intro-image img {
  transform: scale(1.025);
}

.view-featured.itemid-101 .mod-articles-item-content > dl {
  display: flex;
  margin: 0;
  padding: 13px 17px 0;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.view-featured.itemid-101 .mod-articles-item-content > dl dd {
  margin: 0;
  color: var(--corale-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.view-featured.itemid-101 .mod-articles-writtenby {
  display: none;
}

.view-featured.itemid-101 .mod-articles-date .icon-calendar {
  margin-right: 4px;
  color: var(--corale-burgundy);
}

.view-featured.itemid-101 .mod-articles-title {
  margin: 5px 0 0;
  padding: 0 17px;
  font-size: 22px;
  line-height: 1.18;
}

.view-featured.itemid-101 .mod-articles-title a {
  color: var(--corale-burgundy);
}

.view-featured.itemid-101 .mod-articles-title a:hover,
.view-featured.itemid-101 .mod-articles-title a:focus {
  color: var(--corale-burgundy-dark);
}

.view-featured.itemid-101 .mod-articles-introtext {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 0;
  padding: 0 17px;
  color: #4d4742;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.view-featured.itemid-101 .mod-articles-introtext * {
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  white-space: normal !important;
}

.view-featured.itemid-101 .readmore {
  margin-top: auto;
  padding: 14px 17px 18px;
}

.view-featured.itemid-101 .readmore a {
  color: var(--corale-burgundy);
  font-size: 13px;
  font-weight: 700;
}

.view-featured.itemid-101 .readmore a::after {
  margin-left: 7px;
  content: "→";
}

/* Article and category pages -------------------------------------------- */

body.view-article #sp-main-body,
body.view-category #sp-main-body,
body.view-featured:not(.itemid-101) #sp-main-body {
  padding: 64px 0 84px;
  background: var(--corale-paper-light);
}

.article-details {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px);
  overflow: auto;
  background: var(--corale-card);
  border: 1px solid var(--corale-line);
  border-radius: 6px;
  box-shadow: var(--corale-shadow);
}

.article-details .article-header h1,
.article-details .article-header h2 {
  margin: 0 0 24px;
  color: var(--corale-burgundy);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
}

.article-details .article-header h1::after,
.article-details .article-header h2::after {
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 20px;
  background: var(--corale-burgundy);
  content: "";
}

.article-details .article-full-image {
  width: min(42%, 390px);
  margin: 0 34px 24px 0;
}

.article-details .article-full-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 7px 22px rgba(47, 35, 27, 0.12);
}

.article-details .article-info,
.article-details .article-info dd {
  color: var(--corale-muted);
  font-size: 13px;
}

.article-details .com-content-article__body {
  color: #3f3a36;
  font-family: var(--corale-sans) !important;
  font-size: 17px;
  line-height: 1.78;
}

.article-details .com-content-article__body *:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
  color: inherit;
  font-family: inherit;
  white-space: normal;
}

.article-details .com-content-article__body img {
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: 4px;
}

.article-ratings-social-share {
  margin-bottom: 20px;
}

.article-social-share .social-share-icon ul li a {
  background: var(--corale-burgundy);
  color: #fff;
}

.pagenavigation {
  clear: both;
  padding-top: 34px;
}

.pagenavigation .btn,
.pagination .page-link {
  background: transparent;
  border-color: var(--corale-burgundy);
  color: var(--corale-burgundy);
}

.pagenavigation .btn:hover,
.pagination .page-link:hover {
  background: var(--corale-burgundy);
  color: #fff;
}

.blog,
.blog-featured,
.com-content-category-blog {
  max-width: 1180px;
  margin: 0 auto;
}

.blog .page-header h1,
.blog-featured .page-header h1,
.com-content-category-blog .page-header h1 {
  margin-bottom: 42px;
  color: var(--corale-burgundy);
  font-size: clamp(38px, 5vw, 56px);
}

.blog-items .blog-item,
.items-leading .blog-item,
.items-row .item {
  padding: 22px;
  background: var(--corale-card);
  border: 1px solid var(--corale-line);
  border-radius: 5px;
  box-shadow: 0 4px 18px rgba(47, 35, 27, 0.05);
}

.blog-item .item-image img,
.items-leading .item-image img,
.items-row .item-image img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  border-radius: 3px;
}

.blog-item .page-header h2,
.items-leading .page-header h2,
.items-row .page-header h2 {
  font-size: 28px;
  line-height: 1.2;
}

/* Footer ----------------------------------------------------------------- */

#sp-footer {
  padding: 0;
  background: linear-gradient(100deg, #171716 0%, #262322 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

#sp-footer .container-inner {
  display: grid;
  min-height: 120px;
  grid-template-columns: minmax(230px, 340px) 1fr;
  align-items: center;
  gap: 48px;
}

#sp-footer .container-inner::before {
  display: block;
  width: min(280px, 100%);
  height: 76px;
  background: url("/images/logo-corale-verdi-b.png") left center / contain no-repeat;
  content: "";
}

#sp-footer .row {
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

#sp-footer .mod-menu {
  display: flex;
  margin: 0;
  padding: 0 0 0 42px;
  flex-wrap: wrap;
  gap: 8px 34px;
  list-style: none;
}

#sp-footer .mod-menu li {
  margin: 0;
}

#sp-footer .mod-menu a {
  color: rgba(255, 255, 255, 0.88);
}

#sp-footer .mod-menu a:hover,
#sp-footer .mod-menu a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive adjustments ------------------------------------------------ */

@media (max-width: 1199px) {
  #sp-header #sp-menu {
    padding-right: 20px;
    padding-left: 20px;
  }

  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 14px;
  }

  #sp-header .header-modules {
    flex-basis: 170px;
  }
}

@media (max-width: 991px) {
  #sp-header,
  #sp-header.header-sticky {
    min-height: 76px;
  }

  #sp-header #sp-logo,
  #sp-header.header-sticky #sp-logo {
    display: block;
    flex: 1 1 auto;
    max-width: calc(100% - 74px);
    padding: 11px 15px;
    text-align: left;
  }

  #sp-header #sp-logo .sp-column,
  #sp-header .logo,
  #sp-header .logo a {
    justify-content: flex-start;
  }

  #sp-header .logo-image,
  #sp-header .logo-image-phone {
    width: min(330px, 68vw);
    height: auto !important;
  }

  #sp-header #sp-menu {
    flex: 0 0 74px !important;
    max-width: 74px;
    padding: 0 16px 0 0;
    border: 0;
  }

  #sp-header #sp-menu > .sp-column,
  #sp-header.header-sticky #sp-menu > .sp-column {
    min-height: 76px;
    justify-content: flex-end !important;
  }

  #offcanvas-toggler {
    height: 76px;
    margin: 0;
    line-height: 76px;
  }

  .view-featured.itemid-101 #sp-hero img {
    height: clamp(240px, 58vw, 390px);
  }

  .view-featured.itemid-101 #sp-il-coro {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .view-featured.itemid-101 #sp-il-coro::after {
    right: -5%;
    opacity: 0.72;
  }

  .view-featured.itemid-101 .article-intro-image img {
    height: 200px;
  }

  #sp-footer .container-inner {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }

  #sp-footer .mod-menu {
    padding-left: 28px;
    gap: 8px 22px;
  }
}

@media (max-width: 767px) {
  body.site {
    font-size: 15px;
  }

  .view-featured.itemid-101 #sp-hero img {
    height: 230px;
  }

  .view-featured.itemid-101 #sp-il-coro h2 {
    margin-bottom: 28px;
    font-size: 36px;
  }

  .view-featured.itemid-101 #sp-il-coro p {
    font-size: 16px;
  }

  .view-featured.itemid-101 #sp-ultime-notizie,
  .view-featured.itemid-101 #sp-i-concerti {
    padding-top: 44px;
    padding-bottom: 54px;
  }

  .view-featured.itemid-101 #sp-i-concerti {
    padding-top: 0;
  }

  .view-featured.itemid-101 .sp-module-title {
    font-size: 34px;
  }

  .view-featured.itemid-101 .mod-articles-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .view-featured.itemid-101 .article-intro-image img {
    height: 190px;
  }

  .article-details .article-full-image {
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    float: none !important;
  }

  .article-details .article-header h1,
  .article-details .article-header h2 {
    font-size: 38px;
  }

  #sp-footer .container-inner {
    padding: 34px 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #sp-footer .container-inner::before {
    width: 230px;
    height: 60px;
  }

  #sp-footer .row {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  #sp-footer .mod-menu {
    padding-left: 0;
  }
}

@media (max-width: 575px) {
  #sp-header,
  #sp-header.header-sticky,
  #sp-header #sp-menu > .sp-column,
  #sp-header.header-sticky #sp-menu > .sp-column,
  #offcanvas-toggler {
    min-height: 68px;
    height: 68px;
    line-height: 68px;
  }

  #sp-header #sp-logo,
  #sp-header.header-sticky #sp-logo {
    max-width: calc(100% - 62px);
    padding: 11px 10px 11px 15px;
  }

  #sp-header #sp-menu {
    flex-basis: 62px !important;
    max-width: 62px;
    padding-right: 13px;
  }

  #sp-header .logo-image,
  #sp-header .logo-image-phone {
    width: min(275px, 72vw);
  }

  .view-featured.itemid-101 #sp-hero img {
    height: 190px;
    object-position: center;
  }

  .view-featured.itemid-101 #sp-il-coro {
    padding: 38px 0 43px;
  }

  .view-featured.itemid-101 #sp-il-coro::after {
    top: 30%;
    right: -18%;
    font-size: 190px;
  }

  .view-featured.itemid-101 #sp-il-coro h2 {
    font-size: 31px;
  }

  .view-featured.itemid-101 .sp-module-title {
    gap: 14px;
    font-size: 31px;
  }

  .view-featured.itemid-101 .sp-module-title::after {
    width: 38px;
  }

  .view-featured.itemid-101 .mod-articles-items {
    grid-template-columns: 1fr;
  }

  .view-featured.itemid-101 .article-intro-image img {
    height: 230px;
  }

  .view-featured.itemid-101 .mod-articles-title {
    font-size: 23px;
  }

  body.view-article #sp-main-body,
  body.view-category #sp-main-body,
  body.view-featured:not(.itemid-101) #sp-main-body {
    padding: 28px 0 46px;
  }

  .article-details {
    padding: 22px 18px 28px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .article-details .article-header h1,
  .article-details .article-header h2 {
    font-size: 34px;
  }

  .article-details .com-content-article__body {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
