@font-face {
  font-family: 'monsitalic';
  src: url('./fonts/montserrat-italic-variablefont_wght-webfont.woff2') format('woff2'),
    url('./fonts/montserrat-italic-variablefont_wght-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

@font-face {
  font-family: 'mons';
  src: url('./fonts/montserrat-variablefont_wght-webfont.woff2') format('woff2'),
    url('./fonts/montserrat-variablefont_wght-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

/* body,
html,
* {
  font-family: 'mons', sans-serif;
} */

.slider,
.slider-full {
  height: auto !important;
}

.scrolltop i {
  color: #000;
}

.scrolltop:hover i {
  color: #FFF;
}

.social-icons li a {
  color: #FFF;
}


.footer-bottom-middle {
  border-top: none;
  padding-top: 200px;
  background: transparent url(/logo.png) no-repeat left top;
  background-size: 150px;
  margin-top: 50px;
}

.footer-bottom-middle-right {
  position: absolute;
  margin-top: -168px;
  margin-left: 15px;
}

#form-container-YCBQ9VVGFYMSW button {
  color: #FFF !important;
  font-size: 20px;
  background: #000;
}

.css-1565878.black {
  color: #FFF !important;
}

.main-wrapper {
  padding: 0;
  padding-bottom: 300px;
}

.region-primary-menu .menu-item-level-1 a,
.region-primary-menu .menu-item-level-1>span:hover,
.region-primary-menu .menu-item-level-1 {
  transition: all 0.5s ease-in-out !important;
}

.region-primary-menu .menu-item-level-1 a:hover,
.region-primary-menu .menu-item-level-1>span:hover,
.region-primary-menu .menu-item-level-1:hover {
  background-color: transparent;
  opacity: 0.8;
}

.region-primary-menu .menu {
  font-size: 14px;
}

.slider h1 {
  font-size: 40px;
  font-weight: bold;
  margin-top: -20px;
  margin-left: -2px;
}

.slider h3 {
  font-size: 35px;
}

.header-right,
.slider-text {
  font-weight: bolder;
  text-transform: uppercase;
}

.node-view-mode-teaser {
  background: #FFF;
}

#footer {
  background: #000;
  color: #FFF;
}

#footer .container {
  width: 95%;
}

.header-top {
  position: relative;
  z-index: 100;
  height: 0;
}

.header-top>.container {
  max-width: 100%;
  padding: 0px;
}

.header-top-container {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
}

#block-tarapro-info {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #ff0000;
  color: white;
  border-radius: 0 0 0 400px;
  padding: 20px 30px;
  text-align: right;
  min-width: 250px;
  min-height: 155px;
  font-weight: bolder;
}

/* Style for the content inside */
#block-tarapro-info .block-content {
  margin-top: 25px;
}

/* Style for the email and phone number */
#block-tarapro-info p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
  font-weight: bolder;
}

/* Style for the email link */
#block-tarapro-info a {
  color: white;
  text-decoration: none;
}

#block-tarapro-info a:hover {
  text-decoration: underline;
}

/* Ensure the parent container has proper positioning */
.header-top {
  position: relative;
}

/* Make sure the positioning works correctly in the header */
.header-top-container {
  position: relative;
}

.header {
  background-color: rgba(0, 0, 0, 0.9) !important;
  box-shadow: 0px 50px 50px rgba(0, 0, 0, 0.3);
}

.region-primary-menu .menu {
  font-size: 12px;
}

.region-primary-menu .menu-item-level-1 a,
.region-primary-menu .menu-item-level-1>span {
  font-weight: bolder;
  padding-left: 10px;
  padding-right: 10px;
}

.region-primary-menu .menu-item-level-1 a:before {
  content: "";
  position: absolute;
  left: 0px;
  /* Position from left edge */
  top: 50%;
  /* Center vertically */
  transform: translateY(-50%);
  /* Ensure perfect vertical centering */
  width: 3px;
  /* Size of the dot */
  height: 3px;
  /* Size of the dot */
  background-color: #FFF;
  /* Red dot to match the corner block */
  border-radius: 50%;
  /* Make it circular */
  display: block;
}

.header-container {
  justify-content: flex-start;
}

.site-branding {
  padding-right: 50px;
}

ul.main-menu {
  border-bottom: 1px solid #999;
}

a.button {
  border: none;
  background: transparent !important;
  font-weight: 500;
  font-family: sans-serif;
  letter-spacing: 1px;
  font-size: 20px;
}

a.button:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #ff0000;
  margin-right: 10px;
  /* clip-path: path('M0,0 L7,0 Q12,6 7,12 L0,12 Z'); */
  box-shadow: 1px 1px 8px -1px rgba(255, 255, 255, 0.6);
  position: relative;
  top: 5px;
  border-bottom-right-radius: 50px;
}

.tns-slide-active .layer4 {
  transition-delay: 4s;
  padding-left: 2px;
  margin-left: 0px;
  margin-top: -5px;
}

/* Container styling */
#block-tarapro-homelasciatiispirare {
  display: flex;
  width: 100%;
  position: relative;
  overflow: visible;
  width: 90vw;
  margin-left: calc(-45vw + 50%);
  left: 0;
  right: 0;
  max-width: none;
}

#block-tarapro-homelasciatiispirare .block-content {
  display: flex;
  width: 100%;
  position: relative;
}

/* Image styling */
#block-tarapro-homelasciatiispirare .field--name-field-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 0;
}

#block-tarapro-homelasciatiispirare .field--name-field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text content styling */
#block-tarapro-homelasciatiispirare .field--name-body {
  width: 50%;
  background-color: #1a1a1a;
  color: white;
  padding: 40px 80px;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  right: 0;
  height: 100%;
  border-radius: 0 0 0 400px;
  text-align: right;
}

#block-tarapro-homelasciatiispirare .field--name-body>p,
#block-tarapro-homelasciatiispirare .field--name-body>h2,
#block-tarapro-homelasciatiispirare .field--name-body>h3 {
  padding-left: 60px;
  padding-right: 10px;
  padding-bottom: 0px !important;
  padding-top: 0px !important;
  margin: 0px !important;
}

/* Heading styles */
#block-tarapro-homelasciatiispirare .field--name-body h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  color: #FFF;
}

#block-tarapro-homelasciatiispirare .field--name-body h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 20px;
}

#block-tarapro-homelasciatiispirare .field--name-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* Red accent element */
#block-tarapro-homelasciatiispirare .field--name-body:after {
  content: "";
  position: absolute;
  top: -20px;
  right: 90px;
  width: 40px;
  height: 40px;
  background-color: #FF0000;
  border-radius: 0 0 0 100%;
}

#block-tarapro-hometimostreremoilmondosottounanuovaluce {}

.slider {
  width: 100vw !important;
}

#block-tarapro-hometimostreremoilmondosottounanuovaluce,
body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 {
  position: relative;
  width: 100%;
  background-color: #f2f2f2;
  position: relative;
  border-radius: 0 0 400px 0;
  position: relative;
  width: 90vw;
  margin-left: calc(-45vw + 50%);
  left: 0;
  right: 0;
  max-width: none;
  padding: 160px 0px;
  padding-top: 50px;
  padding-bottom: 200px;
}

body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 {
  padding: 50px;
  
}

body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 .views-field-field-media-image,
body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 .views-field-view-taxonomy-term,
body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 .field--name-field-esperienze,
body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 .field--name-field-hotels,
body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 .field--name-field-itinerari,
body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 .field--name-field-inspiration {
  display: none !important;
}

#block-tarapro-hometimostreremoilmondosottounanuovaluce .block-content {
  display: flex;
  width: 100%;
  position: relative;
}

/* Text content styling */
#block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body {
  padding: 0px 80px;
}

/* Heading styles */
#block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #222;
  /* max-width: 80%;*/
}

#block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  text-transform: uppercase;
}

#block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  max-width: 90%;
}

/* Container styling */
#block-tarapro-homenewsletter {
  position: relative;
  width: 100%;
  margin: 60px 0;
  background-color: #f2f2f2;
  padding: 0;
  width: 90vw;
  margin-left: calc(-45vw + 50%);
  left: 0;
  right: 0;
  max-width: none;
  border-radius: 200px 0 0 0;
  padding-top: 100px;
  padding-bottom: 200px;
  margin-bottom: 0;
}

#block-tarapro-homenewsletter .block-content {
  position: relative;
  width: 100%;
}

/* Text content styling */
#block-tarapro-homenewsletter .field--name-body {
  position: relative;
  padding: 40px 60px;
  text-align: right;
}

/* Make the text inside the h2 more readable */
#block-tarapro-homenewsletter .field--name-body h2 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 auto 30px;
  font-weight: 400;
  color: #333;
  padding-right: 100px;
  margin-left: 420px;
}

/* Style the strong element for the coupon text */
#block-tarapro-homenewsletter .field--name-body h2 strong {
  font-weight: stronger;
  color: #222;
  font-family: inherit;
}

/* Red accent in the top right */
#block-tarapro-homenewsletter:after {
  content: "";
  position: absolute;
  top: 0;
  right: 90px;
  width: 60px;
  height: 60px;
  background-color: #FF0000;
  border-bottom-left-radius: 100%;
  z-index: 1;
}

/* Make the form elements have proper z-index */
#block-tarapro-homenewsletter .field--name-body>* {
  position: relative;
  z-index: 2;
}

/* Style the form inputs */
#block-tarapro-homenewsletter .quick_form_7_css {
  border: none !important;
  margin: 0 auto !important;
  background-color: transparent !important;
}

#block-tarapro-homenewsletter input[type="text"] {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  height: 40px !important;
  width: 280px !important;
}

#block-tarapro-homenewsletter input[type="button"] {
  background-color: #FF0000 !important;
  border: none !important;
  color: white !important;
  padding: 10px 20px !important;
  height: 40px !important;
  cursor: pointer !important;
  border-radius: 0 !important;
}

/* Form container */
#customForm {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Form styling */
.quick_form_7_css {
  border: none !important;
  background-color: transparent !important;
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
}

/* Hide the title in the form since we already have it in the h2 */
#SIGNUP_HEADING {
  display: none !important;
}

/* Field styling */
.SIGNUP_FLD {
  margin: 0 5px !important;
  height: auto !important;
}

/* Field labels */
.SIGNUP_FLD>div {
  font-family: inherit !important;
  font-size: 14px !important;
  color: #222 !important;
  margin-bottom: 0 !important;
  font-weight: bolder !important;
  text-align: right !important;
  margin-right: 5px !important;
}

/* Input fields */
.SIGNUP_FLD input[type="text"] {
  height: 45px !important;
  border: 1px solid #ddd !important;
  border-radius: 3px !important;
  background-color: #fff !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  width: 260px !important;
  box-shadow: none !important;
  transition: border-color 0.3s ease;
}

.SIGNUP_FLD input[type="text"]:focus {
  border-color: #FF0000 !important;
  outline: none !important;
}

/* Submit button */
#block-tarapro-homenewsletter input[type="button"] {
  height: 38px !important;
  background-color: #FF0000 !important;
  color: white !important;
  border: none !important;
  border-radius: 3px !important;
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 0 20px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease;
}

#block-tarapro-homenewsletter input[type="button"]:hover {
  background-color: #c50103 !important;
}

/* Checkbox styling */
#block-tarapro-homenewsletter input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* Container styling */
#block-tarapro-homememberof {
  position: relative;
  width: 100%;
  margin: 40px 0;
  background-color: #f2f2f2;
  padding: 30px 40px;
  border-right: 1px solid #ddd;
  overflow: hidden;
  width: 90vw;
  margin-left: calc(-45vw + 50%);
  left: 0;
  right: 0;
  max-width: none;
  margin-top: -150px;
  margin-bottom: 0px;
}

#block-tarapro-homememberof .block-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Text content styling */
#block-tarapro-homememberof .field--name-body {
  margin-bottom: 30px;
}

#block-tarapro-homememberof .field--name-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin: 0;
  position: relative;
}

/* Red accent element similar to other sections */
#block-tarapro-homememberof .field--name-body h2:after {
  content: "";
  position: absolute;
  top: 50px;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: #FF0000;
  border-radius: 0 0 100% 0;
}

/* Images container */
#block-tarapro-homememberof .field--name-field-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

/* Individual logo items */
#block-tarapro-homememberof .field--name-field-images .field-item {
  flex: 0 1 30%;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo images */
#block-tarapro-homememberof .field--name-field-images img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#block-tarapro-homememberof .field--name-field-images img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Links in logos */
#block-tarapro-homememberof .field--name-field-images a {
  display: block;
  padding: 10px;
}

#block-tarapro-copyright {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bolder;
}


#footer {
  background: #000 url(images/earth2.svg) no-repeat center right;
  background-size: contain;
  border-radius: 0 150px 0 0;
  position: relative !important;
  margin-top: -150px;
  z-index: 10 !important;
}

body.inner-page .slider-text-container {
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-end;
  width: 100%;
}

body.inner-page .slider-text-container .container {
  padding: 0;
  max-width: 100%;
}

body.inner-page .slider-text h1.layer2 {
  position: relative;
  color: white;
  font-size: 60px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
  margin-left: 10%;
  z-index: 20;
}

body.inner-page .slider-text h1.layer2::before {
  content: "";
  position: absolute;
  bottom: -59px;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: red;
  border-bottom-right-radius: 100%;
  z-index: 20;
}

.taxonomy-terms li::before {
  display: none !important;
}

body.inner-page .slider-image:before {
  content: " ";
  display: block;
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
}

body.inner-page .slider-text p.layer4 {
  color: white;
  font-size: 16px;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 0 !important;
  margin-top: 20px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  text-transform: none;
  font-weight: bolder;
  padding-left: 10%;
  padding-bottom: 30px;
  padding-top: 30px;
}

#block-tarapro-views-block-termini-figli-block-1 {
  padding-top: 0px;
  padding-bottom: 300px;

}

/* Main container styling */
.view-termini-figli .view-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -15px;
}

/* Card styling */
.view-termini-figli .views-row {
  width: calc(33.33% - 30px);
  margin: 0 15px 30px;
  display: flex;
  flex-direction: column;
  /* border-radius: 0 0 10px 10px; */
  overflow: hidden;
  background-color: #efefef;
}

/* Re-order elements to match design */
.view-termini-figli .views-row>div {
  display: flex;
  flex-direction: column;
}

/* Image styling */
.view-termini-figli .node-taxonomy-container {
  order: 1;
  margin-bottom: -35px;
  /* Create overlap for curved effect */
}

.view-termini-figli .field--name-field-media-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.view-termini-figli h2 {
  order: 2;
  text-align: right;
  padding: 15px 25px 0;
  position: relative;
  z-index: 5;
  margin-bottom: 0;
  margin-top: -35px;
  height: 35px;
}

.view-termini-figli h2::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 90px;
  background-color: #efefef;
  border-radius: 0;
  z-index: -1;
  border-top-left-radius: 250px;
}

.view-termini-figli h2 .field-item {
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
  font-family: sans-serif;
  font-weight: 500;
}

/* Description text styling */
.view-termini-figli .field--name-description {
  order: 3;
  padding: 5px 20px 10px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
  text-align: justify;
  height: auto;
  overflow: hidden;
  position: relative;
  margin-top: 55px;
  text-overflow: ellipsis;
  overflow: hidden;
  height: 130px;
}

.view-termini-figli .field--name-description p {
  display: inline;
}

/* Read more link */
.view-termini-figli .taxonomy-term-read-more {
  order: 4;
  padding: 0 20px 15px;
}

.view-termini-figli .taxonomy-term-read-more a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  font-weight: bolder;
}

.view-termini-figli .taxonomy-term-read-more a:hover {
  text-decoration: none;
}

#block-tarapro-taxonomytermbanner .slider-text h1.layer2 {
  text-align: center;
  margin-left: 0;
  z-index: 20;
  margin-right: 0;
}

#block-tarapro-taxonomytermbanner .slider-text-container {
  align-items: center;
}

/* Styling for the node-title with curved background */
.type-taxonomy.depth-3 .node-title {
  position: absolute;
  bottom: -9px;
  right: 0;
  background-color: #f0f0f0 !important;
  display: block;
  z-index: 20;
  font-family: sans-serif;
  text-align: right;
  border-top-left-radius: 200px;
  padding-left: 30px;
}

.type-taxonomy.depth-3 .node-title a {
  display: inline-block;
  text-decoration: none;
  position: relative;
}

.type-taxonomy.depth-3 .node-title span {
  display: block;
  font-size: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px;
  position: relative;
  z-index: 2;
  font-weight: normal;
  font-family: sans-serif;
}

.type-taxonomy.depth-3 .views-row {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

/* Position node-title to bottom right if inside image container */
.type-taxonomy.depth-3 .node-taxonomy-container .node-title,
.type-taxonomy.depth-3 .field--name-field-main-image .node-title {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 10;
}

#block-tarapro-googlereviewscontentblock {
  position: relative;
  width: 100%;
  margin: 40px 0;
  background-color: #f2f2f2;
  padding: 30px 40px;
  border-right: 1px solid #ddd;
  overflow: hidden;
  width: 90vw;
  margin-left: calc(-45vw + 50%);
  left: 0;
  right: 0;
  max-width: none;
  margin-top: -150px;
  margin-bottom: 150px;
}

.global-rating {
  display: none !important;
}

.swiper-slide {
  background: #FFF;
}

.swiper {
  max-width: 100%;
}

img.author-photo {
  max-width: none;
}

.message-section {
  font-size: 12px;
  font-weight: bolder;
  text-align: left;
}

.swiper-wrapper {
  box-sizing: content-box;
  align-content: space-between;
  flex-wrap: nowrap;
  align-items: stretch;
}

.swiper-slide {
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  height: 260px !important;
  align-items: flex-end;
  justify-content: flex-start;
}

.stars {
  margin: 10px;
}

.stars svg {
  fill: #FFFFFF;
  background: #FFD700;
  padding: 4px;
  width: 25px;
  margin: 1px;
}

.author-section {
  padding-top: 20px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.author-info-section strong {
  color: #000 !important;
  font-size: 12px;
  font-weight: bolder;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  font-size: 20px;
  color: #000;
  display: none !important;
}

.swiper-button-prev {
  left: -6px;
}

.swiper-button-next {
  right: -6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .type-taxonomy.depth-3 .node-title span {
    font-size: 32px;
    padding: 10px 30px 10px 20px;
  }

  .type-taxonomy.depth-3 .node-title a:before {
    width: 200px;
    height: 100px;
  }
}

/* Make the title responsive */
@media (max-width: 768px) {
  .node-title {
    font-size: 36px;
  }
}

body.inner-page .slider-text h1.layer2::before {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .view-termini-figli .views-row {
    width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .view-termini-figli .views-row {
    width: 100%;
    margin: 0 0 30px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #block-tarapro-homememberof {
    padding: 20px;
  }

  #block-tarapro-homememberof .field--name-field-images {
    flex-direction: column;
  }

  #block-tarapro-homememberof .field--name-field-images .field-item {
    flex: 0 1 100%;
    margin-bottom: 15px;
  }

  #block-tarapro-homememberof .field--name-body h2:before {
    left: -20px;
    width: 15px;
    height: 15px;
  }
}

/* Responsive form */
@media (max-width: 768px) {
  #block-tarapro-homememberof .SIGNUP_FLD {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
  }

  #block-tarapro-homememberof .SIGNUP_FLD input[type="text"] {
    width: 100% !important;
  }

  #block-tarapro-homememberof input[type="button"] {
    width: 100% !important;
    margin-top: 10px !important;
  }

  #block-tarapro-homenewsletter:before {
    width: 100px;
  }

  #block-tarapro-homenewsletter .field--name-body {
    padding: 30px 20px;
  }

  #block-tarapro-homenewsletter .field--name-body h2 {
    font-size: 1.3rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body {
    padding: 30px 20px;
  }

  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body h2 {
    font-size: 1.8rem;
    max-width: 100%;
  }

  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body p {
    max-width: 100%;
  }

  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body:after {
    width: 100px;
  }
}


/* For smaller screens */
@media (max-width: 768px) {
  #block-tarapro-info {
    min-width: 200px;
    min-height: 120px;
    padding: 25px 20px;
  }

  #block-tarapro-info p {
    font-size: 12px;
  }
}

.full-page-search,
#last-section {
  display: none;
}

/* weasel start */
/* hero image */
/* carousel thingy start */
/* note - not specific enough */






/* Start RAF edit */
@font-face {
  font-family: 'Colaborate';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url(./fonts/ColabThi.woff2) format('woff2'), 
    url(./fonts/ColabThi.woff) format('woff');
}

@font-face {
  font-family: 'Colaborate';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(./fonts/ColabLig.woff2) format('woff2'), 
    url(./fonts/ColabLig.woff) format('woff');
}

@font-face {
  font-family: 'Colaborate';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/ColabReg.woff2) format('woff2'), 
    url(./fonts/ColabReg.woff) format('woff');
}

@font-face {
  font-family: 'Colaborate';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/ColabMed.woff2) format('woff2'), 
    url(./fonts/ColabMed.woff) format('woff');
}

@font-face {
  font-family: 'Colaborate';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./fonts/ColabBol.woff2) format('woff2'), 
    url(./fonts/ColabBol.woff) format('woff');
}

@font-face {
  font-family: 'BebasKai';
  src: url(./fonts/BebasKai.woff) format('woff'),
       url(./fonts/BebasKai.woff2) format('woff2');
}

.dialog-off-canvas-main-canvas {
  width: 100vw;
}
.region-primary-menu .menu a {
  font-family: 'Colaborate', sans-serif; 
}

.node-type-travel-item {
  position: relative;
}

/* SLIDER */
.slider-page .dialog-off-canvas-main-canvas > section.slider {
  margin-top: -116px;
  margin-bottom: 80px;
}
.slider-page .dialog-off-canvas-main-canvas > section.slider .aumentamargin {
  margin-bottom: 80px;
}
@media (max-width: 768px) { 
  .slider-page .dialog-off-canvas-main-canvas > section.slider {
    margin: 0 auto 10px;
  }
  .slider-page .dialog-off-canvas-main-canvas > section.slider .aumentamargin {
    margin-bottom: 0px;
  }
}
body.page-type-travel-item #block-tarapro-taxonomytermbanner .block-content {
  background: #292929;
}

body.page-type-travel-item .slider-text-container {
  position: relative;
  max-width: 1170px;
  margin: 0 auto;
}
body.page-type-travel-item .slider-image img {
  width: 100%;
}
body.page-type-travel-item .slider-image:before {
  background: none;
}
body.page-type-travel-item .slider-text-container .slider-text {
  display: flex;
  padding-bottom: 40px;
  transform: translateY(-40px);
}
body.page-type-travel-item .slider-text-container .slider-text .layer1,
body.page-type-travel-item .slider-text-container .slider-text .layer2, 
body.page-type-travel-item .slider-text-container .slider-text .layer3, 
body.page-type-travel-item .slider-text-container .slider-text .layer4, 
body.page-type-travel-item .slider-text-container .slider-text .layer5 {
  transition-delay: 0.3s;
  transition-property: opacity;
  color:#ffffff;
}
body.page-type-travel-item .slider-text-container .slider-text h1,
body.page-type-travel-item .slider-text-container .slider-text h2,
body.page-type-travel-item .slider-text-container .slider-text h3,
body.page-type-travel-item .slider-text-container .slider-text h4,
body.page-type-travel-item .slider-text-container .slider-text h5,
body.page-type-travel-item .slider-text-container .slider-text h6 {
  order: 1;
  margin: 0; 
  padding: 0;
  text-align: left!important; 
}
body.page-type-travel-item .slider-text-container .slider-text h1.layer2 {
  position: absolute;
  top: -100%;
  font-family: 'BebasKai', sans-serif;
  font-size: 80px;
  letter-spacing: 4px;
}
@media (max-width: 768px) { 
  body.page-type-travel-item .slider-text-container .slider-text h1.layer2 {  
    top: -50%;
    font-size: 40px;
    left: 20px;
  }
}
body.page-type-travel-item .slider-text-container .slider-text nav {
  order: 2;
  position: relative;
}
body.page-type-travel-item .slider-text-container .slider-text nav:before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-30%);
    left: 0!important;
    width: 60px;
    height: 60px;
    background-color: #FF0000;
    border-radius: 0 0 100% 0;  
}
body.page-type-travel-item .slider-text-container .slider-text p {
  order: 3;
  transform: translateY(40px);
  text-transform: none;
  font-size: 16px;
  line-height: 1.2;
}

body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  font-family: Arial, Helvetica, sans-serif;
  gap: 15px;
  font-weight: 400;
}
@media (max-width: 768px) { 
  body.page-type-travel-item .slider-text-container .slider-text nav {
    position: absolute;
    top: -100%;
    width: 50%;
    max-width: 50%;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav:before {
    left: -100%!important;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
    flex-direction: column;
    align-items: flex-end;
    gap: 0; 
    padding-right: 20px;
  }
}

body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li {

}
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li:first-of-type a {
  font-weight: 900;
}
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li:after {
  content: '/'; 
  display: inline-block;
  margin: 0 8px;
}
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li:last-of-type:after {
  display: none;
}
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li > a {
  color: #ffffff;
  text-transform: none;
}
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li > a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) { 
  body.page-type-travel-item .slider-text-container .slider-text {
    transform: translateY(-50%);
  }
  body.page-type-travel-item .slider-text-container .slider-text p {
    transform: translateY(calc(50% + 35px));
    padding: 0 20px;
    max-height: 80px;
    overflow:hidden;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav {
    position: absolute;
    top: -100%;
    right: 0;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
    flex-direction: column;
    align-items: flex-end;
    gap: 0; 
    padding-right: 20px;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li:after {
    display: none;
  }
}




/* ITINERARI */
body.page-type-travel-item .field--name-field-itinerari  * {
  margin-bottom: 0;
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms {
  flex-wrap: wrap;
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li {
  width: calc(33% - 0.4rem);
  cursor: pointer;
}
@media (max-width: 768px) { 
  body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li {
    width: 100%;
  }
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser {
  padding: 0;
  box-shadow: none;
  position: relative; 
  margin: 0; 
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #E7E5E6;
  border-radius: 0 0 80px 0;
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-title {
  line-height: 1;
  font-family: 'BebasKai', sans-serif;
  font-size: 45px;
}

body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content {
  height: 100%;
  display: flex; 
  flex-direction: column-reverse;
  justify-content: space-between;
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-title, 
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field,
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .node-taxonomy-container {

}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-title, 
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field {
  position: relative; 
  z-index: 10;
  padding: 25px 25px 0 
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field {
  height: 100%;
  display: flex; 
  flex-direction: column;
  justify-content: space-between;
  padding-top: 10px;
  font-family: 'Colaborate', sans-serif;
  font-weight: 100;
  font-size: 35px;
  line-height: 1.2;
}
@media (max-width: 768px) { 
  body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms {
    gap: 1rem;
  }
  body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-title {
    font-size: 35px;
  }
  body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field {
    font-size: 27px;
  }
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field.field--name-body {
  position: relative; 
  z-index: 2;
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field.field--name-body:after {
  font-size: 1rem;
  content: 'Esplora >';
  color:#000; 
  font-weight: bolder;
  padding: 25px 25px;
  width: calc(100% + 50px);
  margin: 0 -25px 0px;
  background: #E7E5E6;
  border-radius: 0 0 80px 0;
  display: block;
  position: relative;
  z-index: 10;
}
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .node-taxonomy-container {
  position: relative; 
  z-index: 1;;
  margin: -68px 0 0 0;
}

/* ESPERIENZE */
body.page-type-travel-item .main-wrapper {
  overflow: hidden;
}
body.page-type-travel-item .field--name-field-esperienze {
  background-color: #E7E7E7;
  width: 100vw;
  margin-left: calc(-100vw / 2 + 50%);
  padding: 0;
  overflow:hidden;
  position: relative;
}
body.page-type-travel-item .field--name-field-esperienze .swiper-button-prev:after, 
body.page-type-travel-item .field--name-field-esperienze .swiper-rtl .swiper-button-next:after,
body.page-type-travel-item .field--name-field-esperienze .swiper-button-next:after, 
body.page-type-travel-item .field--name-field-esperienze .swiper-rtl .swiper-button-prev:after {
  display: block!important;
  display: block!important;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
}

body.page-type-travel-item .field--name-field-esperienze .swiper-button-prev, 
body.page-type-travel-item .field--name-field-esperienze .swiper-rtl .swiper-button-next {
  left: 5%;
}
body.page-type-travel-item .field--name-field-esperienze .swiper-button-next, 
body.page-type-travel-item .field--name-field-esperienze .swiper-rtl .swiper-button-prev {
  right: 5%;
}

body.page-type-travel-item .field--name-field-esperienze .swiper-wrapper {
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide {
  height: unset!important;
  padding: 0;
  background: transparent; 
  align-items: center;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide.imgFound {
  align-items: flex-end;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  /* flex:100%; */
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph.imgFound {
  justify-content: flex-start;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container,
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container img.image-field {
  margin: 0;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div:not(.field--name-field-testo):not(.node-taxonomy-container) {
  /* width: 27%; */
  margin: 0 0 0 auto;
  padding-right: 2%;
  font-family: 'BebasKai', sans-serif;
  font-size: 3vw; 
  line-height: 0.8;
  color:#fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #fff;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div.field--name-field-testo {
  width: 100%;
  max-width: 1150px;
  margin: 0; 
  padding: 2.2rem 2% 1rem;
  font-family: 'Colaborate', sans-serif;
  font-weight: 100;
  line-height: 1.4;
  font-size: 18px;
  color: #070606;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph.imgFound > div.field--name-field-testo {
  width: 50%;
  max-width: unset;
  padding: 1.2rem 2% 0;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div.field--name-field-testo p strong {
  color: #000;
}

body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container {
  width: 38%;
}

@media (max-width: 768px) { 
  body.page-type-travel-item .field--name-field-esperienze {
    margin-top: 40px;
  }
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph {
    flex-direction: column;
    padding: 20px;
  }
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container, 
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div.field--name-field-testo,
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph.imgFound > div.field--name-field-testo {
    width: 100%;
  }
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li > div > div > .field-item {
    aspect-ratio: 13 / 9;
  }
}


body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms,
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li, 
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li > div, 
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li > div > div,
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li > div > div > .field-item {
  display: block; 
  width: 100%;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li > div > div > .field-item {
  aspect-ratio: 16 / 9;
}
body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph .node-taxonomy-container .taxonomy-terms > li > div > div > .field-item img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li {
  flex-shrink: 0;
  border-radius: 0;
  display: flex;
  transition: all 0.3s ease;
  margin: 0!important;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Righe dispari */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+1) {
  flex-basis: calc(40% - 0.2rem);
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+2) {
  flex-basis: calc(60% - 0.2rem);
}
/* Righe pari */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+3) {
  flex-basis: calc(60% - 0.2rem);
}
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+4) {
  flex-basis: calc(40% - 0.2rem);
}
/* Gestione ultimo elemento se dispari */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:last-child:nth-child(odd) {
  flex-basis: 100%;
}
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article {
  border-radius: 0; 
  box-shadow: none;
  margin: 0!important;
  padding: 0;
}



body.page-type-travel-item .field--name-field-inspiration {
    background-color: #E7E7E7;
    width: 100vw;
    margin-top: 100px;
    margin-left: calc(-100vw / 2 + 50%);
    margin-bottom: -250px;
    padding: 0;
    overflow: hidden;
    position: relative;
    padding: 100px 0 200px;
    border-radius: 250px 0 0 0; 
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms {
  max-width: 1150px;
  margin: auto;
}



@media (max-width: 768px) { 
  body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li {
    flex-basis: 100%!important;  
  }
  body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-title {
    font-size: 26px;
    line-height: 1.2;
  }
  body.page-type-travel-item .field--name-field-inspiration {
    padding: 50px 30px 200px;
    border-radius: 50px 0 0 0; 
  }
  body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser h2.node-title {
    font-size: 25px;
  }
}


body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .swiper-wrapper > li {
  position: relative;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .swiper-wrapper > li.swiper-slide {
  height: unset!important;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .swiper-wrapper > li:before {
  content: ""!important;
  display:block!important;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0 !important;
  width: 70px;
  height: 70px;
  background-color: #FF0000;
  border-radius: 0 0 0 100%;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser {
  box-shadow: none;
  background-color: #2A2A2A;
  color:#fff;
  border-radius: 0;
  padding: 85px 35px 35px 35px;
  margin: 0; 
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser h2, 
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser h2 a, 
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser h2 a span {
  line-height: 1.1;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser h2 a {
  color: #fff;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser .node-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser .node-content .field--type-image img {
  width: 100%; 
  height: auto; 
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser .node-content .node-links-container {
  margin-top: auto; 
}
body.page-type-travel-item .field--name-field-inspiration .taxonomy-terms .node-view-mode-teaser .node-content .links.inline a {
  color: #fff;
  font-size: 13px;
}  




body.page-type-travel-item button.field--name-readmore {
  margin: 30px auto 0; 
  font-size: 14px;
  display: block;
  padding: 12px 60px;
  border-radius: 40px 0 40px 0;
  background-color: #E6E4E4!important;
  color: #000!important;
  border:1px solid transparent!important;
  box-shadow: none;
  transition: all 0.3s ease-out!important;
}
body.page-type-travel-item button.field--name-readmore:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border:1px solid #fff!important;
}



body.page-type-hotel article.node-type-hotel .titolo_e_immagine {
  position: relative;
}
body.page-type-hotel article.node-type-hotel .titolo_e_immagine h1.node-title {
  position: absolute;
  bottom: 0; 
  right: 0;
  background-color: #f0f0f0 !important;
  border-top-left-radius: 200px;
  text-align: right; 
  margin: 0; 
}
body.page-type-hotel article.node-type-hotel .titolo_e_immagine h1.node-title span:not(.normal) {
  display: block;
  font-size: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 20px 0px 75px;
  position: relative;
  z-index: 2;
  font-weight: normal;
  font-family: sans-serif;
  font-weight: bold;

}

body.page-type-hotel article.node-type-hotel .titolo_e_immagine h1.node-title span.normal {
  font-size: 20px;
  text-transform: uppercase;
  position: relative;
  top: -10px;
}

body.page-type-hotel article.node-type-hotel .titolo_e_immagine img {
  margin: 0 0 0.4rem 0;
}
body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li {
  flex-shrink: 0;
  border-radius: 0;
  /* display: flex; */
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 0;
  margin: 0!important;
}
body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}
/* Righe dispari */
body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+1) {
  flex-basis: calc(40% - 0.2rem);
}

body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+2) {
  flex-basis: calc(60% - 0.2rem);
}
/* Righe pari */
body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+3) {
  flex-basis: calc(60% - 0.2rem);
}
body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+4) {
  flex-basis: calc(40% - 0.2rem);
}
/* Gestione ultimo elemento se dispari */
body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:last-child:nth-child(odd) {
  flex-basis: 100%;
}


body.page-type-trip article.node-type-trip .node-content .field--name-field-immagine {
  position: relative;
}
body.page-type-trip article.node-type-trip .node-content .field--name-field-immagine h1.node-title {
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: 0;
  background-color: #f0f0f0 !important;
  border-top-left-radius: 200px;
  text-align: right;
  margin: 0;
}
body.page-type-trip article.node-type-trip .node-content .field--name-field-immagine h1.node-title span {
  display: block;
  font-size: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 15px 15px 75px;
  position: relative;
  z-index: 2;
  font-weight: normal;
  font-family: sans-serif;
}
body.page-type-trip article.node-type-trip .node-content .field--name-field-immagine .taxonomy-terms * {
  width: 100%;
  margin: 0;
}
body.page-type-trip article.node-type-trip .node-content .field--name-field-immagine .taxonomy-terms li .field-item {
  aspect-ratio: 16 / 9;
}
body.page-type-trip article.node-type-trip .node-content .field--name-field-immagine .taxonomy-terms li .field-item img {
  object-fit: cover;
  width: 100%; 
  height: 100%;
}





body.type-taxonomy.vocabulary-esperienze .region-content {
  width: 100vw;
  margin-left: calc(-100vw / 2 + 50%);
  padding: 0;
  overflow: hidden;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze {
  background-color: #363636;
  position: relative;
  margin-bottom: 60px;
  padding-top: 40px;
  display: flex;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:before,
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:after {
  content:"";
  display: inline-block;
  width: calc(100vw / 2 - 1150px / 2)
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:before {
  background-color: #fbfafa;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu {
  display: flex; 
  list-style-type: none;
  width: 100%;
  max-width: 1150px;
  padding: 0;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li {
  background-color: #fbfafa;
  padding: 20px 0 2px;
  margin: 0;
  text-transform: uppercase;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li:first-of-type {
  padding-left: 10px;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li:last-of-type {
  border-radius: 0 60px 0 0;
  padding-right: 30px;
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li a:after {
  content: '|';
  display: inline-block; 
  margin:0 0 0 0;
  padding: 0 10px; 
}
body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li:last-of-type a:after {
  content:"";
  padding: 0 0px 0 10px;
}
body.type-taxonomy.vocabulary-esperienze .region-content .views-element-container {
  width: 100%;
  max-width: 1150px;  
  margin: auto;
  padding: 0!important;
}
@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze .region-content .views-element-container {
    padding: 0 20px!important;
  }

}
#block-tarapro-views-block-termine-descrizione-block-1 {
  display: none;
  padding: 0;
  width: 100%;
  margin: 0 auto;
  background: none;
  position: static;
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 -10px;
  padding: 0;
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row {
  flex-shrink: 0;
  border-radius: 0;
  display: flex;
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 1rem;
  margin: 0!important;
  max-width: unset;
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Righe dispari */
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+1) {
  flex-basis: calc(40% - 0.2rem);
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+2) {
  flex-basis: calc(60% - 0.2rem);
}

/* Righe pari */
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+3) {
  flex-basis: calc(60% - 0.2rem);
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+4) {
  flex-basis: calc(40% - 0.2rem);
}



body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+1) ul.taxonomy-terms > li > div > .field--name-field-media-image.field-item, 
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+4) ul.taxonomy-terms > li > div > .field--name-field-media-image.field-item {
  aspect-ratio: 5 / 3.402;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+2) ul.taxonomy-terms > li > div > .field--name-field-media-image.field-item,
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:nth-child(4n+3) ul.taxonomy-terms > li > div > .field--name-field-media-image.field-item {
  aspect-ratio: 5 / 2.2622;
}



/* Gestione ultimo elemento se dispari */
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:last-child:nth-child(odd) {
  flex-basis: 100%;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row:last-child:nth-child(odd) ul.taxonomy-terms > li > div > .field--name-field-media-image.field-item {
  aspect-ratio: 5 / 1.3504;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row ul.taxonomy-terms > li > div > .field--name-field-media-image img {
  height: 100%;
}


@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row ul.taxonomy-terms > li > div > .field--name-field-media-image  {
    aspect-ratio: 5 / 3!important;;
  }
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row ul.taxonomy-terms {
  display: block;
  margin: -17px -18px 0;
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > h2 {
  text-align: left;
  padding: 0;
  margin: 0; 
  height: unset;
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > h2:before {
  display: none;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > h2 .field-item {
  font-family: 'BebasKai', sans-serif;
  font-size: 30px;
  line-height: 1;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > .node-taxonomy-container {
  margin-bottom: 10px;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > .taxonomy-term-read-more {
  padding: 0;
  margin-top: 10px;
  font-family: 'Colaborate', sans-serif; 
  font-weight: bold;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > .taxonomy-term-read-more a:hover {
  text-decoration: underline;
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > .field--name-description {
  padding: 0;
  overflow: visible;
  height: unset;
  margin: 0;
  font-size: 16px;
  
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limita a 3 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row ul.taxonomy-terms > li > div > .field--name-field-media-image .field-item {
}
body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row ul.taxonomy-terms > li > div > .field--name-field-media-image .field-item img {
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze .block-content .view-content  .views-row {
    flex-basis: 100%!important;    
  }
}

body.page-type-ispirazioni .slider .region-slider {
  position: relative;
}
body.page-type-ispirazioni .slider .region-slider h1 {
  position: absolute;
  z-index: 20;
  color: #fff;
  bottom: 0;
  left:50%; 
  transform: translate(-50%, -50%);
  margin: 20px auto 0; 
  text-align: center;
  width: 100%; 
  max-width: 1150px;
}
body.page-type-ispirazioni .slider .region-slider .slider-image {
  aspect-ratio: 18/8.59;
  position: relative;
  z-index: 1;
}
body.page-type-ispirazioni .slider .region-slider .slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary {
  /* width: 70vw;
  margin-left: calc(-35vw + 50%); */
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva {
  padding: 50px 80px 40px;
  background-color: #f2f2f2;
  margin-bottom: 70px;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:before {
  content:'';
  display: block;
  height: 100%;
  width: 200px; 
  background-color: green;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:nth-child(odd) {
  text-align: left;
  border-radius: 0 0 200px 0;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:nth-child(even) {
  text-align: right;
  border-radius: 200px 0 0 0;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva h2 {
  color:#000;
}


body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li {
  flex-shrink: 0;
  border-radius: 0;
  display: flex;
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 0;
  margin: 0!important;
}

body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Righe dispari */
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+1) {
  flex-basis: calc(40% - 0.2rem);
}

body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+2) {
  flex-basis: calc(60% - 0.2rem);
}
/* Righe pari */
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+3) {
  flex-basis: calc(60% - 0.2rem);
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+4) {
  flex-basis: calc(40% - 0.2rem);
}
/* Gestione ultimo elemento se dispari */
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:last-child:nth-child(odd) {
  flex-basis: 100%;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li article {
  border-radius: 0; 
  box-shadow: none;
  margin: 0!important;
  padding: 0;
  width: 100%;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li .field--name-field-immagine ul.taxonomy-terms {
  display: block;
  width: 100%;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li article .node-content .node-title, 
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li article .node-content .field--type-text-with-summary {
  padding: 0 1rem;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li article .node-content h2 {
  font-family: 'BebasKai', sans-serif;
  font-size: 30px;;
  line-height: 1;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+1) .field--name-field-immagine ul.taxonomy-terms > li > a, 
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+4) .field--name-field-immagine ul.taxonomy-terms > li > a {
  aspect-ratio: 5 / 3.402;
  display: block;
}
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+2) .field--name-field-immagine ul.taxonomy-terms > li > a,
body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+3) .field--name-field-immagine ul.taxonomy-terms > li > a {
  aspect-ratio: 5 / 2.2622;
  display: block;
}

body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li:last-child:nth-child(odd) .field--name-field-immagine ul.taxonomy-terms > li > a {
  aspect-ratio: 5 / 1.3504;
  display: block;
}

body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li .field--name-field-immagine ul.taxonomy-terms > li > a img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content  > .field--name-field-travel-items > .taxonomy-terms > li .field--name-field-immagine ul.taxonomy-terms > li > a {
    aspect-ratio: 5 / 3!important;
    margin-bottom: 15px;
  }
}


.sliding-panel-icon {
  display: none;
}

  /* MOBILE GENERIC */
  @media (max-width: 768px) {
    .header-right {
      margin-left:auto; 
    }
    .site-branding img {
      max-height: 3.5rem;
      margin: 10px;
    }
    .mobile-menu span {
      background:#fff;
    }
    .mobile-menu.menu-icon-active {
      display: none;
    }
    .menu-wrap {
      max-width: unset;
    }
    .menu-wrap:before {
      content: "";
      display: block;
      width: 100vw;
      height: 100vh;
      z-index: -1;
      top: 0;
      left: -35%;
      position: absolute;
      background: rgba(0, 0, 0, 0);
      transition: all 0.3s ease-out;
    
    }
    .active-menu .menu-wrap:before {
      left: 0;
      background: rgba(0, 0, 0, 0.7);
    }
    .active-menu .menu-wrap {
      overflow: visible;
    }
    body.frontpage .main-wrapper {
      padding-bottom: 0;
    }
    body.frontpage .slider h1 {
      font-size: 27px;
      font-weight: normal !important;
    }
    body.frontpage .slider h3 {
      font-size: 26px;
    }
    body.frontpage .slider .layer1, 
    body.frontpage .slider .layer2,
    body.frontpage .slider .layer3, 
    body.frontpage .slider .layer4,
    body.frontpage .slider .layer5 {
      transition-delay: 0s;
    }

    .slider-text-container {
      height: 100%;
    }
    #block-tarapro-homelasciatiispirare,
    #block-tarapro-hometimostreremoilmondosottounanuovaluce {
      width: 100%;
      margin: auto;
    }
    #block-tarapro-homelasciatiispirare .block-content {
      flex-direction: column;
    }

    #block-tarapro-homelasciatiispirare .field--name-field-image,
    #block-tarapro-homelasciatiispirare .field--name-body {
      width: 100%;
    }
    #block-tarapro-homelasciatiispirare .field--name-body, 
    #block-tarapro-homelasciatiispirare .field--name-body>p, #block-tarapro-homelasciatiispirare .field--name-body>h2, #block-tarapro-homelasciatiispirare .field--name-body>h3 {
      padding: 0;
      height: unset;
    }
    #block-tarapro-homelasciatiispirare .field--name-body {
      padding: 40px 20px 20px;
      background:rgba(26,26,26,0.7);
    }
    #block-tarapro-homelasciatiispirare .field--name-body:after {
      right: 15px;
    }
     #block-tarapro-homelasciatiispirare .field--name-body>h2 {
      line-height: 1;
      margin-bottom: 5px!important;
      font-size: 2rem;
    }
    #block-tarapro-homelasciatiispirare .field--name-body>h3 {
      margin-bottom: 10px!important;  
    }
    #block-tarapro-homelasciatiispirare .field--name-body>p {
      padding-left: 100px;
      margin-bottom: 50px!important;
    }
    #block-tarapro-hometimostreremoilmondosottounanuovaluce {
      padding: 0;
      border-radius: 0 0 50% 0; 
    }
    #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body {
      padding: 25px 15px 30px;
    }
    #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body h2 {
      line-height: 1.2;
      margin-bottom: 22px;
      font-size: 1.6rem; 
      padding-right: 10px;
      font-weight: 500;
    }
    #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body h3 {
      line-height: 1.2;
      margin-bottom: 18px;
      font-weight: 500;
    }
    #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body p {
      padding-right: 0px;
      margin-bottom: 50px!important
    }

    #block-tarapro-hometimostreremoilmondosottounanuovaluce .block-content .field-item:before {
      content: '';
      display: block;
      width: 100%;
      height: 105%;
      background: transparent;
      float: right;
      shape-outside: polygon(100% 0px, 100% 100%, -2% 100%, 52% 94%, 81% 80%, 92% 63%, 99% 4%, 80% 0%);
      position: relative;
      right: -20px;
    }

    #block-tarapro-homenewsletter {
      width: 100%;
      padding: 0;
      margin: 50px auto 0;
      border-radius: 40% 0 0 0;
    }
    #block-tarapro-homenewsletter:after {
      top: -20px; 
      right: 8px;
      width: 40px; 
      height: 40px;
    }
    #block-tarapro-homenewsletter .field--name-body {
      padding: 25px 15px 30px;
    }
    #block-tarapro-homenewsletter .field--name-body h2:before {
      content: '';
      display: block;
      width: 100%;
      height: 150px;
      background: transparent;
      float: left;
      shape-outside: polygon(33% -20px, 13% 14%, 0 100%, 0 -20px);
      position: relative;
      left: -20px;
    }
    #block-tarapro-homenewsletter .field--name-body h2 {
      margin: 0 auto;
      padding: 0;
    }
    #block-tarapro-homenewsletter .field--name-body #customForm {
      display: block;
      position: static;
      margin-top: 0;
    }
    #block-tarapro-homenewsletter .field--name-body #customForm #zcampaignOptinForm .SIGNUP_FLD > div:first-of-type {
      display: none!important;
    }
    #block-tarapro-homenewsletter .field--name-body #customForm #zcampaignOptinForm .SIGNUP_FLD {
      width: 100%!important; 
      margin: 0 0 10px 0!important;
      padding: 0!important;
    }
    #block-tarapro-homenewsletter .field--name-body #customForm #zcampaignOptinForm .SIGNUP_FLD input {
      width: 100%!important;
    }
    #block-tarapro-googlereviewscontentblock, 
    #block-tarapro-homememberof {
      width: 100%; 
      margin: 0 auto 0 0;
      border:none;
      padding: 0 15px 30px;
    }
    #block-tarapro-homememberof {
      padding-bottom: 180px;
    }
    #block-tarapro-homememberof .field--name-field-images img {
      margin: -30px 0;
    }
    body.page-type-ispirazioni .slider .region-slider h1 {
      transform: translate(-50%, -40%);
      font-size: 25px;
      padding: 0 15px;
    }
    body.page-type-ispirazioni .page-content .node-taxonomy-container.field--name-field-immagine.field--type-entity-reference.field--label-hidden {
      margin: 0; 
    }
    body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:nth-child(odd) {
      padding: 35px 80px 40px 30px;
      margin-bottom: 30px;
    }
    body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:nth-child(even) {
      padding: 55px 30px 30px 80px;
      margin-bottom: 30px;
    }
    body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva h2 {
      font-size: 22px;
      line-height: 1.3;
    }
    body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva p {
      line-height: 1.5;
    }
    body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--name-field-travel-items > .taxonomy-terms > li {
      flex-basis: 100%!important;
    }




    body.type-taxonomy.vocabulary-albero section.slider, 
    body.type-taxonomy.vocabulary-albero section.slider .slider-full {
      overflow:visible!important;
      top:0!important;
      transform: none!important;
    }
    body.type-taxonomy.vocabulary-albero section.slider .slider-full #tns1-item0 {
      top:0!important;
      left:0!important;
      transform: none!important;
    }
    body.type-taxonomy.vocabulary-albero .main-wrapper {
      z-index: 0;
    }
    body.type-taxonomy.vocabulary-albero section.slider .slider-full .slider-image {
      /* position: absolute; */
    }
    body.type-taxonomy.vocabulary-albero .slider-text-container * {
      transition-delay: 0s!important;
      transform: none!important;
    }
    body.type-taxonomy.vocabulary-albero .slider-text-container {
      position: unset; 
    }
    body.type-taxonomy.vocabulary-albero .slider-text-container .slider-text {
      gap: 0;
    }
    body.type-taxonomy.vocabulary-albero .slider-text-container h1.layer2 {
      font-size: 25px; 
      text-align: left;
      padding: 10px 18px; 
      margin: 0!important; 
      line-height: 1;
      background: rgba(0,0,0,0.3);
    }
    body.type-taxonomy.vocabulary-albero .slider-text-container p.layer4 {
      padding: 18px 20px 20px!important;
      margin: 0 auto;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content #block-tarapro-views-block-termini-figli-block-1 {
      padding: 0 15px;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content #block-tarapro-views-block-termini-figli-block-1 .view-termini-figli h2 {
      border-top-left-radius: 250px;
      background-color: #efefef;
      padding: 25px 20px 0px;
      height: unset;
      line-height: 1.2;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content #block-tarapro-views-block-termini-figli-block-1 .view-termini-figli h2::before {
      display:none;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content #block-tarapro-views-block-termini-figli-block-1 .view-termini-figli .field--name-description {
      height: unset;
      margin: 0; 
      padding: 15px 20px;
      background-color: #efefef;
      z-index: 10;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content .view-display-id-page_1 .views-row .node-type-travel-item .node-title {
      bottom: 0; 
      margin-bottom: 0;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content .view-display-id-page_1 .views-row .node-type-travel-item .node-title span {
      font-size: 20px;
      letter-spacing: 0;
      line-height: 1.2;
    }
    body.type-taxonomy.vocabulary-albero .block-region.region-content .view-display-id-page_1 .views-row .node-type-travel-item .node-content .field--name-field-main-image img {
      display: block;
      margin: 0 auto; 
    }
    

  }

/* End Raf edit */

body:not(.frontpage) h1, body:not(.frontpage) h2, body:not(.frontpage) h3, body:not(.frontpage) h4, body:not(.frontpage) h5, body:not(.frontpage) h6 {
  color: #000;
}

body:not(.frontpage) b, body:not(.frontpage) strong {
  color: inherit;
  font-weight: 700;
}

.path-taxonomy .node-type-travel-item .field--name-body {
  display: none!important;
}

.titolo_e_immagine {
    position: relative;
    width: 100%;
    height: 100%; /* or whatever height you want */
    overflow: hidden;
}

.titolo_e_immagine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* optional: adjust focal point */
}

.node-type-hotel .node-title .normal {
  display: inline;
}

.node-type-hotel .node-title .normal:last-child {
  padding-right: 19px;
}

/* Sposta freccia scroll-to-top al centro per evitare sovrapposizione con Zoho widget */
.scrolltop {
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Nascondi node-content degli hotel nella visualizzazione travel-item */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-content {
  display: none;
}

/* Aggiungi padding al node-title degli hotel */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-title {
  padding-top: 10px;
  padding-left: 15px;
}

/* ===== FIX PAGINA BOTSWANA (NODE/7) ===== */

/* 1. Titolo trip più piccolo (es: "BOTSWANA – LUSSO E AVVENTURA IN FAMIGLIA") */
/* Titolo trip - dimensioni diverse per full e teaser */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-full .node-title {
  font-size: 1.8rem !important;
}

body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-full .node-title span {
  font-size: 1.8rem !important;
}

body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-title {
  font-size: 1.5rem !important;
}

body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-title span {
  font-size: 1.5rem !important;
  line-height: 1.3;
}

/* 2. Testo sotto il titolo più piccolo e troncamento coerente */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-content .field--name-body {
  font-size: 0.95rem;
  line-height: 1.5;
}

body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-content .field--name-body p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

/* 3. Bianco sotto masonry degli hotel esteso in altezza */
body.page-type-travel-item .field--name-field-hotels {
  background-color: #fff;
  padding-bottom: 100px;
  min-height: 600px;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms {
  min-height: 500px;
  padding-bottom: 50px;
}

/* 4. Nascondi hotel senza immagini */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:not(:has(img)) {
  display: none !important;
}

/* 5. Smooth scroll per anchor menu */
html {
  scroll-behavior: smooth;
}


/* Offset scroll per anchor sections - compensazione menu fisso */
#panoramica,
#itinerari,
#avventure,
#strutture-ricettive,
#idee-di-viaggio {
  scroll-margin-top: 100px;
}

/* Nascondi pulsante "scopri di più" se non c'è contenuto aggiuntivo */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-links {
  display: none;
}

/* Se il node ha il flag readmore, mostra il link */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node--readmore .node-links {
  display: block;
}

/* Nascondi anche i field di tipo readmore se vuoti */
body.page-type-travel-item .field--name-field-trip .field--type-readmore:empty {
  display: none !important;
}

/* Nascondi completamente il readmore degli hotel nella pagina travel-item */
body.page-type-travel-item .field--name-field-hotels-readmore,
body.page-type-travel-item .field--name-field-hotels .field--name-readmore {
  display: none !important;
}

/* Fix immagini blog che lasciano spazio sotto */
body.page-type-travel-item .field--name-field-inspiration .field--name-field-image {
  margin-bottom: 0 !important;
  line-height: 0;
}

body.page-type-travel-item .field--name-field-inspiration .field--name-field-image img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

body.page-type-travel-item .field--name-field-inspiration .node-type-article {
  overflow: hidden;
}

/* Panoramica necessita di più scroll offset */
#panoramica {
  scroll-margin-top: 300px !important;
}

/* Fix dimensione titolo trip in teaser mode */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-title {
  font-size: 1.5rem !important;
}

body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-title span {
  font-size: 1.5rem !important;
  line-height: 1.3;
}

/* Fix testo trip più piccolo e troncamento corretto */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .field--name-body {
  font-size: 0.9rem !important;
  line-height: 1.4;
}

body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .field--name-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* FIX 1: Panoramica scroll ancora più in alto */
#panoramica {
  scroll-margin-top: 300px !important;
}

/* FIX 2: Testo trip teaser - forza applicazione */
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-content .field--name-body .field-item,
body.page-type-travel-item .field--name-field-trip .node-type-trip.node-view-mode-teaser .node-content .field--name-body .field-item p {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

/* FIX 3: Immagini blog - rimuovi completamente lo spazio sotto */
body.page-type-travel-item .field--name-field-inspiration .field--name-field-image,
body.page-type-travel-item .field--name-field-inspiration .field--type-image {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  display: block !important;
}

body.page-type-travel-item .field--name-field-inspiration .field--name-field-image .field-item,
body.page-type-travel-item .field--name-field-inspiration .field--type-image .field-item {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  display: block !important;
}

body.page-type-travel-item .field--name-field-inspiration .field--name-field-image img,
body.page-type-travel-item .field--name-field-inspiration .field--type-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: bottom !important;
}

body.page-type-travel-item .field--name-field-inspiration .field--name-field-image a,
body.page-type-travel-item .field--name-field-inspiration .field--type-image a {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Aggiungi flex: auto alle immagini blog */
body.page-type-travel-item .field--name-field-inspiration .field--name-field-image,
body.page-type-travel-item .field--name-field-inspiration .field--type-image {
  flex: inherit !important;
}

/* Fix itinerari field - font size e troncamento */
body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field {
  font-size: 25px !important;
}

body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li .node-view-mode-teaser .node-content .field p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

/* Fix scroll offset con pseudo-elemento per panoramica */
#panoramica::before {
  content: "";
  display: block;
  height: 300px;
  margin-top: -300px;
  visibility: hidden;
  pointer-events: none;
}

#itinerari::before,
#avventure::before,
#strutture-ricettive::before,
#idee-di-viaggio::before {
  content: "";
  display: block;
  height: 100px;
  margin-top: -100px;
  visibility: hidden;
  pointer-events: none;
}

/* Rimuovi padding da p.layer4 per evitare sbordi */
body.inner-page .slider-text p.layer4 {
  padding: 0 !important;
}

/* Aggiungi padding allo span interno */
body.inner-page .slider-text p.layer4 span {
  display: inline-block;
  padding: 15px 20px !important;
}

/* Fix layer4 nav anchor menu padding */
body.inner-page .slider-text nav.layer4 {
  padding: 0 !important;
}

body.inner-page .slider-text nav.layer4 .anchor-menu-list {
  padding: 15px 20px !important;
  display: inline-block;
}

body.inner-page .slider-text nav.layer4 .anchor-menu-link {
  padding: 15px 20px !important;
  display: inline-block;
}

/* Fix padding anchor menu links */
body.inner-page .slider-text nav.layer4 .anchor-menu-link {
  padding: 0 !important;
}

body.inner-page .slider-text nav.layer4 .anchor-menu-link span {
  display: inline-block;
  padding: 15px 20px !important;
}

/* Layer3 span padding */
body.inner-page .slider-text p.layer3 {
  padding: 0 !important;
}

}

/* Anchor menu positioning */
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
  position: relative;
  top: 15px;
}

/* Layer4 span padding - only for taxonomy pages */
body.type-taxonomy.inner-page .slider-text p.layer4 span {
  display: inline-block;
  padding: 10px;
}

/* Africa page redesign - Banner styling matching travel-item pages */
body.type-taxonomy.vocabulary-albero.depth-3 .slider-text-container {
  position: relative !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
}

body.type-taxonomy.vocabulary-albero.depth-3 .slider-text-container .container {
  padding: 0 !important;
  max-width: 100% !important;
}

body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text {
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 40px !important;
}

body.type-taxonomy.vocabulary-albero.depth-3 .slider-text-container .slider-text h1.layer2 {
  position: absolute !important;
  top: -100% !important;
  font-family: 'BebasKai', sans-serif !important;
  font-size: 80px !important;
  letter-spacing: 4px !important;
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text p.layer3 {
  /* order: 3 !important; */
  /* display: -webkit-box !important; */
  /* -webkit-line-clamp: 2 !important; */
  /* -webkit-box-orient: vertical !important; */
  /* overflow: hidden !important; */
  /* text-overflow: ellipsis !important; */
  /* margin-left: 10% !important; */
  /* max-width: 800px !important; */
  /* color: white !important; */
  /* font-size: 16px !important; */
  /* line-height: 1.6 !important; */
  /* margin-top: 20px !important; */
  /* padding: 0 !important; */
}

/* Generic p styling for slider text */
body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text p {
  order: 3;
  transform: translateY(40px);
  text-transform: none;
  font-size: 16px;
  line-height: 1.2;
  padding-bottom: 50px !important;
}

/* Red triangle between h1 and p - using pseudo-element */
body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text p.layer3:before {
  content: "" !important;
  position: absolute !important;
  margin-top: -80px !important;
  margin-left: 0 !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #FF0000 !important;
  border-radius: 0 0 100% 0 !important;
  z-index: 1 !important;
}

/* Background styling for taxonomy banner block */
body.type-taxonomy.depth-3.path-taxonomy #block-tarapro-taxonomytermbanner .block-content,
body.type-taxonomy.depth-3.path-taxonomy #block-tarapro-destinazionislider .block-content {
  background: #292929;
}

/* Remove overlay background from slider image */
body.type-taxonomy.depth-3.path-taxonomy .slider-image:before {
  background: none;
}

/* Layer transition and color styling for taxonomy pages */
body.page-type-travel-item .slider-text-container .slider-text .layer1,
body.page-type-travel-item .slider-text-container .slider-text .layer2,
body.page-type-travel-item .slider-text-container .slider-text .layer3,
body.page-type-travel-item .slider-text-container .slider-text .layer4,
body.page-type-travel-item .slider-text-container .slider-text .layer5,
body.type-taxonomy.depth-3.path-taxonomy p.layer3 {
  transition-delay: 0.3s;
  transition-property: opacity;
  color: #ffffff;
}


/* Africa page redesign - 2 column grid for destinations */
body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .view-content {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px !important;
  margin-top: 40px !important;
}

body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .views-row {
  margin: 0 !important;
}

body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item {
  position: relative !important;
  overflow: hidden !important;
  min-height: 400px !important;
}

/* Hide all node content fields except main image */
body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .node-content > * {
  display: none !important;
}

/* Show only main image */
body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .node-content .field--name-field-main-image {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .field--name-field-main-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .node-title {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 10 !important;
  background: #f2f2f2 !important;
  padding: 15px 25px !important;
  margin: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 100px !important;
  width: auto !important;
  max-width: 80% !important;
  height: 90px !important;
  min-height: 0 !important;
  max-height: none !important;
  display: inline-block !important;
  text-align: left !important;
  line-height: 1.2 !important;
  font-size: inherit !important;
}

body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .node-title a {
  color: #000 !important;
  text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .view-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item {
    min-height: 300px !important;
  }
}

@media (max-width: 480px) {
  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .node-title {
    max-width: 90% !important;
    font-size: 0.9rem !important;
    height: auto !important;
    min-height: 60px !important;
  }
}

/* ===================================
   SLIDER CSS FOR PAGE CONTENT TYPE
   =================================== */

/* Banner background */
body.page-type-page:not(.frontpage) #block-tarapro-taxonomytermbanner .block-content {
    background: #292929;
}

/* Slider text container */
body.page-type-page:not(.frontpage) .slider-text-container {
    position: relative !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    margin-top: 190px !important;
}

body.page-type-page:not(.frontpage) .slider-text-container .container {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Slider text styling */
body.page-type-page:not(.frontpage) .slider-text-container .slider-text {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 40px 20px !important;
    padding-bottom: 40px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
}

/* H1 Title (layer2) */
body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
    position: absolute;
    top: -100%;
    font-family: 'BebasKai', sans-serif;
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-shadow: none !important;
}

/* Subtitle text (layer3) */
body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3 {
    position: relative;
    color: white;
    font-size: 16px;
    margin: 0;
    padding: 20px 0 20px 80px;
    background-color: transparent;
    text-shadow: none !important;
    z-index: 2;
}

/* Red curved shape before subtitle */
body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3:before {
    content: "" !important;
    position: absolute !important;
    margin-top: -80px !important;
    margin-left: 0 !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #FF0000 !important;
    border-radius: 0 0 100% 0 !important;
    z-index: 1 !important;
}

/* Slider image */
body.page-type-page:not(.frontpage) .slider-image {
    height: 650px !important;
    overflow: hidden;
}

body.page-type-page:not(.frontpage) .slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
        font-size: 50px;
    }
    
    body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3 {
        font-size: 14px;
        padding-left: 70px;
    }
    
    body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3:before {
        width: 50px !important;
        height: 50px !important;
        margin-top: -70px !important;
    }
}

/* Hide slider fields from page content type display */
body.page-type-page:not(.frontpage) .field--name-field-slider-image,
body.page-type-page:not(.frontpage) .field--name-field-slider-text {
  display: none !important;
}

/* Field extended - white background full width, text stays boxed */
body.page-type-page:not(.frontpage) .field--name-field-extended {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  background-color: #ffffff !important;
  padding: 60px 0 !important;
  position: relative;
  text-align: center;
}

body.page-type-page:not(.frontpage) .field--name-field-extended .field-item {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Paragraph and headings boxed and centered */
body.page-type-page:not(.frontpage) .field--name-field-extended p,
body.page-type-page:not(.frontpage) .field--name-field-extended h1,
body.page-type-page:not(.frontpage) .field--name-field-extended h2,
body.page-type-page:not(.frontpage) .field--name-field-extended h3 {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

/* All headings uppercase and bold */
body.page-type-page:not(.frontpage) .field--name-field-extended h1,
body.page-type-page:not(.frontpage) .field--name-field-extended h2,
body.page-type-page:not(.frontpage) .field--name-field-extended h3,
body.page-type-page:not(.frontpage) .field--name-field-extended h4,
body.page-type-page:not(.frontpage) .field--name-field-extended h5,
body.page-type-page:not(.frontpage) .field--name-field-extended h6 {
  text-transform: uppercase !important;
  font-weight: bold !important;
}

/* Strong tags red color */
body.page-type-page:not(.frontpage) .field--name-field-extended strong {
  color: #ff0000 !important;
}

/* ===================================
   EVENTI PAGE (node/1821) STYLING
   =================================== */

/* Title field (COME FUNZIONA?) - Left aligned, bigger, uppercase, bold */
body.page-type-page:not(.frontpage) .field--name-field-title {
  text-align: left;
  margin: 60px auto 30px;
  padding: 0 15px;
  max-width: 1300px;
  font-size: 42px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Text field below title - Left aligned, wider */
body.page-type-page:not(.frontpage) .field--name-field-text {
  text-align: left;
  max-width: 1300px;
  margin: 0 auto 60px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.6;
}

/* Boxes container */
body.page-type-page:not(.frontpage) .field--name-field-boxes {
  display: flex;
  gap: 30px;
  margin: 60px auto;
  padding: 0 15px;
  max-width: 1170px;
  flex-wrap: wrap;
}

body.page-type-page:not(.frontpage) .field--name-field-boxes .field-item {
  flex: 1;
  min-width: 300px;
}

/* Individual box styling */
body.page-type-page:not(.frontpage) .paragraph--type--ispirazioni-boxes {
  background-color: #262626;
  padding: 40px 30px;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

/* Red corner on top right */
body.page-type-page:not(.frontpage) .paragraph--type--ispirazioni-boxes:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-color: #FF0000;
  border-radius: 0 0 0 100%;
}

/* Box title */
body.page-type-page:not(.frontpage) .paragraph--type--ispirazioni-boxes .field--name-field-titolo {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Box text */
body.page-type-page:not(.frontpage) .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

/* "vedi di più >>>" link in boxes */
body.page-type-page:not(.frontpage) .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes a {
  color: #ffffff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-type-page:not(.frontpage) .field--name-field-boxes {
    flex-direction: column;
  }
  
  body.page-type-page:not(.frontpage) .field--name-field-boxes .field-item {
    min-width: 100%;
  }
  
  body.page-type-page:not(.frontpage) .field--name-field-title {
    font-size: 32px;
  }
}

/* Hide field-boxes when empty or contains only empty paragraphs */
body.page-type-page:not(.frontpage) .field--name-field-boxes:empty {
  display: none !important;
}

/* Hide field-boxes if all paragraph children are empty */
body.page-type-page:not(.frontpage) .field--name-field-boxes .paragraph:not(:has(.field--name-field-titolo)),
body.page-type-page:not(.frontpage) .field--name-field-boxes .paragraph:not(:has(.field--name-field-testo-boxes)) {
  display: none !important;
}

/* Hide the entire field-boxes if it only contains empty items */
body.page-type-page:not(.frontpage) .field--name-field-boxes:has(.field-item:empty) {
  display: none !important;
}

/* ===================================
   ZOHO FORM STYLING (node/1822)
   =================================== */

/* Container for external script field - gray background, full width */
body.page-type-page:not(.frontpage) .field--name-field-external-script {
  background-color: #f5f5f5;
  padding: 60px 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

/* Zoho form container - no border, full width background */
#crmWebToEntityForm,
#formDiv {
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Form content wrapper - boxed */
#crmWebToEntityForm > *,
#formDiv > * {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Form title styling */
#crmWebToEntityForm h2,
#formDiv h2,
.formheading {
  font-size: 28px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  color: #000000 !important;
}

/* Form rows - 2 columns layout */
#crmWebToEntityForm .zcwf_row,
#formDiv .zcwf_row {
  display: flex !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
}

/* Form columns - 50% width each */
#crmWebToEntityForm .zcwf_col_fld,
#formDiv .zcwf_col_fld {
  flex: 1 !important;
  min-width: 45% !important;
}

/* Full width fields (textarea) */
#crmWebToEntityForm .zcwf_col_fld.zcwf_col_fld_sgt,
#formDiv .zcwf_col_fld.zcwf_col_fld_sgt {
  flex: 1 1 100% !important;
  min-width: 100% !important;
}

/* Input fields styling */
#crmWebToEntityForm input[type="text"],
#crmWebToEntityForm input[type="email"],
#crmWebToEntityForm textarea,
#formDiv input[type="text"],
#formDiv input[type="email"],
#formDiv textarea {
  width: 100% !important;
  padding: 12px 15px !important;
  border: 1px solid #cccccc !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  color: #333333 !important;
  box-sizing: border-box !important;
}

/* Labels */
#crmWebToEntityForm .zcwf_col_lab,
#formDiv .zcwf_col_lab {
  font-size: 12px !important;
  text-transform: uppercase !important;
  font-weight: normal !important;
  color: #666666 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

/* Textarea specific */
#crmWebToEntityForm textarea,
#formDiv textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* Submit button */
#crmWebToEntityForm input[type="submit"],
#formDiv input[type="submit"],
.formsubmit {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 15px 40px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  margin-top: 20px !important;
  width: auto !important;
}

#crmWebToEntityForm input[type="submit"]:hover,
#formDiv input[type="submit"]:hover {
  background-color: #333333 !important;
}

/* Red text "OGNI VIAGGIO COMINCIA..." */
.formsubmit-text,
#crmWebToEntityForm .form-footer-text,
#formDiv .form-footer-text {
  color: #ff0000 !important;
  font-size: 16px !important;
  font-weight: bold !important;
  text-align: center !important;
  margin: 30px 0 !important;
  text-transform: uppercase !important;
}

/* Remove asterisks */
#crmWebToEntityForm .zcwf_asterisk,
#formDiv .zcwf_asterisk {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  #crmWebToEntityForm .zcwf_row,
  #formDiv .zcwf_row {
    flex-direction: column !important;
  }
  
  #crmWebToEntityForm .zcwf_col_fld,
  #formDiv .zcwf_col_fld {
    min-width: 100% !important;
  }
}

/* ===================================
   ZOHO FORM BUTTONS - FINAL FIX
   =================================== */

/* All buttons - uniform base styling */
#crmWebToEntityForm input[type="submit"],
#crmWebToEntityForm input[type="reset"],
#formDiv input[type="submit"],
#formDiv input[type="reset"],
.zcwf_button,
#formsubmit {
  border: none !important;
  border-radius: 0 !important;
  padding: 15px 40px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  margin: 10px 5px 0px 0px !important;
  width: auto !important;
  display: inline-block !important;
  transition: background-color 0.3s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  /* Fix per annullare stili Zoho */
  background-image: none !important;
  text-overflow: clip !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Submit button (Conferma) - RED */
#crmWebToEntityForm input[type="submit"],
#formDiv input[type="submit"],
#formsubmit,
input.zcwf_button[type="submit"] {
  background: #ff0000 !important;
  background-color: #ff0000 !important;
  background-image: none !important;
  color: #ffffff !important;
}

#crmWebToEntityForm input[type="submit"]:hover,
#formDiv input[type="submit"]:hover,
#formsubmit:hover {
  background: #cc0000 !important;
  background-color: #cc0000 !important;
  background-image: none !important;
}

/* Reset button (Ripristina) - BLACK */
#crmWebToEntityForm input[type="reset"],
#formDiv input[type="reset"],
input.zcwf_button[type="reset"] {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff !important;
}

#crmWebToEntityForm input[type="reset"]:hover,
#formDiv input[type="reset"]:hover {
  background: #333333 !important;
  background-color: #333333 !important;
  background-image: none !important;
}

/* Ensure both buttons are the same size */
#crmWebToEntityForm .zcwf_col_fld input[type="submit"],
#crmWebToEntityForm .zcwf_col_fld input[type="reset"],
#formDiv .zcwf_col_fld input[type="submit"],
#formDiv .zcwf_col_fld input[type="reset"] {
  min-width: 150px !important;
  height: auto !important;
}

/* Button container alignment - LEFT */
#crmWebToEntityForm .zcwf_col_fld,
#formDiv .zcwf_col_fld {
  text-align: left !important;
}

/* Hide zcwf_title */
.zcwf_title,
#crmWebToEntityForm .zcwf_title,
#formDiv .zcwf_title {
  display: none !important;
}

#crmWebToEntityForm select,
#formDiv select {
  width: 100% !important;
  padding: 12px 15px !important;
  border: 1px solid #cccccc !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  color: #333333 !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: 1.4 !important;
}

/* Hide labels (moved to placeholders) */
#crmWebToEntityForm .zcwf_col_lab,
#formDiv .zcwf_col_lab,
#crmWebToEntityForm label.moved-to-placeholder,
#formDiv label.moved-to-placeholder {
  display: none !important;
}

/* Make columns full width without labels */
#crmWebToEntityForm .zcwf_col_fld,
#formDiv .zcwf_col_fld {
  flex: 1 !important;
  min-width: 45% !important;
  max-width: 100% !important;
}

/* Full width fields still 100% */
#crmWebToEntityForm .zcwf_col_fld.zcwf_col_fld_sgt,
#formDiv .zcwf_col_fld.zcwf_col_fld_sgt {
  flex: 1 1 100% !important;
  min-width: 100% !important;
}

/* Placeholder styling */
#crmWebToEntityForm input::placeholder,
#crmWebToEntityForm textarea::placeholder,
#crmWebToEntityForm select::placeholder,
#formDiv input::placeholder,
#formDiv textarea::placeholder,
#formDiv select::placeholder {
  color: #999999 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
}

#crmWebToEntityForm select option:disabled,
#formDiv select option:disabled {
  color: #999999 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}

#crmWebToEntityForm select,
#formDiv select {
  color: #333333 !important;
}

#crmWebToEntityForm select:invalid,
#formDiv select:invalid {
  color: #999999 !important;
}

/* Select placeholder styling - make first option gray */
#crmWebToEntityForm select,
#formDiv select {
  width: 100% !important;
  padding: 12px 15px !important;
  border: 1px solid #cccccc !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  color: #999999 !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: 1.4 !important;
}

#crmWebToEntityForm select:not(:invalid),
#formDiv select:not(:invalid) {
  color: #333333 !important;
}

#crmWebToEntityForm select.has-value,
#formDiv select.has-value {
  color: #333333 !important;
}

#crmWebToEntityForm select option:disabled,
#formDiv select option:disabled {
  color: #999999 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}

#crmWebToEntityForm select option:not(:disabled),
#formDiv select option:not(:disabled) {
  color: #333333 !important;
}

/* Select styling - remove default, add custom arrow */
#crmWebToEntityForm select,
#formDiv select {
  width: 100% !important;
  padding: 12px 40px 12px 15px !important;
  border: 1px solid #cccccc !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  color: #999999 !important;
  box-sizing: border-box !important;
  height: auto !important;
  line-height: 1.4 !important;
  /* Remove default arrow */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  /* Add custom arrow */
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"%3E%3Cpath fill="%23333" d="M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z"/%3E%3C/svg%3E') !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 12px !important;
}

/* When option is selected - dark text */
#crmWebToEntityForm select option:checked,
#formDiv select option:checked {
  color: #333333 !important;
}

/* Placeholder option (disabled and empty value) - gray */
#crmWebToEntityForm select option[disabled],
#formDiv select option[disabled],
#crmWebToEntityForm select option[value=""],
#formDiv select option[value=""] {
  color: #999999 !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}

/* Regular options - dark */
#crmWebToEntityForm select option:not([disabled]):not([value=""]),
#formDiv select option:not([disabled]):not([value=""]) {
  color: #333333 !important;
}

/* Focus state */
#crmWebToEntityForm select:focus,
#formDiv select:focus {
  outline: none !important;
  border-color: #999999 !important;
}

/* Isolate page slider rules - only for NON-homepage pages */
body.page-type-page:not(.frontpage) .slider-text-container {
  position: relative !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
  margin-top: 190px !important;
}

body.page-type-page:not(.frontpage) .slider-text-container .container {
  padding: 0 !important;
  max-width: 100% !important;
}

body.page-type-page:not(.frontpage) .slider-text-container .slider-text {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 40px 20px !important;
  padding-bottom: 40px !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
}

body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
  position: absolute;
  top: -100%;
  font-family: 'BebasKai', sans-serif;
  font-size: 80px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: white;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-shadow: none !important;
}

body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3 {
  position: relative;
  color: white;
  font-size: 16px;
  margin: 0;
  padding: 20px 0 20px 80px;
  background-color: transparent;
  text-shadow: none !important;
  z-index: 2;
}

body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3:before {
  content: "" !important;
  position: absolute !important;
  margin-top: -80px !important;
  margin-left: 0 !important;
  width: 60px !important;
  height: 60px !important;
  background-color: #FF0000 !important;
  border-radius: 0 0 100% 0 !important;
  z-index: 1 !important;
}

body.page-type-page:not(.frontpage) .slider-image {
  height: 650px !important;
  overflow: hidden;
}

body.page-type-page:not(.frontpage) .slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
    font-size: 50px;
  }
  
  body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3 {
    font-size: 14px;
    padding-left: 70px;
  }
  
  body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3:before {
    width: 50px !important;
    height: 50px !important;
    margin-top: -70px !important;
  }
}

/* Keep homepage slider normal */
body.frontpage .slider,
body.frontpage .slider-full {
  height: auto !important;
}

body.frontpage .slider-text-container,
body.frontpage .slider-text {
  position: relative !important;
}

/* Homepage slider - absolute positioning for text */
body.frontpage .slider-text-container,
body.frontpage .slider-text {
  position: absolute !important;
}

body.frontpage .slider-text-container {
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
}

/* Layer4 span styling for taxonomy pages */
body.type-taxonomy.inner-page .slider-text p.layer4 span {
  background: transparent;
}

body.type-taxonomy.depth-3.path-taxonomy #block-tarapro-destinazionislider p.layer4 span {
  padding: 0px !important;
}

body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text p {
  background: transparent;
}

/* ===================================
   ISPIRAZIONI PAGE TYPE - SAME AS PAGE TYPE
   =================================== */

/* Hide slider fields in content for ispirazioni pages */
body.page-type-ispirazioni .field--name-field-slider-image,
body.page-type-ispirazioni .field--name-field-slider-text {
  display: none !important;
}

/* Field extended - white background full width, text stays boxed */
body.page-type-ispirazioni .field--name-field-extended {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  background-color: #ffffff !important;
  padding: 60px 0 !important;
  position: relative;
  text-align: center;
}

body.page-type-ispirazioni .field--name-field-extended .field-item {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Paragraph and headings boxed and centered */
body.page-type-ispirazioni .field--name-field-extended p,
body.page-type-ispirazioni .field--name-field-extended h1,
body.page-type-ispirazioni .field--name-field-extended h2,
body.page-type-ispirazioni .field--name-field-extended h3 {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

/* All headings uppercase and bold */
body.page-type-ispirazioni .field--name-field-extended h1,
body.page-type-ispirazioni .field--name-field-extended h2,
body.page-type-ispirazioni .field--name-field-extended h3,
body.page-type-ispirazioni .field--name-field-extended h4,
body.page-type-ispirazioni .field--name-field-extended h5,
body.page-type-ispirazioni .field--name-field-extended h6 {
  text-transform: uppercase !important;
  font-weight: bold !important;
}

/* Strong tags red color */
body.page-type-ispirazioni .field--name-field-extended strong {
  color: #ff0000 !important;
}

/* Title field - Left aligned, bigger, uppercase, bold */
body.page-type-ispirazioni .field--name-field-title {
  text-align: left;
  margin: 60px auto 30px;
  padding: 0 15px;
  max-width: 1300px;
  font-size: 42px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Text field below title - Left aligned, wider */
body.page-type-ispirazioni .field--name-field-text {
  text-align: left;
  max-width: 1300px;
  margin: 0 auto 60px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.6;
}

/* Boxes container */
body.page-type-ispirazioni .field--name-field-boxes {
  display: flex;
  gap: 30px;
  margin: 60px auto;
  padding: 0 15px;
  max-width: 1170px;
  flex-wrap: wrap;
}

body.page-type-ispirazioni .field--name-field-boxes .field-item {
  flex: 1;
  min-width: 300px;
}

/* Individual box styling */
body.page-type-ispirazioni .paragraph--type--ispirazioni-boxes {
  background-color: #262626;
  padding: 40px 30px;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

/* Red corner on top right */
body.page-type-ispirazioni .paragraph--type--ispirazioni-boxes:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-color: #FF0000;
  border-radius: 0 0 0 100%;
}

/* Box title */
body.page-type-ispirazioni .paragraph--type--ispirazioni-boxes .field--name-field-titolo {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Box text */
body.page-type-ispirazioni .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

/* "vedi di più >>>" link in boxes */
body.page-type-ispirazioni .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes a {
  color: #ffffff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-type-ispirazioni .field--name-field-boxes {
    flex-direction: column;
  }
  
  body.page-type-ispirazioni .field--name-field-boxes .field-item {
    min-width: 100%;
  }
  
  body.page-type-ispirazioni .field--name-field-title {
    font-size: 32px;
  }
}

/* Hide field-boxes when empty or contains only empty paragraphs */
body.page-type-ispirazioni .field--name-field-boxes:empty {
  display: none !important;
}

/* Hide field-boxes if all paragraph children are empty */
body.page-type-ispirazioni .field--name-field-boxes .paragraph:not(:has(.field--name-field-titolo)),
body.page-type-ispirazioni .field--name-field-boxes .paragraph:not(:has(.field--name-field-testo-boxes)) {
  display: none !important;
}

/* Hide the entire field-boxes if it only contains empty items */
body.page-type-ispirazioni .field--name-field-boxes:has(.field-item:empty) {
  display: none !important;
}

/* ===================================
   ISPIRAZIONI SLIDER STYLING
   =================================== */

/* Slider text container */
body.page-type-ispirazioni .slider-text-container {
    position: relative !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
}

body.page-type-ispirazioni .slider-text-container .container {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Slider text styling */
body.page-type-ispirazioni .slider-text-container .slider-text {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 40px 20px !important;
    background: transparent !important;
}

/* H1 Title (layer2) */
body.page-type-ispirazioni .slider-text-container .slider-text h1.layer2 {
    position: absolute;
    top: -100%;
    font-family: 'BebasKai', sans-serif;
    font-size: 80px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-shadow: none !important;
}

/* Subtitle text (layer3) */
body.page-type-ispirazioni .slider-text-container .slider-text p.layer3 {
    position: relative;
    color: white;
    font-size: 16px;
    margin: 0;
    padding: 20px 0 20px 80px;
    background-color: transparent;
    text-shadow: none !important;
    z-index: 2;
}

/* Red curved shape before subtitle */
body.page-type-ispirazioni .slider-text-container .slider-text p.layer3:before {
    content: "" !important;
    position: absolute !important;
    margin-top: -80px !important;
    margin-left: 0 !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #FF0000 !important;
    border-radius: 0 0 100% 0 !important;
    z-index: 1 !important;
}

/* Slider image */
body.page-type-ispirazioni .slider-image {
    height: 500px !important;
    overflow: hidden;
}

body.page-type-ispirazioni .slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.page-type-ispirazioni .slider-text-container .slider-text h1.layer2 {
        font-size: 48px;
    }
    
    body.page-type-ispirazioni .slider-text-container .slider-text p.layer3 {
        font-size: 14px;
        padding: 15px 0 15px 60px;
    }
    
    body.page-type-ispirazioni .slider-text-container .slider-text p.layer3:before {
        width: 40px !important;
        height: 40px !important;
        margin-top: -60px !important;
    }
}

/* Intro boxes (ispirazioni pages) - same styling as field-boxes */

/* Intro boxes (ispirazioni pages) - grid with equal height */
body.page-type-page .field--name-field-intro-boxes {
  display: flex;
  gap: 30px;
  margin: 60px auto;
  padding: 0 15px;
  max-width: 1170px;
  flex-wrap: wrap;
  align-items: stretch;
}

body.page-type-page .field--name-field-intro-boxes .field-item {
  flex: 1;
  min-width: 300px;
  display: flex;
}

body.page-type-page .field--name-field-intro-boxes .paragraph--type--ispirazioni-boxes {
  width: 100%;
  display: flex;
  flex-direction: column;
}

body.page-type-page .field--name-field-intro-boxes .field--name-field-testo-boxes {
  flex-grow: 1;
}

/* Icon images in ispirazioni-boxes - centered and max 150px */
body.page-type-page .paragraph--type--ispirazioni-boxes .field--name-field-icona img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

body.page-type-page .paragraph--type--ispirazioni-boxes .field--name-field-icona {
  text-align: center;
  margin-bottom: 0;
}

/* Responsive for intro boxes */
@media (max-width: 768px) {
  body.page-type-page .field--name-field-intro-boxes {
    flex-direction: column;
  }
  
  body.page-type-page .field--name-field-intro-boxes .field-item {
    min-width: 100%;
  }
}

/* Masonry layout for travel-items in page-type-page (ispirazioni with changed body class) */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li {
  flex-shrink: 0;
  border-radius: 0;
  display: flex;
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 0;
  margin: 0!important;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Odd rows - 40% + 60% */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+1) {
  flex-basis: calc(40% - 0.2rem);
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+2) {
  flex-basis: calc(60% - 0.2rem);
}

/* Even rows - 60% + 40% */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+3) {
  flex-basis: calc(60% - 0.2rem);
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+4) {
  flex-basis: calc(40% - 0.2rem);
}

/* Last element if odd - full width */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:last-child:nth-child(odd) {
  flex-basis: 100%;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li article {
  border-radius: 0; 
  box-shadow: none;
  margin: 0!important;
  padding: 0;
  width: 100%;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li .field--name-field-immagine ul.taxonomy-terms {
  display: block;
  width: 100%;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li article .node-content .node-title, 
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li article .node-content .field--type-text-with-summary {
  padding: 0 1rem;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li article .node-content h2 {
  font-family: 'BebasKai', sans-serif;
  font-size: 30px;
  line-height: 1;
}

/* Aspect ratios for 40% boxes */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+1) .field--name-field-immagine ul.taxonomy-terms > li > a, 
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+4) .field--name-field-immagine ul.taxonomy-terms > li > a {
  aspect-ratio: 5 / 3.402;
  display: block;
}

/* Aspect ratios for 60% boxes */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+2) .field--name-field-immagine ul.taxonomy-terms > li > a,
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:nth-child(4n+3) .field--name-field-immagine ul.taxonomy-terms > li > a {
  aspect-ratio: 5 / 2.2622;
  display: block;
}

/* Aspect ratio for last odd element (full width) */
body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li:last-child:nth-child(odd) .field--name-field-immagine ul.taxonomy-terms > li > a {
  aspect-ratio: 5 / 1.3504;
  display: block;
}

body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li .field--name-field-immagine ul.taxonomy-terms > li > a img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-type-page .field--name-field-travel-items > .taxonomy-terms > li .field--name-field-immagine ul.taxonomy-terms > li > a {
    aspect-ratio: 5 / 3!important;
    margin-bottom: 15px;
  }
}

/* Banner full-width section for page-type-page */
body.page-type-page .field--name-field-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #ffffff;
  position: relative;
}

body.page-type-page .field--name-field-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner description text - centered and boxed */
body.page-type-page .field--name-field-descrizione-banner {
  max-width: 1170px;
  margin: 40px auto;
  padding: 0 15px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

/* CTA link - uppercase, bigger, bold, centered */
body.page-type-page .field--name-field-cta {
  text-align: center;
  margin: 30px auto 60px;
}

body.page-type-page .field--name-field-cta a {
  text-transform: uppercase;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

/* Remove flex from banner container elements */
body.page-type-page .field--name-field-banner ul,
body.page-type-page .field--name-field-banner li,
body.page-type-page .field--name-field-banner div,
body.page-type-page .field--name-field-banner .node-taxonomy-container,
body.page-type-page .field--name-field-banner .field-item {
  display: block !important;
}

body.page-type-page .field--name-field-banner ul.taxonomy-terms {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Global typography - BebasKai for headings, Open Sans for body */
h1, h2, h3, h1 div, h2 div, h3 div, h1 span, h2 span, h3 span {
  font-family: 'BebasKai', sans-serif !important;
}

body, p, span, div, a, li, td, th, input, textarea, select, button {
  font-family: 'Open Sans', sans-serif !important;
}
