:root {
  --star-accento: #C23F2B;
  --star-grigio-chiaro: #FAFAFA;
  --star-grigio-scuro: #F6F6F6;
  --star-open-sans: 'Open Sans', sans-serif;
  --star-oswald: 'Oswald', sans-serif;
  --star-text-size: 16px;
}

@media (max-width:767px) {
  :root {
    --star-text-size:15px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:focus {
  outline: 2px solid var(--star-accento);
  outline-offset: 2px;
}

p {
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.4;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 400;
  font-family: 'Oswald', sans-serif;
}

/* UTILITY CLASSES */
.mb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.star-container {
  max-width: 1440px;
  margin-inline:auto;
  padding-inline:15px;
}

@media (max-width:1200px) {
  .star-container {max-width:1170px;}
}

@media (max-width:992px) {
  .star-container {max-width:970px;}
}

@media (max-width:768px) {
  .star-container {max-width:750px;}
}

@media (max-width:767px) {
  .star-container {max-width:100%;}
}

/* FOOTER */
.star-footer {
  padding-top:5rem;
  padding-bottom:3rem;
  background-color: var(--star-grigio-chiaro);
}

/* Footer - Top */
.star-footer-top {
  display:grid;
  grid-template-columns: repeat(12,1fr);
  padding-bottom: 10rem;
}

.star-footer-top h1,
.star-footer-top h2,
.star-footer-top h3 {
  font-family: var(--star-open-sans);
  font-size: 18px;
  font-weight: 700;
}

.star-footer-top__left {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(12,1fr);
}

.star-footer-top__nav-01,
.star-footer-top__nav-02,
.star-footer-top__nav-03 {
  grid-column: span 4;
}

.star-footer-top__nav-01 ul,
.star-footer-top__nav-02 ul,
.star-footer-top__nav-03 ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top:2rem;
}

.star-footer-top__nav-01 ul li a,
.star-footer-top__nav-02 ul li a,
.star-footer-top__nav-03 ul li a{
  color:#000;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.star-footer-top__nav-01 ul li a:hover,
.star-footer-top__nav-02 ul li a:hover,
.star-footer-top__nav-03 ul li a:hover {
  text-decoration: underline;
}

.star-footer-top__nav-01 ul li a:focus,
.star-footer-top__nav-02 ul li a:focus,
.star-footer-top__nav-03 ul li a:focus {
  outline: 2px solid var(--star-accento);
}

.star-footer-top__right {
  grid-column: span 6;
}

.star-footer-top__newsletter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.star-newsletter-module input {
  padding-inline:8px;
  padding-block:12px;
  width:80%;
  border:2px solid #000;
}

.star-newsletter-module button {
  width:12%;
  border:2px solid var(--star-accento);
  border-radius: 22px;
  padding-inline:8px;
  padding-block:12px;
  margin-left:12px;
  background-color: transparent;

}

.star-newsletter-module p {
  font-size:12px;
  margin-top:8px;
}

.star-newsletter-module p a {
  color:#000;
  transition: color 350ms ease;
}

.star-newsletter-module p a:hover {
  color:var(--star-accento);
}

.star-newsletter-module p a:focus {
  outline: 2px solid var(--star-accento);
}

/* Footer - Bottom */
.star-footer-bottom {
  display:grid;
  grid-template-columns: repeat(12,1fr);
  padding-top:2rem;
  border-top: 2px solid rgba(0,0,0,.1);
}

.star-footer-bottom__left {
  grid-column:span 3;
}

.star-footer-bottom__left img {
  mix-blend-mode: multiply;
}

.star-footer-bottom__right {
  grid-column:span 9;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.star-footer-bottom p {
  font-size: 15px;
  line-height: 1;
  border-right:1px solid #000;
  padding-left:8px;
  padding-right:8px;
  padding-block:1px;
}

.star-footer-bottom p:last-child {
  padding-left:8px;
  padding-right:0;
  border-right: none;
}

.star-footer-bottom a {
  color:inherit;
  transition:color 350ms ease;
}

.star-footer-bottom a:hover {
  color: var(--star-accento);
}

.star-footer-bottom a:focus {
  outline: 2px solid var(--star-accento);
}

/* FOOTER - RESPONSIVE DESIGN */
@media (max-width:1024px) {
  .star-footer-bottom__left,
  .star-footer-bottom__right {
    grid-column:span 12;
  }

  .star-footer-bottom__left {
    display:flex;
    justify-content:center;
    margin-bottom:2rem;
  }

  .star-footer-bottom__right {
    justify-content: center;
  }

  .star-footer-bottom p {
    font-size: 14px;
    padding-left:6px;
    padding-right:6px;
  }

  .star-footer-bottom p:last-child {
    padding-left:4px;
  }

  .star-newsletter-module input {
    width:72%;
  }

  .star-newsletter-module button {
    width:18%;
  }
}

@media (max-width:821px) {
  .star-footer-top {
    row-gap:5rem;
    padding-bottom:4rem;
  }
  .star-footer-top__left,
  .star-footer-top__right {
    grid-column:span 12;
  }
  
  .star-footer-bottom p {
    font-size: 14px;
    padding-left:0px;
    padding-right:0px;
    border-right:none;
  }

  .star-footer-bottom p:last-child {
    padding-left:0px;
  }

  .star-footer-bottom__right {
    justify-content:center;
    flex-wrap:wrap;
    gap:2rem;
  }

  .star-newsletter-module input {
    width:65%;
  }

  .star-newsletter-module button {
    width:25%;
  }
}

@media (max-width:767px) {
  .star-footer-top__nav-01,
  .star-footer-top__nav-02,
  .star-footer-top__nav-03 {
    grid-column: span 12;
  }

  .star-footer-top__nav-01,
  .star-footer-top__nav-02 {
    margin-bottom:3rem;
  }

  .star-footer-top__newsletter-wrapper p {
    font-size:14px;
  }
}

/* HEADER */
.star-header {
  border-bottom:1px solid rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index:9;
  background-color: #fff;
}

.star-header .star-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block:1rem;
}

.star-header__right {
  display: flex;
  align-items: center;
  gap:2rem;
}

.mb__main-navigation > ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap:3rem;
}

.mb__main-navigation ul li a {
  text-decoration:none;
  color:#000;
}

.star-header__login-btn {
  border: 2px solid var(--star-accento);
  background-color: transparent;
  border-radius: 22px;
  padding: 8px;
  min-width:100px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 350ms ease-in-out;
  color: #000;
  text-decoration: none;
}

.star-header__login-btn:hover {
  border: 2px solid var(--star-accento);
  background-color: #C23F2B;
  color:#fff;
}

.star-header__cart-container svg {
  transform:translateY(3px);
}

.mb__mobile-toggle {
  width: 34px;
  height: 34px;
  background-color: transparent;
  justify-content: center;
  align-items: center;
  border: none;
  display: none;
}

.mb__mobile-toggle svg {
  stroke: var(--star-accento);
  width: 28px;
  height: 28px;
}

@media (max-width:1024px) {
  .mb__main-navigation > ul {
    gap: 1.5rem;
  }
}

@media (max-width:819px) {
  .star-header__right {
    gap: 1rem;
  }

  .mb__main-navigation {
    display: none;
  }

  .mb__mobile-toggle {
    display: flex;
  }

  .star-header__login-btn {
    font-size:12px;
    padding:4px;
    min-width:75px;
  }
}

/* HEADER DESKTOP - DROPDOWN MENU */
.star-header .mb__menu-item {
  position: relative;
}

.mb__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mb__caret-icon {
  width: 12px;
  height: 12px;
  stroke: var(--star-accento);
  transition: transform 0.3s ease;
  transform: translateY(1px);
}

.mb__menu-item.is-open .mb__caret-icon {
  transform: rotate(180deg);
}

.star-header .mb__dropdown-menu {
  position: absolute;
  top: 35px;
  left: 0;
  z-index: 1000;
  min-width: 250px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 10px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

.star-header .mb__menu-item.is-open .mb__dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.star-header .mb__dropdown-menu a {
  display: block;
  padding-top:5px;
  padding-bottom:5px;
  padding-inline:20px;
  text-decoration: none;
  color: #333333!important;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.star-header .mb__dropdown-menu a:hover,
.star-header .mb__dropdown-menu a:focus {
  background-color: var(--star-grigio-scuro);
  color: #000!important;
}

@media (max-width:1024px) {
  .star-header .mb__dropdown-menu {
    min-width:350px;
  }

  .star-header .mb__dropdown-menu a {
    white-space: normal;
  }
}

@media (max-width:1024px) {
  .star-header .mb__dropdown-menu {
    min-width:250px;
  }
}

/* MOBILE MENU */
.mb__mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

/* Menu visibile */
.mb__mobile-menu.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.mb-mobile-menu-logo {
  width: 60%;
}

.mb__mobile-menu nav > ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-left: 8px;
}

.mb__mobile-menu nav > ul li a {
  text-decoration: none;
  color: #000;
}

.mb__mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10001; /* sopra il contenuto del menu */
}

.mb__mobile-close:focus {
  outline: 2px solid var(--star-accento);
  outline-offset: 2px;
}

.mb__mobile-icon {
  width: 24px;
  height: 24px;
  stroke: var(--star-accento);
}

.mb__mobile-menu .mb__dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  will-change: max-height, opacity;
}

.mb__mobile-menu .mb__menu-item .mb__dropdown-menu {
  padding-block: 1rem;
  padding-left: 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb__mobile-menu .mb__menu-item.is-open .mb__dropdown-menu {
  max-height: 1000px; /* valore alto per contenere tutti gli <li> */
  opacity: 1;
}


/* STAR - SINGLE POST */
.star-single-content-wrapper {
  padding-block:3rem;
}

.star-single-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom:2rem;
}

.star-single-intro__left #breadcrumbs {
  font-size: var(--star-text-size);
}

.star-single-intro__left #breadcrumbs span {
  padding-left:8px;
  padding-right:8px;
}

.star-single-intro__left #breadcrumbs span:first-child {
  padding-left:0px;
}

.star-single-intro__left #breadcrumbs a {
  color: #000;
  text-decoration: none;
}

.star-single-intro__left #breadcrumbs a:hover {
  text-decoration: underline;
}

.star-single-intro__left #breadcrumbs a:focus {
  outline: 2px solid var(--star-accento);
}

.star-social-share {
  list-style-type: none;
  display: flex;
  gap: 1rem;
}

.star-social-share__single-item a:focus {
  outline:2px solid var(--star-accento);
}

.star-social-share__single-item a svg {
  width:20px;
  height: 20px;
  fill: var(--star-accento);
}

.star-social-share__service-button {
  display: none;
}

.star-single-title {
  font-size: 34px;
  font-weight: 700;
  padding-bottom:1rem;
}

.star-single-thumbnail-image {
  padding-block:2rem;
}

.star-single-thumbnail-image img {
  max-width:100%;
  border-radius: 12px;
}

.star-single-content,
.star-single-tag-list {
  max-width: 820px;
  width:100%;
  margin-inline:auto;
}

.star-single-content h1,
.star-single-content h2,
.star-single-content h3,
.star-single-content h4,
.star-single-content h5,
.star-single-content h6 {
  font-family: var(--star-oswald);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom:1rem;
}

.star-single-content p + h1,
.star-single-content p + h2,
.star-single-content p + h3,
.star-single-content p + h4,
.star-single-content p + h5,
.star-single-content p + h6 {
  margin-top:2rem;
}

.star-single-content h1 {
  font-size: 28px;
}

.star-single-content h2 {
  font-size: 26px;
}

.star-single-content h3 {
  font-size: 24px;
}

.star-single-content h4 {
  font-size: 22px;
}

.star-single-content h5 {
  font-size: 20px;
}

.star-single-content h6 {
  font-size: 18px;
}

.star-single-content p {
  font-size: var(--star-text-size);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.star-single-content a {
  color:var(--star-accento);
  font-weight: 700;
  text-decoration: underline;
  transition: all 350ms ease;
}

.star-single-content a:hover {
  text-decoration: none;
}

.star-single-content a:focus {
  outline: 2px solid var(--star-accento);
}

.star-single-content ul,
.star-single-content ol {
  font-family: var(--star-open-sans);
  margin-bottom:1rem;
  padding-left: 1.5rem;
}

.star-single-content li,
.star-single-content li {
  font-size:var(--star-text-size);
  margin-bottom:4px;
}

.star-single-tag-list {
  display: flex;
  gap: 1rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.star-single-tag-list a {
  text-decoration: none;
  color: #000;
  font-family: var(--star-open-sans);
  font-size: 14px;
  font-weight: 500;
  padding:4px 12px;
  background-color: var(--star-grigio-scuro);
}

.star-related-posts-wrapper {
  border-top: 12px solid var(--star-grigio-scuro);
  padding-top: 3rem;
}

.star-related-posts-title {
  font-family: var(--star-oswald);
  font-size: 28px;
  font-weight: 700;
}

.star-related-posts {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  column-gap: 2rem;
  row-gap: 5rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.star-related-post-card .star-related-post-category a {
  text-decoration: none;
  color: #000;
  font-family: var(--star-open-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  background-color: var(--star-grigio-scuro);
}

.star-related-post-title {
  font-family: var(--star-oswald);
  font-size: 24px;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 8px;
}

.star-related-post-excerpt {
  font-family: var(--star-open-sans);
  font-size: 15px;
}

.star-related-post-card .star-read-more {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #000;
  margin-top: 1.5rem;
  max-width: 220px; 
}

.star-related-post-card .star-read-more span {
  display: flex;
  align-items: center;
}

.star-related-post-card .star-read-more svg {
  stroke: var(--star-accento);
  width: 16px;
  height: 16px;
  transform: translateY(2px);
}

@media (max-width:767px) {
  .star-single-intro {
    flex-direction:column;
    align-items: flex-start;
    row-gap: 2rem;
  }

  .star-single-intro__left #breadcrumbs {
    font-size: 14px;
  }

  .star-single-intro__left #breadcrumbs span {
    padding-left:4px;
    padding-right:4px;
  }

  .star-related-posts {
    grid-template-columns: repeat(1,1fr);
    row-gap: 3rem;
  }
}

/* BLOG - SIDEBAR E POSTS */
.star-posts-archive {
  padding-top: 3rem;
}

.star-posts-archive-title {
  font-family: var(--star-oswald);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.star-posts-archive-wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  padding-top: 2rem;
}

.star-posts-archive-sidebar {
  grid-column: span 3;
  padding-top: 3rem;
}

.star-posts-archive-sidebar__title {
  font-family: var(--star-open-sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.star-posts-archive-sidebar__categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style-type: none;
}

.star-posts-archive-sidebar__categories li {
  border:1px solid transparent;
  padding:6px 8px;
  cursor: pointer;
  transition: all 350ms ease;
}

.star-posts-archive-sidebar__categories li:hover {
  border:1px solid var(--star-accento);
}

.star-posts-archive-sidebar__categories li a {
  text-decoration: none;
  color: #000;
}

.star-posts-archive-sidebar__categories li:hover a {
  color: var(--star-accento);
}

.star-posts-archive-list {
  grid-column: span 9;
}

@media (max-width:767px) {
  .star-posts-archive-sidebar {
    grid-column: span 12;
    order: 2;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .star-posts-archive-list {
    grid-column: span 12;
    order: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* BLOG - POST IN EVIDENZA */
.star-in-evidence-wrapper {
  border-top: 12px solid var(--star-grigio-scuro);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.star-in-evidence-wrapper .star-container {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 2rem;
}

.star-in-evidence-left {
  grid-column: span 3;
  padding-top: 3rem;
}

.star-in-evidence-title {
  font-family: var(--star-open-sans);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.star-in-evidence-left p {
  max-width: 70%;
}

.star-in-evidence-right {
  grid-column: span 9;
}

@media (max-width:767px) {
  .star-in-evidence-left {
    grid-column: span 12;
    padding-top: 2rem;
  }

  .star-in-evidence-right {
    grid-column: span 12;
  }
}