@font-face {
  font-family: 'Nunito';
  src: url('/font/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* variable font range */
  font-style: normal;
}


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

body {
  -webkit-text-size-adjust: none; }

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

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

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

/* Basic */
@-ms-viewport {
  width: device-width; }

body {
  -ms-overflow-style: scrollbar; }

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

html {
  box-sizing: border-box; }

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

html, body {
  height: 100%;
  overflow-x: hidden;
  width: 100%; }
  @media screen and (max-height: 640px) {
    html, body {
      height: auto;
      min-height: 100%; } }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
  background-color: #000;
}
  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; }
  body > * {
    position: relative;
    z-index: 2; }

/* Header */
#header {
  text-align: center;
  padding: 1.5em 1em 1em 1em;
  background: #fffff040;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#header h1 {
  font-size: 3.25em;
  margin: 0 0 0.55em 0;
  letter-spacing: 0.2em;
}
#header h2 {
  letter-spacing: 0.2em;
  text-align: left;
  padding: 1em 1em 0em 1em;
}

@media screen and (max-width: 980px) {
  #header h2 {
    font-size: 1.1em;
  }
}

#header p {
  font-size: 1.35em;
  line-height: 1.65em; }
#header a {
  color: inherit; }
@media screen and (max-width: 736px) {
  #header h1 {
    font-size: 2em; }
  #header p {
    font-size: 1em; } }
@media screen and (max-width: 480px) {
  #header {
    margin: 0 0 1em 0; } }

/* top container */
.top-container {
  display: flex;              /* enable flexbox */
  justify-content: space-between; /* space between left and right */
  align-items: center;        /* vertically center items */
  padding: 2em;
  background-color: #06524d82;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  max-width: 85%;
  border-radius: 10px;
}

/* Left column (logo) */
.top-container .logo {
  flex: 0 0 auto;  /* don’t stretch, keep natural size */
  border-right: 1px solid #ffffff;
  margin: 0em 5em 0em 0em;
}

.top-container .logo img {
  max-height: 200px;  /* adjust as needed */
  width: auto;
  margin: 0em 5em 0em 0em;
}

/* Right column (text + button) */
.top-container .content {
  flex: 1;              /* take remaining space */
  text-align: center;    /* align text/button to the left */
  display: flex;
  flex-direction: column;
}

.top-container .content h3,
.top-container .content p {
  margin: 0em 0 0em 0;

}

.top-container .content a {
  align-self: center;   /* centers the button horizontally inside flexbox */
  margin-top: 1em;
}

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

  .top-container {
    flex-direction: column; /* 1 colonna */
    text-align: center;     /* testo centrato di default */
  }

  .top-container .logo {
  max-width: 100px;
  height: auto;
  border: none;
}

.top-container .logo img {
  max-height: 70px;  /* adjust as needed */
  width: auto;
  margin: 0em 0em 0em 3.1em;
}


  .top-container .content p {
    text-align: center !important;
	  line-height: 1.6;
  }
}

/* main content */

/* Corpo con sezioni impilate verticalmente */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column; /* sections still stacked vertically */
  gap: 2em;
  padding: 3em 0;
  justify-content: flex-start;
  align-items: center;
}


/* Corpo con sezioni impilate verticalmente */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column; /* sections still stacked vertically */
  gap: 2em;
  padding: 3em 0;
  justify-content: flex-start;
  align-items: center;
}


/* Section as a grid: left column (header + body), right column (picture) */
.grid-section {
  display: grid;
  grid-template-columns: 1fr 360px;  /* change 360px to your desired picture column width */
  grid-template-rows: auto 1fr;      /* header height + body takes remaining space */
  gap: 1em;                          /* reduced gap */
  width: 100%;
  max-width: 85%;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  backdrop-filter: blur(15px);
  align-items: stretch;              /* ensures picture fills full section height */
  overflow: hidden;
}

/* Grid placement */
.grid-section .section-header {
  grid-column: 1;
  grid-row: 1;
  padding: 1em 1.5em; /* reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* center h2/h3 horizontally */
}

.grid-section .picture {
  grid-column: 2;
  grid-row: 1 / 4; /* span both rows so the image height equals entire section height */
  padding: 0;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  height: 100%;
  background-color: #333;
}

.grid-section .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body on left column, below header */
.grid-section .section-body {
  grid-column: 1;
  grid-row: 2;
  padding: 0.5em 1.5em; /* reduced padding */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* top-align for tighter look */
}

/* Headings: ensure centered */
.grid-section .section-header h2,
.grid-section .section-header h3 {
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  margin: 0.3em 0; /* reduce spacing */
  padding-bottom: 0.2em;
}

/* Paragraph spacing tighter */
.grid-section .section-body p {
  margin: 0em 0.5em;
}


/* MOBILE: stack header, picture, body in this exact order and reduce spacing */
@media screen and (max-width: 768px) {
  .grid-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr; /* header / picture / body */
    gap: 0.5em;                         /* tighter spacing on mobile */
    padding: 0.5em 0;                   /* reduce outer padding if you like */
  }

  .grid-section .section-header { grid-column: 1; grid-row: 1; padding: 1em; }
  .grid-section .picture       { grid-column: 1; grid-row: 2; width: 100%; aspect-ratio: 1/1; height: auto; margin: 0; }
  .grid-section .section-body  { grid-column: 1; grid-row: 3; padding: 1em; }

  /* Make headings and p closer */
  .grid-section .section-header h2,
  .grid-section .section-header h3 {
    margin-bottom: 0.4em;
  }
  .grid-section .section-body p {
    margin-top: 0.6em;
    text-align: center;
  }
}



/* BG */
#bg {
  -moz-transition: opacity 2s ease-in-out;
  -webkit-transition: opacity 2s ease-in-out;
  -ms-transition: opacity 2s ease-in-out;
  transition: opacity 2s ease-in-out;
  height: 100%;
  left: 0;
  opacity: 0.375;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1; }
  #bg div {
    -moz-transition: opacity 3s ease;
    -webkit-transition: opacity 3s ease;
    -ms-transition: opacity 3s ease;
    transition: opacity 3s ease;
    background-size: cover;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    visibility: hidden;
    width: 150%; }
    #bg div.visible {
      -moz-animation: bg 45s linear infinite;
      -webkit-animation: bg 45s linear infinite;
      -ms-animation: bg 45s linear infinite;
      animation: bg 45s linear infinite;
      opacity: 1;
      visibility: visible;
      z-index: 1; }
      #bg div.visible.top {
        z-index: 2; }
      @media screen and (max-width: 1280px) {
        #bg div.visible {
          -moz-animation: bg 29.25s linear infinite;
          -webkit-animation: bg 29.25s linear infinite;
          -ms-animation: bg 29.25s linear infinite;
          animation: bg 29.25s linear infinite; } }
      @media screen and (max-width: 736px) {
        #bg div.visible {
          -moz-animation: bg 18s linear infinite;
          -webkit-animation: bg 18s linear infinite;
          -ms-animation: bg 18s linear infinite;
          animation: bg 18s linear infinite; } }
    #bg div:only-child {
      -moz-animation-direction: alternate !important;
      -webkit-animation-direction: alternate !important;
      -ms-animation-direction: alternate !important;
      animation-direction: alternate !important; }
  body.is-preload #bg {
    opacity: 0; }

@-moz-keyframes bg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); } }

@-webkit-keyframes bg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); } }

@-ms-keyframes bg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); } }

@keyframes bg {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); } }

/* Type */
body, input, select, textarea {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Nunito', "Roboto", sans-serif;
  font-size: 16pt;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.65em; }
  @media screen and (max-width: 1680px) {
    body, input, select, textarea { font-size: 14pt; } }
  @media screen and (max-width: 1280px) {
    body, input, select, textarea { font-size: 13pt; } }
  @media screen and (max-width: 980px) {
    body, input, select, textarea { font-size: 12pt; } }
  @media screen and (max-width: 736px) {
    body, input, select, textarea { font-size: 12pt; } }
  @media screen and (max-width: 480px) {
    body, input, select, textarea { font-size: 12pt; } }



strong, b { color: #fff; font-weight: 700; }
em, i { font-style: italic; }
p { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  line-height: 1em;
  margin: 0 0 1em 0; }
  h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; }

h1 { font-size: 2.5em; line-height: 1.25em; }
h2 { font-size: 1.75em; line-height: 1.5em; }
h3 { font-size: 1.35em; line-height: 1.5em; }
h4 { font-size: 1.1em; line-height: 1.5em; }
h5 { font-size: 0.9em; line-height: 1.5em; }
h6 { font-size: 0.7em; line-height: 1.5em; }

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

blockquote {
  border-left: solid 8px rgba(255, 255, 255, 0.35);
  font-style: italic;
  margin: 0 0 2em 0;
  padding: 0.5em 0 0.5em 2em; }

code {
  background: rgba(255, 255, 255, 0.125);
  border-radius: 6px;
  border: solid 2px rgba(255, 255, 255, 0.35);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em; }

pre {
  -webkit-overflow-scrolling: touch;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0 2em 0; }
  pre code {
    display: block;
    line-height: 1.75em;
    padding: 1em 1.5em;
    overflow-x: auto; }

hr {
  border: 0;
  border-bottom: solid 2px rgba(255, 255, 255, 0.35);
  margin: 1em 0; }
  hr.major { margin: 3em 0; }

/* Section/Article */
section.special, article.special { text-align: center; }
header p { color: rgba(255, 255, 255, 0.5); margin: 0 0 1.5em 0; }
header h2 + p { font-size: 1.25em; margin-top: -1em; line-height: 1.5em; }
header h3 + p { font-size: 1.1em; margin-top: -0.8em; line-height: 1.5em; }
header h4 + p, header h5 + p, header h6 + p {
  font-size: 0.9em; margin-top: -0.6em; line-height: 1.5em; }

@media screen and (max-width: 980px) {
  header br { display: none; } }
@media screen and (max-width: 736px) {
  header br { display: inline; } }
@media screen and (max-width: 480px) {
  header br { display: none; } }

/* Button */
.button {
  appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, opacity 0.2s ease-in-out;
  background-color: #e66050;
  border-radius: 6px;
  border: 0;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  height: 2.75em;
  line-height: 2.75em;
  padding: 0 1.125em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap; }

  .button:hover { 
    background-color: #ef5d4ac9 !important; 
  }


  @media screen and (max-width: 480px) {
    input[type="submit"], input[type="reset"], input[type="button"], button, .button { padding: 1; } }

/* Footer */
#footer {
  padding: 1em 0em 2em 0em;
  background-color: #06524d;
  margin-top: auto;
}


  #footer .icons { font-size: 1.25em; }
    #footer .icons a { color: rgba(255, 255, 255, 0.5); }
      #footer .icons a:hover { color: #fff; }
  #footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    letter-spacing: 0.225em;
    list-style: none;
    padding: 3em 0 1em;
    text-transform: uppercase;
    text-align: center;
  }
    #footer .copyright li {
      border-left: solid 1px rgba(255, 255, 255, 0.50);
      display: inline-block;
      line-height: 1em;
      margin-left: 1em;
      padding-left: 1em;
    }
      #footer .copyright li:first-child {
        border-left: 0;
        margin-left: 0;
        padding-left: 0;
      }
      #footer .copyright li a { color: inherit; }
        #footer .copyright li a:hover { color: #fff; }
      
        @media screen and (max-width: 480px) {
        #footer .copyright li {
          border: 0;
          display: block;
          line-height: 1.65em;
          margin: 0;
          padding: 0.5em 0em;
        }
      }
