/*
 Theme Name:   Teorema Italia
 Description:  Tema di Teorema Italia
 Author:       Studio Teorema
 Author URI:   https://www.teoremafirenze.it
 Template:     generatepress
 Version:      0.1
*/

/* Pulsante CTA Header */
.main-nav ul li.nav-button a {background: #27AFB0; color:#fff !important;  margin-left:20px;  }
.main-nav ul li.nav-button a:hover {background-color: #157F7F !important; color:#fff !important;}

/* Sotto menù */
.main-navigation .main-nav ul ul li a {border-bottom: 1px solid #ededed;}
@media (min-width: 769px) {.main-navigation {padding: 0 20px;}}
.main-navigation .main-nav ul ul li a {border-bottom: 0px solid #ededed;}


/* Stretch Link */
.stretch-link {position:relative;}
.stretch-link a::after {content:''; position:absolute; inset:0;}
.stretch-link a:is(:focus-visible)::after {outline:2px solid;}

/* Area riservata Login Community */
.community-restricted {background: url('https://www.teoremaitalia.com/wp-content/uploads/2025/12/teorema-italia-chi-siamo.jpg') no-repeat center center/cover; min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
	margin-top: -26px !important;
}

.community-box {
    background-color: #ffffff;
    padding: 50px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-radius: 12px;
    text-align: center;
	
}

.community-logo {
    max-width: 100px;
}

.community-box h2 {
    color: #222;
    font-size: 30px;
	font-weight: 800;
	line-height:120%;
    margin-bottom: 10px;
}



.btn-login {
    display: inline-block;
    background-color: #27AFB0;
    color: white;
    padding: 12px 25px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #157F7F;
}

.community-link .btn-home {
    display: inline-block;
    color: #555;
    text-decoration: underline;
    font-weight: normal;
    font-size: 14px;
    transition: 0.3s;
}

@media (max-width: 480px) {
    .community-box {
        padding: 30px 20px;
    }
    .community-box h2 {
        font-size: 22px;
    }
    .community-box p {
        font-size: 14px;
    }
    .btn-login {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    .community-link .btn-home {
        font-size: 12px;
    }
}

/* Notizie scorrimento Breaking News */
.breaking-news-ticker-wrapper {
    width: 100%;
    background-color: #157F7F;
    overflow: hidden;
    padding: 1em 0;
    position: relative;
}

#breaking-news-ticker {
    display: flex;
    white-space: nowrap;
}

#breaking-news-ticker .news-item {
    display: inline-block;
    margin-right: 5em;
    color: #fff;
    font-weight: 500;
}

#breaking-news-ticker .news-date {
    background-color: #0F5E5E;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    margin-right: 0.5em;
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .breaking-news-ticker-wrapper {
        padding: 0.5em 0;
    }
    #breaking-news-ticker .news-item {
        font-size: 0.8em;
        margin-right: 3em;
    }
    #breaking-news-ticker .news-item .news-date {
        padding: 0.05em 0.3em; 
    }
}

/* Immagine overlay Network */
.overlay-box {
  position: relative;
  display: inline-block;
}

.overlay-box img.overlay-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}


/* Start CF7 */
input[type=text], input[type=email], input[type=tel], select {
	border: 1px solid #CBD5E1; background: #ffffff;
    padding: 15px;
    width: 100%;}

input[type=submit] {padding: 20px 15px;
    width: 100%; font-weight: bold; margin-top:15px;}

textarea.wpcf7-form-control {
    border: 1px solid #CBD5E1;
	BACKGROUND: WHITE;}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #d1fae5;
    color: #065f46;
    text-align: center;
    padding: 15px 20px;
    border: 2px solid #46b450;
    border-radius: 0px;
    font-weight: 600;
    transition: all 0.3s ease;}

.wpcf7 form .wpcf7-response-output {
    margin: 2em 0em 0em;
    padding: 0.2em 1em;
    border: 2px solid #00a0d2;}


span.wpcf7-not-valid-tip {
  background-color: #fee2e2;
  padding: 6px 10px;
  border-radius: 0px;
  border: 1px solid #f87171;}
/* End CF7 */

/* Animate JS */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
  .animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 0.6s ease;
    will-change: opacity, transform;
  }

  .animate.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Disable animation in the editor preview */
  .editor-styles-wrapper .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}