/*
	Dimension by HTML5 UP
	html5up.net | @ajlkn
	Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

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

body {
  line-height: 1;
  -webkit-text-size-adjust: none;
  background: #1b1f22;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

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

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

mark {
  background-color: transparent;
  color: inherit;
}

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

input,
textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
}

/* Basic */

@-ms-viewport {
  width: device-width;
}

@media screen and (max-width: 480px) {
  html,
  body {
    min-width: 320px;
  }
}

html {
  box-sizing: border-box;
  font-size: 16pt;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
  -moz-animation: none !important;
  -webkit-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;
  -moz-transition: none !important;
  -webkit-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

/* Type */

@media screen and (max-width: 1680px) {
  html {
    font-size: 12pt;
  }
}

@media screen and (max-width: 736px) {
  html {
    font-size: 11pt;
  }
}

@media screen and (max-width: 360px) {
  html {
    font-size: 10pt;
  }
}

body,
input,
textarea {
  color: #2c3e50;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  -moz-transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  -webkit-transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  -ms-transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out,
    border-bottom-color 0.2s ease-in-out;
  border-bottom: solid 2px #2c3e50;
  text-decoration: none;
  color: inherit;
}

a:hover {
  border-bottom-color: #2a9db8;
  border-bottom-width: 3px; /* Opzionale: rende la linea leggermente più decisa al passaggio */
}

strong,
b {
  color: #ffffff;
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

p {
  margin: 0 0 2rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.3rem;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h1.major,
h2.major,
h3.major,
h4.major,
h5.major,
h6.major {
  border-bottom: solid 3px #2c3e50;
  width: -moz-max-content;
  width: -webkit-max-content;
  width: -ms-max-content;
  width: max-content;
  padding-bottom: 0.5rem;
  margin: 0 0 2rem 0;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.3;
  letter-spacing: 0.3rem;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: 0.2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 0.8rem;
}
h5 {
  font-size: 0.7rem;
}
h6 {
  font-size: 0.6rem;
}

@media screen and (max-width: 736px) {
  h1 {
    font-size: 1.75rem;
    line-height: 1.4;
  }
  h2 {
    font-size: 1.25em;
    line-height: 1.5;
  }
}

sub {
  font-size: 0.8rem;
  position: relative;
  top: 0.5rem;
}
sup {
  font-size: 0.8rem;
  position: relative;
  top: -0.5rem;
}

hr {
  border: 0;
  border-bottom: solid 1px #ffffff;
  margin: 2.75rem 0;
}

.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}

/* Form */

form {
  margin: 0 0 2rem 0;
}
form > :last-child {
  margin-bottom: 0;
}

form > .fields {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: calc(100% + 3rem);
  margin: -1.5rem 0 2rem -1.5rem;
}

form > .fields > .field {
  -moz-flex-grow: 0;
  -webkit-flex-grow: 0;
  -ms-flex-grow: 0;
  flex-grow: 0;
  -moz-flex-shrink: 0;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
  padding: 1.5rem 0 0 1.5rem;
  width: calc(100% - 1.5rem);
}

form > .fields > .field.half {
  width: calc(50% - 0.75rem);
}
form > .fields > .field.third {
  width: calc(100% / 3 - 0.5rem);
}
form > .fields > .field.quarter {
  width: calc(25% - 0.375rem);
}

@media screen and (max-width: 480px) {
  form > .fields {
    width: calc(100% + 3rem);
    margin: -1.5rem 0 2rem -1.5rem;
  }
  form > .fields > .field {
    padding: 1.5rem 0 0 1.5rem;
    width: calc(100% - 1.5rem);
  }
  form > .fields > .field.half,
  form > .fields > .field.third,
  form > .fields > .field.quarter {
    width: calc(100% - 1.5rem);
  }
}

label {
  color: #2c3e50;
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  appearance: none;
  -moz-transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  -webkit-transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  -ms-transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  transition:
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  background-color: transparent;
  border-radius: 4px;
  border: solid 2px #2c3e50;
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 1rem;
  text-decoration: none;
  width: 100%;
}

input[type="text"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
input[type="tel"]:invalid,
textarea:invalid {
  box-shadow: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: #2c3e50;
  box-shadow: 0 0 0 1px #2c3e50;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  height: 2.75rem;
}
textarea {
  padding: 0.75rem 1rem;
}

::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}
:-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}
::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}
:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}
.formerize-placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
  opacity: 1;
}

/* Box */

.box {
  border-radius: 4px;
  border: solid 1px #ffffff;
  margin-bottom: 2rem;
  padding: 1.5em;
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
  margin-bottom: 0;
}
.box.alt {
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Icon */

.icon {
  text-decoration: none;
  border-bottom: none;
  position: relative;
}

.icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
}

.icon > .label {
  display: none;
}
.icon:before {
  line-height: inherit;
}
.icon.solid:before {
  font-weight: 900;
}
.icon.brands:before {
  font-family: "Font Awesome 5 Brands";
}

/* Image */

.image {
  border-radius: 4px;
  border: 0;
  display: inline-block;
  position: relative;
}

.image:before {
  pointer-events: none;
  background-image: url("../../images/overlay.png");
  background-color: rgba(148, 149, 149, 0.5);
  border-radius: 4px;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.15;
  position: absolute;
  top: 0;
  width: 100%;
}

.image img {
  border-radius: 4px;
  display: block;
}
.image.left,
.image.right {
  max-width: 40%;
}
.image.left img,
.image.right img {
  width: 100%;
}
.image.left {
  float: left;
  padding: 0 1.5em 1em 0;
  top: 0.25em;
}
.image.right {
  float: right;
  padding: 0 0 1em 1.5em;
  top: 0.25em;
}

.image.fit {
  display: block;
  margin: 0 0 2rem 0;
  width: 100%;
}
.image.fit img {
  width: 100%;
}

.image.main {
  display: block;
  margin: 2.5rem 0;
  width: 100%;
}
.image.main img {
  width: 100%;
}

@media screen and (max-width: 736px) {
  .image.main {
    margin: 2rem 0;
  }
}

@media screen and (max-width: 480px) {
  .image.main {
    margin: 1.5rem 0;
  }
}

/* List */

ol {
  list-style: decimal;
  margin: 0 0 2rem 0;
  padding-left: 1.25em;
}
ol li {
  padding-left: 0.25em;
}

ul {
  list-style: disc;
  margin: 0 0 2rem 0;
  padding-left: 1em;
}
ul li {
  padding-left: 0.5em;
}

ul.alt {
  list-style: none;
  padding-left: 0;
}
ul.alt li {
  border-top: solid 1px #ffffff;
  padding: 0.5em 0;
}
ul.alt li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Actions */

ul.actions {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  cursor: default;
  list-style: none;
  margin-left: -1rem;
  padding-left: 0;
}

ul.actions li {
  padding: 0 0 0 1rem;
  vertical-align: middle;
}

ul.actions.special {
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

ul.actions.special li:first-child {
  padding-left: 0;
}

ul.actions.stacked {
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-left: 0;
}

ul.actions.stacked li {
  padding: 1.3rem 0 0 0;
}
ul.actions.stacked li:first-child {
  padding-top: 0;
}

ul.actions.fit {
  width: calc(100% + 1rem);
}
ul.actions.fit li {
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  width: 100%;
}
ul.actions.fit li > * {
  width: 100%;
}
ul.actions.fit.stacked {
  width: 100%;
}

@media screen and (max-width: 480px) {
  ul.actions:not(.fixed) {
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-left: 0;
    width: 100% !important;
  }
  ul.actions:not(.fixed) li {
    -moz-flex-grow: 1;
    -webkit-flex-grow: 1;
    -ms-flex-grow: 1;
    flex-grow: 1;
    -moz-flex-shrink: 1;
    -webkit-flex-shrink: 1;
    -ms-flex-shrink: 1;
    flex-shrink: 1;
    padding: 1rem 0 0 0;
    text-align: center;
    width: 100%;
  }
  ul.actions:not(.fixed) li > * {
    width: 100%;
  }
  ul.actions:not(.fixed) li:first-child {
    padding-top: 0;
  }
  ul.actions:not(.fixed) li input[type="submit"],
  ul.actions:not(.fixed) li input[type="reset"],
  ul.actions:not(.fixed) li input[type="button"],
  ul.actions:not(.fixed) li button,
  ul.actions:not(.fixed) li .button {
    width: 100%;
  }
  ul.actions:not(.fixed) li input[type="submit"].icon:before,
  ul.actions:not(.fixed) li input[type="reset"].icon:before,
  ul.actions:not(.fixed) li input[type="button"].icon:before,
  ul.actions:not(.fixed) li button.icon:before,
  ul.actions:not(.fixed) li .button.icon:before {
    margin-left: -0.5em;
  }
}

/* Icons */

ul.icons {
  cursor: default;
  list-style: none;
  padding-left: 0;
}
ul.icons li {
  display: inline-block;
  padding: 0 0.75em 0 0;
}
ul.icons li:last-child {
  padding-right: 0;
}

ul.icons li a {
  border-radius: 100%;
  box-shadow: inset 0 0 0 1.5px #2c3e50;
  display: inline-block;
  height: 3rem;
  line-height: 3rem;
  text-align: center;
  width: 3rem;
}

ul.icons li a:hover {
  background-color: #40c0e0;
}
ul.icons li a:active {
  background-color: #40c0e0;
}

/* Button */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  appearance: none;
  transition:
    background-size 0.3s ease-in-out,
    color 0.2s ease-in-out,
    filter 0.2s ease-in-out;
  background-image:
    linear-gradient(#2c3e50, #2c3e50),
    linear-gradient(315deg, #40c0e0 40%, #ffffff 60%);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size:
    0% 4px,
    100% 100%;
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #2c3e50;
  color: #2c3e50 !important;
  cursor: pointer;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  height: 2.75rem;
  line-height: calc(2.75rem - 2px);
  letter-spacing: 0.2rem;
  outline: 0;
  padding: 0 1.3rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
  background-size:
    100% 4px,
    100% 100%;
  filter: brightness(1.05);
  background-color: rgba(255, 255, 255, 0.075);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active {
  background-color: rgba(255, 255, 255, 0.175);
}

input[type="submit"].icon:before,
input[type="reset"].icon:before,
input[type="button"].icon:before,
button.icon:before,
.button.icon:before {
  margin-right: 0.5em;
}

input[type="submit"].fit,
input[type="reset"].fit,
input[type="button"].fit,
button.fit,
.button.fit {
  width: 100%;
}

input[type="submit"].small,
input[type="reset"].small,
input[type="button"].small,
button.small,
.button.small {
  font-size: 0.6rem;
  height: 2.0625rem;
  line-height: 2.0625rem;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
  background-color: #ffffff;
  color: #2c3e50 !important;
  font-weight: 600;
}

input[type="submit"].disabled,
input[type="submit"]:disabled,
input[type="reset"].disabled,
input[type="reset"]:disabled,
input[type="button"].disabled,
input[type="button"]:disabled,
button.disabled,
button:disabled,
.button.disabled,
.button:disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.25;
}

/* BG */

#bg {
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-backface-visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

#bg:before,
#bg:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#bg:before {
  -moz-transition: background-color 0.5s ease-in-out;
  -webkit-transition: background-color 0.5s ease-in-out;
  -ms-transition: background-color 0.5s ease-in-out;
  transition: background-color 0.5s ease-in-out;
  -moz-transition-delay: 0s;
  -webkit-transition-delay: 0s;
  -ms-transition-delay: 0s;
  transition-delay: 0s;
  background-image: none !important;
  background-color: transparent;
  z-index: 2;
}

#bg:after {
  -moz-transform: scale(1.125);
  -webkit-transform: scale(1.125);
  -ms-transform: scale(1.125);
  transform: scale(1.125);
  -moz-transition:
    -moz-transform 0.325s ease-in-out,
    -moz-filter 0.325s ease-in-out;
  -webkit-transition:
    -webkit-transform 0.325s ease-in-out,
    -webkit-filter 0.325s ease-in-out;
  -ms-transition:
    -ms-transform 0.325s ease-in-out,
    -ms-filter 0.325s ease-in-out;
  transition:
    transform 0.325s ease-in-out,
    filter 0.325s ease-in-out;
  background-image: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffffff 55%,
    #40c0e0 90%,
    #ff9a76 100%
  );
  background-color: #000000; /* Fallback di sicurezza */
  z-index: 1;
}

body.is-article-visible #bg:after {
  -moz-transform: scale(1.0825);
  -webkit-transform: scale(1.0825);
  -ms-transform: scale(1.0825);
  transform: scale(1.0825);
  filter: blur(0.2rem);
}

/* Wrapper */

#wrapper {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-justify-content: space-between;
  -webkit-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 4rem 2rem;
  z-index: 3;
}

#wrapper:before {
  content: "";
  display: block;
}

@media screen and (max-width: 1680px) {
  #wrapper {
    padding: 3rem 2rem;
  }
}
@media screen and (max-width: 736px) {
  #wrapper {
    padding: 2rem 1rem;
  }
}
@media screen and (max-width: 480px) {
  #wrapper {
    padding: 1rem;
  }
}

/* Header */

#header {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-transition:
    -moz-transform 0.325s ease-in-out,
    -moz-filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  -webkit-transition:
    -webkit-transform 0.325s ease-in-out,
    -webkit-filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  -ms-transition:
    -ms-transform 0.325s ease-in-out,
    -ms-filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  transition:
    transform 0.325s ease-in-out,
    filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  max-width: 100%;
  text-align: center;
}

#header > * {
  -moz-transition: opacity 0.325s ease-in-out;
  -webkit-transition: opacity 0.325s ease-in-out;
  -ms-transition: opacity 0.325s ease-in-out;
  transition: opacity 0.325s ease-in-out;
  position: relative;
  margin-top: 3.5rem;
}

#header > *:before {
  content: "";
  display: block;
  position: absolute;
  top: calc(-3.5rem - 1px);
  left: calc(50% - 1px);
  width: 2px;
  height: calc(3.5rem + 1px);
  background: #2c3e50;
}

#header > :first-child {
  margin-top: 0;
}
#header > :first-child:before {
  display: none;
}

/* REGOLE PER FOTO PROFILO LOGO */
#header .logo {
  width: 10rem;
  height: 10rem;
  border: solid 4px #022f62;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header .logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 25% center;
  display: block;
}

#header .content {
  border-style: solid;
  border-color: #2c3e50;
  border-top-width: 6px;
  border-bottom-width: 6px;
  max-width: 100%;
}

#header .content .inner {
  -moz-transition:
    max-height 0.75s ease,
    padding 0.75s ease,
    opacity 0.325s ease-in-out;
  -webkit-transition:
    max-height 0.75s ease,
    padding 0.75s ease,
    opacity 0.325s ease-in-out;
  -ms-transition:
    max-height 0.75s ease,
    padding 0.75s ease,
    opacity 0.325s ease-in-out;
  transition:
    max-height 0.75s ease,
    padding 0.75s ease,
    opacity 0.325s ease-in-out;
  -moz-transition-delay: 0.25s;
  -webkit-transition-delay: 0.25s;
  -ms-transition-delay: 0.25s;
  transition-delay: 0.25s;
  padding: 3rem 2rem;
  max-height: 40rem;
  overflow: hidden;
}

#header .content .inner > :last-child {
  margin-bottom: 0;
}

#header .content p {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
  line-height: 2;
}

#header nav ul {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
  border: solid 3px #2c3e50;
  border-radius: 4px;
}

#header nav ul li {
  padding-left: 0;
  border-left: solid 1px #2c3e50;
  background: linear-gradient(315deg, #ffffff 40%, #40c0e0 100%);
}

#header nav ul li:first-child {
  border-left: 0;
}

#header nav ul li a {
  display: block;
  min-width: 7.25rem;
  height: 2.75rem;
  line-height: 2.75rem;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.7rem;
  border-bottom: 0;
  position: relative;
  box-sizing: border-box;
}

#header nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #2c3e50;
  transition: all 0.3s ease-in-out;
}

#header nav ul li a:hover:after {
  width: 100%;
  left: 0;
}
#header nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.075);
}
#header nav ul li a:active {
  background-color: rgba(255, 255, 255, 0.175);
}

#header nav.use-middle:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 1px;
  height: 100%;
  background: #2c3e50;
}

#header nav.use-middle ul li.is-middle {
  border-left: 0;
}

body.is-article-visible #header {
  -moz-transform: scale(0.95);
  -webkit-transform: scale(0.95);
  -ms-transform: scale(0.95);
  transform: scale(0.95);
  -moz-filter: blur(0.1rem);
  -webkit-filter: blur(0.1rem);
  -ms-filter: blur(0.1rem);
  filter: blur(0.1rem);
  opacity: 0;
}

body.is-preload #header {
  -moz-filter: blur(0.125rem);
  -webkit-filter: blur(0.125rem);
  -ms-filter: blur(0.125rem);
  filter: blur(0.125rem);
}

body.is-preload #header > * {
  opacity: 0;
}
body.is-preload #header .content .inner {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

@media screen and (max-width: 980px) {
  #header .content p br {
    display: none;
  }
}

@media screen and (max-width: 736px) {
  #header > * {
    margin-top: 2rem;
  }
  #header > *:before {
    top: calc(-2rem - 1px);
    height: calc(2rem + 1px);
  }
  #header .logo {
    width: 4.75rem;
    height: 4.75rem;
    line-height: 4.75rem;
  }
  #header .logo .icon:before {
    font-size: 1.75rem;
  }
  #header .content .inner {
    padding: 2.5rem 1rem;
  }
  #header .content p {
    line-height: 1.875;
  }
}

@media screen and (max-width: 480px) {
  #header {
    padding: 1.5rem 0;
  }
  #header .content .inner {
    padding: 2.5rem 0;
  }
  #header nav ul {
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 10rem;
    max-width: 100%;
  }
  #header nav ul li {
    border-left: 0;
    border-top: solid 1px #ffffff;
  }
  #header nav ul li:first-child {
    border-top: 0;
  }
  #header nav ul li a {
    height: 3rem;
    line-height: 3rem;
    min-width: 0;
    width: 100%;
  }
  #header nav.use-middle:after {
    display: none;
  }
}

/* Main */

#main {
  -moz-flex-grow: 1;
  -webkit-flex-grow: 1;
  -ms-flex-grow: 1;
  flex-grow: 1;
  -moz-flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -ms-flex-shrink: 1;
  flex-shrink: 1;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  -moz-flex-direction: column;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  position: relative;
  max-width: 100%;
  z-index: 3;
}

#main article {
  -moz-transform: translateY(0.25rem);
  -webkit-transform: translateY(0.25rem);
  -ms-transform: translateY(0.25rem);
  transform: translateY(0.25rem);
  -moz-transition:
    opacity 0.325s ease-in-out,
    -moz-transform 0.325s ease-in-out;
  -webkit-transition:
    opacity 0.325s ease-in-out,
    -webkit-transform 0.325s ease-in-out;
  -ms-transition:
    opacity 0.325s ease-in-out,
    -ms-transform 0.325s ease-in-out;
  transition:
    opacity 0.325s ease-in-out,
    transform 0.325s ease-in-out;
  padding: 4.5rem 2.5rem 1.5rem 2.5rem;
  position: relative;
  width: 40rem;
  max-width: 100%;
  background-color: transparent;
  border-radius: 4px;
  opacity: 0;
  max-height: 80vh;
  overflow-y: auto;
  margin-top: 10vh;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

#main article.active {
  -moz-transform: translateY(0);
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#main article .close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
  text-indent: 4rem;
  overflow: hidden;
  white-space: nowrap;
}

#main article .close:before {
  -moz-transition: background-color 0.2s ease-in-out;
  -webkit-transition: background-color 0.2s ease-in-out;
  -ms-transition: background-color 0.2s ease-in-out;
  transition: background-color 0.2s ease-in-out;
  content: "";
  display: block;
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 100%;
  background-position: center;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20px' height='20px' viewBox='0 0 20 20' zoomAndPan='disable'%3E%3Cstyle%3Eline %7B stroke: %23ffffff%3B stroke-width: 1%3B %7D%3C/style%3E%3Cline x1='2' y1='2' x2='18' y2='18' /%3E%3Cline x1='18' y1='2' x2='2' y2='18' /%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

#main article .close:before,
#main article .close:after {
  background-color: rgb(44, 62, 80);
}
#main > article .close:hover::before,
#main > article .close:hover::after {
  background-color: #40c0e0 !important;
}

@media screen and (max-width: 736px) {
  #main article {
    padding: 3.5rem 2rem 0.5rem 2rem;
  }
  #main article .close:before {
    top: 0.875rem;
    left: 0.875rem;
    width: 2.25rem;
    height: 2.25rem;
    background-size: 14px 14px;
  }
}

@media screen and (max-width: 480px) {
  #main article {
    padding: 3rem 1.5rem 0.5rem 1.5rem;
  }
}

/* Footer */

#footer {
  -moz-transition:
    -moz-transform 0.325s ease-in-out,
    -moz-filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  -webkit-transition:
    -webkit-transform 0.325s ease-in-out,
    -webkit-filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  -ms-transition:
    -ms-transform 0.325s ease-in-out,
    -ms-filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  transition:
    transform 0.325s ease-in-out,
    filter 0.325s ease-in-out,
    opacity 0.325s ease-in-out;
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  text-align: center;
}

#footer .copyright {
  letter-spacing: 0.2rem;
  font-size: 0.6rem;
  margin-bottom: 0;
  text-transform: uppercase;
  color: #2c3e50;
}

body.is-article-visible #footer {
  -moz-transform: scale(0.95);
  -webkit-transform: scale(0.95);
  -ms-transform: scale(0.95);
  transform: scale(0.95);
  -moz-filter: blur(0.1rem);
  -webkit-filter: blur(0.1rem);
  -ms-filter: blur(0.1rem);
  filter: blur(0.1rem);
  opacity: 0;
}

body.is-preload #footer {
  opacity: 0;
}

/* Top Header */

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  z-index: 10000;
  pointer-events: none;
}

.top-header .nome,
.top-header .cognome {
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 0.3rem;
  color: #2c3e50;
  text-transform: uppercase;
}
p,
li,
blockquote {
  text-align: justify;
  -webkit-hyphens: auto; /* Per Safari */
  -ms-hyphens: auto; /* Per vecchi browser */
  hyphens: auto; /* Standard moderno */
}
#footer p.copyright {
  text-align: center;
}
/* Contenitore dei tag */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.skill-tag {
  background-color: #40c0e0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px; /* Arrotonda i bordi */
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
  color: #2c3e50;
}
/* Effetto hover quando ci passi sopra col mouse */
.skill-tag:hover {
  background-color: #2c3e50;
  color: #ffffff;
}
/* Diciamo all'immagine di fluttuare a sinistra e diamo respiro al testo attorno */
#intro #fotosezione1 {
  float: right; /* Spinge l'immagine a sinistra e fa "abbracciare" il testo */
  width: 380px; /* Larghezza fissa della foto */
  height: auto;
  margin-right: 2rem; /* Spazio vuoto tra la foto e il testo a destra */
  margin-bottom: 1rem; /* Spazio sotto la foto */
  border-radius: 8px;
  display: block;
}
/* Puliamo il contenitore per evitare che l'articolo perda i bordi */
#intro .about-flex-container {
  display: block !important; /* Disattiviamo il flexbox per questa sezione */
}
#intro p {
  text-align: left; /* Allinea il testo a sinistra in modo naturale */
}
.image.trasparente:before {
  display: none !important;
}
#contatti {
  width: 420px !important;
  height: 130px !important;
}
#progetti {
  width: 500px !important;
  height: 130px !important;
}
.flex-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}
.flex-item {
  flex: 1;
  min-width: 250px;
  box-sizing: border-box;
  color: #ffffff;
  background-color: #40c0e0;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #ffffff;
  transition: gap 0.2s;
}
.flex-item h3,
.flex-item p {
  text-align: left !important;
}
@media screen and (max-width: 736px) {
  .top-header {
    padding: 1.2rem 1.5rem;
  }

  #wrapper:before {
    display: none !important;
  }

  #wrapper:after {
    display: none !important;
  }

  #wrapper {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 1.8rem 1rem 0.6rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .top-header {
    top: 0;
    padding: 0.5rem 1.2rem !important; /* Sposta DANIELE / RIZZO a filo bordo */
  }

  .top-header .nome,
  .top-header .cognome {
    font-size: 1.15rem;
    letter-spacing: 0.15rem;
  }

  #header .content .inner {
    padding: 0.5rem 1rem !important;
  }
  #header .logo {
    width: 7.5rem;
    height: 7.5rem;
  }

  #header nav {
    margin-bottom: 0 !important;
  }

  #header nav ul {
    min-width: 14rem;
    width: 80%;
    margin: 0 auto;
  }

  #header nav ul li a {
    height: 3rem;
    line-height: 3rem;
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
  }

  #footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  #intro #fotosezione1 {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 1.5rem auto;
  }

  #progetti,
  #contatti {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  #work > div:first-child {
    flex-wrap: wrap;
    gap: 1rem !important;
  }
  .flex-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .flex-item {
    min-width: 100% !important;
    padding: 1.2rem 1.2rem !important;
    box-sizing: border-box !important;
  }

  .flex-item h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    letter-spacing: 0.15rem !important;
  }

  .flex-item p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }

  .project-link {
    font-size: 0.75rem !important;
  }
}
@media screen and (min-width: 481px) and (max-width: 736px) {
  #header nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }
  #header nav ul li {
    width: 50% !important;
    border-left: 0 !important;
    border-top: solid 1px #2c3e50 !important;
  }
  /* Rimuove il bordo superiore solo per i due pulsanti della prima riga */
  #header nav ul li:nth-child(1),
  #header nav ul li:nth-child(2) {
    border-top: 0 !important;
  }
  #header nav ul li a {
    width: 100% !important;
    min-width: 0 !important;
  }
}
@font-face {
  font-family: "Font Awesome 5 Brands";
  font-display: swap;
}
@media screen and (max-width: 736px) {
  #main article {
    max-height: calc(100dvh - 6rem) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-top: 2vh !important;
    margin-bottom: 2vh !important;
  }
}
.flex-item a,
#progetti a {
  border-bottom-color: #2c3e50 !important;
}

/* Stato in hover (quando ci passi sopra col mouse) */
.flex-item a:hover,
#progetti a:hover {
  border-bottom-color: #2c3e50 !important;
  border-bottom-width: 3px !important;
}

#main .actions .button {
  background: linear-gradient(315deg, #ffffff 40%, #40c0e0 100%);
}
#main .actions .button:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0; 
  height: 5px; 
  background-color: #2c3e50; 
  transition: all 0.3s ease-in-out; 
}
#main .actions .button:hover:after {
  width: 100%; 
  left: 0; 
}