/*
Theme Name: Brunello Hybrid
Theme URI: https://www.brunelloweb.it
Author: Brunello Web
Author URI: https://www.brunelloweb.it
Description: A custom hybrid theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: brunello-hybrid-theme
Tags: translation-ready, custom-theme, hybrid, woocommerce, gutenberg, accessibile, completamente personalizzabile, seo-friendly

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

gutenberg-starter-theme is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.io/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Vars
--------------------------------------------------------------*/
:root {
  /* DARK MODE */
  --white: #ffffff;
  --grey-light: #f3f3f3;
  --grey: #cccccc;
  --grey-dark: #999999;
  --black: #000000;
  /*--primary: #a37cf0;*/
  --primary: #8453e5;
  --gold: #af7c1f;
  --background: #000000;
  --dark: #1c1c1c;
}

body.light-mode {
  /* LIGHT MODE */
  --white: #000000;
  --grey-light: #222222;
  --grey: #444444;
  --grey-dark: #666666;
  --black: #ffffff;
  --primary: #B8A592;
  --gold: #af7c1f;
  --background: #000000;
  --dark: #e3e3e3;
}

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 1.4;
  text-decoration: none;
}

*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

@view-transition {
  navigation: auto;
}

html {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2.5vw, 18px);
  view-transition-name: page;
}

::view-transition-old(page) {
  animation: slide-out 0.5s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

::view-transition-new(page) {
  animation: slide-in 0.5s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@keyframes slide-out {
  0% {
    transform: translateY(0%);
  }

  100% {
    opacity: 0;
    transform: translateY(calc(-50% * var(--direction, 1)));
  }
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(calc(50% * var(--direction, 1)));
  }

  100% {
    transform: translateY(0%);
  }
}

@media (prefers-reduced-motion: reduce) {

  ::view-transition-old(page),
  ::view-transition-new(page) {
    animation: none !important;
  }

  /* Disabilita animazioni di slide */
  .slide-out {
    animation: none !important;
  }
  
  .slide-in {
    animation: none !important;
  }

  /* Disabilita animazioni di transizione pagina */
  .slideIn {
    animation: none !important;
  }
  
  .slideOut {
    animation: none !important;
  }

  /* Disabilita transizioni su hover e focus */
  *:hover {
    transition: none !important;
  }
  
  *:focus {
    transition: none !important;
  }

  /* Disabilita animazioni continue */
  .scroll-left {
    animation: none !important;
  }
  
  .spin {
    animation: none !important;
  }

  /* Ottimizza will-change properties */
  * {
    will-change: auto !important;
  }

  /* Disabilita transform scale su hover */
  .hover-scale:hover {
    transform: none !important;
  }

  /* Mantieni solo transizioni essenziali per focus */
  *:focus {
    transition: outline 0.2s ease !important;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -ms-font-smoothing: antialiased;
  text-rendering: optimizeLegibility !important;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
}

/* overflow debug 
* {
  outline: 1px solid red;
}*/

/*html, body {
  overflow-x: hidden;
}*/

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  font-size: 2.44em;
  /*margin: 0.67em 0;*/
  line-height: 1.4;
}

h2 {
  font-size: 1.95em;
  line-height: 1.4;
}

h3 {
  font-size: 1.56em;
  line-height: 1.4;
}

h4 {
  font-size: 1.25em;
  line-height: 1.5;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 0.8em;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  font-size: 0.875rem;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary);
  clear: both;
}

.highlight-word {
  color: #1d71b8;
}

.entry-header {
  position: relative;
  padding-top: 50px;
  width: 100%;
  height: 100%;
}

.page .entry-header {
  min-height: 500px;
}

.overlay::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #000;
  opacity: .3;
  z-index: 0;
}

.entry-header .entry-title {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 2.44em);
  line-height: 1.4;
  margin: 1em 0;
  text-align: center;
  color: #1d71b8;
  z-index: 1;
}

/* ------------ Breadcrumbs ------------ */
.rank-math-breadcrumb {
  position: relative;
  margin: 25px 0;
  z-index: 1;
}

.rank-math-breadcrumb p span,
.rank-math-breadcrumb p a {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 0.8em 1em;
}

code,
kbd,
tt,
var {
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
  font-size: 0.875rem;
}

@media screen and (min-width: 600px) {

  code,
  kbd,
  tt,
  var {
    font-size: 0.8125rem;
  }
}

p>code {
  padding: 2px;
  border-radius: 2px;
  background: #f3f4f5;
  font-size: inherit;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

.archive .site-header {
  margin-bottom: 3.5em;
}

.site-title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.8rem, 5vw, 2.375rem);
  font-weight: bold;
  color: var(--primary);
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-description {
  margin: .4375em 0 0;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  font-weight: inherit;
  line-height: 1.4;
  word-wrap: break-word;
  color: #6c7781;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
  box-sizing: inherit;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  background: var(--background);
  /* Fallback for when there is no custom background color defined. */
}

blockquote,
q {
  quotes: "" "";
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
}

hr {
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

.entry-content ul {
  margin: unset;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li>ul,
li>ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0 1.5em 1.5em;
}

img {
  height: auto;
  /* Make sure images are scaled correctly. */
  max-width: 100%;
  /* Adhere to container width. */
}

figure {
  margin: 1em 0;
  /* Extra wide images within figure tags don't overflow the content area. */
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/*--------------------------------------------------------------
# Cursor
--------------------------------------------------------------*/
.cursore {
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  mix-blend-mode: difference;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 2rem;
  width: 2rem;
  transition: transform 0.08s, background 0.2s ease-out, height 0.2s ease-out, width 0.2s ease-out, opacity 0.2s ease-out;
  z-index: 9999999;
}

.cursore.big {
  background: transparent;
  height: 3.5rem;
  width: 3.5rem;
  opacity: .3;
}

.cursore.small {
  height: 0.7rem;
  width: 0.7rem;
  background: transparent;
  opacity: .5;
  margin-left: 1px;
}

.cursore.big-full {
  background: var(--gold);
  height: 8rem;
  width: 8rem;
  box-shadow: none;
  opacity: 1;
}

.cursor-text {
  position: relative;
  text-align: center;
  pointer-events: none;
  color: #fff;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: 25px;
  mix-blend-mode: unset;
  z-index: 9999999;
}

/*--------------------------------------------------------------
# UI INTERFACE
--------------------------------------------------------------*/
.fixed-interface {
  position: fixed;
  bottom: -50px;
  left: 50%;
  height: 50px;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, bottom 0.5s ease-in-out;
}

.fixed-interface .time {
  font-size: 0.95rem;
  min-width: 80px;
  text-align: center;
}

.fixed-interface button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fixed-interface .icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.fixed-interface.is-visible {
  opacity: 1;
  bottom: 15px;
  pointer-events: auto;
}

/* Hover scaling */
.fixed-interface button:hover .icon,
.fixed-interface .cart-link:hover .icon {
  transform: scale(1.15);
}

.fixed-interface .separator {
  width: 1px;
  height: 1.5rem;
  background-color: rgba(255, 255, 255, 0.3);
}

.fixed-interface #toggle-theme:disabled {
    cursor: not-allowed; /* mostra simbolo vietato standard */
    position: relative;
}

/* Light mode */
body.light-mode {
  background: #ffffff;
  color: #000;
}

body.light-mode .fixed-interface {
  background: #bcaa99;
  color: #000;
}

body.light-mode .fixed-interface .separator {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Lampadina gialla in light mode */
body.light-mode .lamp-icon path {
  fill: #f7c600;
}

body.light-mode .glow-circle {
  background: radial-gradient(circle, #B8A592 0%, rgba(184, 165, 146, 0) 70%);
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  line-height: 1;
  /*padding: .6em 1em .4em;*/
}

button,
input[type="button"] {
  border: unset;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: var(--white);
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);

}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  outline: none;
  border-bottom: 1px solid var(--primary);
  color: var(--white);
}

.ricerca-input {
  /* base style for search input */
  border: 1px solid var(--white) !important;
  border-radius: 50px;
  background: transparent;
  color: var(--white);
  box-sizing: border-box;
  padding: 12px calc(45px + 12px) 12px 12px; /* top right bottom left: right padding = button width (45px) + gap (12px) */
}

.ricerca-input:focus {
  border: 1px solid var(--primary) !important;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  font-size: clamp(0.75rem, 1.2vw, 1rem);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.nav-list,
.testata ul,
.testata ul,
.footer ul,
.footer ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.nav-list li,
.testata li,
.testata li {
  margin: 0;
  line-height: 1;
}

/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
  color: var(--primary);
}

a:not(.card):hover,
a:focus-visible,
a:active {
  color: var(--primary);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/*--------------------------------------------------------------
## Icons
--------------------------------------------------------------*/
.fa-solid {
  color: var(--primary);
  font-size: 75px;
  transition: all 0.5s ease-in-out;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.admin-bar .content {
  margin-top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .content {
    margin-top: 46px;
  }
}

@media only screen and (max-width: 600px) {

  .admin-bar .testata-fissa,
  .admin-bar .testata-fissa .woocommerce-minicart {
    margin-top: 0;
  }
}

.content {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  position: fixed;
  top: 15px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 0 25px;
  mix-blend-mode: difference;
  overflow-x: hidden;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  height: 54px;
  width: 54px;
  background-color: #fff;
  cursor: pointer;
  z-index: 10000;
  mix-blend-mode: difference;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 2px 0;
  transition: transform .6s, background-color 0.6s, opacity .6s;
}

/* Hamburger menu */
.menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: #000000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
}

.menu-container.active {
  opacity: 1;
  pointer-events: all;
}

.menu-item-mobile {
  display: flex;
  flex-direction: column;
  margin: 15px 0;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn .3s ease forwards;
  animation-delay: .3s;
  list-style-type: none;
  gap: 15px;
}

.menu-container.closing .menu-item-mobile {
  animation: slideOut .3s ease forwards;
}

.menu-container .custom-logo {
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn .3s ease forwards;
  animation-delay: .3s;
  margin-bottom: 50px;
}

.menu-container.closing .custom-logo {
  animation: slideOut .3s ease forwards;
}

.menu-item-mobile a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.menu-item-mobile a:hover {
  color: #EE2F24;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin-top: 100px;
  overflow: hidden;
  padding-bottom: 60px;
  width: 100%;
  position: relative;
}

.nav-links {
  display: flex;
  padding: 0 25px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--primary);
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  width: 50%;
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* ------- Testata Woocommerce menu - Desktop ------- */
.testata_woocommerce-links {
  margin-right: 15px;
}

.testata_woocommerce-menu {
  gap: 17px;
}

.menu-item-account-link {
  gap: 5px;
}

.stato-loggato {
  display: block;
  position: relative;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--black);
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  background-color: var(--white);
}

.cart-icon .cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.cart-icon svg {
  width: 21px;
  height: 21px;
  color: var(--primary);
  transform: translateY(-1px);
}

.cart-icon span {
  color: var(--primary);
  font-weight: 500;
  transform: translateY(1px);
}

/* Fullscreen menu inizialmente nascosto */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  background-color: #000;
  mix-blend-mode: normal !important;
  isolation: isolate;
  visibility: hidden;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background-color: #000;
  z-index: 0;
  mix-blend-mode: normal !important;
}

/* Mostra menu */
.fullscreen-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* Animazione di chiusura */
.fullscreen-menu.closing {
  opacity: 0;
  pointer-events: none;
}

#fullscreen-menu ul {
  margin: unset;
}

/* Colonne */
.menu-left,
.menu-right {
  width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 20;
}

/* Sinistra */
.menu-left {
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
  transition: all 0.4s ease;
}

.menu-left-content {
  position: relative;
  z-index: 3;
}

.menu-cards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.menu-card {
  min-width: 150px;
  min-height: 150px;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.menu-card-link {
  height: 100%;
  color: white;
  text-decoration: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around !important;
}

.menu-card-icon {
  text-align: center;
}

.menu-card-icon .fa-solid {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.menu-card-title {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.menu-card:hover,
.menu-card.is-active {
  background-color: #444;
}

.menu-card:hover a,
.menu-card.is-active a {
  color: var(--primary);
}

.menu-card:hover .menu-card-title {
  color: var(--primary);
}

/* Video centrale tagliato a metà */
.menu-video-wrap {
  position: absolute;
  bottom: -25vh;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50vh;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.menu-bg-video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Destra */
.menu-right {
  justify-content: flex-end;
  background-color: #000;
  position: relative;
  z-index: 10;
}

.menu-secondary li {
  cursor: pointer;
  position: relative;
  z-index: 20;
}

.menu-secondary li a {
  color: #fff;
}

.menu-secondary li:hover a {
  color: #000;
}

/* Sfondo dinamico su hover */
.hover-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/siti-web-vicenza-brunello-web.jpg");
  background-size: cover;
  background-position: center;
  z-index: 10;
  transition: background-image 0.5s ease, opacity 0.3s ease, transform 0.6s ease;
  ;
  opacity: 0.25;
  transform: scale(1.05);
}

#hover-bg.show {
  transform: scale(1);
}

/* Aggiunta: transizione per contenuti */
.menu-left-content,
.menu-right nav {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
}

.menu-left-content .btn {
  margin-top: 50px;
}

.fullscreen-menu.active .menu-left-content,
.fullscreen-menu.active .menu-right nav {
  opacity: 1;
  transform: translateY(0);
}

#fullscreen-menu .glow-wrapper {
  z-index: 21;
}

#fullscreen-menu .glow-wrapper .glow-circle {
  z-index: 9;
}

body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

.menu-left-mobile {
  display: none;
}

@media (max-width: 1400px) {
  .fullscreen-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-left {
    display: block;
    order: 1;
    width: 100%;
    height: 100%;
    padding: 25px;
  }

  .menu-right {
    display: none;
  }

  .menu-left-mobile {
    display: block;
  }

  /* Menu secondario in due colonne */
  .menu-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .menu-secondary li {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 150px;
  }

  /* Icone e testo ridotti */
  .menu-card-icon .fa-solid {
    font-size: 3rem;
  }

  .menu-card-title {
    font-size: 1.25rem;
  }

  /* Card responsive in griglia */
  .menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 0.5fr);
    gap: 10px;
    max-width: 500px;
    margin: 125px auto 50px auto !important;
  }

  .menu-card {
    min-width: 0;
    min-height: 150px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-secondary {
    flex-direction: column;
    align-items: center;
  }

  .menu-secondary li {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 200px;
  }

  .menu-card {
    min-height: 120px;
  }

  .menu-cards-grid {
    grid-template-columns: repeat(3, 0.5fr);
    max-width: 400px;
  }

  .menu-card-title {
    font-size: 1rem;
  }

  .menu-card-icon .fa-solid {
    font-size: 2.25rem;
  }
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/

.alignleft,
.alignright {
  max-width: 580px !important;
  /* Let's work to make this !important unnecessary */
}

.alignleft img,
.alignright img,
.alignleft figcaption,
.alignright figcaption {
  max-width: 50%;
  width: 50%;
}

.alignleft figcaption {
  clear: left;
}

.alignright figcaption {
  clear: right;
}

.alignleft img,
.alignleft figcaption {
  float: left;
  margin-right: 1.5em;
}

.alignright img,
.alignright figcaption {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget-area {
  width: 25%;
}

.widget {
  margin: 0 0 1.5em;
  /* Make sure select elements fit in widgets. */
}

.widget select {
  max-width: 100%;
}

.widget-title {
  padding-bottom: 25px;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
#page {
  margin: 0 auto;
  max-width: 100%;
}

.site-branding {
  display: inline-block;
  color: var(--primary);
  height: 35px;
  width: auto;
  margin-right: auto;
}

.site-branding svg {
  display: inline-block;
  vertical-align: middle;
  width: auto;
  height: 100%;
}

.site-footer {
  padding-top: 100px;
  margin: 0;
  color: #fff;
  background-color: #000;
  font-size: 90%;
  position: relative;
  overflow: hidden;
  min-height: 50vh;
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
  display: block;
}

/*.hentry {
  margin: 60px 0;
}*/

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.entry-meta {
  color: #6c7781;
  font-size: 90%;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/*.entry-header,*/
.page-header,
.entry-footer,
.site-info,
.posts-navigation,
.post-navigation,
.page-navigation,
.comments-area,
.not-found .page-content,
.search .entry-summary {
  margin: 1.5em auto;
  padding-left: 14px;
  padding-right: 14px;
  max-width: 100%;
}

.entry-header .wp-post-image {
  margin-bottom: 1.5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 30px;
}

.entry-footer span {
  margin-right: 1em;
}

.entry-footer {
  color: #6c7781;
  font-size: 90%;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e4e7;
}

@media screen and (min-width: 608px) {

  .entry-header,
  .page-header,
  .entry-footer,
  .site-info,
  .posts-navigation,
  .post-navigation,
  .page-navigation,
  .comments-area,
  .not-found .page-content,
  .search .entry-summary {
    padding-left: 0;
    padding-right: 0;
  }
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  /* Theme Footer (when set to scrolling) */
  display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

.custom-logo {
  width: 65px;
  height: 65px;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.3333333333%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.6666666667%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.2857142857%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.1111111111%;
}

.gallery-caption {
  display: block;
}

/* ------- Search bar ------- */
.search-bar .search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar .ricerca-input {
  margin-bottom: 0;
  min-width: 250px;
  width: 100%;
  flex: 1 1 auto;
  box-sizing: border-box;
  min-height: 51px;
  padding: 12px calc(45px + 12px) 12px 12px; /* right padding = button width + gap */
}

.search-bar button[type="submit"] {
  position: absolute;
  min-width: unset;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  height: 45px;
  width: 45px;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.search-bar .search-container svg {
  transform: rotateZ(90deg);
  transition: transform 0.3s ease;
}

.search-bar .search-container:hover svg {
  transform: rotateZ(0deg);
}

/* Responsive tweak: smaller button on narrow viewports */
@media (max-width: 480px) {
  .search-bar button[type="submit"] {
    height: 36px;
    width: 36px;
    right: 8px;
  }
  .search-bar .ricerca-input {
    padding-right: calc(36px + 12px);
  }
}

/* Default */
.container {
  /*width: min(1600px, 100% - 20vw);*/
  margin-inline: auto;
  width: 100%;
  padding: 0 25px;
}

.d-flex {
  display: flex;
}

.d-flex-c {
  display: flex;
  flex-direction: column;
}

.subtitle {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 20px;
}

.spacer {
  position: relative;
  padding: 100px 0;
  z-index: 3;
}

/* Main */
.admin-bar .intestazione {
  height: calc(100svh - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .intestazione {
    height: calc(100svh - 46px);
  }
}

/* Glow */
.glow-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-wrapper-reverse {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, #a37cf0c6 0%, rgba(163, 124, 240, 0) 70%);
  filter: blur(100px);
  will-change: filter, transform;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.top-left {
  top: -100px;
  left: -100px;
}

.top-right {
  top: -100px;
  right: -100px;
}

.bottom-left {
  bottom: -100px;
  left: -100px;
}

.bottom-right {
  bottom: -100px;
  right: -100px;
}

.center-left {
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
}

.center-right {
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
}

/* Intestazione */
.intestazione {
  position: relative;
  background: transparent;
  isolation: isolate;
  height: 100vh;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-inner {
  padding: 25px 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  background: transparent;
  margin-bottom: 100px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.hero-text .main-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  padding-bottom: 45px;
  color: #fff;
}

.hero-text .dash {
  color: var(--primary);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 5px 5px 22px;
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  border-radius: 75px;
  font-weight: bold;
  font-size: 0.9rem;
  overflow: hidden;
  z-index: 2;
  border: none;
  max-width: 200px;
}

.search {
  max-width: unset;
}

.onlybtn {
  min-height: 54px;
  max-width: unset;
  padding-right: 22px;
  background-color: #1c1c1c;
}

.borderbutton {
  background-color: transparent;
  border: 1px solid #fff;
  max-height: 54px;
}

.borderbutton .arrow-circle {
  background-color: var(--primary);
}

/* Cerchio espandibile su hover */
.btn::before,
.onlybtn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background-color: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s ease-out;
  z-index: -1;
  pointer-events: none;
}

.btn:hover::before,
.onlybtn:hover::before {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn:hover,
.onlybtn:hover,
.borderbutton:hover {
  color: #000;
}

/* Input search integrato nel bottone */
.search-field {
  width: 100%;
}

.search-input {
  background: transparent;
  border: none !important;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
  outline: none;
}

.search-input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.btn.borderbutton:not(.fix-btn):hover::before {
  content: unset;
  transform: none !important;
  background-color: transparent !important;
}

/* Icona */
.arrow-circle {
  background-color: var(--black);
  border-radius: 50%;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  margin-right: 0;
  margin-left: auto;
}

.arrow-circle svg path {
  stroke: var(--white);
}

.btn:hover .arrow-circle,
.onlybtn:hover .arrow-circle {
  transform: rotateZ(-45deg);
}

.search-icon {
  transform: rotateZ(90deg);
}

.borderbutton:not(.fix-btn):hover .arrow-circle {
  transform: rotateZ(0deg);
}


/* larghezza iniziale */
form.borderbutton {
  width: 175px;
  transition: width 0.3s ease, opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* quando qualcosa all'interno è selezionato (focus) */
form.borderbutton:focus-within,
form.borderbutton:hover {
  width: 30%;
}

.fix-btn {
  margin-top: 25px;
}

.js-header-button {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* Bottone sparisce verso l’alto */
.js-header-button.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, width 0s !important;
}

.hero-title {
  position: relative;
  flex: 1;
  font-size: clamp(30px, 5vw + 0.8rem, 100px);
  z-index: 2;
  mix-blend-mode: difference;
  will-change: transform, opacity;
}

.hero-title .main-title {
  font-size: 2.44em;
  color: white;
  mix-blend-mode: difference;
  position: relative;
  z-index: 2;
  pointer-events: none;
  line-height: .8;
  text-align: left;
  margin: 0;
}

.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.scroll-social {
  width: auto;
  padding: 0 25px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  pointer-events: auto;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  pointer-events: auto;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

.horizontal-section {
  background-color: transparent;
  position: sticky;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  mix-blend-mode: difference;
  z-index: 1;
}

.text-banner-mask {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.text-banner:first-child {
  text-align: center;
  display: block;
  opacity: 1;
}

.text-banner h1,
.text-banner h2 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw + 1rem, 100px);
  line-height: 1;
  margin: 0;
  clip-path: inset(100% 0 0 0);
}

.horizontal-wrapper {
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.pin-spacer {
  pointer-events: none;
}

.fix-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 25px;
  z-index: 3;
  pointer-events: all;
}

.card {
  position: relative;
  flex: 0 0 50vw;
  height: 100%;
  border-radius: 20px;
  color: #fff;
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  mix-blend-mode: unset;
  cursor: none;
}

.card-number {
  position: absolute;
  top: 0;
  right: 0;
  padding: 25px;
  font-size: 50px;
  font-weight: bold;
}

.banner {
  position: sticky;
  overflow: hidden;
  padding: 75px 0;
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  z-index: 3;
}

.scroll-text-wrapper {
  cursor: grab;
  overflow: hidden;
  white-space: nowrap;
  will-change: transform;
}

.scroll-text {
  white-space: nowrap;
  font-size: clamp(1rem, 11.3vw, 16rem);
  display: inline-block;
  -webkit-user-select: none;
  user-select: none;
  font-size: 0; /* Hide original text */
}

/* Su mobile rimuovi overflow hidden e cursor grab, centra il testo */
@media (max-width: 1024px) {
  .scroll-text-wrapper {
    cursor: default;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .scroll-text::before {
    content: attr(data-mobile);
    font-size: clamp(1rem, 8vw, 12rem);
    white-space: nowrap;
    display: inline-block;
  }
  
  /* Nascondi il testo "Scorri per esplorare" su mobile */
  .desktop-only {
    display: none;
  }
}

/* Desktop text (default) */
@media (min-width: 1025px) {
  .scroll-text::before {
    content: attr(data-desktop);
    font-size: clamp(1rem, 11.3vw, 16rem);
    white-space: nowrap;
    display: inline-block;
  }
}

.servizi {
  position: relative;
  margin-top: 100px;
  padding: 0 25px;
  z-index: 3;
}

.servizi .main-title {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 3rem;
}

.servizi h2 {
  color: var(--gold);
  font-size: clamp(1.25rem, 1.5vw, 2rem);
  margin: 25px 0;
}

.servizi p {
  font-size: 20px;
  line-height: 1.4;
  max-width: 1200px;
}

.wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 25px;
  height: auto;
  width: 100%;
  z-index: 2;
  overflow: hidden;
}

.border-card {
  position: relative;
  min-height: 650px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid #666;
  box-shadow: rgba(196, 80, 225, 0.113) 0px 4px 10px;
  background-color: transparent;
  color: var(--white);
  font-size: 3rem;
  display: flex;
  z-index: 3;
  padding: 25px 25px 40px 25px;
  transition: background-color 0.5s ease;
}

#esplora-servizi .border-card:hover {
  background-color: var(--background);
}

.border-card h3 {
  font-size: 3rem;
  text-align: left;
  color: var(--primary);
  font-weight: bold;
  z-index: 2;
}

.border-card p {
  padding-top: 50px;
  font-size: 1rem;
  line-height: 1.5rem;
  z-index: 2;
}

ul.plus-list {
  padding-top: 50px;
  list-style: none;
  font-size: clamp(1rem, 2vw + 1rem, 2rem);
  text-align: left;
  margin: unset;
  z-index: 2;
  margin-bottom: 50px;
}

ul.plus-list li::before {
  content: "+";
  color: var(--gold);
  margin-right: 0.5em;
}

/* Contenitore canvas */
.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  z-index: 0;
  overflow: hidden;
}

.canvas-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  /* mostra tutto senza tagli */
  z-index: -1;
  opacity: .3;
  display: block;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.servizi .border-card:hover .canvas-container canvas {
  opacity: 0;
}

.border-card .btn {
  max-width: 150px;
}

.info {
  position: relative;
  padding: 0 25px 50px 25px;
  z-index: 3;
}

.info p {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  max-width: 1400px;
}

#btn-vai-portfolio {
  margin-top: 50px;
}

.my-portfolio-swiper,
.my-blog-swiper {
  margin-top: 75px;
  width: 100%;
  height: 500px;
  position: relative;
}

.my-portfolio-swiper .swiper-slide,
.my-blog-swiper .swiper-slide {
  display: flex;
  align-items: flex-end;
  color: white;
  text-decoration: none;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.my-portfolio-swiper .slide-link,
.my-blog-swiper .slide-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  z-index: 10;
  cursor: none;
}

.my-portfolio-swiper .slide-title,
.my-blog-swiper .slide-title {
  padding: 50px 25px;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  z-index: 10;
}

/* Wrapper per frecce + paginazione */
.navigation-buttons-slider {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
  justify-content: flex-end;
  /* tutto a destra */
  margin-left: auto;
  margin-right: auto;
  padding: 0 75px;
  box-sizing: border-box;
}

.navigation-buttons-slider h2 {
  font-weight: 400;
}

.navigation-buttons-slider__wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navigation-buttons-slider button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.navigation-buttons-slider button svg {
  pointer-events: none;
}

.swiper-pagination-bullets {
  bottom: unset !important;
  -ms-touch-action: none;
  touch-action: none;
}

.swiper-pagination-bullet {
  background: #1c1c1c !important;
  opacity: 1 !important;
  transition: 1s all cubic-bezier(0.445, 0.05, 0.55, 0.95) !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  width: 30px !important;
  border-radius: 30px !important;
  border: none !important;
  transform: scale(1) !important;
}

.chi-sono {
  position: relative;
  padding: 50px 25px 100px 25px;
  max-width: 1200px;
  z-index: 3;
}

.chi-sono p {
  font-size: 20px;
  line-height: 1.4;
}

.chi-sono .btn {
  max-width: unset;
  margin-top: 50px;
}

.card-full {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  border-radius: 20px;
  z-index: 3;
}

.card-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sezione-blog {
  padding: 50px 0;
}

.sezione-blog p {
  font-size: 20px;
  line-height: 1.4;
  max-width: 1500px;
}

.sezione-blog #btn-vai-blog {
  margin-top: 50px;
}

.collaboriamo {
  position: relative;
  border-bottom: 1px solid #fff;
  z-index: 3;
  overflow: hidden;
}

.collaboriamo .collaboriamo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: clamp(1rem, 2vw, 3rem) 0;
  gap: clamp(1rem, 2vw, 3rem);
  flex-wrap: wrap;
}

.collaboriamo p {
  color: var(--primary);
  font-weight: bold;
  font-size: clamp(1.5rem, 5vw, 8rem);
  padding: 0 clamp(0px, 5vw, 25px);
}

.collaboriamo h1 span {
  color: #fff;
}

#collaboriamo-btn {
  border: unset;
  max-height: unset;

}

#collaboriamo-btn::before {
  content: unset;
}

#collaboriamo-btn span {
  padding: 25px;
}

.collaboriamo .arrow-circle {
  background-color: var(--primary);
  padding: clamp(10px, 2vw + 5px, 25px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.collaboriamo .arrow-circle svg {
  width: clamp(20px, 8vw, 100px);
  height: clamp(20px, 8vw, 100px);
  z-index: 1;
  transition: transform 0.5s ease;
}

.collaboriamo .arrow-circle::before {
  content: "";
  position: absolute;
  width: clamp(50px, 10vw, 150px);
  height: clamp(50px, 10vw, 150px);
  border-radius: 50%;
  background-color: var(--primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  z-index: 0;
}

.collaboriamo-link:hover .arrow-circle svg {
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .bg-video {
    position: absolute;
    object-fit: fill;
    width: 215%;
    height: auto;
    overflow: hidden;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    padding: 25px 5px;
  }

  .hero-text {
    align-self: center;
  }

  .hero-text .btn {
    mix-blend-mode: difference;
  }

  .text-banner-mask {
    position: relative;
    top: unset;
    left: unset;
    transform: unset;
  }

  .text-banner h1,
  .text-banner h2 {
    clip-path: inset(0% 0 0 0);
  }

  .horizontal-section {
    position: relative;
    height: unset;
    padding-top: 100px;
  }

  .fix-wrap {
    padding: 0 25px;
  }

  .card {
    flex: 0 0 100vw;
  }

  .wrap {
    flex-direction: column;
  }

  .swiper-pagination {
    display: none;
  }

}

@media (max-width: 768px) {

  .hero-inner {
    margin-bottom: 150px;
    padding: 25px 5px;
  }

  .scroll-social {
    flex-direction: column-reverse;
    align-items: center;
  }

  .social-links {
    display: none;
  }

  .collaboriamo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .collaboriamo .collaboriamo-link {
    gap: unset;
  }

  .collaboriamo h1 {
    padding: unset;
  }

  .navigation-buttons-slider {
    justify-content: center;
    gap: 50px;
  }
}

/* ==========================
   STILE ARCHIVE
   ========================== */
.archive-description{
  font-size: 18px;
  max-width: 1200px;
  padding-bottom: 75px;
}

.page-title:not(.single-post h1) {
  font-size: clamp(60px, 10vw, 150px);
  margin-top: 100px;
}

.single-post h1 {
  margin-top: 100px;
}

.page-title::first-letter {
  text-transform: capitalize;
}

.page-title-secondary {
  font-size: clamp(40px, 8vw, 100px);
  margin-top: 100px;
}

.page-title-secondary::first-letter {
  text-transform: capitalize;
}

.portfolio-filter #portfolio-categories {
  list-style: none !important;
  margin: 0 0 75px 0;
  padding: 0 0 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--white);
}

.portfolio-filter #portfolio-categories li {
  display: inline-block;
  padding: 10px 15px;
  background-color: var(--dark);
  cursor: pointer;
  font-weight: 500;
  border-radius: 30px;
}

.portfolio-filter #portfolio-categories li.active {
  background-color: var(--primary);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

#portfolio-results {
  opacity: 1;
}

.portfolio-item {
  margin-bottom: 50px;
}

.card-archivio {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background-color: #1d71b8;
  overflow: hidden;
  max-height: 800px;
}

.card-archivio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.card-archivio:hover::before,
.card-archivio.hover::before {
  opacity: 0.3;
}

.card-archivio-image {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  will-change: transform;
}

.card-archivio-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: none;
}

.card-archivio-categories {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 3;
}

.card-archivio-category {
  background: var(--dark);
  color: var(--white);
  font-weight: initial;
  padding: 10px 15px;
  border-radius: 30px;
  cursor: pointer;
}

.btn:hover.card-archivio-category {
  color: var(--black) !important;
}

.card-archivio-title {
  position: relative;
  margin: 2rem 0 0 2rem;
  font-size: 1.2rem;
  color: var(--white);
}

.card-archivio-title a {
  color: inherit;
}

.portfolio-item .card-archivio-categories-mobile {
  display: none;
  margin-top: 1rem;
}

.portfolio-pagination {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
}

.portfolio-pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-items: center;
  height: 40px;
  width: 40px;
  margin: 0 0.25rem;
  background: #1c1c1c;
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
}

.portfolio-pagination .pagination-start,
.portfolio-pagination .pagination-end {
  height: unset;
  width: unset;
  padding: 10px 15px;
  border-radius: 30px;
}

.portfolio-pagination a.current {
  background: var(--primary);
  color: var(--white);
  pointer-events: none;
}

/* Cerchio espandibile su hover */
.portfolio-filter #portfolio-categories li::before,
.portfolio-pagination a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background-color: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease-out;
  z-index: -1;
  pointer-events: none;
}

.portfolio-filter #portfolio-categories li:hover::before,
.portfolio-pagination a:hover::before {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Impostazioni base necessarie */
.portfolio-filter #portfolio-categories li,
.portfolio-pagination a {
  position: relative;
  /* Necessario per posizionare ::before */
  overflow: hidden;
  /* Nasconde il cerchio all’interno */
  z-index: 2;
  /* Sopra lo pseudo-elemento */
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Hover effetti opzionali (testuali) */
.portfolio-filter #portfolio-categories li:hover,
.portfolio-pagination a:hover {
  color: var(--black) !important;
}

.portfolio-filter #portfolio-categories li.active::before {
  transform: scale(0) !important;
  transition: none !important;
}

.portfolio-filter #portfolio-categories li.active {
  color: var(--white) !important;
}

@media (max-width: 1024px) {
  .portfolio-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: unset;
    width: 100%;
  }

  .portfolio-grid-4 {
    grid-template-columns: 1fr;
  }

  .portfolio-item .card-archivio-title {
    margin: 1.5rem 0;
  }

  .portfolio-item .card-archivio-categories {
    display: none;
  }

  .portfolio-item .card-archivio-categories-mobile {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .portfolio-filter #portfolio-categories {
    padding-bottom: 50px;
  }

  .portfolio-pagination {
    justify-content: center;
  }
}

/* ==========================
   STILE CONTENT CATEGORIE
   ========================== */
/* Container genitore nel file che elenca i post: */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  position: relative;
}

/* Card */
.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-card .card {
  position: relative;
  width: 100%;
  max-height: 800px;
  padding-top: 60%;
  /* rapporto aspect ratio 5:3 */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 0;
  justify-content: flex-start;
}

.post-card .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.post-card .card-overlay {
  position: relative;
  color: var(--white);
  padding: 25px;
  z-index: 2;
}

.post-date {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
}

.read-more-button {
  margin: 1rem 0 0 2rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--primary);
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card .card {
    flex-direction: column-reverse;
  }
}

/* ==========================
   STILE SINGLE
   ========================== */
.single-post-category {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-post-category .onlybtn {
  min-height: 45px;
}

.content-with-sidebar {
  display: flex;
  gap: 2rem;
  margin-top: 100px;
}

.sidebar-left {
  flex: 1;
  position: sticky;
  top: 8rem;
  align-self: start;
  border-right: 1px solid #ddd;
  padding-right: 1rem;
}

.sidebar-left h2:first-of-type {
  margin-top: 1rem;
}

.sidebar-left h2 {
  margin-bottom: 1rem;
}

.recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  display: flex;
  margin-bottom: 1rem;
}

.recent-post-link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.recent-post-thumb {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  background-color: #f0f0f0;
}

.recent-post-link img {
  max-width: none;
  height: auto;
}

.recent-post-text {
  font-size: 0.9rem;
  line-height: 1.4;
  padding-left: 15px;
}

.category-list-single li {
  padding-bottom: 10px;
}

.main-single-content {
  flex: 3;
}

.related-posts {
  margin-top: 100px;
}

.related-posts .portfolio-grid {
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .content-with-sidebar {
    margin-top: unset;
    flex-direction: column;
    gap: 0;
  }

  .main-single-content {
    order: 1;
  }

  .sidebar-left {
    order: 2;
    position: static;
    border-right: none;
    padding-right: 0;
    margin-top: 2rem;
  }

  .related-posts {
    margin-top: unset;
  }
}

/* ==========================
   STILE PAGINA CONTATTI
   ========================== */
.contatti {
  border-bottom: 1px solid var(--white);
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.sticky-contents {
  position: sticky;
  top: 0;
  padding-top: 100px;
}

.main-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 8rem);
}

.sticky-contents p {
  font-size: clamp(1rem, 1.5vw, 2rem);
  max-width: 800px;
  margin-bottom: 50px;
}

.modulo {
  padding-top: 100px;
}

.cf7 {
  display: flex;
  flex-direction: column;
}

.cf7 h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 25px;
}

.cf7-two-cols {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 25px;
}

.cf7-half {
  flex: 1;
  min-width: 45%;
}

.cf7-privacy {
  display: block;
  font-size: 0.9em;
  margin-left: 0;
  padding-left: 0;
}

.cf,
.cf1 {
  display: block;
  margin-top: 5px;
}

.wpcf7-form .cf7-half label,
.wpcf7-form .cf7-full label,
.wpcf7-form>label:not(.cf7-privacy) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  /* distanza tra il testo del label e il campo */
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  /* o center, se preferisci centrato verticalmente */
  gap: 0.5em;
  /* spazio tra checkbox e testo */
}

.wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  padding-left: 0;
  margin-left: 0;
}

.wpcf7-list-item>label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0;
  flex-wrap: nowrap;
}

/* Nasconde la checkbox originale */
.wpcf7-list-item input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: 2px solid var(--white);
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
}

/* Check visibile quando selezionata */
.wpcf7-list-item input[type="checkbox"]:checked::after {
  content: 'x';
  position: absolute;
  top: 45%;
  left: 50%;
  font-size: 2em;
  color: var(--primary);
  transform: translate(-50%, -50%);
  line-height: 1;
  pointer-events: none;
}

/* Quando si passa sopra con il mouse */
.wpcf7-list-item input[type="checkbox"]:hover {
  border-color: var(--primary);
}

.wpcf7-list-item input[type="checkbox"]:checked {
  border-color: var(--primary);
}

.wpcf7-list-item input[type="checkbox"]:checked+span {
  color: var(--primary);
}

.checkbox-grid .wpcf7-list-item {
  display: inline-flex;
  margin-bottom: 10px;
  width: 50%;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(1fr, 1fr);
  gap: 1em;
}

.checkbox-grid label {
  flex-direction: row !important;
  align-items: center;
}

.checkbox-title {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 10px;
}

.servizi-addizionali {
  margin-top: 30px;
  margin-bottom: 30px;
}

.wpcf7-submit {
  position: relative;
  margin-top: 50px;
  float: right;
  cursor: pointer;
  gap: unset;
}

.wpcf7-submit .arrow-circle {
  margin-left: 15px;
}

.wpcf7-submit:disabled {
  background-color: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.wpcf7-submit:hover {
  color: var(--primary);
}

.wpcf7-submit:disabled .arrow-circle {
  background: var(--primary);
}

.wpcf7-submit:enabled {
  background-color: var(--primary);
}

.wpcf7-not-valid-tip {
  margin-top: 7px;
}

/*
/ FIX
*/
.b-title {
  font-size: clamp(60px, 10vw, 150px);
}

/* ==========================
   STILE FOOTER
   ========================== */
footer {
  position: relative;
  z-index: 1;
  margin-bottom: -400px;
  justify-content: space-between;
}

footer .wrap {
  margin-top: unset;
  justify-content: unset;
}

footer ul,
ol {
  margin: unset;
}

.footer-menu {
  list-style-type: none;
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.menu-footer-container ul li {
  margin-bottom: 5px;
}

footer .fix-wrap {
  justify-content: space-between;
}

.footer-contatti {
  justify-content: space-between !important;
  width: 50%;
  position: relative;
  overflow: hidden;
}

footer h2 {
  font-size: 2em;
  padding-bottom: 35px;
}

.footer-contatti p {
  max-width: 800px;
}

footer p {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

footer a {
  color: #fff;
}

footer a:hover {
  color: var(--primary);
}

.footer-video-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-top: 1px solid #fff;
}

.footer-copyright {
  text-align: left;
  font-size: clamp(0.8rem, 1vw, 1rem);
  color: #fff;
  padding: 25px 25px;
  z-index: 2;
  position: relative;
}

.footer-video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  height: auto;
  z-index: -1;
  object-fit: cover;
  overflow: hidden;
}

.scrolling-text-container {
  position: absolute;
  bottom: -34%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1;
  overflow: hidden;
}

.scrolling-text-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 50s linear infinite;
  overflow: hidden;
  will-change: transform;
}

.scrolling-text-track span {
  display: inline-block;
  font-size: 20rem;
  font-weight: bold;
  color: white;
  padding-right: 4rem;
  overflow: hidden;
}

.close-ft {
  padding-bottom: 100px;
  align-items: center;
  overflow: hidden;
}

.close-ft div {
  width: 50%;
}

footer .social .social-media {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer .social .social-media {
  margin: 0; /* opzionale, ma utile per reset */
}


.partner-wrapper {
  justify-content: space-between;
  gap: 25px;
}

.partner-content a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Animazione continua */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1350px) {

  .js-header-button,
  .scroll-top,
  .glow-circle {
    display: none;
  }

  .wpcf7-list-item input[type="checkbox"] {
    width: 30px;
    height: 30px;
  }

  .wpcf7-list-item input[type="checkbox"]:last-of-type {
    padding-right: 27px;
  }

  .fw {
    width: 100%;
  }

  .col {
    flex-direction: column;
    align-items: flex-start;
  }

  footer .wrap {
    flex-direction: column;
  }

  .close-ft {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }

  .close-ft div {
    width: 100%;
  }

  .footer-video-wrapper {
    height: 300px;
    max-width: 100vw;
  }

  .footer-video {
    width: 1000px;
    max-width: 250%;
    left: 50%;
    transform: translateX(-50%);
  }

  .scrolling-text-container {
    bottom: -24%;
  }

  .scrolling-text-track span {
    font-size: 10rem;
  }

}

@media (max-width: 768px) {
  .social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
  }

  .footer-contatti {
    width: unset;
  }

  .footer-copyright {
    text-align: center;
  }
}

#resize-loader {
  visibility: hidden;
}

#resize-loader .loader {
  border: 6px solid #fff;
  border-top: 6px solid #888;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

/* One Tap Accessibility */
.onetap-container-toggle .onetap-toggle {
  bottom: -50px !important;
}

.onetap-container-toggle button {
  transition: none !important;
}

html body .onetap-toggle {
  opacity: 0;
  transition: opacity 0.5s ease-in-out, bottom 0.5s ease-in-out !important;
  pointer-events: none;
}

html body .onetap-toggle.is-visible {
  opacity: 1;
  bottom: 0 !important;
  pointer-events: auto;
}

.onetap-accessibility {
  max-height: 100vh;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  z-index: 99999;
}

.screen-reader-content {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}