/*
Theme Name: Prefabbricati Ferrocostruzioni
Author: Nuovi Spazi
Author URI: https://www.nuovispazipubblicita.it/
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: prefabbricati-ferrocostruzioni
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/

:root {
  --wp--custom--carousel-block--pagination-bullet-active-color: #4c9c9e;
  --wp--custom--carousel-block--navigation-alignfull-color: #4c9c9e;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}

/*** Logo ***/

.wp-block-site-logo .custom-logo {
  width: 80px;
  object-fit: contain;
}

@media screen and (min-width: 768px) {
  .wp-block-site-logo .custom-logo {
    width: 150px;
    height: 100px;
  }
}

/*** Header ***/

.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 10000;
}

.wp-block-navigation__responsive-container-open svg {
  width: 32px;
  height: 32px;
}

.is-menu-open .wp-block-navigation .wp-block-navigation-item__label {
  font-size: 2rem;
  font-weight: bold;
}

@media screen and (max-width: 1023px) {
  .site-header .wp-block-buttons {
    display: none;
  }
}

/*** Footer ***/

@media screen and (max-width: 1023px) {
  .site-footer .has-text-align-right {
    text-align: left;
  }
}

/*** Contact Form ***/

.wpcf7-form label {
  font-size: 1rem;
  font-weight: 700;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-submit {
  background-color: #4c9c9e;
  padding: 1rem 3rem;
  border: none;
  border-radius: 4px;
  color: white;
}

.wpcf7-text {
  height: 30px;
}

.wpcf7-file {
  margin: 10px 0;
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.wpcf7-form-control.wpcf7-file::file-selector-button {
  margin-right: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #4c9c9e;
  color: white;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.02s ease;
}

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-file {
  width: 100%;
  border-radius: 4px;
  border: 1px solid rgba(112, 115, 122, 0.25);
  margin: 10px 0;
}

input#file-upload-button {
  background-color: #70737a;
  color: white;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: 10px 0;
}

.wpcf7-acceptance .wpcf7-list-item a {
  text-decoration: underline;
}

/*** Logos gallery ***/

.logos-gallery img {
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .site-footer .has-text-align-right {
    text-align: left;
  }
}
