* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #565656;
    background: #fff;
}

a { color: #565656; }

.site-header {
    position: relative;
    text-align: center;
    padding: 34px 16px 26px;
    border-bottom: 1px solid #ebebeb;
}

.lang-switch {
    position: absolute;
    top: 12px;
    right: 16px;
}

.lang-switch a {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    color: #979797;
}

.lang-switch a.on-dark { color: #aaa; }

.lang-switch a.active {
    color: #232323;
    border-bottom: 2px solid #232323;
}

.lang-switch a.on-dark.active {
    color: #fff;
    border-bottom-color: #fff;
}

.site-header .logo {
    max-height: 64px;
    max-width: 80%;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.page-title {
    text-align: center;
    font-weight: 300;
    font-size: 26px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 18px 0 28px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #d8d8d8;
    margin-bottom: 28px;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #979797;
    padding: 12px 8px;
    cursor: pointer;
}

.tab.selected {
    color: #232323;
    border-bottom-color: #232323;
}

/* Form */
fieldset {
    border: 1px solid #ebebeb;
    padding: 18px 20px 8px;
    margin: 0 0 24px;
}

legend {
    padding: 0 10px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #979797;
}

.field { margin-bottom: 18px; }

.label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=date], select, textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #565656;
    font-family: inherit;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #979797;
}

.codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 28px;
    cursor: pointer;
}

.choice img { height: 26px; }

.choice.privacy { margin-right: 0; }

small { color: #979797; }

.required-note {
    font-size: 12px;
    color: #979797;
}

.button {
    display: inline-block;
    background: #232323;
    color: #fff;
    border: none;
    padding: 12px 48px;
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.button:hover { background: #565656; }

.errors {
    border: 1px solid #d0021b;
    color: #d0021b;
    padding: 10px 16px;
    margin-bottom: 20px;
}

.errors ul { margin: 6px 0 0; padding-left: 18px; }

.has-error .label { color: #d0021b; }
.has-error input[type=text], .has-error input[type=email], .has-error input[type=date] {
    border-color: #d0021b;
}

/* honeypot: fuori dallo schermo, non display:none (alcuni bot lo rilevano) */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Confirmation */
.confirmation {
    text-align: center;
    padding: 40px 0;
}

.confirmation h2 {
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Terms pane */
.pane h2, .pane h4 {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.pane h2 { font-size: 18px; }
.pane h4 { font-size: 14px; margin-top: 26px; }
.pane p { line-height: 1.65; }

.site-footer {
    border-top: 1px solid #ebebeb;
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #979797;
}

@media (max-width: 480px) {
    .page-title { font-size: 20px; letter-spacing: 2px; }
    .choice { display: flex; margin: 0 0 10px; }
}
