/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* colors */
  --background-color: white;
  --light-color: #f8f8f8;
  --dark-color: #505050;
  --text-color: #131313;
  --link-color: #D94948;
  --link-hover-color: #D94948BF;
  --dark-background-color: #011627DB;
  --heading-background-color: #01010252;
  --error-color: #D94948;
  --form-field-border-color: #dadbdd;

  /* fonts */
  --body-font-family: 'Montserrat',montserrat-normal-400-fallback, sans-serif;
  --heading-font-family: 'Montserrat',montserrat-normal-400-fallback, sans-serif;
  --font-awesome: font-awesome, sans-serif;
  --font-awesome-brands: font-awesome-brands, sans-serif;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 19px;
  --body-font-size-xs: 17px;

  /* heading sizes */
  --heading-font-size-xxl: 50px;
  --heading-font-size-xl: 44px;
  --heading-font-size-l: 34px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 21px;
  --heading-font-size-xs: 14px;

  /* other font variables */
  --label-font-size: 15px;

  /* nav height */
  --nav-height: 122px;
  --negative-nav-height: -122px;

  /* glue size */
  --padding-y-glue-size: 40px;
  --padding-x-glue-size: 24px;

  /* hero height */
  --hero-height: 400px;
}

/* fallback fonts */

/* fallback font for Montserrat (italic - 400) */
@font-face {
    font-family: "montserrat-italic-400-fallback";
    size-adjust: 112.161%;
    src: local("Arial");
}

/* fallback font for Montserrat (normal - 400) */
@font-face {
    font-family: "montserrat-normal-400-fallback";
    size-adjust: 111.161%;
    src: local("Arial");
}

@media (width >= 900px) {
  :root {
    /* body sizes */
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
    --body-font-size-xs: 14px;

    /* heading sizes */
    --heading-font-size-xxl: 50px;
    --heading-font-size-xl: 34px;
    --heading-font-size-l: 28px;
    --heading-font-size-m: 22px;
    --heading-font-size-s: 14px;
    --heading-font-size-xs: 12px;
    --padding-y-glue-size: 60px;
    --padding-x-glue-size: 32px; 
  }
}

html {
    overflow-x: hidden;
     max-width: 100%;
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body.appear {
  display: block;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
}

header {
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin: 40px;
  text-align: center;
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-m); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

p {
    margin-bottom: 1.75em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* buttons */
a.button:any-link,
button {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: 12px 0;
  border: 2px solid transparent;
  border-radius: 2.4em;
  padding: 0.5em 1.2em;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background-color: var(--link-color);
  color: var(--background-color);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  background-color: var(--link-hover-color);
  cursor: pointer;
}

button:disabled,
button:disabled:hover {
  background-color: var(--light-color);
  cursor: unset;
}

a.button.secondary,
button.secondary {
  background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-color);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

a i {
    display: inline-block;
    height: 1em;
    position: relative;
    width: 1em;
    margin-right: 1rem;
    line-height: 1;

}

a i::before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

i.fab {
    font-family: var(--font-awesome-brands);
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
}

i.fa {
    font-family: var(--font-awesome);
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
}

/* sections */
main > .section {
  margin: 0;
}

main .section p , main .section ul{
    font-size: 0.9375rem;
}

main > .section > div {
  max-width: 900px;
  margin: auto;
  padding: var(--padding-y-glue-size) var(--padding-x-glue-size);
}

main > .section:first-of-type {
  margin-top: 0;
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}

main .section.centered  p {
    text-align: center;
}

main .section.overlay {
    background-size: cover;

    /* background-attachment: fixed; */
    background-position: top center;
    margin-top: 0;
    padding: 0;
    min-height: 120px;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    position:relative;
}

main .section .overlay-layer {
    background-color: #011627;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    height: calc(100% - var(--padding-y-glue-size));
    max-width: 100%;
    position:absolute;
    top:0;
    width: 100%;
    padding-bottom:0;
    padding-left: 0;
    padding-right: 0;
}


main .section.overlay .block {
    position: relative;
    color:var(--light-color);
}

main .section.heading {
    color:var(--light-color);
    text-align: center;
    margin: 0 auto;
    width: 100%;
    top: var(--negative-nav-height);
  
}

main .section.heading .default-content-wrapper {
    position: relative;
    top: 100px;
    margin-bottom: -100px;
}

main .section.overlay:not(.dark-text) .default-content-wrapper {
    color: white
}

main .section.heading .default-content-wrapper .button-container {
    margin-bottom: 240px;
    margin-top: 24px;
}

main .section.heading h1 {
    font-size: 18px;
    line-height: 25px;
     font-weight: 500;
}

main .section.heading h4 {
    line-height: 17px;
    font-size: 14px;
    font-weight: 500;
}

main .section.heading img {
    width: 300px;
    display: block;
    margin: 0 auto;
    
}

main .section.heading > div > p {
      background-color: var(--heading-background-color);
}

main .section.heading > div  p.button-container {
      background-color: initial;
}

main .section.cards-container, main .section.news-container {
    max-width: 1170px;
    margin:0 auto;
}

main .section.news-container {
    text-align: center;
}

main .section.wider h2 {
    /* text-shadow: 0 0 10px rgb(0 0 0 / 30%); */
    font-size: var(  --heading-font-size-xl);
}

main .section > div:not(.columns-wrapper)  h2 {
    border-bottom: 5px  var(--link-color) solid;
    padding-bottom: 25px;
}

main .section.overlay .default-content-wrapper h2  {
    border-bottom: none;
}

main .section.overlay .default-content-wrapper .button-container {
    position:relative;
}

/* stylelint-disable-next-line selector-id-pattern */
main .section .default-content-wrapper h2#modulo-iscrizione-socio---2026 , main .section .default-content-wrapper h2#moduli-iscrizione-tesserati---2026  {
     border-bottom: none;
}

main .section.wider .columns-wrapper {
    max-width: 1300px;
}

main .section.wider .columns-wrapper p {
    text-align: center;
}

main .section.wider .embed-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

main .section.wider.json-form-container .default-content-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 0;
    padding-top: 0;
}

main .section.wider.json-form-container .json-form-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 0;
}

#alle-origini-del-progetto {
    border-bottom: none;
    font-weight: 500;
}

[data-align="center"] {
    text-align: center;
}

[data-align="right"] {
    text-align: right;
}

