/**
* Template Name: Techie
* Template URL: https://bootstrapmade.com/techie-free-skin-bootstrap-3/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Roboto",  sans-serif;
}

.homemade-apple-regular {
  font-family: "Homemade Apple", serif;
  font-weight: 400;
  font-style: normal;
}

.special-elite-regular {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}

.special-elite-regular {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}


/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website #A9B39D*/
:root { 
  --background-color:#AB8E63; /* ackground color for the entire website, including individual sections */
  --default-color: #ffffff; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #ffffff; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #ffffff; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #ffffff;  /* The default color of the main navmenu links */
  --nav-hover-color: #ffffff; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #444444; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #3a332e;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #202020;
  --contrast-color: #ffffff;
}


/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}
@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }
  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(200, 200, 200, 0.6); /* Grigio trasparente */
  background-color: var(--background-color); /* Imposta il colore di sfondo grigio chiaro */
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  --background-color: background-color: rgba(228, 204, 153, 0.8);
  background-color: var(--background-color); /* Imposta il colore di sfondo grigio chiaro */
  background-size: cover;
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 14px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
  margin-left: 100px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 10px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

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

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  --background-color:#AB8E63; /* ackground color for the entire website, including individual sections */
  background-size: cover;
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 92px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 77px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

.script {
  font-family: 'Homemade Apple', cursive;
  font-size: 3rem;
  display: block;
}

.serif {
  font-family: 'Merriweather', serif;
  font-size: 3.2rem;
  font-weight: bold;
  display: block;
}

.edition {
  font-size: 1.4rem;
  letter-spacing: 1px;
  font-weight: bold;
  margin-top: 1rem;
}

.subtitle {
  font-size: 1rem;
  margin: 1rem auto;
  max-width: 300px;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid black;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta:hover {
  background-color: black;
  color: white;
  transform: scale(1.05);
}


/* Hero Section */
.hero {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.hero-left,
.hero-right {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-left {
  background-image: url("../img/Left.jpg");
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right {
  background-image: url("../img/Normale.JPG");
}

/* Diamante */
.diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: rgba(228, 204, 153, 0.8);
  z-index: 2;
}

.diamond-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  text-align: center;
  max-width: 260px;
  color: white;
  z-index: 3;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/

.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 1.25rem;
  margin-right: 4px;
  color: var(--accent-color);
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content .read-more {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 5px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about .content .read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.about .content .read-more:hover {
  background: color-mix(in srgb, var(--accent-color), black 20%);
  padding-right: 19px;
}

.about .content .read-more:hover i {
  margin-left: 10px;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/

.stats {
  position: relative;
  padding: 80px 0;
  --background-color:#C4A980; 
  background-size: cover;
}

.stats:before {
  content: "";
  background-color:#C4A980;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.stats .container {
  position: relative;
  z-index: 3;
}

.stats .stats-item {
  padding: 30px;
  width: 100%;
}

.stats .stats-item span {
  font-size: 48px;
  display: block;
  color: var(--default-color);
  font-weight: 700;
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  background-color: #C9B27F;
}


.services .service-item {
  position: relative;
  padding-top: 20px;
}

.services .service-item .icon {
  background-color: #9FBFC1;
  width: 72px;
  height: 72px;
  position: relative;
  margin-right: 15px;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
}

.services .service-item .icon i {
  color: var(--accent-color);
  font-size: 32px;
  z-index: 2;
  position: relative;
}

.services .service-item .title {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
}

.services .service-item .title a {
  color: var(--heading-color);
}

.services .service-item .title a:hover {
  color: var(--accent-color);
}

.services .service-item .description {
  font-size: 14px;
}

.services .service-item:hover .icon {
  background-color: var(--accent-color);
}

.services .service-item:hover .icon i {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .features-image {
  position: relative;
  min-height: 400px;
}

.features .features-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
}

.features .features-item i {
  font-size: 48px;
  color: var(--accent-color);
  margin-right: 20px;
  line-height: 0;
}

.features .features-item p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: -40px 0 0 40px;
  position: relative;
  z-index: 2;
  border: 6px solid var(--background-color);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 45px;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 0 0 45px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 0 15px;
  padding: 20px 20px 60px 20px;
  background: var(--surface-color);
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0 0 20px 0;
  margin: 0 auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  background-color: var(--surface-color);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
  position: relative;
  z-index: 1;
}

.portfolio .portfolio-content .portfolio-info {
  background-color: var(--background-color);
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 25px 20px;
  position: relative;
  z-index: 2;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-content .portfolio-info h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info h4 a:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
/*aggiunta*/

.split-screen {
  display: flex;
  height:50vh; /* Altezza della sezione */
  width: 100%;
  justify-content: center; /* Aggiunge spazio tra i blocchi */
  gap: 20px; /* Margine tra i blocchi */
  padding: 0 10px; /* Margine interno per non far aderire i blocchi ai bordi */
}

.split {
  flex: 0 0 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; /* Fa sì che l'immagine copra l'intero div */
  transition: transform 0.5s ease, background-size 0.5s ease; /* Transizione fluida */
}

.split.left {
  background: url('../img/Title.jpg') no-repeat center center/cover; /* Sfondo per la parte sinistra */
}

.split.right {
  background: url('../img/d.jpg') no-repeat center center/cover; /* Sfondo per la parte destra */
}

.split .content {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0); /* Sfondo trasparente per migliorare leggibilità */
  border-radius: 10px;
  color:#ffffff;
  pointer-events: none;
}

.split h2 {
  font-size: 2.5rem; /* Dimensione del titolo */
  font-weight: 700; /* Peso del font */
  text-transform: uppercase; /* Testo tutto maiuscolo */
  margin-bottom: 10px; /* Spazio sotto il titolo */
  letter-spacing: 1.5px; /* Spaziatura tra lettere */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombra per migliorare la leggibilità */
}

.split .content p {
  font-size: 1.2rem; /* Dimensione del sottotitolo */
  font-weight: 400; /* Peso normale */
  line-height: 1.6; /* Interlinea */
  margin-top: 10px; /* Spazio sopra il paragrafo */
  color: rgba(255, 255, 255, 0.9); /* Colore leggermente trasparente */
}

.split .content:hover {
  background: rgba(0, 0, 0, 0.8); /* Scuro al passaggio del mouse */
  transition: background 0.3s ease-in-out; /* Transizione fluida */
}

.split:hover {
    transform: scale(1.05); /* Zoom leggero */
    background-size: 110%; /* Espande leggermente l'immagine */
}
.portfolio-description {
  padding: 2rem;
  text-align: justify;
}
.portfolio-description .button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Centro il contenitore del bottone */
.portfolio-description {
  text-align: center;
}

.portfolio-description .button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-white-outline {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}


/* ============================================
   LAYOUT EDIZIONE MANOSCRITTO — 3 COLONNE FISSE
   ============================================ */

/* Contenitore principale dell’edizione */
#edition-wrapper {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 260px 1fr 1fr; /* colonna sinistra + 2 colonne uguali */
  grid-template-rows: auto 1fr auto;   /* top (side+boxes) - contenuto - paginazione */
  gap: 24px;

  padding: 24px;
  box-sizing: border-box;
}

/* ============================================
   COLONNA SINISTRA (Strato + Metadati)
   ============================================ */

#side-column {
  grid-column: 1;
  grid-row: 1 / span 2;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

#side-column .version-choice,
#side-column #metadata-box {
  background: var(--surface-color);
  color: black;
  padding: 1rem;
  border-radius: 6px;
}

/* ============================================
   COLONNE TESTO + IMMAGINE
   ============================================ */

#edition-columns {
  grid-column: 2 / span 2;
  grid-row: 1 / span 2;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;

  min-height: 0;
  height: calc(100vh - 200px); /* due grandi blocchi che riempiono lo spazio */
}

/* BOX TESTO */
#text-box {
  background: var(--surface-color);
  color: black;
  padding: 1rem;
  border-radius: 6px;

  overflow-y: auto;
  height: 100%;
  min-height: 0;
}

/* BOX IMMAGINE */
#image-box {
  background: var(--surface-color);
  color: black;
  padding: 1rem;
  border-radius: 6px;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  overflow-y: auto;
  height: 100%;
  min-height: 0;
}

#image-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2);
}

/* ============================================
   PAGINAZIONE SOTTO ALLE DUE COLONNE
   ============================================ */

#pagination-controls {
  grid-column: 2 / span 2;
  grid-row: 3;

  display: flex;
  justify-content: center;
  gap: 1rem;

  padding-top: 10px;
}

#pagination-controls button {
  background: var(--surface-color);
  color: black;
  border: 1px solid black;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

/* ============================================
   GESTIONE PAGINE TEI
   ============================================ */

.page-block {
  display: none;
}

/* ============================================
   VARIANTI / STRATI
   ============================================ */

.lem, .rdg {
  display: none;
}

.fallback {
  opacity: 0.6;
  color: black;
}

.wit0 { color:#F2A900; }
.wit1 { color:#D67500; }
.wit2 { color:#AF4F00; }
.wit3 { color:#7F2E00; }
.wit4 { color:#5C1E00; }
.wit5 { color:#401400; }
.wit6 { color:#260B00; }
.wit7 { color:#130500; }

/* ============================================
   DIALOGHI TEATRALI — Speaker sinistra / testo destra
   ============================================ */

.sp {
  margin-bottom: 0.8rem;
}

.speaker {
  font-weight: 700;
  display: block;
  text-align: left;
  margin-bottom: 0.2rem;
}

.sp p {
  text-align: right;
  margin: 0 0 0.3rem 0;
}

/* stage inline → niente “colonnine” */
.stage {
  font-style: italic;
  opacity: 0.9;
  display: inline;
  margin-left: 0.3rem;
}

/* unclear e gap */
.unclear { opacity: 0.5; }
.gap { opacity: 0.6; font-style: italic; }

/* Override palette per l’edizione: box più scuri, in linea con la pagina video */
#side-column .version-choice,
#side-column #metadata-box,
#text-box,
#image-box {
  background: color-mix(in srgb, var(--background-color), black 20%);
  color: var(--default-color);
}

/* ==========================================================
   VIEWERS (SCOPED) — keep main.css clean
   Put AFTER main.css
   ========================================================== */

/* -----------------------------
   1) MANUSCRIPT EDITION (3 columns)
   IMPORTANT: everything scoped under #edition-wrapper
   ----------------------------- */

   #edition-wrapper{
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
  
    display: grid;
    grid-template-columns: 260px 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
  }
  
  #edition-wrapper #side-column{
    grid-column: 1;
    grid-row: 1 / span 2;
  
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  #edition-wrapper #edition-columns{
    grid-column: 2 / span 2;
    grid-row: 1 / span 2;
  
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  
    min-height: 0;
    height: calc(100vh - 200px);
  }
  
  #edition-wrapper #text-box,
  #edition-wrapper #image-box,
  #edition-wrapper #side-column .version-choice,
  #edition-wrapper #side-column #metadata-box{
    background: color-mix(in srgb, var(--background-color), black 20%);
    color: var(--default-color);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.10);
  }
  
  #edition-wrapper #text-box{
    overflow-y: auto;
    min-height: 0;
  }
  
  #edition-wrapper #image-box{
    overflow-y: auto;
    min-height: 0;
  
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  #edition-wrapper #image-box img{
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
  }
  
  #edition-wrapper #pagination-controls{
    grid-column: 2 / span 2;
    grid-row: 3;
  
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
  }
  
  #edition-wrapper #pagination-controls button{
    background: transparent;
    color: var(--default-color);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
  }
  
  #edition-wrapper #pagination-controls button:hover{
    background: rgba(255,255,255,0.08);
  }
  
  /* Pages */
  #edition-wrapper .page-block{ display: none; }
  
  /* Variants — scoped! (this is what was breaking your manuscript viewer) */
  #edition-wrapper .lem,
  #edition-wrapper .rdg{
    display: none;
  }
  
  #edition-wrapper .fallback{
    opacity: 0.65;
  }
  
  
  /* Drama layout */
  #edition-wrapper .sp{ margin-bottom: 0.9rem; }
  #edition-wrapper .speaker{
    font-weight: 700;
    display: block;
    text-align: left;
    margin-bottom: 0.2rem;
  }
  #edition-wrapper .sp p{
    text-align: right;
    margin: 0 0 0.35rem 0;
  }
  #edition-wrapper .stage{
    font-style: italic;
    opacity: 0.9;
    display: inline;
    margin-left: 0.35rem;
  }
  #edition-wrapper .unclear{ opacity: 0.55; }
  #edition-wrapper .gap{ opacity: 0.65; font-style: italic; }
  
  /* -----------------------------
   2) MANUSCRIPT VIEWER (single card)
   IMPORTANT: everything scoped under .manuscript-viewer
   ----------------------------- */

.manuscript-viewer{
  --viewer-paper: rgba(255,255,255,0.26);
  --viewer-paper-border: rgba(0,0,0,0.10);
  --viewer-shadow: 0 12px 28px rgba(0,0,0,0.12);

  --viewer-panel: #3a332e;
  --viewer-panel-border: rgba(255,255,255,0.12);

  /* === TWO-COLOR HIGHLIGHT SYSTEM ===
     A (direct) = darker emphasis
     B (delta)  = lighter emphasis
  */
  --hl-direct-bg: rgba(0,0,0,0.16);     /* A: scuro */
  --hl-direct-underline: rgba(0,0,0,0.18);

  --hl-delta-bg: rgba(255,255,255,0.55); /* B: chiaro */
  --hl-delta-border: rgba(0,0,0,0.10);

  max-width: 1200px;
  margin: 0 auto;

  /* room for fixed header */
  padding: 96px 20px 44px;

  color: rgba(0,0,0,0.86);
}

/* Header */
.manuscript-viewer .viewer-header{
  padding: 0 0 14px;
  margin: 0 0 14px;
}

.manuscript-viewer .viewer-title{
  margin: 0;
  color: rgba(0,0,0,0.90);
}

.manuscript-viewer .viewer-author{
  margin: 6px 0 0;
  color: rgba(0,0,0,0.65);
}

/* Toolbar */
.manuscript-viewer #mini-nav.viewer-toolbar{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  margin: 0 0 16px;

  background: color-mix(in srgb, var(--background-color), black 12%);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 14px;

  overflow-x: auto;

  /* centered */
  width: 100%;
  justify-content: center;
}

@media (max-width: 700px){
  .manuscript-viewer #mini-nav.viewer-toolbar{
    justify-content: flex-start;
  }
}

.manuscript-viewer #mini-nav label{ white-space: nowrap; }

/* Make controls not ugly */
.manuscript-viewer #mini-nav select,
.manuscript-viewer #mini-nav button{
  font: inherit;
  border-radius: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.65);
}

.manuscript-viewer #mini-nav button:hover{
  background: rgba(255,255,255,0.82);
}

/* Layout: page-viewer + metadata */
.manuscript-viewer .viewer-layout{
  display: flex;
  align-items: stretch;
  gap: 18px;
}

/* Single “paper” */
.manuscript-viewer #page-viewer.page-viewer{
  flex: 1 1 auto;
  background: var(--viewer-paper);
  border: 1px solid var(--viewer-paper-border);
  border-radius: 14px;
  box-shadow: var(--viewer-shadow);

  padding: 22px;
  box-sizing: border-box;

  overflow: hidden;
  min-height: calc(100vh - 90px - 220px);
}

/* Prevent double cards INSIDE the paper */
.manuscript-viewer #page-viewer .page,
.manuscript-viewer #page-viewer .page-inner,
.manuscript-viewer #page-viewer .page-text-column,
.manuscript-viewer #page-viewer .page-image-column{
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Active page */
.manuscript-viewer #page-viewer .page{ display: none; }
.manuscript-viewer #page-viewer .page.is-active{ display: block; }
.manuscript-viewer .page-header{ display: none; }

/* Grid text + image */
.manuscript-viewer #page-viewer .page-inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.manuscript-viewer #page-viewer .page-text-column{
  padding: 6px 8px;
  min-width: 0;
  color: rgba(0,0,0,0.82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.manuscript-viewer #page-viewer .page-image-column{
  padding: 6px 8px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.manuscript-viewer #page-viewer img.page-image{
  width: 100%;
  max-width: 620px;
  height: auto;
  display: block;

  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 14px 34px rgba(0,0,0,0.26);
}

/* Metadata panel (clean + stable) */
.manuscript-viewer #metadata-panel.metadata-panel{
  flex: 0 0 340px;
  max-width: 340px;

  position: sticky;
  top: 18px;

  border-radius: 14px;
  padding: 16px;

  background: var(--viewer-panel);
  border: 1px solid var(--viewer-panel-border);
  color: #fff;

  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.manuscript-viewer #metadata-panel .metadata-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 1180px){
  .manuscript-viewer #metadata-panel .metadata-columns{
    grid-template-columns: 1fr;
  }
}

.manuscript-viewer .metadata-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--heading-font);
  color: #fff;
}

.manuscript-viewer .metadata-block{
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.manuscript-viewer .metadata-block h3{
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--heading-font);
  opacity: .85;
  color: #fff;
}

.manuscript-viewer .metadata-block p{
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}

.manuscript-viewer #metadata-panel a{
  color: #fff;
  text-decoration: underline dotted;
}

/* Responsive */
@media (max-width: 980px){
  .manuscript-viewer{ padding-top: 86px; }

  .manuscript-viewer .viewer-layout{
    flex-direction: column;
  }

  .manuscript-viewer #metadata-panel.metadata-panel{
    position: static;
    max-width: none;
    flex: 1 1 auto;
    max-height: none;
  }

  .manuscript-viewer #page-viewer .page-inner{
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   VIEWER OVERRIDES (clean)
   - Layer switching (Ums25.js)
   - Highlight system (2 colors only)
   - foreign styling
   ========================================================== */

/* 0) Layer/variant visibility (REQUIRED by Ums25.js) */
.manuscript-viewer .choice.text-block > .variant,
.manuscript-viewer .choice.text-block > .lem{
  display: none;
}

.manuscript-viewer .choice.text-block > .variant.is-active,
.manuscript-viewer .choice.text-block > .lem.is-active{
  display: inline;
  color: inherit; /* IMPORTANT: text always dark */
}

/* fallback */
.manuscript-viewer .choice.text-block.fallback{
  opacity: .65;
  filter: saturate(.85);
}

/* A) DIRECT change (darker highlight) — NO color change */
.manuscript-viewer .choice.text-block > .variant.is-active.is-direct,
.manuscript-viewer .choice.text-block > .lem.is-active.is-direct{
  background: var(--hl-direct-bg);
  padding: 0 .14em;
  border-radius: .22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: inset 0 -0.32em 0 var(--hl-direct-underline);
}

/* B) DELTA vs previous selection (lighter highlight) — NO color change */
.manuscript-viewer .choice.text-block > .variant.is-active.is-delta,
.manuscript-viewer .choice.text-block > .lem.is-active.is-delta{
  background: var(--hl-delta-bg);
  padding: 0 .18em;
  border-radius: .25em;
  box-shadow: 0 0 0 1px var(--hl-delta-border) inset;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* direct + delta together: combine A (underline) + B (light bg) */
.manuscript-viewer .choice.text-block > .variant.is-active.is-direct.is-delta,
.manuscript-viewer .choice.text-block > .lem.is-active.is-direct.is-delta{
  background: var(--hl-delta-bg);
  box-shadow:
    0 0 0 1px var(--hl-delta-border) inset,
    inset 0 -0.32em 0 var(--hl-direct-underline);
}

/* Foreign words (single definition) */
.manuscript-viewer .foreign{
  font-style: italic;
  opacity: 0.86;
  letter-spacing: .01em;
  text-decoration: underline dotted;
  text-underline-offset: .18em;
}

.manuscript-viewer .viewer-header{
  text-align: center;
}

.manuscript-viewer .viewer-title{
  text-align: center;
  width: 100%;
}

/*Edizione a Stampa aggiunte x stile */

.manuscript-viewer .viewer-title-long{
  margin-bottom: 20px;
}
.manuscript-viewer #metadata-panel{
  text-align: left;
}

/* Performing Objects */
.perfobj-page{
  margin: 0;
  font-family: var(--default-font);
  background: var(--background-color);
  color: var(--default-color);
  display: block;
}

.perfobj-page .manuscript-viewer{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 40px;

  background: color-mix(in srgb, var(--background-color), white 18%);
  color: rgba(0,0,0,0.82);

  --paper: rgba(255,255,255,0.28);
  --paper-border: rgba(0,0,0,0.10);

  --panel-bg: #3a332e;
  --panel-border: rgba(255,255,255,0.12);

  --text-dark: rgba(0,0,0,0.82);
  --text-mid: rgba(0,0,0,0.72);
}

.perfobj-page .viewer-header{
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid var(--paper-border);
  text-align: center;
}

.perfobj-page .viewer-title{
  margin: 0 0 6px 0;
  font-size: 34px;
  line-height: 1.15;
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--text-dark);
}

.perfobj-page .viewer-author{
  margin: 0;
  opacity: .85;
  color: var(--text-mid);
}

.perfobj-page .viewer-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.perfobj-page .page-viewer .page{
  border-radius: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.perfobj-page .page-title{
  margin: 0 0 12px 0;
  font-size: 18px;
  opacity: .85;
  font-family: var(--heading-font);
  color: var(--text-mid);
}

.perfobj-page .page-inner{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.perfobj-page .page-text-column{
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

.perfobj-page .page-image{
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 14px 34px rgba(0,0,0,0.26);
  display: block;
  margin: 0 auto;
}

.perfobj-page .metadata-panel{
  position: sticky;
  top: 18px;
  border-radius: 14px;
  padding: 16px;
  max-height: calc(100vh - 36px);
  overflow: auto;

  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.perfobj-page .metadata-title{
  margin: 0 0 10px 0;
  font-size: 18px;
  font-family: var(--heading-font);
  font-weight: 700;
  color: #fff;
}

.perfobj-page .metadata-block{
  margin: 0 0 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.perfobj-page .metadata-block h3{
  margin: 0 0 8px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: var(--heading-font);
  opacity: .85;
  color: #fff;
}

.perfobj-page .metadata-block p{
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}

.perfobj-page .metadata-panel a{
  color: var(--accent-color);
  text-decoration: underline dotted;
}
.perfobj-page .metadata-panel a:hover{
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

@media (max-width: 980px){
  .perfobj-page .viewer-layout{ grid-template-columns: 1fr; }
  .perfobj-page .page-inner{ grid-template-columns: 1fr; }
  .perfobj-page .metadata-panel{ position: static; max-height: none; }
}

.perfobj-page .rdfa-marker{
  display: none !important;
}


.perfobj-page{
  margin-top: 90px;
}

/* Pagina Edition */

   body.edition-landing {
    background: var(--background-color);
  }
  
  /* spazio per header fisso */
  body.edition-landing main.main {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  
  body.edition-landing .edition-intro {
    padding: 0;
  }
  
  body.edition-landing .edition-shell {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  
  /* Header */
  body.edition-landing .edition-header {
    text-align: center;
    margin-bottom: 28px;
  }
  
  body.edition-landing .edition-title {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--heading-color);
  }
  
  body.edition-landing .edition-title em {
    font-style: italic;
  }
  
  /* Main content card */
  body.edition-landing .edition-card {
    background: color-mix(in srgb, var(--surface-color), transparent 88%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }
  
  /* General content */
  body.edition-landing .edition-content {
    width: 100%;
    margin: 0 auto;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
  
  body.edition-landing .edition-content p {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.8;
    color: color-mix(in srgb, var(--default-color), transparent 8%);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
  
  body.edition-landing .edition-content strong {
    color: var(--default-color);
    font-weight: 700;
  }
  
  body.edition-landing .edition-content em {
    color: var(--default-color);
  }
  
  /* Intro block */
  body.edition-landing .edition-lead {
    margin-bottom: 28px;
  }
  
  body.edition-landing .edition-kicker {
    margin-top: 10px;
  }
  
  /* Two-column grid */
  body.edition-landing .edition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 28px 0;
  }
  
  /* Blocks */
  body.edition-landing .edition-block {
    background: color-mix(in srgb, var(--surface-color), transparent 92%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 84%);
    border-radius: 12px;
    padding: 24px;
  }
  
  body.edition-landing .edition-block h2 {
    margin: 0 0 14px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    text-align: left;
  }
  
  body.edition-landing .edition-block h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
    text-align: left;
  }
  
  body.edition-landing .edition-block p,
  body.edition-landing .edition-callout p,
  body.edition-landing .edition-note,
  body.edition-landing .edition-small {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
  
  /* Bullet lists */
  body.edition-landing .edition-bullets {
    margin: 14px 0 0 0;
    padding-left: 20px;
  }
  
  body.edition-landing .edition-bullets li {
    margin-bottom: 10px;
    line-height: 1.75;
    color: color-mix(in srgb, var(--default-color), transparent 8%);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
  
  /* Callout */
  body.edition-landing .edition-callout {
    margin-top: 18px;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--surface-color), transparent 94%);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
  }
  
  body.edition-landing .edition-global {
    margin: 10px 0 28px 0;
  }
  
  /* How-to section */
  body.edition-landing .edition-howto {
    margin-top: 8px;
  }
  
  body.edition-landing .edition-small {
    font-size: 15px;
    line-height: 1.75;
  }
  
  /* Ordered steps */
  body.edition-landing .edition-steps {
    margin: 16px 0;
    padding-left: 22px;
  }
  
  body.edition-landing .edition-steps li {
    margin-bottom: 12px;
    line-height: 1.75;
    color: color-mix(in srgb, var(--default-color), transparent 8%);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
  
  body.edition-landing .step-title {
    font-weight: 700;
    color: var(--default-color);
  }
  
  body.edition-landing .step-text {
    color: color-mix(in srgb, var(--default-color), transparent 8%);
  }
  
  /* CTA */
  body.edition-landing .edition-cta {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
    text-align: center;
  }
  
  body.edition-landing .edition-cta-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
  }
  
  body.edition-landing .edition-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  
  body.edition-landing .edition-cta-buttons .cta {
    margin-top: 0;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
  }
  
  body.edition-landing .edition-cta-buttons .cta:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: translateY(-2px);
  }
  
  body.edition-landing .edition-note {
    max-width: 820px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
  }
  
  /* Responsive */
  @media (max-width: 991px) {
    body.edition-landing .edition-grid {
      grid-template-columns: 1fr;
    }
  
    body.edition-landing .edition-card {
      padding: 24px;
    }
  }
  
  @media (max-width: 575px) {
    body.edition-landing main.main {
      padding-top: 95px;
      padding-bottom: 40px;
    }
  
    body.edition-landing .edition-shell {
      width: min(100%, calc(100% - 20px));
    }
  
    body.edition-landing .edition-card {
      padding: 18px;
    }
  
    body.edition-landing .edition-title {
      font-size: 2rem;
    }
  
    body.edition-landing .edition-block {
      padding: 18px;
    }
  
    body.edition-landing .edition-cta-buttons {
      flex-direction: column;
    }
  
    body.edition-landing .edition-cta-buttons .cta {
      width: 100%;
      text-align: center;
    }
  }

  body.edition-landing .edition-cta,
body.edition-landing .edition-cta p,
body.edition-landing .edition-note,
body.edition-landing .edition-cta-title {
  text-align: center;
}

/*O titolo*/
.type-o{
  font-family: 'EB Garamond', serif;
  font-size: 1.04em; 
  font-weight: 500;
  position: relative;
  top: 0.04em;
  margin-left: 0.02em;
  opacity: 0.88;
}
.title-first{
  white-space: nowrap;
  display: inline-block;
}
/*About The Project Section Aggiunta*/

   #about .about-text{
    max-width: 760px;          
    text-align: left;
  }
  
  #about .about-text p{
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: color-mix(in srgb, var(--default-color), transparent 10%);
  }
  
  #about .about-text p strong{
    font-weight: 700;
  }
  
  @media (max-width: 768px){
    #about .about-text{
      max-width: 100%;
    }
    #about .about-text p{
      font-size: 1rem;
      line-height: 1.7;
    }
  }

  #about .container,
#author .container {
  max-width: 1400px;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 991px) {
  #about .container,
  #author .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/*About The Case Study Aggiunta*/

#about .author-block,
#author .author-block,
#author .author-media {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

#about .editorial-row,
#author .editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

#about .editorial-row > [class*="col-"],
#author .editorial-row > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: unset;
  padding-left: 0;
  padding-right: 0;
}

#about .author-block,
#author .author-block,
#author .author-media {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

#about .author-block h3,
#author .author-block h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

#about .author-block p,
#author .author-block p,
#author .author-reference p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

#about .author-block p:last-child,
#author .author-block p:last-child,
#author .author-reference p:last-child {
  margin-bottom: 0;
}

/* author image block */
#author .author-media {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#author .author-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

#author .author-link {
  color: var(--default-color);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#author .author-link:hover {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* mobile */
@media (max-width: 991px) {
  #about .editorial-row,
  #author .editorial-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #author .author-image img {
    max-width: 100%;
  }
}

/* Acknowledgements all'archivio*/

#author .acknowledgements{
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.25);
  text-align: left;
}

#author .acknowledgements p{
  font-size: 0.92rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0;
}

/*PerfObj 2009*/
.perfobj-page .manuscript-viewer #page-viewer .page-image-column{
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; 
  gap: 12px; 
} 

/* Figure wrapper */ 
.perfobj-page .manuscript-viewer #page-viewer .video-figure{ 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  align-items: 
  center; width: 100%;
} 

/* Caption */ 
.perfobj-page .manuscript-viewer #page-viewer .video-caption{ 
  margin: 0; 
  text-align: 
  center; width: 100%; 
} 

.perfobj-page .manuscript-viewer #page-viewer .video-caption{ 
  color: var(--text-mid); 
  font-size: 16px; 
  line-height: 1.6;
}

.perfobj-page .manuscript-viewer #page-viewer .video-caption a{ 
  color: var(--text-dark); 
  text-decoration: underline; 
  text-underline-offset: 0.18em; 
  text-decoration-thickness: 1px; 
} 

.perfobj-page .manuscript-viewer #page-viewer .video-caption a:hover{ 
  color: var(--text-dark); 
  text-decoration: 
  underline; 
  opacity: 0.85; 
} 

.perfobj-page .manuscript-viewer #page-viewer .video-caption a.cta:hover{
  background-color: black;
  color: white;
  opacity: 1;             
  text-decoration: none;
}

.perfobj-page .manuscript-viewer #page-viewer .video-caption a.cta{ 
  text-decoration: none;
} 

.cta { 
  border: 2px solid black; 
  color: black; 
} 

.cta:hover { 
  background-color: black; 
  color: white; }


/*Documentation Section*/

#documentation{
  background-color: #C9B27F !important;
}

#documentation .about-text{
  max-width: 850px;
  margin: 0 auto;
  text-align: center !important;
}

#documentation .about-text p{
  margin: 0 auto 16px;
}

#documentation .section-title{
  padding-bottom: 18px;  
}

#documentation .section-title h2{
  margin-bottom: 10px;    
  padding-bottom: 12px;   
}

#documentation .about-text{
  margin-top: 0;
}

/* About = same color as Edition (features) */
#about {
  background-color: #AB8E63 !important;
}

#author .author-image {
  text-align: center;
}

#author .author-image img {
  display: block;
  margin: 0 auto;
}

#author .author-link {
  display: block;
  text-align: center;
  margin-top: 10px;
}

.head,
h2 {
  text-align: center;
  width: 100%;
}

.head .choice,
.head .variant {
  display: inline;
}
