/*!
Theme Name: Nova Theme
Theme URI: http://www.magentacomunicazione.it/
Author: Magenta - ThemeintheBox
Author URI: http://www.magentacomunicazione.it/
Description: WordPress blogging theme
Version: 3.0
Tested up to: 5.4
Requires PHP: 5.6
Text Domain: nova-theme
*/


.author.author {
	display: none !important;
}

body {
  font-family: var(--nova-font-body);
  color: var(--nova-color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.wp-block-heading {
  font-family: var(--nova-font-heading);
}

:root {
  --nova-color-primary: #8DBEF7;
  --nova-color-primary-dark: #18395A;
  --nova-color-text: #212529;
  --nova-color-muted: rgba(0, 0, 0, .5);
  --nova-color-surface: #ffffff;
  --nova-focus-ring: #005fcc;
  --nova-radius-md: 8px;
  --nova-shadow-sm: rgba(1, 1, 1, 0.1) 0px 1px 5px 0px;
  --nova-font-body: 'Rubik', sans-serif;
  --nova-font-heading: 'Rubik', sans-serif;
}

body a {
  text-decoration: none;
}

.shadow {
  -webkit-box-shadow: 0px 1px 5px 0px rgba(1, 1, 1, 0.1) !important;
  box-shadow: rgba(1, 1, 1, 0.1) 0px 1px 5px 0px !important;
}

.rounded {
  border-radius: var(--nova-radius-md) !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--nova-focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--nova-color-primary-dark);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

#main-menu #mainmenu .nav-item.dropdown, #main-menu .nav-item > a {
  color: #FFF;
/*   padding: 10px 10px; */
  font-size: .9rem;
}

.dropdown:hover > .dropdown-menu {
  display: block;
  top: 90% !important;
}

.dropdown > a:active {
  pointer-events: none;
}

#main-menu a.dropdown-item  {
	color: #000;
}

#topbar .nav-item a {
  color: #FFF;
  font-weight: 500;
}

#main-menu #topbar .nav-item.dropdown a, ul#topbar .nav-item a {
  padding: 10px 10px 0;
  display: block;
}

#main-menu .dropdown-item {
  font-size: .9rem;
}

#main-menu .nav-item#search {
  margin-left: 30px;
}

#main-menu .nav-item a:hover {
  color: blue;
  text-decoration: none;
}

#main-menu {
  background-color: var(--nova-color-primary);
}

#main-menu .navbar {
  padding: 0;
}

#main-content {
  margin: 30px auto;
}

#main-content a {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 10;
}

#main-content article {
  float: left;
}

#main-content article.first figure {
  height: 500px;
}

#main-content article.first {
  width: 49%;
}

#main-content article.second figure {
  height: 245px;
}

#main-content article.second {
  width: 50%;
  margin-left: 1%;
}

#main-content article.half figure {
  height: 245px;
}

#main-content article.half {
  width: 24.5%;
  margin-left: 1%;
}

#main-content article.half span {
  font-size: 1.2rem;
  padding-right: 10px;
}

#main-content figure {
  position: relative;
  width: 100%;
  padding: 15px;
  margin-bottom: 2px;
  background-position: center 50%;
  background-repeat: no-repeat;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  -webkit-box-shadow: 0px 1px 5px 0px rgba(1, 1, 1, 0.1);
  box-shadow: rgba(1, 1, 1, 0.1) 0px 1px 5px 0px;
}

#main-content figure:hover {
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  -webkit-box-shadow: 0px 1px 15px 0px rgba(1, 1, 1, 0.1);
  box-shadow: rgba(1, 1, 1, 0.1) 0px 1px 15px 0px;
}

#main-content .feature-shadow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
}

#main-content article figure span {
  font-size: 1.8rem;
  font-weight: 700;
  /*position: absolute;*/
  bottom: 10px;
  color: #FFF;
  z-index: 5;
  text-shadow: 1px 1px 2px #242424;
}

#main-content article .feat-title {
  position: absolute;
  bottom: 10px;
  width: 90%;
  z-index: 5;
}

#main-content article .feat-categoria-news,
#main-content article.half .feat-categoria-news {
  display: block;
  font-size: .9rem;
  font-weight: 200;
  text-transform: uppercase;
}

#main-content-responsive {
	background-color: var(--nova-color-primary);
}

#main-content-responsive article {
  position: relative;
  height: 300px;
  padding: 10px;
}

#main-content-responsive a.link {
  z-index: 20;
}

#main-content-responsive a.link, #main-content-responsive .feature-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

#main-content-responsive .feature-shadow {
  z-index: 10;
  background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
}

#main-content-responsive article img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -1;
}

#main-content-responsive .post-title {
  position: absolute;
  color: #fff;
  bottom: 10px;
  z-index: 15;
}

#main-content-responsive span.feat-categoria-news-mobile {
  display: block;
  font-size: .76rem;
  font-weight: 200;
  text-transform: uppercase;
}


#categoria-news section h2 {
  font-size: 1.3rem;
  padding: 8px;
  margin-top: 20px;
  display: inline-block;
}

#categoria-news section hr {
  border-bottom: 1px solid #000;
  display: inline-block;
  width: 100%;
  margin-top: 0px;
}

#categoria-news section#category-home-2 h2 {
	margin-bottom: -1px;
    background-color: var(--nova-color-primary);
    color: #FFF;
    -webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;
}

#categoria-news section#category-home-2 hr {
	border-bottom: 1px solid var(--nova-color-primary);
}

#archive h1.category-color {
	margin-bottom: -1px;
    background-color: var(--nova-color-primary);
    color: #FFF;
    -webkit-border-radius: 5px 5px 0 0;
	border-radius: 5px 5px 0 0;

	font-size: 1.6rem;
	padding: 8px;
    margin-top: 20px;
    display: inline-block;
}

#archive .page-header hr {
	border-bottom: 1px solid var(--nova-color-primary);
	margin-top: 0px;
}

#main-news .card, #list-news .card, #archive .card {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 0px solid rgba(0,0,0,.125);
  /*-webkit-box-shadow: 0px 1px 5px 0px rgba(1, 1, 1, 0.1);
  box-shadow: rgba(1, 1, 1, 0.1) 0px 1px 5px 0px;*/
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
}

#main-news .card h3 {
  font-size: 1.8rem;
  color: #000;
  font-weight: 700;
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;  
}

#main-news a:hover .card h3 {
  color: rgba(0, 0, 0, .5);
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;
}

#main-news .card p {
  color: #000;
}

#main-news a:hover, 
#list-news a:hover, 
#archive a:hover {
  text-decoration: none !important;
}

#list-news h3 {
  font-size: 1.2rem;
  color: #000;
  font-weight: 700;
}

#list-news a:hover h3 {
  color: rgba(0, 0, 0, .5);
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;
}

#list-news a {
  color: #212529;
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;  
}

.btn-tutti {
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-tutti:hover {
  background-color: #ccc;
}

.entry-content {
	overflow-wrap: break-word;
  font-size: 1.05rem;
  line-height: 1.8;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-bottom: 1.25rem;
}

.entry-content > * {
  max-width: 70ch;
}

.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-embed {
  max-width: 100%;
}

@media (min-width: 1200px) {
  .entry-content > * {
    max-width: 100ch;
  }

  .entry-content > figure,
  .entry-content > .wp-block-image,
  .entry-content > .wp-block-gallery,
  .entry-content > .wp-block-embed {
    max-width: 100%;
  }
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.entry-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.entry-content h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

aside img,
.site-main img {
	max-width: 100%;
	height: auto !important;
}

.entry-content table {
	min-width: 100%;
	font-size: 0.925rem;
    white-space: inherit;
    width: auto!important;
    padding: 0 0 20px;
    margin: 0 0 20px;
    table-layout: fixed;
    display: table;
} 

.entry-content table tr {
	height: auto;
    border: 1px solid #e6e8ed;
}

.entry-content table td {
	height: auto;
    padding: 10px 15px;
    border-bottom: 1px solid #e6e8ed;
    background-color: #fff;
    white-space: inherit;
}

.site-main figcaption {
    text-align: center;
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 0px;
}

#footer {
  font-size: 0.9rem;
  background-color: var(--nova-color-primary-dark);
  color: #FFF;
}

#footer a {
  color: #FFF;
  text-decoration: underline;
}

#footer a:hover {
  text-decoration: none;
}

#footer img, 
#footer figure {
	max-width: 100% !important;
}

/* Widget nel footer (colonne footer-1 / 2 / 3) */
#footer > .container > .row > [class*="col-"] {
	margin-bottom: 1.75rem;
}

@media (min-width: 992px) {
	#footer > .container > .row > [class*="col-"] {
		margin-bottom: 0;
		padding-right: 1.25rem;
	}

	#footer > .container > .row > [class*="col-"]:last-child {
		padding-right: 0.75rem;
	}
}

#footer .widget {
	margin: 0 0 1.5rem;
}

#footer .widget:last-child {
	margin-bottom: 0;
}

#footer .widget-title,
#footer .widget .widget-title,
#footer .widget_block .wp-block-heading,
#footer .widget_block h2.wp-block-heading {
	font-family: var(--nova-font-heading, inherit);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 0.85rem;
	padding-bottom: 0.55rem;
	border-bottom: 2px solid rgba(141, 190, 247, 0.45);
	line-height: 1.25;
	color: inherit;
}

#footer .widget ul,
#footer .widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer .widget ul li,
#footer .widget ol li {
	margin: 0;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.22);
	line-height: 1.45;
}

#footer .widget ul li:first-child,
#footer .widget ol li:first-child {
	padding-top: 0.15rem;
}

#footer .widget ul li:last-child,
#footer .widget ol li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

#footer .widget a,
#footer .widget_block a {
	text-decoration: none;
	font-weight: 500;
	transition: opacity 0.15s ease, color 0.15s ease;
}

#footer .widget a:hover,
#footer .widget_block a:hover {
	text-decoration: none;
}

#footer .widget p,
#footer .widget_block p {
	margin-bottom: 0.65rem;
	line-height: 1.55;
}

#footer .widget p:last-child,
#footer .widget_block p:last-child {
	margin-bottom: 0;
}

#footer .widget_block .wp-block-group {
	margin: 0;
}

#footer .widget_block .wp-block-group__inner-container > *:first-child {
	margin-top: 0;
}

#footer .widget_block .wp-block-group__inner-container > *:last-child {
	margin-bottom: 0;
}

#bottom-footer {
  border-top: 1px solid #1C3D60;
}

#bottom-footer .social-icons i {
  font-size: 1.2rem;
}

/* PAGES e SINGLE */

#page article img, #single article img {
  margin-bottom: 25px;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
	color: rgba(0,0,0,.5)!important;
}

.post-date {
  font-style: italic;
  color: #ccc;
  font-weight: 100;
  font-size: 0.8rem;
}

.post-read-time {
  font-size: 0.8rem;
  color: #6c757d;
  font-style: italic;
}

#single article {
	counter-reset: paragrafo;
}

#single article h1.entry-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

#single article .category {
  font-weight: 200;
  margin-right: 10px;
}

#page article .author img, #single article .author img {
  margin-bottom: 1rem;
}

#single article .author {
  font-size: 0.9rem;
}

#single article footer .badge {
  margin-right: 10px;
}

#single article footer .post-tag {
  border: 1px solid #aaa;
}

.footer-article {
	font-size: .8rem;
    font-style: italic;
    line-height: 1rem;
    margin: 20px auto;
}

#single article footer .post-navigator .post-navigation {
	width: 100%;
}

#single article footer .post-navigator .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-items: stretch;
	margin: 0;
}

@media (max-width: 575px) {
	#single article footer .post-navigator .nav-links {
		grid-template-columns: 1fr;
	}
}

#single article footer .post-navigator .nav-previous,
#single article footer .post-navigator .nav-next {
	float: none;
	width: 100%;
	max-width: none;
}

#single article footer .post-navigator .nav-previous a,
#single article footer .post-navigator .nav-next a {
	display: flex;
	align-items: center;
	min-height: 100%;
	padding: 1rem 1.15rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(24, 57, 90, 0.1);
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(24, 57, 90, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#single article footer .post-navigator .nav-previous a:hover,
#single article footer .post-navigator .nav-next a:hover {
	border-color: rgba(141, 190, 247, 0.55);
	box-shadow: 0 8px 24px rgba(141, 190, 247, 0.15);
	transform: translateY(-1px);
}

#single article footer .post-navigator .nav-previous a:focus-visible,
#single article footer .post-navigator .nav-next a:focus-visible {
	outline: 2px solid var(--nova-color-primary, #8dbef7);
	outline-offset: 2px;
}

#single article footer .post-navigator .post-nav-link__inner {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
}

#single article footer .post-navigator .post-nav-link__inner--next {
	text-align: right;
	align-items: flex-end;
}

#single article footer .post-navigator .post_nav_label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6c757d;
}

#single article footer .post-navigator .nav-previous .post_nav_label::before {
	content: '\2190\00a0';
	opacity: 0.85;
}

#single article footer .post-navigator .nav-next .post_nav_label::after {
	content: '\00a0\2192';
	opacity: 0.85;
}

#single article footer .post-navigator .post_nav_title {
	display: block;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nova-color-primary-dark, #18395a);
}

.related-posts {
  border-top: 1px solid rgba(24, 57, 90, 0.1);
}

.related-posts__title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--nova-color-primary-dark, #18395a);
}

.related-posts__link {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(24, 57, 90, 0.08);
  border-radius: 0.75rem;
  padding: 0.65rem;
  height: 100%;
  box-shadow: 0 2px 10px rgba(24, 57, 90, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.related-posts__link:hover,
.related-posts__link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(141, 190, 247, 0.55);
  box-shadow: 0 8px 20px rgba(24, 57, 90, 0.1);
}

.related-posts__thumb {
  margin-bottom: 0.55rem !important;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #f3f5f7;
}

.related-posts__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.related-posts__heading {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #1f2933;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-posts__link:hover .related-posts__heading {
  color: var(--nova-color-primary-dark, #18395a);
}

.related-posts__meta {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: #6c757d;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.3;
}

.related-posts__category {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.related-posts__date {
  opacity: 0.95;
}

.related-posts__date::before {
  content: '•';
  margin-right: 0.45rem;
  opacity: 0.7;
}

.related-posts__carousel .carousel-item {
  padding: 0 1.75rem;
}

.related-posts__carousel .carousel-control-prev,
.related-posts__carousel .carousel-control-next {
  width: 1.75rem;
}

.related-posts__carousel .carousel-control-prev-icon,
.related-posts__carousel .carousel-control-next-icon {
  background-color: rgba(24, 57, 90, 0.62);
  border-radius: 999px;
  background-size: 60% 60%;
  width: 1.75rem;
  height: 1.75rem;
}

/* ARCHIVE */

#archive .card h3 {
  font-size: 1.8rem;
  color: #212529;
  font-weight: 800;

  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;
}

#archive a:hover .card h3 {
  color: rgba(21, 25, 29, .5);
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;
}

#archive .card .author {
  font-size: .7rem;
  color: #212529;
  font-weight: 600;
}

#archive .card p {
  font-size: 1rem;
  color: #212529;
}


/* MODAL MENU */

#modalMenuBtn a {
	color: #FFF;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#menuModal .modal-dialog {
	margin: 0;
	max-width: 100%;
}

#menuModal .modal-header,
#menuModal .menu-modal__header {
	border: 0;
	padding: 1rem 1rem 0.25rem;
}

#menuModal .modal-content {
	height: 100vh;
	border-radius: 0;
	border: none;
	background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
	box-shadow: 0 8px 28px rgba(24, 57, 90, 0.12);
	overflow-y: auto;
}


.modal-dialog-slide {
  max-width: 100%; /* Larghezza della modale */
  height: auto; /* Altezza automatica basata sul contenuto */
  transform: translateX(100%); /* Posizionamento iniziale fuori dallo schermo */
  transition: transform 0.5s ease-in-out; /* Transizione per l'effetto slide */
}

.modal.fade.show .modal-dialog-slide {
  transform: translateX(0); /* Quando la modale è visibile, portala sullo schermo */
}

#menuModal .menu-modal__header .btn-close {
	margin: 0;
	margin-left: auto;
	opacity: 0.6;
}

#menuModal .menu-modal__header .btn-close:hover,
#menuModal .menu-modal__header .btn-close:focus {
	opacity: 1;
}

#menuModal .modal-body,
#menuModal .menu-modal__body {
	padding: 0.5rem 1rem 1.25rem;
}

#menuModal .menu-modal__search {
	margin-bottom: 0.85rem;
}

#menuModal .menu-modal__search .search-form {
	position: relative;
	margin-bottom: 0 !important;
}

#menuModal .menu-modal__search .search-field {
	width: 100%;
	border: 1px solid rgba(24, 57, 90, 0.14);
	border-radius: 0.65rem;
	padding: 0.72rem 3rem 0.72rem 0.95rem;
	font-size: 0.95rem;
	line-height: 1.4;
	background: #fff;
}

#menuModal .menu-modal__search .search-field:focus {
	border-color: var(--nova-color-primary, #8dbef7);
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(141, 190, 247, 0.22);
}

#menuModal .menu-modal__search .search-submit {
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	height: calc(100% - 0.7rem);
	min-width: 2.35rem;
	border: none;
	border-radius: 0.45rem;
	background: var(--nova-color-primary-dark, #18395a);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#menuModal .menu-modal__nav .navbar-nav {
	gap: 0.45rem;
}

#menuModal .menu-modal__nav .navbar-nav .nav-item {
	border: 1px solid rgba(24, 57, 90, 0.08);
	border-radius: 0.7rem;
	background: #fff;
	overflow: hidden;
}

#menuModal .navbar-nav .nav-link,
#menuModal .menu-modal__nav .navbar-nav .nav-link {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.8rem 0.95rem;
	color: var(--nova-color-primary-dark, #18395a);
}

#menuModal .menu-modal__nav .navbar-nav .nav-link:hover,
#menuModal .menu-modal__nav .navbar-nav .nav-link:focus {
	background: rgba(141, 190, 247, 0.14);
	color: var(--nova-color-primary-dark, #18395a);
}

#menuModal .menu-modal__nav .dropdown-menu {
	position: static !important;
	float: none;
	transform: none !important;
	margin: 0;
	padding: 0.35rem 0.75rem 0.75rem;
	border: 0;
	box-shadow: none;
	background: transparent;
}

#menuModal .menu-modal__nav .dropdown-menu .dropdown-item {
	border-radius: 0.5rem;
	padding: 0.55rem 0.75rem;
	font-size: 0.9rem;
	color: #495057;
}

#menuModal .menu-modal__nav .dropdown-menu .dropdown-item:hover {
	background: rgba(141, 190, 247, 0.16);
	color: #212529;
}

#menuModal .modal-footer,
#menuModal .menu-modal__footer {
	border-top: 1px solid rgba(24, 57, 90, 0.1);
	padding: 0.85rem 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.86);
}

#menuModal .menu-modal__footer .social-icons {
	gap: 0.45rem;
}

#menuModal .menu-modal__footer #social-icon .nav-link {
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	border: 1px solid rgba(24, 57, 90, 0.12);
	background: #fff;
	color: var(--nova-color-primary-dark, #18395a);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

#menuModal .menu-modal__footer #social-icon .nav-link:hover {
	background: var(--nova-color-primary, #8dbef7);
	color: #fff;
	border-color: rgba(141, 190, 247, 0.65);
}

.modal-content {
/*   height: 80vh; */ /* Altezza della modale limitata al 80% dell'altezza della viewport */
  overflow-y: auto; /* Permette lo scroll se il contenuto supera l'altezza */
}



/* SIDEBAR (#secondary — non footer) */

#secondary.widget-area .widget {
	margin-bottom: 1.25rem;
	padding: 1.2rem 1.3rem;
	background: #fff;
	border: 1px solid rgba(24, 57, 90, 0.08);
	border-radius: 0.85rem;
	box-shadow: 0 2px 14px rgba(24, 57, 90, 0.05);
}

#secondary .widget-title {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid rgba(141, 190, 247, 0.5);
	color: var(--nova-color-primary-dark, #18395a);
	line-height: 1.3;
}

#secondary.widget-area ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

#secondary.widget-area ul li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
}

#secondary.widget-area ul li + li {
	margin-top: 0.7rem;
	padding-top: 0.7rem;
	border-top: 1px solid rgba(24, 57, 90, 0.07);
}

#secondary.widget-area a {
	color: #212529;
	text-decoration: none;
	font-weight: 500;
	line-height: 1.45;
	transition: color 0.15s ease;
}

#secondary.widget-area a:hover {
	color: var(--nova-color-primary, #8dbef7);
}

/* Blocchi (Gutenberg) nella sidebar */
#secondary .widget.widget_block .wp-block-group {
	margin: 0;
}

#secondary .widget.widget_block .wp-block-group__inner-container {
	padding-top: 0;
}

#secondary .widget .wp-block-heading,
#secondary .widget h2.wp-block-heading:not(.widget-title) {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid rgba(141, 190, 247, 0.5);
	color: var(--nova-color-primary-dark, #18395a);
	line-height: 1.3;
}

#secondary .wp-block-latest-posts,
#secondary .wp-block-archives-list,
#secondary .wp-block-categories-list,
#secondary .wp-block-page-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#secondary .wp-block-latest-posts li,
#secondary .wp-block-archives-list li,
#secondary .wp-block-categories-list li,
#secondary .wp-block-page-list li {
	margin: 0;
	padding: 0;
	border: 0;
}

#secondary .wp-block-latest-posts li + li,
#secondary .wp-block-archives-list li + li,
#secondary .wp-block-categories-list li + li,
#secondary .wp-block-page-list li + li {
	margin-top: 0.7rem;
	padding-top: 0.7rem;
	border-top: 1px solid rgba(24, 57, 90, 0.07);
}

#secondary .wp-block-latest-posts__post-title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
}

#secondary .wp-block-latest-posts__post-title a {
	font-weight: 600;
}

#secondary .wp-block-latest-posts__post-author,
#secondary .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.78rem;
	color: #6c757d;
	margin-top: 0.25rem;
	font-weight: 400;
}

/* Ultimi commenti (blocco Gutenberg) — stesso ritmo di latest-posts */
#secondary .wp-block-latest-comments {
	list-style: none;
	padding: 0;
	margin: 0;
}

#secondary .wp-block-latest-comments li.wp-block-latest-comments__comment {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

#secondary .wp-block-latest-comments li + li {
	margin-top: 0.7rem;
	padding-top: 0.7rem;
	border-top: 1px solid rgba(24, 57, 90, 0.07);
}

#secondary .wp-block-latest-comments__comment-meta {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #6c757d;
	font-weight: 400;
}

#secondary .wp-block-latest-comments__comment-meta a {
	color: #212529;
	font-weight: 600;
}

#secondary .wp-block-latest-comments__comment-date {
	display: block;
	font-size: 0.78rem;
	margin-top: 0.2rem;
	color: #6c757d;
}

#secondary .wp-block-latest-comments__comment-excerpt {
	margin: 0.35rem 0 0;
	line-height: 1.45;
}

#secondary .wp-block-latest-comments__comment-excerpt p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
}

#secondary .widget .search-form input {
	border-radius: 0.5rem;
	border: 1px solid rgba(24, 57, 90, 0.12);
	font-size: 0.9rem;
}

#secondary .widget .search-form input:focus {
	border-color: var(--nova-color-primary, #8dbef7);
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(141, 190, 247, 0.2);
}

/* Blocco Ricerca (Gutenberg) in sidebar */
#secondary .wp-block-search__label.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

#secondary .wp-block-search__inside-wrapper {
	gap: 0.5rem;
	align-items: stretch;
}

#secondary .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border-radius: 0.5rem;
	border: 1px solid rgba(24, 57, 90, 0.12);
	padding: 0.5rem 0.85rem;
	font-size: 0.9rem;
	line-height: 1.4;
	background: #fff;
	color: var(--nova-color-text, #212529);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#secondary .wp-block-search__input::placeholder {
	color: #6c757d;
	opacity: 0.9;
}

#secondary .wp-block-search__input:focus {
	border-color: var(--nova-color-primary, #8dbef7);
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(141, 190, 247, 0.2);
}

#secondary :where(.wp-block-search__button) {
	margin-left: 0;
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	border: 1px solid rgba(24, 57, 90, 0.18);
	background: var(--nova-color-primary-dark, #18395a);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

#secondary .wp-block-search__button:hover,
#secondary .wp-block-search__button:focus-visible {
	background: var(--nova-color-primary, #8dbef7);
	border-color: rgba(141, 190, 247, 0.65);
	color: #fff;
	box-shadow: 0 2px 8px rgba(24, 57, 90, 0.12);
}

#secondary .wp-block-search__button:focus-visible {
	outline: 2px solid var(--nova-focus-ring, #005fcc);
	outline-offset: 2px;
}

#secondary .wp-block-search__button.has-icon {
	padding: 0.5rem 0.65rem;
	line-height: 0;
}

#secondary .wp-block-search__button.has-icon svg {
	display: block;
}

/* Variante pulsante dentro il bordo */
#secondary .wp-block-search__button-inside .wp-block-search__inside-wrapper {
	background: #fff;
	border: 1px solid rgba(24, 57, 90, 0.12);
	border-radius: 0.5rem;
	padding: 4px;
	gap: 0.25rem;
}

#secondary .wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input {
	border: none;
	padding: 0.4rem 0.55rem;
	box-shadow: none;
}

#secondary .wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus {
	box-shadow: none;
	outline: none;
}

#secondary .wp-block-search__button-inside .wp-block-search__inside-wrapper :where(.wp-block-search__button) {
	border-radius: 0.4rem;
	padding: 0.45rem 0.85rem;
}

#secondary .wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button.has-icon {
	padding: 0.45rem 0.55rem;
}

/* MODAL RICERCA (ricerca a sinistra, articoli recenti a destra) */
#searchModal .search-modal__content {
	border: none;
	border-radius: 0;
	background: #fff;
	box-shadow: -8px 0 48px rgba(24, 57, 90, 0.12);
	overflow: hidden;
}

#searchModal .search-modal__grid {
	min-height: min(42vh, 20rem);
}

#searchModal .search-modal__col--search {
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

#searchModal .search-modal__body {
	position: relative;
	padding: 2.5rem 1.5rem 2.75rem;
	margin: 0;
	max-width: none;
	width: 100%;
}

@media (min-width: 768px) {
	#searchModal .search-modal__body {
		padding: 2.75rem 1.75rem 3rem;
	}
}

@media (min-width: 992px) {
	#searchModal .search-modal__body {
		padding: 3rem 2rem 3.25rem;
	}
}

#searchModal .search-modal__aside {
	background: rgba(24, 57, 90, 0.035);
	border-top: 1px solid rgba(24, 57, 90, 0.08);
	padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 992px) {
	#searchModal .search-modal__aside {
		border-top: none;
		border-left: 1px solid rgba(24, 57, 90, 0.1);
		padding: 2.5rem 2rem 2.75rem;
		min-height: 100%;
	}
}

#searchModal .search-modal__aside-inner {
	max-width: 40rem;
}

#searchModal .search-modal__aside-title {
	font-family: var(--nova-font-heading, inherit);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid rgba(141, 190, 247, 0.45);
	color: var(--nova-color-primary-dark, #18395a);
}

#searchModal .search-modal__recent-item {
	padding: 0.65rem 0;
	border-bottom: 1px solid rgba(24, 57, 90, 0.07);
}

#searchModal .search-modal__recent-item:last-of-type {
	border-bottom: none;
}

#searchModal .search-modal__recent-link {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	color: #212529;
	text-decoration: none;
	transition: color 0.15s ease;
}

#searchModal .search-modal__recent-link:hover {
	color: var(--nova-color-primary, #8dbef7);
}

#searchModal .search-modal__recent-meta {
	display: block;
	font-size: 0.78rem;
	color: #6c757d;
	margin-top: 0.2rem;
	font-weight: 400;
}

#searchModal .search-modal__aside-empty {
	font-size: 0.92rem;
	color: #6c757d;
	line-height: 1.5;
}

#searchModal .search-modal__aside-footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(24, 57, 90, 0.08);
}

#searchModal .search-modal__aside-more {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--nova-color-primary-dark, #18395a);
	text-decoration: none;
	transition: color 0.15s ease;
}

#searchModal .search-modal__aside-more:hover {
	color: var(--nova-color-primary, #8dbef7);
}

#searchModal .search-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	padding: 0.65rem;
	opacity: 0.55;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

#searchModal .search-modal__close:hover,
#searchModal .search-modal__close:focus {
	opacity: 1;
}

#searchModal .search-modal__inner {
	padding-right: 0.5rem;
}

#searchModal .search-modal__title {
	font-family: var(--nova-font-heading, inherit);
	font-size: clamp(1.35rem, 3.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	padding-right: 2.75rem;
	color: var(--nova-color-primary-dark, #18395a);
}

#searchModal .search-modal__hint {
	font-size: 0.92rem;
	line-height: 1.45;
	color: #6c757d;
	margin: 0 0 1.35rem;
	max-width: 36rem;
}

#searchModal .search-modal__form.search-form,
#searchModal .search-modal__form {
	position: relative;
	margin-bottom: 0;
}

#searchModal .search-modal__form .search-field,
#searchModal .search-modal__form input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(24, 57, 90, 0.14);
	border-radius: 0.65rem;
	padding: 0.9rem 3.5rem 0.9rem 1.15rem;
	font-size: 1.05rem;
	line-height: 1.4;
	background: #fff;
	color: var(--nova-color-text, #212529);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#searchModal .search-modal__form .search-field::placeholder {
	color: #6c757d;
	opacity: 0.9;
}

#searchModal .search-modal__form .search-field:focus {
	border-color: var(--nova-color-primary, #8dbef7);
	outline: 0;
	box-shadow: 0 0 0 0.22rem rgba(141, 190, 247, 0.28);
}

#searchModal .search-modal__form .search-submit,
#searchModal .search-modal__form button.search-submit {
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	height: calc(100% - 0.7rem);
	max-height: 3rem;
	min-width: 2.75rem;
	margin-top: 0;
	padding: 0 0.85rem;
	border: none;
	border-radius: 0.5rem;
	color: #fff;
	background: var(--nova-color-primary-dark, #18395a);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#searchModal .search-modal__form .search-submit:hover,
#searchModal .search-modal__form .search-submit:focus-visible {
	background: var(--nova-color-primary, #8dbef7);
	box-shadow: 0 2px 10px rgba(24, 57, 90, 0.15);
}

#searchModal .search-modal__form .search-submit:focus-visible {
	outline: 2px solid var(--nova-focus-ring, #005fcc);
	outline-offset: 2px;
}

#searchModal .search-modal__body .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
 
/* WIDGET */

.widget .search-form {
	position: relative;
}

.widget .search-form input {
	width: 100%;
	border: 1px solid #9d9d9d;
	padding: 10px 15px;
	padding-right: 55px;
	font-size: 14px;
}

.widget .search-form button {
	position: absolute;
	height: 100%;
	right: 0;
	top: 0;
	border: none;
	width: 50px;
	padding-top: 5px;
	color: #b7b7b7;
	background-color: transparent;
	cursor: pointer;
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.widget #last-post h4 {
	font-size: 1.1rem;
}

.widget #last-post h4 {
  color: #000;
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out;
}

.widget #last-post a:hover h4 {
  color: rgba(0, 0, 0, .5);
  -webkit-transition: color 200ms ease-in-out;
  -moz-transition: color 200ms ease-in-out;
  -ms-transition: color 200ms ease-in-out;
  -o-transition: color 200ms ease-in-out;
  transition: color 200ms ease-in-out; 
}

.widget #last-post a:hover {
  color: #000;
}

form input[type=text],
form input[type=email],
form input[type=password],
form input[type=number],
form textarea {
	width: 100%;
    padding: 0.5rem;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #212529;
}

/* TABLE OF CONTENT */

#toc-content-navigation {
	border-top: 1px solid #ECEEF1;
	border-bottom: 1px solid #ECEEF1;
	padding: 5px 0;
	margin-bottom: 25px;
}

.toc-indice {
    font-size: 0.75rem;
    font-weight: 800;
}

#toc {
	margin-top: 10px;
/*   margin-left: -25px; */
/* 	counter-reset: item; */
/*     list-style-type: none; */
}

#recensione .bg-success {
	border: 3px solid #8DC053;
	background-color: #F4FFE9 !important;
}

#recensione .bg-danger {
	border: 3px solid #DC4454;
	background-color: #ffecee !important;
}

#toc li {
  flex: 100%;
  margin: 10px auto;
  font-size: 0.9rem;
  position: relative;
  padding-left: 10px;
}

@media (min-width: 576px) {
  #toc li {
    flex: 50%;
    margin: 10px auto;
    padding-left: 10px;
    padding-right: 30px;
  }
}

#toc li a {
	font-weight: 800;
	color: #212529;
	text-decoration: none;
}

#toc li:before {
    content: '';
    width: 20px;
    height: 20px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    border-radius: 4px;
    background-color: #00dad6;
    display: inline-block;
    text-align: right;
    position: absolute;
    left: -23px;
    top: 2px;
    z-index: -1;
}

#toc li::marker {
	color: #FFF;
}


/* Custom style for the block */

.hero__body {
	position: relative;
    margin-left: 50px;
}

.hero__body h1,
.hero__body h2,
.hero__body h3 {
	font-family: var(--nova-font-heading);
	margin: 30px auto;
	font-weight: 800;
	padding-left: 10px;
}

.hero__body h1:before,
.hero__body h2:before,
.hero__body h3:before {
    content: '';
    border-radius: 6px;
    background-color: #00dad6;
    display: inline-block;
    position: absolute;
    width: 30px;
    height: 30px;
    left: 0;
    top: 15px;
    margin-left: -40px;
    margin-top: -16px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.hero__body h1:after,
.hero__body h2:after,
.hero__body h3:after {
    counter-increment: paragrafo;
    content: counter(paragrafo);
    position: absolute;
    left: -38px;
    top: 15px;
    margin-top: -10px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 20px;
    color: #fff;
    width: 25px;
    height: 20px;
    background: 0 0;
}


@media (min-width: 1000px) {
	.hero__body h1:after,
	.hero__body h2:after,
	.hero__body h3:after {
        width: 40px;
	    left: -50px;
		top: 21px;
	    font-size: 1.625rem;
	}
	
	.hero__body h1:before,
	.hero__body h2:before,
	.hero__body h3:before {
	    border-radius: 10px;
	    width: 40px;
	    height: 40px;
	    margin-left: -50px;
	    margin-top: -15px;
	}
}




/* UTILITY CSS */

.fixed-top {
  animation: smoothScroll 1s forwards;
  box-shadow: var(--nova-shadow-sm);
  z-index: 1030;
}

body.has-sticky-menu #main-menu {
  will-change: transform;
}

body.has-sticky-menu {
  padding-top: 56px;
}

@keyframes smoothScroll {
  0% {
    transform: translateY(-140px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Small devices (landscape phones, 576px and up) */

@media (min-width: 576px) {
  #main-content figure {
    background-size: 300%;
  }
}

@media (min-width: 576px) {
  #main-content figure:hover {
    background-size: 350%;
  }
}

/* Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {
  #main-content figure {
    background-size: 225%;
  }
}

@media (min-width: 768px) {
  #main-content figure:hover {
    background-size: 300%;
  }
}

/* Large devices (desktops, 992px and up) */

@media (min-width: 992px) {
  #main-content figure:hover {
    background-size: 250%;
  }
}

@media (min-width: 992px) {
  #main-content figure {
    background-size: 200%;
  }
}

@media (min-width: 992px) {
  #main-content article.first {
    width: 49%;
  }
}

@media (min-width: 992px) {
  #main-content article.second {
    width: 49%;
    margin-left: 1%;
  }
}

@media (min-width: 992px) {
  #main-content article.half {
    width: 24%;
    margin-left: 1%;
  }
}

@media (max-width: 767px) {
  body.has-sticky-menu {
    padding-top: 64px;
  }

  #main-menu #navcol {
    display: none !important;
  }

  #modalMenuBtn {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
  }

  #main-menu #social-icon {
    display: none !important;
  }

  #menuModal .modal-dialog {
    max-width: 100%;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-top {
    animation: none;
  }

  .modal-dialog-slide {
    transition: none;
  }
}

/* Comment form: collapse + modern layout */
.nova-comment-cta {
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(141, 190, 247, 0.14) 0%, #fff 45%);
}

.nova-comment-form-panel {
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

@media (min-width: 768px) {
  .nova-comment-form-panel {
    padding: 1.75rem 2rem;
  }
}

form.nova-comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

form.nova-comment-form .comment-form-comment,
form.nova-comment-form .comment-form-cookies-consent,
form.nova-comment-form .form-submit {
  grid-column: 1 / -1;
}

form.nova-comment-form .comment-form-url {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  form.nova-comment-form {
    grid-template-columns: 1fr;
  }
}

.nova-comment-form .form-control:focus {
  border-color: var(--nova-color-primary, #8dbef7);
  box-shadow: 0 0 0 0.2rem rgba(141, 190, 247, 0.22);
}

#comments .comment-respond {
  margin-top: 1.5rem;
}

/* Comment list — modern cards */
#comments.comments-area {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(24, 57, 90, 0.1);
}

#comments .comments-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nova-color-primary-dark, #18395a);
  line-height: 1.35;
}

#comments .comments-title__post {
  color: #212529;
  font-weight: 600;
}

#comments .comment-navigation {
  margin: 1rem 0;
}

#comments .comment-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

#comments .comment-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  color: var(--nova-color-primary-dark, #18395a);
  background: rgba(141, 190, 247, 0.15);
  border: 1px solid rgba(141, 190, 247, 0.45);
  transition: background 0.15s ease, color 0.15s ease;
}

#comments .comment-navigation a:hover {
  background: var(--nova-color-primary, #8dbef7);
  color: #fff;
}

ol.comment-list {
  margin: 0;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid rgba(141, 190, 247, 0.55);
}

@media (min-width: 768px) {
  .comment-list .children {
    margin-left: 0.35rem;
    padding-left: 1.35rem;
  }
}

.comment-list li.comment {
  margin-bottom: 1rem;
}

.comment-list li.pingback,
.comment-list li.trackback {
  margin-bottom: 0.75rem;
}

.comment-list .comment-body {
  position: relative;
  background: #fff;
  border: 1px solid rgba(24, 57, 90, 0.08);
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(24, 57, 90, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.comment-list .comment-body:hover {
  box-shadow: 0 6px 20px rgba(24, 57, 90, 0.08);
  border-color: rgba(141, 190, 247, 0.35);
}

.comment-list .bypostauthor > .comment-body {
  border-color: rgba(141, 190, 247, 0.45);
  box-shadow: 0 0 0 1px rgba(141, 190, 247, 0.12), 0 4px 14px rgba(141, 190, 247, 0.08);
}

.comment-list .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6c757d;
}

.comment-list .comment-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.comment-list .comment-author .avatar {
  border-radius: 50%;
  margin-right: 0.15rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.comment-list .comment-author .fn,
.comment-list .comment-author .fn a {
  font-weight: 600;
  color: var(--nova-color-primary-dark, #18395a);
  text-decoration: none;
}

.comment-list .comment-author .fn a:hover {
  color: var(--nova-color-primary, #8dbef7);
  text-decoration: underline;
}

.comment-list .comment-author .says {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.comment-list .comment-metadata {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 575px) {
  .comment-list .comment-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-list .comment-metadata {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}

.comment-list .comment-metadata a {
  color: #6c757d;
  text-decoration: none;
}

.comment-list .comment-metadata a:hover {
  color: var(--nova-color-primary-dark, #18395a);
  text-decoration: underline;
}

.comment-list .comment-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #212529;
  word-break: break-word;
}

.comment-list .comment-content > *:first-child {
  margin-top: 0;
}

.comment-list .comment-content > *:last-child {
  margin-bottom: 0;
}

.comment-list .reply {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(24, 57, 90, 0.06);
}

.comment-list .comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  color: var(--nova-color-primary-dark, #18395a);
  background: rgba(141, 190, 247, 0.14);
  border: 1px solid rgba(141, 190, 247, 0.5);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.comment-list .comment-reply-link:hover {
  background: var(--nova-color-primary, #8dbef7);
  border-color: var(--nova-color-primary, #8dbef7);
  color: #fff;
}

.comment-list li.pingback .comment-body,
.comment-list li.trackback .comment-body {
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
}

.comment-list li.pingback .comment-content a,
.comment-list li.trackback .comment-content a {
  font-weight: 600;
  color: var(--nova-color-primary-dark, #18395a);
}

#comments p.no-comments {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(108, 117, 125, 0.08);
  color: #495057;
  font-size: 0.95rem;
}