.menu-wrap {
  width: 100%;
}

/* Menu overflow fix */
.active-menu .menu-wrap .main-menu, .active-menu .menu-wrap .menu {
  overflow-y: hidden;
  overflow-x: hidden;
}

@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: -200px;
  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: 150px;
}

.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;
  font-family: BebasKai, sans-serif;
}

/* 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;
}

/* 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: -10px;
}

/* 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;
  margin-top: 20px;
}

#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: #2a2a2a;
  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: 2.5px !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: 1rem;
  font-weight: 1 !important;
  margin-top: 20px !important;
  margin-bottom: 20px;
  font-family: 'Open Sans' !important;
}

#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: 50px;
}

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;
  box-shadow: none !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: 2.5px !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;
}

#block-tarapro-copyright a {
  color: #FFFFFF;
}

#block-tarapro-copyright a:hover {
  color: #FF0000;
}

#block-tarapro-addedcopy {
  position: absolute;
  right: 0;
  text-transform: uppercase;
  top: 70px;
  font-size: 12px;
  font-weight: bolder;
}

#block-tarapro-addedcopy a {
  color: #FFFFFF;
}

#block-tarapro-addedcopy a:hover {
  color: #FF0000;
}
#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: 5px !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;
  margin-top: 50px;

}

/* 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: 10px;
}

.view-termini-figli h2::before {
  content: "";
  position: absolute;
  /* top: -20px; */
  left: 0;
  right: 0;
  height: 55px;
  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: 80px;
}

.view-termini-figli h2 a {
  position: relative;
  top: 20px;
}

body.term-depth-1.depth-3.vocabulary-esperienze .view-termini-figli h2 a {
  top: 0;
}

.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: 0;
  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;
  margin-bottom: 2.5px !important;
  padding-bottom: 2.5px !important;
}

.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 .layer5,
body.type-taxonomy.depth-3.path-taxonomy p.layer3 {
  margin-top: -30px;
}
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: 30px;
}

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 {
  min-height: 147px !important;
  position: relative; 
  z-index: 2;
}

body.page-type-travel-item .field--name-field-itinerari .field--name-field-immagine a {
  min-height: 248px;
  overflow: hidden;
}
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 - usa 'of li:has(img)' per contare solo i visibili */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+1 of li:has(img)) {
  flex-basis: calc(40% - 0.2rem);
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+2 of li:has(img)) {
  flex-basis: calc(60% - 0.2rem);
}
/* Righe pari */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+3 of li:has(img)) {
  flex-basis: calc(60% - 0.2rem);
}
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:nth-child(4n+4 of li:has(img)) {
  flex-basis: calc(40% - 0.2rem);
}
/* Gestione ultimo elemento visibile se dispari */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li:last-child:nth-child(odd of li:has(img)) {
  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;
  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: #1f1f1f;
  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: 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%; */
    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;
  font-size: 110%;
}

/* ===== 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: 2.5px !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: 5px !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: 5px !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: 5px !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: 5px !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: 18px !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: 5px !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: 5px !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: 5px !important;
}

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

nav.layer4 > ul {
  margin-top: -10px;
}

/* Layer3 span padding */
body.inner-page .slider-text p.layer3 {
  padding: 5px !important;
}
/* Anchor menu positioning */
body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
  position: relative;
  top: 40px;
}

/* 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: 5px !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: 45px !important;
  position: relative;
  top: 28px;
}

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;
  margin-top: -50px !important;
  padding: 5px !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: 5px !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;
  font-weight: normal;
}

/* 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: #1f1f1f;
}

/* 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: 768px) {
  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: #1f1f1f;
}

/* 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: 130px !important;
}

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

/* Slider text styling */
body.page-type-page:not(.frontpage) .slider-text-container .slider-text {
    position: absolute !important;
    bottom: 2.5px !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 !important;
    top: -140px !important;
    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 - HIDDEN (moved to slider-image::after for text-length independence) */
body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3:before {
    display: none !important;
}

/* Red curved shape - anchored to photo border (independent of text length) */
body.page-type-page:not(.frontpage) .layer2::after {
    content: "" !important;
    position: absolute !important;
    bottom: -87px;
    left: 0;
    width: 60px !important;
    height: 60px !important;
    background-color: #FF0000 !important;
    border-radius: 0 0 100% 0 !important;
    z-index: 20 !important;
}
/* Slider image */
body:not(.frontpage) .slider-image {
    height: 650px !important;
    position: relative !important;
    overflow: visible !important;
}

body:not(.frontpage) .slider-image img {
    max-height: 650px !important;
    overflow: hidden;
    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 {
        display: none !important;
    }
    body:not(.frontpage) .slider-image::after {
        width: 50px !important;
        height: 50px !important;
        bottom: -25px !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;
  margin-top: 0px;
}
body.page-type-page .field--name-body {
  margin-top: 50px;
}
body.frontpage.page-type-page .field--name-body {
  margin-top: 0;
}

/* 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: 5px !important;
  border: none !important;
  box-shadow: none !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;
  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;
  box-shadow: none !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;
  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;
  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;
  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: 102px !important;
}

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

body.page-type-page:not(.frontpage) .slider-text-container .slider-text {
  position: absolute !important;
  bottom: 2.5px !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 !important;
  top: -140px !important;
  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 {
  display: none !important;
}
body:not(.frontpage) .slider-image {
    overflow: visible !important;
  height: 650px !important;
}

body:not(.frontpage) .slider-image img {
    max-height: 650px !important;
    overflow: hidden;
  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 {
    display: none !important;
  }
  body:not(.frontpage) .slider-image::after {
    width: 50px !important;
    height: 50px !important;
    bottom: -25px !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: 2.5px !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: 5px !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: 5px !important;
    max-width: 100% !important;
}

/* Slider text styling */
body.page-type-ispirazioni .slider-text-container .slider-text {
    position: absolute !important;
    bottom: 2.5px !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;
}

/* =============================================
   TERM-DEPTH-1: Pagine primo livello (es. /esperienze/chi)
   Nasconde contenuti extra, mantiene tema attuale
   ============================================= */

body.vocabulary-esperienze.term-depth-1 .field--name-field-paragraphs,
body.vocabulary-esperienze.term-depth-1 .field--name-field-contenuti {
  display: none !important;
}

/* =============================================
   TERM-DEPTH-2: Pagine secondo livello (es. /esperienze/chi/famiglia)
   Design ispirato a Black Tomato + Mamatours
   ============================================= */

/* Grid container: 4 colonne desktop */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .view-content {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 20px !important;
}

/* Singola card: quadrata con dimensioni fisse */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
  cursor: pointer !important;
}

/* Container immagine livello 1 */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-field-media-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
}

/* Container immagine livello 2 */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-field-media-image .field-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
}

/* Container immagine livello 3 (contextual-region) */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-field-media-image .contextual-region {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
}

/* Container immagine livello 4 (field--name-field-media-image) */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-media-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Immagine: object-fit cover */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row img.image-field {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center bottom !important;
}

/* Overlay scuro per leggibilità titolo */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Nascondere descrizione e read more */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-description__value,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-view-taxonomy-term {
  display: none !important;
}

/* Hover: opacity come Black Tomato */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row:hover {
  opacity: 0.85 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row img.image-field {
  transition: transform 0.4s ease !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row:hover img.image-field {
  transform: scale(1.05) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  body.vocabulary-esperienze.term-depth-2 .view-termini-figli .view-content {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  body.vocabulary-esperienze.term-depth-2 .view-termini-figli .view-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  body.vocabulary-esperienze.term-depth-2 .view-termini-figli .view-content {
    grid-template-columns: 1fr !important;
  }
}

/* FIX: field-item che ha 0x0 */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-media-image .field-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
}

/* FORCE image dimensions - override everything */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row img.image-field,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row img {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 75% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure all parent containers have proper dimensions */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-field-media-image,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-field-media-image .field-content,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-field-media-image .field-content > div,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .contextual-region,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-media-image,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-media-image .field-item {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  overflow: visible !important;
}

/* ========================================
   TERM-DEPTH-2: Header Section (Hero)
   Show title, hero image, description
   ======================================== */

/* Show the hidden header block on term-depth-2 */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 {
  display: block !important;
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}

/* Hero container styling */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .view-content {
  position: relative;
  width: 100%;
  min-height: 500px;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
}

/* Hero background image */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .field-content,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .contextual-region,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .field--name-field-media-image,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .field-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Dark overlay for text readability */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

/* Description text styling */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value .field-content {
  position: relative !important;
  width: auto !important;
  height: auto !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value p {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

/* Hide the Esplora link in hero */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-view-taxonomy-term {
  display: none;
}

/* Add page title as H1 - pseudo element with page title */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row::after {
  content: attr(data-title);
  position: relative;
  z-index: 3;
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  order: -1;
}
/* ========================================
   TERM-DEPTH-2: Header Section (Hero)
   Show title, hero image, description
   ======================================== */

/* Show the hidden header block on term-depth-2 */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 {
  display: block !important;
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}

/* Hero container styling */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione {
  position: relative;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .view-content {
  position: relative;
  width: 100%;
  min-height: 500px;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
}

/* Hero background image */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .field-content,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .contextual-region,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .field--name-field-media-image,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image .field-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
  width: 100% !important;
  height: 100% !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Dark overlay for text readability */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

/* Description text styling */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value .field-content {
  position: relative !important;
  width: auto !important;
  height: auto !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value p {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

/* Hide the Esplora link in hero */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-view-taxonomy-term {
  display: none;
}

/* Section title styling for cards */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli {
  padding: 0 40px;
}

/* Add white overlay title on cards */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-name a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ========================================
   TERM-DEPTH-2: Refinements - Black Tomato style
   ======================================== */

/* Card title positioning - centered at bottom */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-name {
  position: absolute !important;
  bottom: 2.5px !important;
  left: 0 !important;
  z-index: 10 !important;
  padding: 30px 15px 20px !important;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
  text-align: center !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-name .field-content {
  position: relative !important;
  width: auto !important;
  height: auto !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .views-field-name a {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  text-decoration: none !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
  display: block !important;
}

/* Card hover effects - Black Tomato style */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row:hover img {
  transform: scale(1.05);
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row img {
  transition: transform 0.5s ease !important;
}

/* Hero section title styling - add term name */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name {
  position: relative;
  z-index: 3;
  margin-bottom: 30px;
  order: -1;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name .field-content {
  position: relative !important;
  width: auto !important;
  height: auto !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name a {
  color: #ffffff;
  font-size: 56px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  text-decoration: none;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: block;
}

/* Gap between cards */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .view-content {
  gap: 25px !important;
}

/* Responsive refinements */
@media (max-width: 992px) {
  body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name a {
    font-size: 36px;
    letter-spacing: 4px;
  }

  body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value p {
    font-size: 16px;
  }

  body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
    min-height: 400px;
    padding: 60px 30px;
  }
}

@media (max-width: 576px) {
  body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name a {
    font-size: 28px;
    letter-spacing: 2px;
  }

  body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
    min-height: 350px;
    padding: 40px 20px;
  }
}

/* ========================================
   FIX: Card titles - correct selector
   Target: h2 .field--name-name (not views-field-name)
   ======================================== */

/* Card title container - h2 wrapper */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row h2 {
  position: absolute !important;
  bottom: 2.5px !important;
  left: 0 !important;
  z-index: 10 !important;
  padding: 40px 15px 20px !important;
  margin: 0 !important;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%) !important;
  text-align: center !important;
}

/* Card title text */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row h2 .field--name-name {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6) !important;
  font-family: 'mons', sans-serif !important;
}

/* Remove any default h2 styling */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row h2 .field--name-name a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ========================================
   TERM-DEPTH-2: Paragraphs / Boxes Styling
   Ispirazioni boxes for Famiglia page
   ======================================== */

/* Container for paragraphs in hero section */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .field--name-field-paragraphs {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid layout for ispirazioni boxes */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .field--name-field-paragraphs > .field-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Individual box styling */
body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Box icon/image */
body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-icona {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-icona img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  transition: transform 0.5s ease;
}

body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes:hover .field--name-field-icona img {
  transform: scale(1.05);
}

/* Box title */
body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-titolo {
  padding: 20px 20px 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Box text content */
body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes p {
  margin: 0 0 15px;
}

body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-testo-boxes p:last-child {
  margin-bottom: 0;
}

/* Make sure paragraphs container is visible */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs {
  display: block !important;
  width: 100%;
  position: relative;
  z-index: 5;
  background: #f5f5f5;
  padding: 60px 0;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .field--name-field-paragraphs > .field-items {
    grid-template-columns: 1fr;
  }

  body.vocabulary-esperienze.term-depth-2 .paragraph--type--ispirazioni-boxes .field--name-field-icona {
    height: 180px;
  }
}

/* ========================================
   FIX: Correct selectors for Views paragraphs
   The Views wrapper uses .views-field-field-paragraphs
   NOT .field--name-field-paragraphs
   ======================================== */

/* Container for paragraphs via Views */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs {
  display: block !important;
  width: 100% !important;
  position: relative;
  z-index: 5;
  background: #f8f8f8;
  padding: 60px 20px;
  margin-top: 40px;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .field-content {
  display: block !important;
  max-width: 1400px;
  margin: 0 auto;
}

/* Grid layout for paragraphs inside Views */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph {
  display: block !important;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Paragraph image */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: block !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  display: block !important;
  transition: transform 0.5s ease;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph:hover .field--name-field-icona img {
  transform: scale(1.05);
}

/* Paragraph title */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo {
  display: block !important;
  padding: 25px 30px 15px;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Paragraph text content */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
  display: block !important;
  padding: 0 30px 30px;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes p {
  margin: 0 0 15px;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes p:last-child {
  margin-bottom: 0;
}
/* ========================================
   FIX: Paragraphs layout - break out of flex
   ======================================== */

/* Make paragraphs wrapper break out of the hero flex layout */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
  flex-wrap: wrap !important;
}

/* Paragraphs should take full width and break to new line */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs {
  flex: 0 0 100% !important;
  width: 100% !important;
  order: 100 !important; /* Push to end */
  position: relative !important;
  margin-top: 80px !important;
  padding: 60px 0 !important;
  background: #f5f5f5 !important;
  z-index: 10 !important;
}

/* Reset any absolute positioning from hero */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .field-content {
  position: relative !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

/* Each paragraph block styling */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph {
  display: block !important;
  position: relative !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08) !important;
  margin-bottom: 50px !important;
}

/* Paragraph with image - layout horizontal */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

/* Image on left side - 40% width */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
  flex: 0 0 40% !important;
  min-height: 300px !important;
  position: relative !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona .field-item,
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Content on right side - 60% width */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo,
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
  flex: 1 !important;
  padding: 30px 40px !important;
}

/* Title styling */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  margin-bottom: 2.5px !important;
  padding-bottom: 10px !important;
}

/* Text styling */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #555 !important;
  padding-top: 0 !important;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes {
    flex-direction: column !important;
  }

  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
    flex: 0 0 250px !important;
  }
}
/* ========================================
   FIX v2: Complete restructure of term-depth-2 layout
   Hero stays relative, paragraphs flow normally below
   ======================================== */

/* Override the flex layout of views-row */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  padding: 5px !important;
}

/* Hero container - the fields that form the hero */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name {
  position: relative !important;
  z-index: 3;
}

/* Paragraphs wrapper - full width, below hero */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs {
  display: block !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  position: relative !important;
  background: #f0f0f0 !important;
  padding: 80px 0 !important;
  margin-top: 60px !important;
  z-index: 20 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .field-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  display: block !important;
}

/* Individual paragraph cards - horizontal layout */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph {
  display: flex !important;
  flex-direction: row !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important;
  margin-bottom: 60px !important;
  min-height: 400px !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph:last-child {
  margin-bottom: 2.5px !important;
}

/* Alternate layout - even cards have image on right */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph:nth-child(even) {
  flex-direction: row-reverse !important;
}

/* Image section - 45% width */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
  flex: 0 0 45% !important;
  position: relative !important;
  display: block !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona .field-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 2.5px !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Content section - 55% width */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph > div:not(.field--name-field-icona) {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 50px !important;
}

/* Title */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 4px !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
  display: block !important;
}

/* Text */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
  font-size: 17px !important;
  line-height: 2 !important;
  color: #444 !important;
  display: block !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes p {
  margin: 0 0 20px !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes p:last-child {
  margin-bottom: 2.5px !important;
}

/* Hover effect */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 60px rgba(0,0,0,0.15) !important;
  transition: all 0.4s ease !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph {
  transition: all 0.4s ease !important;
}

/* Mobile responsive */
@media (max-width: 900px) {
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph,
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph:nth-child(even) {
    flex-direction: column !important;
  }

  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
    flex: 0 0 280px !important;
    position: relative !important;
    height: 280px !important;
  }

  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph > div:not(.field--name-field-icona) {
    padding: 35px !important;
  }

  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo {
    font-size: 24px !important;
  }
}
/* ========================================
   FIX v3: Using CSS Grid for precise layout control
   Define grid areas for each field in views-row
   ======================================== */

/* Reset previous flex attempts */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto !important;
  gap: 0 !important;
  width: 100% !important;
  padding: 5px !important;
  position: relative !important;
  min-height: 500px !important;
}

/* Hero section - row 1 */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-media-image {
  grid-row: 1 !important;
  grid-column: 1 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 500px !important;
  z-index: 1 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-name,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value {
  grid-row: 1 !important;
  grid-column: 1 !important;
  position: relative !important;
  z-index: 3 !important;
  padding: 0 40px !important;
  text-align: center !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 500px !important;
}

/* Hide Esplora link */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-view-taxonomy-term {
  display: none !important;
}

/* Paragraphs - row 2: AFTER the hero, full width */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs {
  grid-row: 2 !important;
  grid-column: 1 !important;
  position: relative !important;
  width: 100% !important;
  background: #f0f0f0 !important;
  padding: 80px 0 !important;
  z-index: 10 !important;
  display: block !important;
}

/* Paragraphs container - centered */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs > .field-content {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}

/* Individual paragraph - horizontal card layout */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  grid-template-rows: auto !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important;
  margin-bottom: 50px !important;
  min-height: 320px !important;
  transition: all 0.3s ease !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 60px rgba(0,0,0,0.15) !important;
}

/* Alternate layout */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) {
  grid-template-columns: 1fr 400px !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) .field--name-field-icona {
  order: 2 !important;
}

/* Image in paragraph */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
  grid-row: 1 / -1 !important;
  position: relative !important;
  min-height: 320px !important;
  overflow: hidden !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona .field-item,
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Content area in paragraph */
body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo {
  padding: 40px 40px 15px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  line-height: 1.2 !important;
}

body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
  padding: 0 40px 40px !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #555 !important;
}

/* Mobile responsive */
@media (max-width: 900px) {
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes,
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 280px auto !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) .field--name-field-icona {
    order: 0 !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-icona {
    min-height: 280px !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-titolo {
    padding: 30px 25px 10px !important;
    font-size: 22px !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
    padding: 0 25px 30px !important;
  }
}
/* ========================================
   NEW: Twig template based layout for term-depth-2
   Hero section and Paragraphs are now separate divs
   ======================================== */

/* Hero Section */
body.vocabulary-esperienze.term-depth-2 .hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */
  z-index: 1;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-background img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 60px 40px;
  color: #ffffff;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-title {
  font-size: 56px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin: 0 0 30px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-title a {
  color: #ffffff;
  text-decoration: none;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-description {
  font-size: 18px;
  line-height: 1.9;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-description p {
  margin: 0;
}

/* Paragraphs Section */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section {
  width: 100%;
  background: #f0f0f0;
  padding: 80px 0;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Individual paragraph cards */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 50px;
  min-height: 320px;
  transition: all 0.3s ease;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph:last-child {
  margin-bottom: 0;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

/* Alternate layout */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph:nth-child(even) {
  grid-template-columns: 1fr 400px !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph:nth-child(even) .field--name-field-icona {
  order: 2;
}

/* Image */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-icona {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-icona .field-item,
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-icona img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
}

/* Title */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-titolo {
  padding: 40px 40px 15px;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2;
}

/* Text */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-testo-boxes {
  padding: 0 40px 40px;
  font-size: 16px;
  line-height: 1.9;
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  body.vocabulary-esperienze.term-depth-2 .hero-section .hero-title {
    font-size: 36px;
    letter-spacing: 4px;
  }

  body.vocabulary-esperienze.term-depth-2 .hero-section .hero-description {
    font-size: 16px;
  }

  body.vocabulary-esperienze.term-depth-2 .hero-section {
    min-height: 400px;
  }
}

@media (max-width: 900px) {
  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph,
  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph:nth-child(even) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 280px auto !important;
  }

  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph:nth-child(even) .field--name-field-icona {
    order: 0;
  }

  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-icona {
    min-height: 280px;
  }

  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-titolo {
    padding: 30px 25px 10px;
    font-size: 22px;
  }

  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-testo-boxes {
    padding: 0 25px 30px;
  }
}

@media (max-width: 576px) {
  body.vocabulary-esperienze.term-depth-2 .hero-section .hero-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  body.vocabulary-esperienze.term-depth-2 .hero-section {
    min-height: 350px;
  }
}
/* ========================================
   EMERGENCY FIX: Force correct styles on paragraph boxes
   with maximum specificity
   ======================================== */

/* Reset ALL paragraph boxes */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important;
  margin-bottom: 50px !important;
  min-height: 320px !important;
  position: relative !important;
  left: 0 !important;
  top: auto !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) {
  grid-template-columns: 1fr 400px !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) .field--name-field-icona {
  order: 2 !important;
}

/* Force image to fill its grid cell */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph .field--name-field-icona {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  overflow: hidden !important;
  left: 0 !important;
  top: 0 !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph .field--name-field-icona .field-item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph .field--name-field-icona img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Force content area styles */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph .field--name-field-titolo {
  padding: 40px 40px 15px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  display: block !important;
  width: auto !important;
  position: relative !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph .field--name-field-testo-boxes {
  padding: 0 40px 40px !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #555 !important;
  display: block !important;
  position: relative !important;
}

/* Mobile responsive */
@media (max-width: 900px) {
  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes,
  body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 280px auto !important;
  }
}
/* ========================================
   FIX: view-termini-figli paragraphs styling
   These boxes (FINLANDIA, ITALIA, etc) are INSIDE 
   the view-termini-figli, not in paragraphs-section
   ======================================== */

/* Override grid layout for paragraphs inside termini-figli */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 180px 1fr !important;
  width: 100% !important;
  max-width: 243.75px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  margin-top: 15px !important;
  min-height: auto !important;
}

/* Smaller image for nested paragraphs */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .paragraph .field--name-field-icona {
  position: relative !important;
  min-height: 150px !important;
  overflow: hidden !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .paragraph .field--name-field-icona img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Smaller text for nested paragraphs */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .paragraph .field--name-field-titolo {
  padding: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .paragraph .field--name-field-testo-boxes {
  padding: 0 10px 10px !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: #666 !important;
}

/* Hide text on small cards - show only on hover */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .paragraph .field--name-field-testo-boxes {
  display: none !important;
}
/* ========================================
   VIEW DESTINAZIONI FIGLI - New Block Styling
   Premium Black Tomato inspired design
   ======================================== */

/* Container styling */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 {
  background: #f5f5f0 !important;
  padding: 80px 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* Block title */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 .block-title {
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
  margin-bottom: 50px !important;
  position: relative !important;
}

body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 .block-title::after {
  content: "" !important;
  display: block !important;
  width: 60px !important;
  height: 2px !important;
  background: #c9a961 !important;
  margin: 20px auto 0 !important;
}

/* View container */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

/* View content - grid layout */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .view-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
}

/* Each row - destination box */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
}

/* Alternate layout - image on right */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) {
  grid-template-columns: 1fr 400px !important;
}

/* Hide ID field */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-id {
  display: none !important;
}

/* Icon/Image field */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-icona {
  position: relative !important;
  min-height: 400px !important;
  overflow: hidden !important;
  order: 1 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-icona {
  order: 2 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-icona img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transition: transform 0.6s ease !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:hover .views-field-field-icona img {
  transform: scale(1.05) !important;
}

/* Title field */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-titolo {
  padding: 40px 40px 20px !important;
  order: 2 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-titolo {
  order: 1 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-titolo .field-content {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  line-height: 1.3 !important;
}

/* Text field */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo {
  padding: 0 40px 40px !important;
  order: 3 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-testo {
  order: 3 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo .field-content {
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #555 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo .field-content p {
  margin-bottom: 15px !important;
}

/* Responsive */
@media (max-width: 900px) {
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row,
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 280px auto auto !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-icona,
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-icona {
    order: 1 !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-titolo,
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-titolo {
    order: 2 !important;
    padding: 30px 25px 15px !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo,
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-testo {
    order: 3 !important;
    padding: 0 25px 30px !important;
  }
  
  body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-titolo .field-content {
    font-size: 22px !important;
    letter-spacing: 2px !important;
  }
}
/* ========================================
   FIX: Destinazioni Figli - Image LEFT, Text RIGHT
   + Grey background
   ======================================== */

/* Fix container background to grey */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 {
  background: #f0ede8 !important;
}

/* Fix layout: Image LEFT (order 1), Title+Text RIGHT (order 2-3) */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row {
  grid-template-columns: 400px 1fr !important;
}

/* Image always on left for odd rows */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row .views-field-field-icona {
  order: 1 !important;
  grid-row: 1 / 3 !important;
}

/* Title and text on right */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row .views-field-field-titolo {
  order: 2 !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row .views-field-field-testo {
  order: 3 !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
}

/* Even rows: Image on RIGHT */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) {
  grid-template-columns: 1fr 400px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-icona {
  order: 3 !important;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-titolo {
  order: 1 !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:nth-child(even) .views-field-field-testo {
  order: 2 !important;
  grid-column: 1 !important;
  grid-row: 2 !important;
}
/* ========================================
   FIX: Card images - correct selectors
   HTML uses .field--name-field-media-image not .views-field-field-media-image
   ======================================== */

/* Card container - relative positioning */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row {
  position: relative !important;
  overflow: hidden !important;
}

/* Fix the taxonomy-terms list that contains images */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row ul.taxonomy-terms {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 5px !important;
  list-style: none !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row ul.taxonomy-terms > li {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Fix contextual-region inside li */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row ul.taxonomy-terms > li > .contextual-region {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Fix the actual image field container */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-media-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Fix the image itself */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-media-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Ensure title overlay is on top */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-name {
  position: relative !important;
  z-index: 10 !important;
}
/* ========================================
   MAMATOURS STYLE - term-depth-2 page refinements
   Based on site-wide style analysis
   ======================================== */

/* Hide unwanted fields in termini-figli cards */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-description,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-contenuti,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-field-paragraphs,
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row .field--name-body {
  display: none !important;
}

/* Card title styling - Mamatours style */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row h2 {
  position: absolute !important;
  bottom: 2.5px !important;
  left: 0 !important;
  top: auto !important;
  margin: 0 !important;
  padding: 30px 25px !important;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
  z-index: 20 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row h2 .field--name-name {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row h2 .field--name-name a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Card hover effect */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row:hover h2 {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, transparent 100%) !important;
}

/* ========================================
   HERO SECTION - Mamatours style refinement
   ======================================== */

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-title,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione h1 {
  font-family: "Oswald", "Bebas Neue", sans-serif !important;
  font-weight: 700 !important;
  font-size: 48px !important;
  letter-spacing: 8px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

body.vocabulary-esperienze.term-depth-2 .hero-section .hero-description,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-description__value {
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: #ffffff !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* ========================================
   DESTINAZIONI BLOCK - Mamatours style
   ======================================== */

/* Block title - Mamatours style */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 .block-title {
  font-family: "Oswald", "Bebas Neue", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
}

/* Accent line - Mamatours red */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 .block-title::after {
  background: #c41e3a !important;
}

/* Box titles */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-titolo .field-content {
  font-family: "Oswald", "Bebas Neue", sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
}

/* Box text */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo .field-content {
  font-family: "Georgia", serif !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #444444 !important;
}

/* Box cards - subtle shadow like Mamatours */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  box-shadow: none !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}

/* ========================================
   PARAGRAPHS SECTION - Clean Mamatours style
   ======================================== */

body.vocabulary-esperienze.term-depth-2 .paragraphs-section {
  background: #f5f5f0 !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-titolo {
  font-family: "Oswald", "Bebas Neue", sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph .field--name-field-testo-boxes {
  font-family: "Georgia", serif !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  color: #444444 !important;
}
/* ========================================
   FIX: Hide empty boxes and reduce spacing
   ======================================== */

/* Hide empty paragraphs/boxes */
body.vocabulary-esperienze.term-depth-2 .paragraph:empty,
body.vocabulary-esperienze.term-depth-2 .views-row:empty,
body.vocabulary-esperienze.term-depth-2 .field-item:empty {
  display: none !important;
}

/* Hide boxes that only have whitespace or empty fields */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:not(:has(img)):not(:has(.field-content:not(:empty))) {
  display: none !important;
}

/* Reduce excessive spacing in destinazioni-figli */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 {
  padding: 60px 0 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .view-content {
  gap: 30px !important;
}

/* Hide the block title "Destinazioni" if you want cleaner look */
/* body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 .block-title {
  display: none !important;
} */

/* Fix paragraphs-section spacing */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section {
  padding: 50px 0 !important;
}

body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraphs-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
}

/* Reduce gap between paragraph boxes */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section .paragraph {
  margin-bottom: 30px !important;
}

/* Hide Lorem Ipsum sections - target by content if possible */
/* This hides boxes containing "Vivamus feugiat" (Lorem Ipsum) */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row .views-field-field-testo .field-content:has(p:contains("Vivamus")) {
  display: none !important;
}

/* ========================================
   FIX: Reduce hero/description area spacing
   ======================================== */

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione {
  margin-bottom: 2.5px !important;
  padding-bottom: 2.5px !important;
}

/* Fix view-termini-figli spacing */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli {
  margin-top: 30px !important;
  margin-bottom: 30px !important;
}

/* ========================================
   FIX: Clean up repeated text issue
   Show only first paragraph in each box
   ======================================== */

/* If text is repeated multiple times, hide all but first */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo .field-content p:not(:first-child) {
  /* Keep all paragraphs for now - the repetition might be data issue */
}

/* ========================================
   FIX: Better spacing for destination boxes
   ======================================== */

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row {
  min-height: 280px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-icona {
  min-height: 280px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-titolo {
  padding: 30px 30px 15px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo {
  padding: 0 30px 30px !important;
}

/* Limit text height to prevent overly long boxes */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo .field-content {
  max-height: 200px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Add fade effect for truncated text */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-field-field-testo .field-content::after {
  content: "" !important;
  position: absolute !important;
  bottom: 2.5px !important;
  left: 0 !important;
  height: 50px !important;
  background: linear-gradient(to bottom, transparent, #ffffff) !important;
  pointer-events: none !important;
}

/* ========================================
   FIX: Term children cards - tighter layout
   ======================================== */

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .view-content {
  gap: 20px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli .views-row {
  min-height: 280px !important;
}
/* ========================================
   TEMPORARY: Hide Destinazioni Figli block
   Until contextual filter is properly configured
   ======================================== */

body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 {
  display: none !important;
}
/* ========================================
   FIX: Remove empty paragraphs-section
   ======================================== */

/* Hide empty paragraphs-section */
body.vocabulary-esperienze.term-depth-2 .paragraphs-section:empty,
body.vocabulary-esperienze.term-depth-2 .paragraphs-section:not(:has(.paragraph)) {
  display: none !important;
  padding: 5px !important;
  margin: 0 !important;
}

/* Hide paragraphs-container if empty */
body.vocabulary-esperienze.term-depth-2 .paragraphs-container:empty {
  display: none !important;
}

/* Remove any margins/padding from view containers that might create space */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione {
  margin-bottom: 2.5px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termini-figli {
  margin-bottom: 2.5px !important;
}

/* Fix region-content spacing */
body.vocabulary-esperienze.term-depth-2 .block-region.region-content {
  padding-bottom: 2.5px !important;
}

body.vocabulary-esperienze.term-depth-2 .block-region.region-content > .block:last-child {
  margin-bottom: 2.5px !important;
}

/* ========================================
   FIX: "Vacanza Primaverile" section layout
   This is the first paragraph box in term "Famiglia"
   ======================================== */

/* Style the first paragraph properly */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  background: #f5f5f0 !important;
  min-height: 400px !important;
  margin: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* Image on left */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph .field--name-field-icona {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  position: relative !important;
  min-height: 400px !important;
  overflow: hidden !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph .field--name-field-icona img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Title on right top */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph .field--name-field-titolo {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding: 40px 40px 20px !important;
  font-family: "Oswald", sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
  align-self: end !important;
}

/* Text on right bottom */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph .field--name-field-testo-boxes {
  grid-column: 2 !important;
  grid-row: 2 !important;
  padding: 0 40px 40px !important;
  font-family: "Georgia", serif !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #444 !important;
  align-self: start !important;
}

/* ========================================
   FIX: Footer spacing
   ======================================== */

body.vocabulary-esperienze.term-depth-2 footer,
body.vocabulary-esperienze.term-depth-2 .footer {
  margin-top: 0 !important;
}
/* ========================================
   FIX: Aggressive removal of empty space
   ======================================== */

/* Hide the entire destinazioni-figli block container */
body.vocabulary-esperienze.term-depth-2 .views-element-container:has(.view-destinazioni-figli) {
  display: none !important;
}

/* Remove all spacing from region-content */
body.vocabulary-esperienze.term-depth-2 .region-content {
  padding-bottom: 2.5px !important;
  margin-bottom: 2.5px !important;
}

/* Make termini-figli flush with footer */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli {
  margin-bottom: 2.5px !important;
  padding-bottom: 2.5px !important;
}
/* Force footer to have no top margin */
body.vocabulary-esperienze.term-depth-2 footer {
  margin-top: 0 !important;
}

/* Show paragraphs in termine-descrizione properly */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs {
  display: block !important;
  width: 100% !important;
  margin: 30px 0 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  gap: 0 !important;
  background: #f8f8f5 !important;
  min-height: 400px !important;
  overflow: hidden !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraph .field--name-field-icona {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  position: relative !important;
  min-height: 400px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraph .field--name-field-icona img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraph .field--name-field-titolo {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding: 35px 35px 15px !important;
  font-family: Oswald, sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraph .field--name-field-testo-boxes {
  grid-column: 2 !important;
  grid-row: 2 !important;
  padding: 0 35px 35px !important;
  font-family: Georgia, serif !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #444 !important;
}
/* =============================================
   HIDE FIRST ISPIRAZIONI-BOXES ON FAMIGLIA PAGE
   (replaced by slider header)
   ============================================= */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraph--type--ispirazioni-boxes:first-of-type {
  display: none !important;
}

/* More specific selector for hiding first ispirazioni-boxes */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section > .paragraph.paragraph--type--ispirazioni-boxes:first-child {
  display: none !important;
}

/* Ultra-specific selector - HIDE FIRST BOX that has Vacanza Primaverile */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .view-content .views-row .paragraphs-section > .paragraph.paragraph--type--ispirazioni-boxes:first-child,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-field-field-paragraphs .paragraph.paragraph--type--ispirazioni-boxes:first-child {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* CORRECT selector - hide FIRST ispirazioni-boxes in paragraphs-container */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraphs-container > .paragraph.paragraph--type--ispirazioni-boxes:first-child {
  display: none !important;
  visibility: hidden !important;
}

/* Use nth-of-type instead of first-child */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes:nth-of-type(1) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 5px !important;
  overflow: hidden !important;
}

/* FINAL RULE - Must be last - Hide first ispirazioni box on famiglia page */
body.type-taxonomy.vocabulary-esperienze.term-depth-2.depth-3 .view.view-termine-descrizione .view-content .views-row .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes.paragraph--view-mode--default:nth-of-type(1) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 5px !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* VERIFIED path from DOM inspection - hide first ispirazioni box */
body.vocabulary-esperienze.term-depth-2 .view.view-termine-descrizione .view-content .views-row .paragraphs-section .paragraphs-container > div.paragraph.paragraph--type--ispirazioni-boxes:first-child {
  display: none !important;
}

/* =============================================
   FIX: Banner style for term-depth-2 pages (esperienze)
   Match the style of /destinazioni
   ============================================= */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-taxonomytermbanner .slider-text-container {
  position: relative !important;
  height: auto !important;
  align-items: flex-end !important;
}

body.vocabulary-esperienze.term-depth-2 #block-tarapro-taxonomytermbanner .slider-text h1.layer2 {
  position: absolute !important;
  font-size: 80px !important;
}

body.vocabulary-esperienze.term-depth-2 #block-tarapro-taxonomytermbanner .slider-text {
  position: relative !important;
}

@media (max-width: 991px) {
  body.vocabulary-esperienze.term-depth-2 #block-tarapro-taxonomytermbanner .slider-text h1.layer2 {
    font-size: 50px !important;
  }
}

@media (max-width: 768px) {
  body.vocabulary-esperienze.term-depth-2 #block-tarapro-taxonomytermbanner .slider-text h1.layer2 {
    font-size: 36px !important;
  }
}

/* =============================================
   COPY vocabulary-albero styles to vocabulary-esperienze.term-depth-2
   for consistent banner appearance
   ============================================= */
body.type-taxonomy.vocabulary-esperienze.term-depth-2 .slider-text-container * {
  transition-delay: 0s !important;
  transform: none !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-2 .slider-text-container {
  position: relative !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-2 .slider-text-container .container {
  padding: 5px !important;
  max-width: 100% !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-2 .slider-text-container .slider-text {
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 40px !important;
  gap: 0 !important;
}

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

@media (max-width: 991px) {
  body.type-taxonomy.vocabulary-esperienze.term-depth-2 .slider-text-container .slider-text h1.layer2 {
    font-size: 50px !important;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze.term-depth-2 .slider-text-container .slider-text h1.layer2 {
    font-size: 36px !important;
  }
}

/* Fix slider-text-container position */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-taxonomytermbanner .slider-text-container {
  top: 50px !important;
}

/* Hide only hero-section in termine-descrizione (duplicated by taxonomy_term_banner) */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 .hero-section {
  display: none !important;
}

/* Show paragraphs-section (Contenuti Aggiuntivi like VACANZA PRIMAVERILE) */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  display: block !important;
}

body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section .paragraph--type--ispirazioni-boxes {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
}

/* FIX: Force paragraphs-section content to be visible */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section .paragraph {
  position: relative !important;
}

body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section .paragraphs-container {
  height: auto !important;
  min-height: 400px !important;
}

/* STRONG FIX: Force VACANZA PRIMAVERILE to be visible */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraphs-container,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraph {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section {
  background: #f5f5f5;
  padding: 60px 30px;
  margin: 40px 0;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 350px 1fr !important;
  gap: 30px !important;
  background: white !important;
  border-radius: 12px !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
  margin-bottom: 30px !important;
}

/* OVERRIDE: Force paragraphs to be visible - reset left position */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes {
  left: auto !important;
  position: relative !important;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  margin-bottom: 30px !important;
  padding: 30px !important;
  pointer-events: auto !important;
}

/* FINAL OVERRIDE: Use same specificity as hiding rule */
body.type-taxonomy.vocabulary-esperienze.term-depth-2.depth-3 .view.view-termine-descrizione .view-content .views-row .paragraphs-section .paragraphs-container .paragraph.paragraph--type--ispirazioni-boxes.paragraph--view-mode--default:nth-of-type(1) {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 30px !important;
  position: relative !important;
  left: auto !important;
  pointer-events: auto !important;
}

/* Remove grey overlay from VACANZA PRIMAVERILE box */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row .paragraphs-section::before,
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraph::before {
  display: none !important;
  content: none !important;
}

/* Also remove overlay from paragraphs-container */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraphs-container::before {
  display: none !important;
}

/* STRONGER: Remove grey overlay from entire views-row in paragraphs-section */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row:has(.paragraphs-section)::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Alternative: Set z-index to push overlay behind content */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section {
  position: relative;
  z-index: 10;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraph {
  position: relative !important;
  z-index: 11 !important;
  background: white !important;
}

/* ============================================================ */
/* DEPTH-2 FAMILY PAGE - CSS REFINEMENTS (19 Jan 2026) */
/* ============================================================ */

/* 1. VACANZA PRIMAVERILE - Single white box, square corners, no shadow */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section {
  background: white !important;
  margin: 40px 0 !important;
  box-shadow: none !important;
  box-shadow: none !important;
}

body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes {
  background: transparent !important;
  box-shadow: none !important;
  box-shadow: none !important;
  padding: 5px !important;
  margin: 0 !important;
}

/* Remove any inner boxes/shadows from ispirazioni-boxes */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .paragraphs-section .paragraphs-container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2. CARDS FAMIGLIE - Bold text, more space below, make clickable */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row .field--name-name {
  font-weight: 700 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row {
  margin-bottom: 30px !important;
  padding-bottom: 20px !important;
  cursor: pointer;
}

/* Make entire card clickable via CSS - show pointer cursor */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row > div {
  cursor: pointer;
}

/* Add link styling to card titles */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli h2 a,
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .field--name-name a {
  text-decoration: none;
  color: inherit;
}

body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}

/* 3. CONTENUTI INFERIORI - Remove inner box shadow, images touch borders */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .views-row {
  background: white !important;
  box-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 20px !important;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-content {
  box-shadow: none !important;
  border: none !important;
  padding: 5px !important;
  margin: 0 !important;
}

body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-taxonomy-container {
  box-shadow: none !important;
  border: none !important;
}

/* Images touch borders - remove any padding/margin */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .field--name-field-immagine {
  margin: 0 !important;
  padding: 5px !important;
}

body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .field--name-field-immagine img {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 5px !important;
  box-shadow: none !important;
}

/* Remove padding from taxonomy-terms list */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .taxonomy-terms {
  margin: 0 !important;
  padding: 5px !important;
  list-style: none !important;
}

body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .taxonomy-terms li {
  margin: 0 !important;
  padding: 5px !important;
}
/* ============================================================ */
/* DEPTH-2 FAMILY PAGE - STRONGER CSS FIXES (19 Jan 2026 v2) */
/* ============================================================ */

/* 1. VACANZA PRIMAVERILE - Ensure single white box */
body.vocabulary-esperienze.term-depth-2 .view-termine-descrizione .views-row:has(.paragraphs-section) {
  background: white !important;
  box-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 3. CONTENUTI INFERIORI - Remove box shadow from article nodes */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node-type-trip.node-view-mode-teaser {
  box-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
  background: white !important;
  overflow: hidden !important;
}

body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node-type-trip {
  box-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Target any node article in contenuti-termine */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node {
  box-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 5px !important;
}

/* Force images to touch white box borders */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 5px !important;
  box-shadow: none !important;
}

/* Remove any padding from image containers in contenuti */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-content,
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .field--name-field-immagine,
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-taxonomy-container {
  padding: 5px !important;
  margin: 0 !important;
}

/* 2. CARDS FAMIGLIE - Fix clickability and styling */
/* Ensure cards have proper link area */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row {
  position: relative !important;
}

/* Make links inside cards cover the entire card if needed */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .views-row a {
  display: block;
}

/* Bold text for card titles */
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli h2,
body.vocabulary-esperienze.term-depth-2 .view-destinazioni-figli .field--name-name {
  font-weight: 700 !important;
}

/* Add bottom margin to cards */
body.vocabulary-esperienze.term-depth-2 #block-tarapro-views-block-destinazioni-figli-block-1 .views-row {
  margin-bottom: 25px !important;
}
/* ============================================================ */
/* OVERRIDE: Remove teaser box-shadow on depth-2 contenuti (v3) */
/* ============================================================ */

/* Override base .node-view-mode-teaser styles from style.css line 2303 */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-view-mode-teaser {
  box-shadow: none !important;
  box-shadow: none !important;
  padding: 5px !important;
  margin-bottom: 0;
}

/* Also target all child elements that might have shadows */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-view-mode-teaser *,
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-view-mode-teaser::before,
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-view-mode-teaser::after {
  box-shadow: none !important;
}

/* Images touch borders */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine .node-view-mode-teaser img {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 5px !important;
  box-shadow: none !important;
}
/* Hide .field--name-body in teaser nodes on depth-2 pages */
body.vocabulary-esperienze.term-depth-2 .view-display-id-block_1 article.node.node-view-mode-teaser .field--name-body {
  display: none !important;
}
/* Add margin-bottom to termini-figli on depth-2 */
body.vocabulary-esperienze.term-depth-2 .view-termini-figli {
  margin-bottom: 30px !important;
}
/* Fix: Force image to fill article height so title overlaps */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node-type-trip .field--name-field-immagine {
  /* height: 100%; */
}

body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node-type-trip .field--name-field-immagine img {
  /* height: 100%; */
  object-fit: cover;
}
/* Fix v2: Use min-height to guarantee image height */
body.vocabulary-esperienze.term-depth-2 .view-contenuti-termine article.node-type-trip .field--name-field-immagine img {
  min-height: 400px !important;
  object-fit: cover !important;
}
/* ============================================================ */
/* DEPTH-3: Apply same styles as depth-2 */
/* ============================================================ */

/* Banner text container */
body.vocabulary-esperienze.term-depth-3 #block-tarapro-taxonomytermbanner .slider-text-container {
  top: 50px;
}

/* Hide termine-descrizione block */
body.vocabulary-esperienze.term-depth-3 #block-tarapro-views-block-termine-descrizione-block-1 {
  display: none !important;
}

/* Hide .field--name-body in teaser nodes */
body.vocabulary-esperienze.term-depth-3 .view-display-id-block_1 article.node.node-view-mode-teaser .field--name-body {
  display: none !important;
}

/* Margin bottom for termini-figli / destinazioni-figli */
body.vocabulary-esperienze.term-depth-3 .view-termini-figli,
body.vocabulary-esperienze.term-depth-3 .view-destinazioni-figli {
  margin-bottom: 30px !important;
}

/* Contenuti teaser - remove box-shadow only */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .node-view-mode-teaser *,
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .node-view-mode-teaser::before,
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .node-view-mode-teaser::after {
  box-shadow: none !important;
}

/* Force image min-height for title overlay */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine article.node-type-trip .field--name-field-immagine img {
  min-height: 400px !important;
  object-fit: cover !important;
}

/* Destinazioni-figli masonry - same style as termini-figli */
body.vocabulary-esperienze.term-depth-3 .view-destinazioni-figli .views-row {
  margin-bottom: 20px;
}

body.vocabulary-esperienze.term-depth-3 .view-destinazioni-figli h2 {
  font-weight: 700 !important;
}
/* ============================================================ */
/* DEPTH-3: Banner slider-text-container fixes (same as depth-2) */
/* ============================================================ */

body.type-taxonomy.vocabulary-esperienze.term-depth-3 .slider-text-container * {
  transition-delay: 0s !important;
  transform: none !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-3 .slider-text-container {
  position: relative !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-3 .slider-text-container .container {
  padding: 5px !important;
  max-width: 100% !important;
}

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

body.type-taxonomy.vocabulary-esperienze.term-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: 5px !important;
}

@media (max-width: 991px) {
  body.type-taxonomy.vocabulary-esperienze.term-depth-3 .slider-text-container .slider-text h1.layer2 {
    font-size: 50px !important;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze.term-depth-3 .slider-text-container .slider-text h1.layer2 {
    font-size: 36px !important;
  }
}

/* Fix slider-text-container position for depth-3 */
body.vocabulary-esperienze.term-depth-3 #block-tarapro-taxonomytermbanner .slider-text-container {
  top: 50px !important;
}
/* DEPTH-3: Remove margin, shadow, radius from teaser nodes */
body.vocabulary-esperienze.term-depth-3 .node-view-mode-teaser {
  padding: 5px !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.vocabulary-esperienze.term-depth-3 .node-view-mode-teaser *:not(.node-title),
body.vocabulary-esperienze.term-depth-3 .node-view-mode-teaser::before,
body.vocabulary-esperienze.term-depth-3 .node-view-mode-teaser::after {
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Fix h2.node-title alignment for depth-3/depth-4 esperienze pages */
body.vocabulary-esperienze.term-depth-3 .view-taxonomy-term .views-row {
  position: relative;
}

body.vocabulary-esperienze.term-depth-3 .node-type-trip h2.node-title {
  bottom: 0;
  right: 5px;
}

/* Fix h2.node-title alignment - force flush with image edges */
body.vocabulary-esperienze.term-depth-3 .view-taxonomy-term .node-type-trip {
  position: relative;
  overflow: hidden;
}

body.vocabulary-esperienze.term-depth-3 .view-taxonomy-term .node-type-trip h2.node-title {
  bottom: 2.5px !important;
  margin: 0 !important;
}

/* Remove padding on views-row for term-depth-3 to match da-solo style */
body.vocabulary-esperienze.term-depth-3 .view-taxonomy-term .views-row {
  padding: 5px !important;
}

/* Remove padding from image container for term-depth-3 to match da-solo style */
body.vocabulary-esperienze.term-depth-3 .view-taxonomy-term .field--name-field-immagine {
  padding: 5px !important;
  margin: 0 !important;
  width: 100% !important;
}

body.vocabulary-esperienze.term-depth-3 .view-taxonomy-term article.node-type-trip {
  padding: 5px !important;
}

/* ============================================================ */
/* FIX: term-depth-3 view-contenuti-termine - match da-solo style */
/* ============================================================ */

/* Remove padding from views-row */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .views-row {
  padding: 5px !important;
}

/* Remove padding from article */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine article.node-type-trip {
  padding: 5px !important;
  position: relative;
}

/* Image container - full width, no padding */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine article.node-type-trip .field--name-field-immagine {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* h2.node-title - flush with right and bottom edges */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine article.node-type-trip h2.node-title {
  bottom: 2.5px !important;
}

/* ============================================================ */
/* FIX: term-depth-3 masonry overflow - prevent images from spilling */
/* ============================================================ */

/* Overflow hidden on views-row to contain images */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .views-row {
  overflow: hidden !important;
}

/* Overflow hidden on node-taxonomy-container */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .node-taxonomy-container {
  overflow: hidden !important;
}

/* Taxonomy terms containers - overflow hidden and full width */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .taxonomy-terms,
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .taxonomy-terms li,
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .taxonomy-terms a {
  overflow: hidden !important;
  width: 100% !important;
}

/* Links display block */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine .taxonomy-terms a {
  display: block !important;
}

/* Images constrained to container */
body.vocabulary-esperienze.term-depth-3 .view-contenuti-termine img {
  width: 100% !important;
  max-width: 100% !important;
}

/* ========================================
   TERM-DEPTH-3: Show and style Contenuti Aggiuntivi (Boxes)
   Added 2026-01-26 
   ======================================== */

/* Show the block */
body.vocabulary-esperienze.term-depth-3 #block-tarapro-views-block-termine-descrizione-block-1 {
  display: block !important;
  position: relative;
  width: 100%;
  margin-bottom: 60px;
}

body.vocabulary-esperienze.term-depth-3 #block-tarapro-views-block-termine-descrizione-block-1 .hero-section {
  display: none !important;
}

/* Paragraphs section - NO full width */
body.vocabulary-esperienze.term-depth-3 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section {
  display: block !important;
  /* width: 100vw !important; */
  /* margin-left: calc(-50vw + 50%) !important; */
  position: relative !important;
  background: #f0f0f0 !important;
  padding: 80px 0 !important;
  z-index: 20 !important;
}

body.vocabulary-esperienze.term-depth-3 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section .paragraphs-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 30px !important;
  display: block !important;
  height: auto !important;
}

/* Boxes container - block layout */
body.vocabulary-esperienze.term-depth-3 #block-tarapro-views-block-termine-descrizione-block-1 .paragraphs-section .paragraph--type--ispirazioni-boxes {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
}

/* Individual paragraph - horizontal card layout */
body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes {
  display: grid !important;
  grid-template-columns: 400px 1fr !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1) !important;
  margin-bottom: 50px !important;
  min-height: 320px !important;
  transition: all 0.3s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes:last-child {
  margin-bottom: 0 !important;
}

body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 60px rgba(0,0,0,0.15) !important;
}

/* Alternate layout - even cards have image on right */
body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) {
  grid-template-columns: 1fr 400px !important;
}

body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) .field--name-field-icona {
  order: 2 !important;
}

/* Image section */
body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-icona {
  grid-row: 1 / -1 !important;
  position: relative !important;
  min-height: 320px !important;
  overflow: hidden !important;
}

body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-icona .field-item,
body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-icona img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Title styling */
body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-titolo {
  padding: 40px 40px 15px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  line-height: 1.2 !important;
  font-family: Oswald, sans-serif !important;
}

/* Text styling */
body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-testo-boxes {
  padding: 0 40px 40px !important;
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #555 !important;
}

body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-testo-boxes p {
  margin: 0 0 20px !important;
}

body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-testo-boxes p:last-child {
  margin-bottom: 0 !important;
}

/* Mobile responsive */
@media (max-width: 900px) {
  body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes,
  body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) {
    grid-template-columns: 1fr !important;
    grid-template-rows: 280px auto !important;
  }
  
  body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph.paragraph--type--ispirazioni-boxes:nth-child(even) .field--name-field-icona {
    order: 0 !important;
  }
  
  body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-icona {
    min-height: 280px !important;
  }
  
  body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-titolo {
    padding: 30px 25px 10px !important;
    font-size: 22px !important;
  }
  
  body.vocabulary-esperienze.term-depth-3 .paragraphs-section .paragraph .field--name-field-testo-boxes {
    padding: 0 25px 30px !important;
  }
}

/* Paragraph: Titolo e Sottotitolo */
.paragraph--type--solo-titolo {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.paragraph--type--solo-titolo .field--name-field-titolo {
    margin: 0 !important;
    padding: 0 !important;
}

.paragraph--type--solo-titolo .field--name-field-sottotitolo {
    margin: 0 !important;
    padding: 0 !important;
}

/* ===================================
   PARAGRAPH SOTTOTERMINI - BOX GRID STYLE
   =================================== */

/* Container del paragraph sottotermini */
.paragraph--type--sottotermini {
    background: transparent !important;
    padding: 0 !important;
    margin: 40px 0 !important;
}

/* Nasconde il titolo "Termini" e l'icona */
.paragraph--type--sottotermini .node-taxonomy-container > h4 {
    display: none !important;
}

/* Trasforma la lista in griglia */
.paragraph--type--sottotermini ul.taxonomy-terms {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
}

/* Ogni elemento della lista diventa un box */
.paragraph--type--sottotermini ul.taxonomy-terms li {
    background-color: #262626 !important;
    padding: 40px 30px !important;
    position: relative !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Rimuove il bullet point */
.paragraph--type--sottotermini ul.taxonomy-terms li::before {
    display: none !important;
}

/* Hover effect */
.paragraph--type--sottotermini ul.taxonomy-terms li:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Red corner on top right */
.paragraph--type--sottotermini ul.taxonomy-terms li::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #FF0000 !important;
    border-radius: 0 0 0 100% !important;
}

/* Link styling */
.paragraph--type--sottotermini ul.taxonomy-terms li a {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
}

.paragraph--type--sottotermini ul.taxonomy-terms li a:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .paragraph--type--sottotermini ul.taxonomy-terms {
        grid-template-columns: 1fr !important;
    }
    
    .paragraph--type--sottotermini ul.taxonomy-terms li {
        min-height: 150px !important;
        padding: 30px 20px !important;
    }
}

/* ===================================
   SOTTOTERMINI - NEW GRID WITH IMAGES
   =================================== */

/* Griglia principale - esattamente 4 colonne */
.sottotermini-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ogni box */
.sottotermini-box {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-height: 280px !important;
    padding: 30px 20px !important;
    position: relative !important;
    background-color: #262626 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    text-decoration: none !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Overlay scuro per leggibilità del testo */
.sottotermini-box::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%) !important;
    z-index: 1 !important;
}

/* Angolo rosso */
.sottotermini-box::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #FF0000 !important;
    border-radius: 0 0 0 100% !important;
    z-index: 2 !important;
}

/* Titolo */
.sottotermini-box-title {
    position: relative !important;
    z-index: 3 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* Hover effect */
.sottotermini-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
}

.sottotermini-box:hover .sottotermini-box-title {
    color: #ffffff !important;
}

/* Responsive - 2 colonne su tablet */
@media (max-width: 1024px) {
    .sottotermini-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive - 1 colonna su mobile */
@media (max-width: 600px) {
    .sottotermini-grid {
        grid-template-columns: 1fr !important;
    }
    
    .sottotermini-box {
        min-height: 200px !important;
    }
}

/* Nasconde il vecchio stile se ancora visibile */
.paragraph--type--sottotermini .node-taxonomy-container {
    display: none !important;
}

/* Hide termini-figli block on term-depth-2 with depth-3 */
body.term-depth-2.depth-3 #block-tarapro-views-block-termini-figli-block-1 {
    display: none !important;
}

/* FIX: Hero banner frontpage - differenza peso layer1 vs layer2 */
body.frontpage .slider-text .layer1 {
  font-weight: 400;
}
body.frontpage .slider-text h1.layer2 {
  font-size: 50px;
}

/* =============================================
   COPY vocabulary-esperienze.term-depth-2 styles to term-depth-1
   for Chi, Quando, Cosa banner appearance
   ============================================= */
body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container * {
  transition-delay: 0s !important;
  transform: none !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container {
  position: relative !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container .container {
  padding: 5px !important;
  max-width: 100% !important;
}

body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container .slider-text {
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 40px !important;
  gap: 0 !important;
}

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

@media (max-width: 991px) {
  body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container .slider-text h1.layer2 {
    font-size: 50px !important;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container .slider-text h1.layer2 {
    font-size: 36px !important;
  }
}

body.vocabulary-esperienze.term-depth-1 #block-tarapro-taxonomytermbanner .slider-text-container {
  top: 50px !important;
}

.slider-ispirazioni p.layer3 {
  text-transform: none;
  font-weight: normal;
}

body.page-type-page:not(.frontpage) .slider-ispirazioni .slider-text-container .slider-text {
  bottom: -30px !important;
}

body.page-type-page:not(.frontpage) .slider-page .slider-text-container .slider-text {
  bottom: -30px !important;
}

.slider-page p.layer3 {
  text-transform: none;
  font-weight: normal;
}

body.page-type-travel-item .node-taxonomy-container.field--name-field-vocabolario-esperienze {
  display: none!important;
}
/* =============================================
   RESPONSIVE RULES - TABLET & MOBILE
   Added: 16 Feb 2026
   Standardized breakpoints:
   - Tablet: max-width 1024px
   - Mobile: max-width 768px  
   - Small mobile: max-width 480px
   ============================================= */

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {

  .main-wrapper {
    padding-bottom: 100px;
  }

  .footer-bottom-middle-right {
    margin-top: -150px;
  }

  #block-tarapro-addedcopy {
    position: relative;
    right: auto;
    top: auto;
    text-align: center;
    margin-top: 10px;
  }

  body:not(.frontpage) .slider-image {
    height: 450px !important;
  }

  body.page-type-page:not(.frontpage) .slider-text-container {
    margin-top: 70px !important;
  }

  body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
    font-size: 60px !important;
    top: -110px !important;
  }

  body:not(.frontpage) .slider-image::after {
    left: 130px !important;
    width: 50px !important;
    height: 50px !important;
    bottom: -25px !important;
  }

  body.page-type-page:not(.frontpage) .field--name-field-title {
    font-size: 32px;
    max-width: 100%;
    padding: 0 20px;
  }

  body.page-type-page:not(.frontpage) .field--name-field-text,
  body.page-type-page:not(.frontpage) .field--name-field-boxes {
    max-width: 100%;
    padding: 0 20px;
  }

  body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text h1.layer2,
  body.type-taxonomy.vocabulary-albero.depth-3 .slider-text-container .slider-text h1.layer2 {
    font-size: 60px !important;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze {
    padding-top: 20px;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:before,
  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:after {
    width: 20px;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li {
    font-size: 13px;
    padding: 15px 0 2px;
  }

  #block-tarapro-views-block-termini-figli-block-1 {
    padding-bottom: 200px;
  }

  #block-tarapro-homelasciatiispirare {
    width: 95vw;
    margin-left: calc(-47.5vw + 50%);
  }

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

  .view-termini-figli .view-content {
    gap: 15px;
  }
}

/* ========== MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {

  .main-wrapper {
    padding-bottom: 80px;
  }

  .footer-bottom-middle-right {
    position: relative;
    margin-top: 0;
    margin-left: 0;
    text-align: center;
    padding: 20px 15px;
  }

  #block-tarapro-copyright {
    text-align: center;
    font-size: 11px;
  }

  #block-tarapro-addedcopy {
    position: relative;
    right: auto;
    top: auto;
    text-align: center;
    margin-top: 5px;
  }

  #block-tarapro-views-block-termini-figli-block-1 {
    padding-bottom: 150px;
    margin-top: 30px;
  }

  body:not(.frontpage) .slider-image {
    height: 350px !important;
  }

  body.page-type-page:not(.frontpage) .slider-text-container {
    margin-top: 50px !important;
  }

  body.page-type-page:not(.frontpage) .slider-text-container .slider-text {
    padding: 20px 15px !important;
  }

  body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
    font-size: 40px !important;
    top: -90px !important;
    letter-spacing: 2px;
  }

  body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3 {
    font-size: 14px !important;
    padding-left: 60px !important;
    line-height: 1.4;
  }

  body:not(.frontpage) .slider-image::after {
    left: 100px !important;
    width: 45px !important;
    height: 45px !important;
    bottom: -22px !important;
  }

  body.page-type-page:not(.frontpage) .field--name-field-title {
    font-size: 28px !important;
    letter-spacing: 1px;
    margin: 30px auto 20px !important;
    padding: 0 15px;
    max-width: 100%;
  }

  body.page-type-page:not(.frontpage) .field--name-field-text {
    max-width: 100%;
    padding: 0 15px;
    font-size: 14px;
  }

  body.page-type-page:not(.frontpage) .field--name-field-boxes {
    flex-direction: column !important;
    gap: 15px;
    max-width: 100%;
    padding: 0 15px;
  }

  body.page-type-page .field--name-body {
    margin-top: 30px;
  }

  body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text {
    top: 40px;
    padding-bottom: 30px !important;
  }

  body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text h1.layer2,
  body.type-taxonomy.vocabulary-albero.depth-3 .slider-text-container .slider-text h1.layer2 {
    font-size: 40px !important;
    margin-top: -30px !important;
  }

  body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text p.layer3 {
    font-size: 13px !important;
    margin-bottom: 0px;
    padding-bottom: 0px !important;
    margin-top: -45px;
    bottom: 40px;
    position: relative;
  }

  body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container .slider-text h1.layer2 {
    font-size: 40px !important;
    margin-top: -35px !important;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze {
    padding-top: 10px;
    margin-bottom: 30px;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:before,
  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze:after {
    display: none;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 0 10px;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li {
    font-size: 12px;
    padding: 10px 5px 2px;
    border-radius: 0 !important;
  }

  body.type-taxonomy.vocabulary-esperienze .region-content nav.menu-esperienze ul.menu > li:last-of-type {
    border-radius: 0 !important;
    padding-right: 5px;
  }

  #block-tarapro-homelasciatiispirare {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 10px;
  }

  #block-tarapro-homelasciatiispirare .block-content {
    flex-direction: column !important;
  }

  #block-tarapro-homelasciatiispirare .field--name-field-image,
  #block-tarapro-homelasciatiispirare .field--name-body {
    width: 100% !important;
  }

  #block-tarapro-homelasciatiispirare .field--name-body {
    padding: 20px 15px !important;
  }

  #block-tarapro-homelasciatiispirare .field--name-body h2 {
    font-size: 24px !important;
  }

  #block-tarapro-homelasciatiispirare .field--name-body h3 {
    font-size: 16px !important;
  }

  .view-termini-figli .view-content {
    gap: 10px;
  }

  .node-view-mode-teaser {
    width: 100% !important;
    margin: 0 !important;
  }

  .field--name-field-immagine a {
    min-height: 180px;
  }

  .node-view-mode-teaser .node-title {
    font-size: 100% !important;
  }

  .field.field--name-body {
    min-height: auto !important;
  }

  .slider-page .dialog-off-canvas-main-canvas > section.slider {
    margin-top: -80px;
  }

  body.frontpage .slider-text h1.layer2 {
    font-size: 35px !important;
  }

  body.frontpage .slider-text .layer1 {
    font-size: 14px;
  }
}

/* ========== SMALL MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {

  .main-wrapper {
    padding-bottom: 60px;
  }

  body:not(.frontpage) .slider-image {
    height: 280px !important;
    padding-bottom: 100px;
  }

  body.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
    font-size: 30px !important;
    top: -70px !important;
    letter-spacing: 1px;
  }

  body.page-type-page:not(.frontpage) .slider-text-container .slider-text p.layer3 {
    font-size: 12px !important;
    padding-left: 0px !important;
    left: -10px;
    bottom: 20px;
  }

  body:not(.frontpage) .slider-image::after {
    left: 70px !important;
    width: 40px !important;
    height: 40px !important;
    bottom: -20px !important;
  }

  body.page-type-page:not(.frontpage) .field--name-field-title {
    font-size: 24px !important;
    letter-spacing: 0.5px;
  }

  body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text h1.layer2,
  body.type-taxonomy.vocabulary-albero.depth-3 .slider-text-container .slider-text h1.layer2,
  body.type-taxonomy.vocabulary-esperienze.term-depth-1 .slider-text-container .slider-text h1.layer2 {
    font-size: 30px !important;
    text-align: center;
    width: 100%;
    left: 0;
  }

  #block-tarapro-views-block-termini-figli-block-1 {
    padding-bottom: 100px;
  }

  body.frontpage .slider-text h1.layer2 {
    font-size: 26px !important;
  }

  body.frontpage .slider-text .layer1 {
    font-size: 12px;
  }

  .sottotermini-box {
    min-height: 150px !important;
  }

  .node-view-mode-teaser {
    width: 100% !important;
  }

  .field--name-field-immagine a {
    min-height: 150px;
  }

  .cookiealert .container {
    padding: 10px;
    font-size: 13px;
  }

  .cookiealert .acceptcookies {
    display: block;
    margin: 10px auto 0;
  }
}

/* =============================================
   ITERATION 1 FIXES - 16 Feb 2026
   Comprehensive responsive fixes
   ============================================= */

/* ========== TABLET (max-width: 1024px) - ADDITIONS ========== */
@media (max-width: 1024px) {

  /* Homepage slider text */
  body.frontpage .slider-text h1.layer2 {
    font-size: 55px !important;
  }
  body.frontpage .slider-text .layer1 {
    font-size: 18px;
  }

  /* Travel item slider */
  body.page-type-travel-item .slider-text-container .slider-text h1.layer2 {
    font-size: 60px !important;
  }

  /* Travel item itinerary cards */
  body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li {
    width: calc(50% - 0.4rem);
  }

  /* Hotel page - image and body */
  body.page-type-hotel .node-content {
    padding: 0 15px;
  }
  body.page-type-hotel .node-taxonomy-container {
    max-width: 100%;
    overflow: hidden;
  }

  /* Ispirazioni page - curved text blocks */
  body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva {
    padding: 30px 40px 30px;
    margin-bottom: 40px;
  }
  body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:nth-child(odd) {
    border-radius: 0 0 120px 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) {
    border-radius: 120px 0 0 0;
  }

  /* Taxonomy depth-3 two-column grid */
  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .view-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Reviews block */
  .reviews-block {
    padding: 0 15px;
  }

  /* Newsletter section */
  #block-tarapro-homenewsletter {
    padding: 0 15px;
  }

  /* Homepage "Ti mostreremo" section */
  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body {
    padding: 40px 30px;
  }

  /* Footer logo and copyright area - fix the absolute positioning */
  .footer-bottom-middle {
    padding-top: 150px;
    background-size: 120px;
  }
  .footer-bottom-middle-right {
    margin-top: -150px;
  }
}

/* ========== MOBILE (max-width: 768px) - ADDITIONS ========== */
@media (max-width: 768px) {

  /* Travel item slider - fix title independence */
  body.page-type-travel-item .slider-text-container .slider-text h1.layer2 {
    top: -60% !important;
    font-size: 36px !important;
    left: 15px;
    letter-spacing: 2px;
  }

  /* Travel item - anchor nav */
  body.page-type-travel-item .slider-text-container .slider-text nav:before {
    width: 40px;
    height: 40px;
  }

  /* Travel item - itinerary cards to single column */
  body.page-type-travel-item .field--name-field-itinerari > ul.taxonomy-terms > li {
    width: 100% !important;
  }

  /* Travel item - content padding */
  body.page-type-travel-item .node-content {
    padding: 0 15px;
  }
  body.page-type-travel-item .field--name-field-itinerari {
    padding: 0 15px;
  }

  /* Hotel page */
  body.page-type-hotel .node-content {
    padding: 0 15px;
  }
  body.page-type-hotel .node-title {
    font-size: 28px !important;
    padding: 15px;
  }
  body.page-type-hotel .node-taxonomy-container {
    max-width: 100%;
    overflow: hidden;
  }
  body.page-type-hotel .node-taxonomy-container .field--name-field-immagine {
    max-width: 100%;
  }
  body.page-type-hotel .field--name-body {
    padding: 0 15px;
    font-size: 14px;
  }

  /* Ispirazioni page */
  body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva {
    padding: 20px 20px;
    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(odd) {
    border-radius: 0 0 60px 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) {
    border-radius: 60px 0 0 0;
  }

  /* Taxonomy depth-3 grid to single column */
  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .view-content {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 15px;
  }

  /* Inner page slider layer4 (CTA bar) */
  body.inner-page .slider-text p.layer4 {
    font-size: 14px;
    padding: 5px 15px !important;
    padding-left: 5% !important;
    padding-bottom: 20px;
    padding-top: 20px;
  }

  /* Footer - restructure for mobile */
  .footer-bottom-middle {
    padding-top: 100px;
    background-size: 100px;
    text-align: center;
  }
  .footer-bottom-middle-right {
    position: relative !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    text-align: center;
    padding: 15px;
  }
  .footer-blocks {
    flex-direction: column !important;
    gap: 20px;
  }
  .footer-block {
    width: 100% !important;
    text-align: center;
  }

  /* Social icons in footer */
  .social-icons {
    justify-content: center;
    margin-top: 15px;
  }

  /* Reviews block - mobile layout */
  .reviews-block {
    padding: 0 15px;
  }
  .reviews-block .swiper-slide {
    width: 100% !important;
  }

  /* Newsletter form */
  .SIGNUP_FLD {
    width: 100% !important;
  }
  .SIGNUP_FLD input[type="text"] {
    width: 100% !important;
  }

  /* Homepage member logos */
  #block-tarapro-homememberof .field--name-field-images {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* Sottotermini box - destination cards */
  .sottotermini-box {
    min-height: 180px !important;
  }
  .sottotermini-box h2 {
    font-size: 20px !important;
  }

  /* Fix horizontal overflow */
  html, body {
    overflow-x: hidden;
  }
  .main-wrapper,
  .page-content {
    overflow-x: hidden;
  }

  /* Taxonomy esperienze term depth 2 grid */
  body.vocabulary-esperienze.term-depth-2 .view-content {
    grid-template-columns: 1fr !important;
    padding: 0 15px;
  }

  /* Full-width slider on mobile */
  body.inner-page section.slider {
    overflow: hidden;
  }
}

/* ========== SMALL MOBILE (max-width: 768px) - ADDITIONS ========== */
@media (max-width: 768px) {

  /* Travel item title */
  body.page-type-travel-item .slider-text-container .slider-text h1.layer2 {
    font-size: 28px !important;
    letter-spacing: 1px;
  }

  /* Travel item nav */
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
    font-size: 11px;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav:before {
    width: 30px;
    height: 30px;
  }

  /* Hotel page */
  body.page-type-hotel .node-title {
    font-size: 22px !important;
  }

  /* Ispirazioni */
  body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva {
    padding: 15px;
    border-radius: 0 0 30px 0 !important;
  }
  body.page-type-ispirazioni .page-content > .region-content > .node-type-ispirazioni > .node-content > .field--type-text-with-summary .testo_con_curva:nth-child(even) {
    border-radius: 30px 0 0 0 !important;
  }

  /* Footer */
  .footer-bottom-middle {
    padding-top: 80px;
    background-size: 80px;
  }

  /* Homepage slider */
  body.frontpage .slider-text h1.layer2 {
    font-size: 22px !important;
  }
  body.frontpage .slider-text .layer1 {
    font-size: 11px;
  }
  body.frontpage .slider-text .layer4.button {
    font-size: 12px;
    padding: 8px 16px;
    border: none !important;
    outline: none !important;
  }

  /* Inner page slider - CTA layer4 */
  body.inner-page .slider-text p.layer4 {
    font-size: 12px;
    padding: 3px 10px !important;
    padding-left: 3% !important;
  }

  /* Sottotermini box */
  .sottotermini-box {
    min-height: 130px !important;
  }
  .sottotermini-box h2 {
    font-size: 18px !important;
  }
}

/* =============================================
   ITERATION 2 FIXES - 16 Feb 2026
   Focus: Zoho forms, swiper, hotel, overflow
   ============================================= */

/* ========== TABLET (max-width: 1024px) - ITER 2 ========== */
@media (max-width: 1024px) {

  /* Zoho newsletter form - override inline 500px width */
  .quick_form_7_css[name="SIGNUP_BODY"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Zoho success popup - override inline 800px */
  #zcOptinSuccessPopup {
    width: 90vw !important;
    left: 5vw !important;
    max-width: 90vw !important;
  }

  /* Travel item - esperienze swiper slides */
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph {
    flex-direction: column !important;
  }
  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 {
    width: 100% !important;
  }

  /* Hotel page - image gallery responsive */
  body.page-type-hotel .node-taxonomy-container.field--name-field-immagine img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }

  /* Reviews swiper - fix height on tablet */
  .swiper-slide {
    height: auto !important;
    min-height: 200px;
  }
}

/* ========== MOBILE (max-width: 768px) - ITER 2 ========== */
@media (max-width: 768px) {

  /* Zoho form fields - override inline 170px width */
  .SIGNUP_FLD {
    width: 100% !important;
    margin: 10px 0 !important;
    display: block !important;
  }
  .SIGNUP_FLD input[type="text"] {
    width: 100% !important;
    height: 36px !important;
  }
  .SIGNUP_FLD input[type="button"] {
    width: 100% !important;
    height: 40px !important;
    margin-top: 10px !important;
  }
  #SIGNUP_HEADING {
    text-align: center !important;
  }

  /* Zoho success popup mobile */
  #zcOptinSuccessPopup {
    width: 95vw !important;
    left: 2.5vw !important;
    top: 50px !important;
    padding: 20px !important;
  }

  /* Hotel - image gallery to single column */
  body.page-type-hotel .node-taxonomy-container.field--name-field-immagine .taxonomy-terms {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }
  body.page-type-hotel .node-taxonomy-container.field--name-field-immagine .taxonomy-terms li {
    width: 100% !important;
  }
  body.page-type-hotel .node-taxonomy-container.field--name-field-immagine img {
    width: 100% !important;
    height: auto !important;
  }

  /* Hotel body content */
  body.page-type-hotel .field--name-body {
    padding: 0 15px !important;
    font-size: 14px;
    line-height: 1.6;
  }

  /* Travel item - esperienze section */
  body.page-type-travel-item .field--name-field-esperienze {
    padding: 0 15px;
  }
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide {
    padding: 15px 10px !important;
  }
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph {
    flex-direction: column !important;
  }

  /* Travel item - hotels/strutture section */
  body.page-type-travel-item .field--name-field-strutture-ricettive {
    padding: 0 15px;
  }
  body.page-type-travel-item .field--name-field-strutture-ricettive .taxonomy-terms {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
  }
  body.page-type-travel-item .field--name-field-strutture-ricettive .taxonomy-terms li {
    width: 100% !important;
  }

  /* Reviews swiper on mobile */
  .swiper-slide {
    height: auto !important;
    min-height: 180px;
    padding: 15px !important;
  }
  .reviews-block .swiper-button-next,
  .reviews-block .swiper-button-prev {
    display: none !important;
  }

  /* Homepage content sections overflow fix */
  .homepage-content {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Member of block - logo grid */
  #block-tarapro-homememberof {
    padding: 20px 15px;
  }
  #block-tarapro-homememberof .field--name-field-images .field-item {
    flex: 0 0 45% !important;
    text-align: center;
  }
  #block-tarapro-homememberof .field--name-field-images .field-item img {
    max-width: 100%;
    height: auto;
  }

  /* Info block (Zoho SalesIQ floating button) */
  #block-tarapro-info {
    min-width: auto !important;
    max-width: 80vw;
  }

  /* Fix swiper container overflow */
  .swiper {
    overflow: hidden;
  }

  /* Homepage slider arrows */
  .swiper-button-next,
  .swiper-button-prev {
    width: 30px !important;
    height: 30px !important;
  }

  /* Prevent any image from causing overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Prevent horizontal scroll globally for mobile */
  .container {
    max-width: 100%;
    /* overflow-x: hidden; */
    padding: 0;
  }
}

/* ========== SMALL MOBILE (max-width: 768px) - ITER 2 ========== */
@media (max-width: 768px) {

  /* Zoho form - even more compact */
  .quick_form_7_css[name="SIGNUP_BODY"] {
    width: 100% !important;
    padding: 10px !important;
  }

  /* Reviews */
  .swiper-slide {
    min-height: 150px;
    font-size: 12px;
  }

  /* Member logos smaller */
  #block-tarapro-homememberof .field--name-field-images .field-item {
    flex: 0 0 48% !important;
  }

  /* Stars in reviews */
  .stars svg {
    width: 20px;
    padding: 3px;
  }
}

/* === MENU: Force hamburger at 992px instead of 768px === */
/* Override style.css min-width:768px that shows desktop menu */
@media (max-width: 991px) {
  /* Show hamburger */
  .mobile-menu {
    display: block !important;
  }
  /* Hide desktop menu items */
  .region-primary-menu .menu {
    display: none !important;
  }
  /* Hide close button when not active */
  .close-mobile-menu {
    display: none;
  }
  /* When menu is open, show it */
  .active-menu .region-primary-menu .menu {
    display: flex !important;
    flex-direction: column;
    border: none;
  }
  .active-menu .close-mobile-menu {
    display: block !important;
  }

  /* Reduce header contact info on tablet */
  .header-right {
    max-width: 50%;
    overflow: hidden;
  }
  .header-contact {
    font-size: 11px;
  }
  
  /* Hide header overflow decorations */
  .header-right::after,
  .header-right::before,
  .header-contact::before,
  .header-contact::after {
    display: none !important;
  }
}

/* === SLIDER HEIGHT CAP FOR TABLET/MOBILE === */
@media (max-width: 991px) {
  body.frontpage .slider,
  body.frontpage .slider-full,
  body.frontpage .tns-outer,
  body.frontpage .tns-inner,
  body.frontpage .tns-item {
    max-height: 65vh !important;
  }
  body.frontpage .slider-image {
    max-height: 65vh !important;
    overflow: hidden;
  }
  body.frontpage .slider-image img {
    max-height: 65vh !important;
    object-fit: cover;
    width: 100%;
  }
  /* Ensure slider text is visible */
  body.frontpage .slider-text {
    display: block !important;
  }
  body.frontpage .slider-text h1.layer2 {
    font-size: 40px !important;
  }
  body.frontpage .slider-text h3.layer1 {
    font-size: 16px !important;
  }
}

@media (max-width: 576px) {
  body.frontpage .slider,
  body.frontpage .slider-full,
  body.frontpage .tns-outer,
  body.frontpage .tns-inner,
  body.frontpage .tns-item {
    max-height: 50vh !important;
  }
  body.frontpage .slider-image {
    max-height: 50vh !important;
  }
  body.frontpage .slider-image img {
    max-height: 50vh !important;
  }
  body.frontpage .slider-text h1.layer2 {
    font-size: 28px !important;
  }
  body.frontpage .slider-text h3.layer1 {
    font-size: 13px !important;
  }
  body.frontpage .slider-text .layer4.button {
    font-size: 12px !important;
    padding: 8px 16px;
  }
}

/* === WORD BREAK FOR LONG TITLES === */
@media (max-width: 768px) {
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Long taxonomy titles */
  body.type-taxonomy .slider-text h1.layer2 {
    word-break: break-word !important;
    hyphens: auto;
  }

  /* Gift Card and other page titles */
  body.page-type-page .field--name-body h2,
  body.page-type-page .field--name-body h3,
  body.page-type-page .field--name-body h4 {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* === FOOTER EMAIL LINKS WORD BREAK === */
footer a[href^="mailto"] {
  word-break: break-all;
}

@media (max-width: 768px) {
  footer .footer-bottom-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  footer .footer-bottom-middle > div,
  footer .footer-bottom-middle-right {
    width: 100% !important;
    text-align: center !important;
  }

  /* Footer blocks stacking */
  .footer-blocks,
  section.footer-blocks {
    flex-direction: column !important;
    gap: 20px;
  }
  .footer-block {
    width: 100% !important;
    text-align: center;
  }
  
  /* Footer email addresses */
  footer a {
    font-size: 13px;
  }
}

/* === CONTENT PADDING FOR MOBILE === */
@media (max-width: 768px) {
  /* Ensure all content has adequate padding */
  .field--name-body,
  .field--name-description,
  .field--name-field-text {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Images in body content */
  .field--name-body img,
  .field--name-field-text img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* === HOTEL PAGE - HERO IMAGE CAP === */
@media (max-width: 991px) {
  body.page-type-hotel .slider-image img,
  body.page-type-hotel .node-taxonomy-container.field--name-field-immagine img.image-field {
    max-height: 50vh;
    object-fit: cover;
    width: 100%;
  }
}

/* === TAXONOMY CARD GRID - ENSURE RESPONSIVE === */
@media (max-width: 768px) {
  /* Sottotermini cards to full width */
  .view-termini-figli .views-row,
  .view-termini-figli .view-content > div {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .view-termini-figli .view-content {
    margin: 0 !important;
    padding: 0 15px;
  }
}

/* === TRAVEL ITEM - ANCHOR TABS RESPONSIVE === */
@media (max-width: 768px) {
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 12px;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li:after {
    margin: 0 3px;
  }
}

@media (max-width: 768px) {
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list {
    flex-direction: column !important;
    align-items: center !important;
  }
  body.page-type-travel-item .slider-text-container .slider-text nav ul.anchor-menu-list > li:after {
    display: none !important;
  }
}

/* =============================================
   ITERATION 4 FIXES - 16 Feb 2026
   Fine-tuning: Lasciati Ispirare, images,
   author-photo, spacing, misc
   ============================================= */

/* === LASCIATI ISPIRARE - TABLET FIX === */
@media (max-width: 1024px) {
  #block-tarapro-homelasciatiispirare .field--name-body {
    padding: 30px 40px !important;
    border-radius: 0 0 0 200px;
  }
  #block-tarapro-homelasciatiispirare .field--name-body h2 {
    font-size: 2rem !important;
  }
}

/* === LASCIATI ISPIRARE - MOBILE FIX === */
@media (max-width: 768px) {
  #block-tarapro-homelasciatiispirare {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
  }
  #block-tarapro-homelasciatiispirare .field--name-body {
    position: relative !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: 25px 30px !important;
    text-align: left !important;
  }
  #block-tarapro-homelasciatiispirare .field--name-body > p {
    padding-left: 0 !important;
    margin-bottom: 20px !important;
  }
  #block-tarapro-homelasciatiispirare .field--name-body > h2,
  #block-tarapro-homelasciatiispirare .field--name-body > h3 {
    padding-left: 0 !important;
    text-align: left !important;
  }
  #block-tarapro-homelasciatiispirare .field--name-field-image {
    height: 250px !important;
  }
}

@media (max-width: 768px) {
  #block-tarapro-homelasciatiispirare .field--name-body h2 {
    font-size: 1.5rem !important;
  }
  #block-tarapro-homelasciatiispirare .field--name-body h3 {
    font-size: 0.85rem !important;
  }
  #block-tarapro-homelasciatiispirare .field--name-field-image {
    height: 200px !important;
  }
}

/* === AUTHOR PHOTOS - CONSTRAIN SIZE === */
@media (max-width: 768px) {
  img.author-photo {
    max-width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    object-fit: cover;
  }
}

/* === HOMEPAGE: "Ti mostreremo il mondo" FIX === */
@media (max-width: 768px) {
  #block-tarapro-hometimostreremoilmondosottounanuovaluce {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    border-radius: 0 0 30px 0 !important;
    padding: 0px 10px;
  }
  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body {
    padding: 20px 15px !important;
  }
  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body h2 {
    font-size: 1.4rem !important;
    max-width: 100%;
  }
  #block-tarapro-hometimostreremoilmondosottounanuovaluce .field--name-body:after {
    width: 60px;
  }
}

/* === HOMEPAGE NEWSLETTER SECTION === */
@media (max-width: 768px) {
  #block-tarapro-homenewsletter {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
  }
  #block-tarapro-homenewsletter:before {
    width: 60px !important;
  }
  #block-tarapro-homenewsletter .field--name-body {
    padding: 20px 15px !important;
  }
  #block-tarapro-homenewsletter .field--name-body h2 {
    font-size: 1.1rem !important;
  }
}

/* === REVIEWS SWIPER - CONSTRAIN === */
@media (max-width: 768px) {
  .reviews-block {
    max-width: 100vw;
    overflow: hidden;
    padding: 0 15px;
  }
  .swiper-wrapper {
    flex-direction: column;
  }
  .swiper-slide {
    width: 100% !important;
    height: auto !important;
    min-height: auto;
    margin-bottom: 15px;
  }
}

/* === TAXONOMY ESPERIENZE - CARD GRID === */
@media (max-width: 768px) {
  body.vocabulary-esperienze .view-termini-figli .views-row {
    width: 100% !important;
    margin: 0 0 15px !important;
  }
  body.vocabulary-esperienze .view-termini-figli .views-row img.image-field {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
  }
}

/* === GLOBAL: Prevent any block from exceeding viewport === */
@media (max-width: 768px) {
  .block-region,
  .homepage-content,
  .page-content,
  .region-content {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* === TRAVEL ITEM: Experience paragraphs text + image === */
@media (max-width: 768px) {
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div.field--name-field-testo {
    padding: 15px !important;
  }
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div.field--name-field-testo p strong {
    font-size: 22px !important;
  }
}

@media (max-width: 768px) {
  body.page-type-travel-item .field--name-field-esperienze .field-item.swiper-slide .paragraph > div.field--name-field-testo p strong {
    font-size: 18px !important;
  }
}

/* === COOKIE ALERT MOBILE === */
@media (max-width: 768px) {
  .cookiealert {
    padding: 10px 15px !important;
    font-size: 12px;
  }
  .cookiealert .container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .cookiealert .acceptcookies {
    display: block !important;
    margin: 5px auto 0 !important;
    width: 100%;
  }
}

/* === SCROLLTOP BUTTON MOBILE === */
@media (max-width: 768px) {
  .scrolltop {
    right: 10px !important;
    bottom: 60px !important;
    width: 35px !important;
    height: 35px !important;
  }
}

@media (max-width: 768px) {
  body.page-type-hotel article.node-type-hotel .titolo_e_immagine {
    max-height: 350px;
  }
  body.page-type-hotel article.node-type-hotel .titolo_e_immagine img {
    max-height: 350px;
  }
  body.page-type-hotel article.node-type-hotel .titolo_e_immagine h1.node-title {
    border-top-left-radius: 80px;
    padding: 10px 15px;
  }
  body.page-type-hotel article.node-type-hotel .titolo_e_immagine h1.node-title span:not(.normal) {
    font-size: 16px;
    padding: 10px 15px 0 40px;
  }

  /* Hotel gallery - 1 column on mobile */
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+1),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+2),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+3),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+4),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:last-child:nth-child(odd) {
    flex-basis: 100% !important;
  }
}

@media (max-width: 768px) {
  body.page-type-hotel article.node-type-hotel .titolo_e_immagine {
    max-height: 250px;
  }
  body.page-type-hotel article.node-type-hotel .titolo_e_immagine img {
    max-height: 250px;
  }
}

/* === HOTEL - Additional responsive rules === */
@media (max-width: 1024px) {
  /* Hotel gallery 50/50 on tablet instead of 40/60 */
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+1),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+2),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+3),
  body.page-type-hotel .node-content .field--name-field-immagine .taxonomy-terms > li:nth-child(4n+4) {
    flex-basis: calc(50% - 0.2rem) !important;
  }

  /* Hotel sections padding */
  body.page-type-hotel .node-content > .field {
    padding: 0 15px;
  }
}

/* === HOTEL - Sections responsive === */
@media (max-width: 768px) {
  body.page-type-hotel .node-content > .field--name-field-descrizione-hotel,
  body.page-type-hotel .node-content > .field--name-field-camere,
  body.page-type-hotel .node-content > .field--name-field-servizi {
    padding: 0 15px;
  }
  body.page-type-hotel .node-content > .field--name-field-descrizione-hotel h2,
  body.page-type-hotel .node-content > .field--name-field-camere h2,
  body.page-type-hotel .node-content > .field--name-field-servizi h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy .view-termini-figli .view-content {
    gap: 15px;
    padding: 0 15px;
  }
}

/* === PAGE TYPE PAGE - extended field responsive === */
@media (max-width: 768px) {
  body.page-type-page:not(.frontpage) .field--name-field-extended {
    padding: 0 15px;
  }
  body.page-type-page:not(.frontpage) .field--name-field-extended h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    word-break: break-word;
  }
}

@media (max-width: 768px) {
  #block-tarapro-homenewsletter .field--name-body h2 {
    text-align: center;
    font-size: 1rem !important;
  }
}

/* === INNER PAGE - slider margin on mobile === */
@media (max-width: 768px) {
  .slider-page .dialog-off-canvas-main-canvas > section.slider {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .slider-page .dialog-off-canvas-main-canvas > section.slider {
    margin-top: -60px;
    margin: 0;
    width: 100% !important;
    padding: 0;
  }
}

/* === TAXONOMY - sottotermini grid refinement === */
@media (max-width: 1024px) {
  .sottotermini-box {
    min-height: 200px !important;
  }
}

@media (max-width: 768px) {
  .sottotermini-box {
    min-height: 160px !important;
  }
  .sottotermini-box h2 {
    font-size: 18px !important;
    padding: 10px !important;
  }
}

/* === ISPIRAZIONI - travel items grid === */
@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 {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* === PRINT STYLES - hide unnecessary elements === */
@media print {
  .mobile-menu,
  .close-mobile-menu,
  .cookiealert,
  .scrolltop,
  #block-tarapro-info {
    display: none !important;
  }
  .header {
    position: relative !important;
  }
  .main-wrapper {
    padding-bottom: 20px;
  }
}

/* =============================================
   ROUND 10B FIX - 16 Feb 2026
   FINAL overflow elimination: replace ALL
   width: 100vw with width: 100% to avoid
   scrollbar inclusion problem
   ============================================= */
/* === FIX 1: HAMBURGER MENU - span display block === */
/* Bug: span inside .mobile-menu renders as inline (0x0px) */
/* The flex container needs block children to size correctly */
.mobile-menu span {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background-color: #ffffff !important;
  margin: 6px;
  border-radius: 1px;
}

/* Ensure hamburger is visible and properly sized */
.mobile-menu {
  z-index: 100;
  position: relative;
  min-width: 40px;
  min-height: 30px;
}

/* === FIX 2: LOSANGA ROSSA (info block) su mobile === */
/* On mobile, the losanga is too big and creates overflow */
@media (max-width: 768px) {
  #block-tarapro-info {
    min-width: 120px !important;
    min-height: 80px !important;
    padding: 10px 15px 10px 30px !important;
    border-radius: 0 0 0 150px !important;
    font-size: 10px !important;
    z-index: 50;
  }
  #block-tarapro-info .block-content {
    margin-top: 10px !important;
  }
  #block-tarapro-info p {
    font-size: 9px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 768px) {
  #block-tarapro-info {
    min-width: 90px !important;
    min-height: 60px !important;
    padding: 8px 10px 8px 25px !important;
    border-radius: 0 0 0 100px !important;
  }
  #block-tarapro-info p {
    font-size: 8px !important;
  }
}

/* === FIX 3: MENU APERTO - miglior styling mobile === */
@media (max-width: 991px) {
  /* Menu drawer larger font */
  .active-menu .menu-wrap {
    z-index: 200 !important;
  }
  .region-primary-menu .menu {
    font-size: 16px !important;
    padding: 1rem !important;
  }
  .region-primary-menu .menu a {
    padding: 0.8rem 0 !important;
    font-size: 16px !important;
  }
  .region-primary-menu .menu-item-level-1 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  /* Close button clearly visible above everything */
  .close-mobile-menu {
    z-index: 210 !important;
    top: -10px !important;
    right: -20px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    background-color: transparent;
    border: none;
    font-weight: bolder;
  }
}

/* === FIX 4: SLIDER TEXT su mobile === */
/* Slider text overlay invisible on mobile - ensure visibility */
@media (max-width: 768px) {
  .slider-text-container {
    position: relative !important;
  }
  .slider-text {
    position: relative !important;
    padding: 15px !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
  }
  body.frontpage .slider h1.layer2 {
    font-size: 22px !important;
    position: relative !important;
    top: auto !important;
  }
  body.frontpage .slider p.layer3 {
    font-size: 14px !important;
    position: relative !important;
  }
  body.frontpage .slider h3.layer1 {
    font-size: 16px !important;
    position: relative !important;
    margin-top: -70px;
  }
  /* Inner page slider text */
  body:not(.frontpage) .slider-text {
    padding: 10px 15px !important;
  }
  body:not(.frontpage) h1.layer2 {
    font-size: 20px !important;
    position: relative !important;
    top: auto !important;
  }
  body:not(.frontpage) p.layer3 {
    font-size: 13px !important;
  }
}

@media (max-width: 768px) {
  body.frontpage .slider h1.layer2 {
    font-size: 12px !important;
    margin-top: 15px;
  }
  body:not(.frontpage) h1.layer2 {
    font-size: 16px !important;
  }
}

/* === FIX 5: BODY CONTENT WIDTH su mobile === */
/* Content areas rendering at 182px instead of full width */
@media (max-width: 768px) {
  .field--name-body,
  .field--name-field-body,
  .node--type-hotel .field--name-body,
  body.page-type-page .field--name-body,
  body.page-type-travel-item .field--name-body,
  body.page-type-hotel .field--name-body {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  /* Also fix paragraphs */
  .field--name-field-paragraphs {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
  .paragraph--type--testo-e-immagine {
    width: 100% !important;
    flex-direction: column !important;
  }
  .paragraph--type--testo-e-immagine .field--name-field-image,
  .paragraph--type--testo-e-immagine .field--name-field-body {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* === FIX 6: FOOTER HEIGHT su mobile === */
/* Footer 828px is too tall - compact it */
@media (max-width: 768px) {
  .footer {
    padding: 20px 15px !important;
  }
  .footer .container {
    padding: 0 !important;
  }
  .footer .block {
    margin-bottom: 15px !important;
  }
  .footer .site-branding img {
    max-height: 40px !important;
  }
  .footer-blocks {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .footer .block-content {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .footer p {
    margin: 3px 0 !important;
    font-size: 12px !important;
  }
  .footer a {
    font-size: 12px !important;
    word-break: break-all !important;
  }
}

/* === FIX 7: AFRICA CARD LAYOUT su mobile === */
/* Cards should be full-width single column */
@media (max-width: 768px) {
  .view-termini-figli .view-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }
  .view-termini-figli .views-row {
    width: 100% !important;
    margin: 0 !important;
  }
  .view-termini-figli .views-row img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}

/* === FIX 8: SPAZI VUOTI tra sezioni su mobile === */
@media (max-width: 768px) {
  /* Reduce vertical gaps between sections */
  .region-content > .block,
  .main-content > .block {
    margin-bottom: 15px !important;
  }
  /* Homepage blocks spacing */
  body.frontpage .region-content > .block {
    margin-bottom: 10px !important;
  }
  /* Slider bottom spacing */
  section.slider {
    margin-bottom: 0 !important;
  }
  .slider + .main-content,
  .slider + .main-wrapper {
    margin-top: 0 !important;
  }
}

/* === FIX 9: HEADER compact su mobile === */
@media (max-width: 768px) {
  .header {
    padding: 5px 0 !important;
  }
  .header-container {
    padding: 0 10px !important;
    min-height: 50px !important;
  }
  .site-branding img {
    max-height: 35px !important;
  }
  /* Position hamburger properly in header */
  .mobile-menu {
    margin-left: auto !important;
    margin-right: 10px !important;
  }
}

/* === FIX 10: HOTEL gallery su mobile stacking === */
@media (max-width: 768px) {
  body.page-type-hotel .titolo_e_immagine {
    max-height: none !important;
    overflow: visible !important;
  }
  body.page-type-hotel .titolo_e_immagine img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: cover !important;
  }
  body.page-type-hotel .gallery {
    flex-direction: column !important;
  }
  body.page-type-hotel .gallery > div {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

/* === FIX 11: INNER PAGE slider_image - losanga === */
/* Prevent losanga from overflowing on inner pages mobile */
@media (max-width: 768px) {
  body:not(.frontpage) .slider-image::after {
    width: 40px !important;
    height: 40px !important;
    bottom: -20px !important;
    left: 120px !important;
  }
}

@media (max-width: 768px) {
  body:not(.frontpage) .slider-image::after {
    width: 30px !important;
    height: 30px !important;
    bottom: -15px !important;
    left: 80px !important;
  }
}

/* === FIX 12: GENERAL mobile typography === */
@media (max-width: 768px) {
  /* Prevent text overflow */
  * {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  /* Ensure images never exceed container */
  img {
    max-width: 100% !important;
    height: 100% !important;
  }
  /* Swiper slides contained */
  .swiper-slide {
    width: 100% !important;
  }
  .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}

/* === FIX 13: Travel item tabs su mobile === */
@media (max-width: 768px) {
  .field--name-field-anchor-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    padding: 10px !important;
  }
  .field--name-field-anchor-tabs a {
    font-size: 12px !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
  }
}

/* === FIX 14: Newsletter form mobile === */
@media (max-width: 768px) {
  .quick_form_7_css[name=SIGNUP_BODY] {
    padding: 15px !important;
    display: block !important;
  }
  .SIGNUP_FLD input {
    font-size: 14px !important;
    padding: 10px !important;
  }
  .SIGNUP_FLD input[type=submit] {
    width: 100% !important;
    padding: 12px !important;
  }
}

/* === FIX EXTRA: Swiper gallery - prevent vertical stacking on mobile === */
@media (max-width: 768px) {
  .swiper-wrapper {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .swiper-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
  }
  .swiper-slide img {
    max-height: 400px !important;
    object-fit: cover !important;
  }
  /* Ensure swiper container clips properly */
  .swiper {
    overflow: hidden !important;
    max-height: 420px !important;
  }

  /* Body text - also fix node__content width */
  .node__content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* Gift Card first paragraph fix */
  body.page-type-page .slider-text p.layer3 {
    width: auto !important;
    min-width: 200px !important;
  }
}

/* =============================================
   MOBILE FIX ROUND 3 - 16 Feb 2026
   Fix remaining issues from Jolly Round 2
   ============================================= */

/* === FIX A: Africa card layout - depth-3 specifics === */
@media (max-width: 768px) {
  /* Override the flex container negative margin */
  .type-taxonomy.depth-3 .view-termini-figli .view-content,
  body.type-taxonomy .view-taxonomy-term .view-content {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 10px !important;
    gap: 10px !important;
  }
  /* Force cards to full width */
  .type-taxonomy.depth-3 .views-row,
  .type-taxonomy.depth-3 .view-termini-figli .views-row,
  body.type-taxonomy .view-taxonomy-term .views-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  /* Travel item cards in Africa - reduce height and make image fill */
  body.type-taxonomy.depth-3 .node-type-travel-item {
    min-height: 200px !important;
    max-height: 250px !important;
  }
  body.type-taxonomy.depth-3 .node-type-travel-item .field--name-field-main-image {
    width: 100% !important;
    height: 100% !important;
  }
  body.type-taxonomy.depth-3 .node-type-travel-item .field--name-field-main-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* Node title overlay on card */
  .type-taxonomy.depth-3 .node-title {
    font-size: 18px !important;
    padding: 10px !important;
  }
}

/* === FIX B: Body field wrapper - fix left offset === */
/* The body field wrapper has left:-141px on mobile */
@media (max-width: 768px) {
  .field--name-body {
    left: auto !important;
    right: auto !important;
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Also target page-specific body fields */
  body.page-type-travel-item .field--name-body,
  body.page-type-hotel .field--name-body,
  body.page-type-page .field--name-body {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    position: relative !important;
    transform: none !important;
  }
  /* The node__content wrapper also needs fix */
  .node__content,
  article.node .node__content {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    position: relative !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
}

/* === FIX C: Gift Card Colleziona ricordi paragraph === */
/* First paragraph in Gift Card body has width:0 */
@media (max-width: 768px) {
  body.page-type-page .field--name-body > *:first-child {
    width: 100% !important;
    min-width: 100% !important;
  }
  body.page-type-page .field--name-body p {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* === FIX D: Footer further compaction === */
@media (max-width: 768px) {
  .footer .region-footer-blocks {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .footer .block {
    padding: 5px 0 !important;
  }
  .footer .block-content p {
    margin: 2px 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  .footer .block-content a {
    font-size: 11px !important;
  }
  .footer .site-branding {
    margin-bottom: 5px !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 15px 10px !important;
  }
  .footer .block-content p,
  .footer .block-content a {
    font-size: 10px !important;
  }
}

/* === FIX ROUND 3B: Africa cards - reduce parent padding === */
@media (max-width: 768px) {
  body.type-taxonomy.depth-3 .view-taxonomy-term.view-display-id-page_1 {
    padding: 15px 10px !important;
    width: 100% !important;
    margin-left: 0 !important;
    border-radius: 0 !important;
  }
  /* Also fix the display grid to flex column */
  body.type-taxonomy.depth-3 .view-taxonomy-term .view-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  body.type-taxonomy.depth-3 .view-taxonomy-term .views-row {
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Body content on travel-item, hotel, page - fix double padding */
  /* The chain: viewport 386 -> article 351 (17px lost) -> node-content 321 (30px lost) -> body 291 (30px lost) */
  /* Total padding overhead: ~95px from 3 levels of padding */
  body.page-type-travel-item article,
  body.page-type-hotel article,
  body.page-type-page article {
    padding: 0 !important;
    width: 100% !important;
  }
  body.page-type-travel-item .node__content,
  body.page-type-hotel .node__content,
  body.page-type-page .node__content {
    padding: 0 10px !important;
  }
  body.page-type-travel-item .field--name-body,
  body.page-type-hotel .field--name-body,
  body.page-type-page .field--name-body {
    padding: 0 15px !important;
  }
}

/* === FINAL FIX: node-content padding reduction === */
@media (max-width: 768px) {
  body.page-type-travel-item .node__content,
  body.page-type-hotel .node__content,
  body.page-type-page:not(.frontpage) .node__content {
    padding: 0 8px !important;
  }
}

/* === FOOTER mobile override (from style.css 5235) === */
@media (max-width: 768px) {
  #footer {
    position: relative;
    z-index: 2;
    border-radius: 0 !important;
  }
}

/* === Hide menu bullet dots on mobile === */
@media (max-width: 768px) {
  .region-primary-menu .menu-item-level-1 a:before {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .view-termini-figli h2 a {
    top: -5px;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.depth-3.path-taxonomy .slider-text-container .slider-text p.layer3:before {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .footer-bottom-middle {
    background: transparent url(/logo.png) no-repeat center top;
    margin-top: -50px;
    background-size: 80px;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > h2 .field-item {
    font-size: 25px;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.vocabulary-esperienze .block-content .view-content .views-row > div > h2 .field-item {
    font-size: 25px;
  }
}

@media (max-width: 768px) {
  body.page-type-page:not(.frontpage) .layer2::after {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.vocabulary-albero.term-depth-2.depth-3 #block-tarapro-taxonomytermbanner .slider-text h1.layer2 {
    text-align: center;
    width: 100%;
    left: 0px !important;
    top: -40px !important;
    /* left: -5px !important; */
  }
}

@media (max-width: 768px) {
  body.page-type-page .field--name-field-intro-boxes .paragraph--type--ispirazioni-boxes {
    margin-right: 15px;
  }
}

@media (max-width: 768px) {
  body.page-type-page .paragraph--type--ispirazioni-boxes .field--name-field-icona {
    text-align: center;
    margin-bottom: 0;
    width: 100px !important;
    min-width: 0px !important;
    height: 100px !important;
    margin: 0px auto;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  body.page-type-page .field--name-field-travel-items > .taxonomy-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body.page-type-page:not(.frontpage) .field--name-field-extended {
    padding-bottom: 125px !important;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item .node-title {
    height: 60px !important;
  }
}

@media (max-width: 768px) {
  body.type-taxonomy.depth-3.path-taxonomy .view-taxonomy-term.view-display-id-page_1 .node-type-travel-item {
    min-height: 230px !important;
  }
}

@media (max-width: 768px) {
    body.path-node.slider-page.page-type-page.page-type-page:not(.frontpage) .slider-text-container .slider-text h1.layer2 {
        font-size: 30px !important;
        top: -30px !important;
        letter-spacing: 1px;
        width: 100%;
        margin-left: -25px !important;
    }
}

@media (max-width: 768px) {
    body.vocabulary-esperienze.term-depth-2.depth-3 #block-tarapro-taxonomytermbanner .slider-text h1.layer2 {
        font-size: 36px !important;
        bottom: 262px;
        top: auto !important;
    }
}

#block-tarapro-info .field--name-body p, #block-tarapro-info .field--name-body span, #block-tarapro-info .field--name-body a {
    font-family: BebasKai, sans-serif !important;
    font-size: 20px !important;
}
/* === HOTEL MASONRY: immagini piene su tutte le card === */
body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li {
  overflow: hidden;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-teaser-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-teaser-image a {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-teaser-image img.image-field {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 15px 15px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  z-index: 2;
  margin: 0;
}

body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article .node-title a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  body.page-type-travel-item .field--name-field-hotels .taxonomy-terms > li article {
    height: 250px;
  }
}
