/*
Theme Name: Criocompressione
Description: Tema proprietario Criocompressione
Version: 1.0
Author: Criocompressione
Site: https://www.criocompressione.it/
Text Domain: https://www.criocompressione.it/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: "Russo One";
  src: url("assets/fonts/russo-one/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html{
  margin: 0;
  padding: 0;
}
body{
  margin: 0;
  padding: 0;
}
.hfe-nav-menu__toggle {
    transition: transform 0.3s ease;
    margin-right: 0!important;
}
.hfe-nav-menu__toggle {
    transition: all 0.3s ease;
}

.hfe-nav-menu__toggle.open {
    margin-right: 20px !important;
}
/* Selettore per il terzo titolo */
.elementor-element-7a4f66d .elementor-image-box-title {
    margin-top: -10%;
}

/* ===== CARD DEL FORM ===== */

form.hero-form {
  max-width: 1200px;
  margin: 60px auto 80px;
  margin-top: 30px;
  padding: 32px 28px 36px;
  background: rgba(3, 16, 26, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(79, 212, 255, 0.18);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
  font-family: "Russo One";
  font-weight: 100;
}

/* Tolgo margine enorme dei <p> di CF7 (se presenti) */
form.hero-form p {
  margin: 0 0 18px;
  color: #E5E7EB;
}

/* ===== LABEL ===== */

form.hero-form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #E5E7EB;
  text-align: left;
}

/* ===== INPUT / SELECT / TEXTAREA ===== */

form.hero-form .wpcf7-form-control.wpcf7-text,
form.hero-form .wpcf7-form-control.wpcf7-email,
form.hero-form .wpcf7-form-control.wpcf7-textarea,
form.hero-form .wpcf7-form-control.wpcf7-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #1B2835;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: #1A1C1E;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  display: block;
  font-family: "Roboto";
  font-weight: bold;
  font-size: 18px;
}

/* Placeholder */
form.hero-form input::placeholder,
form.hero-form textarea::placeholder {
  color: #6B7280;
}

/* Focus */
form.hero-form .wpcf7-form-control:focus {
  outline: none;
  border-color: #00B6FF;
  box-shadow: 0 0 0 1px rgba(0, 182, 255, 0.4), 0 0 28px rgba(0, 182, 255, 0.22);
}

/* Textarea più bassa e con resize solo verticale */
form.hero-form .wpcf7-textarea {
  min-height: 130px;
  resize: vertical;
}

/* ===== LAYOUT RIGHE 2 COLONNE (Nome/Cognome - Email/Telefono) ===== */

form.hero-form .form-row{
  display: flex;
  gap: 24px;
  margin: 0 0 18px;
  width: 100%;
  align-items: flex-start;
}

/* Qualunque figlio diretto della row (div.col o eventuali <p> inseriti da CF7) */
form.hero-form .form-row > *{
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

/* Colonna */
form.hero-form .form-row .col{
  width: 100%;
}

/* Wrapper CF7 deve occupare tutta la colonna */
form.hero-form .wpcf7-form-control-wrap{
  display: block;
  width: 100%;
}

/* Forza i campi nelle righe a riempire al 100% */
form.hero-form .form-row .wpcf7-form-control{
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

/* ===== CHECKBOX PRIVACY ===== */

form.hero-form .wpcf7-acceptance {
  font-size: 0.8rem;
  color: #D1D5DB;
  line-height: 1.4;
}

form.hero-form .wpcf7-list-item {
  margin: 0;
}

/* Stile della checkbox (browser moderni) */
form.hero-form input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #00B6FF;
}

/* ===== BOTTONE INVIA ===== */

form.hero-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  background: #00A7E6;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 167, 230, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, background 0.12s ease;
  padding-right: 100px;
  padding-left: 100px;
}

/* Hover / Active */
form.hero-form input[type="submit"]:hover {
  background: #00000063;
  transform: translateY(-1px);
}

form.hero-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(0, 167, 230, 0.55);
}

/* Centratura del bottone (se CF7 lo mette dentro <p>) */
form.hero-form p:last-of-type {
  text-align: center;
  margin-top: 16px;
}

/* ===== MESSAGGI DI ERRORE / SUCCESSO ===== */

form.hero-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #F97373;
}

form.hero-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

/* Successo */
form.hero-form.submitting ~ .wpcf7-response-output,
form.hero-form.sent ~ .wpcf7-response-output {
  border-color: #22D3A6;
  background: rgba(13, 148, 136, 0.12);
  color: #BBF7D0;
}

/* Errore */
form.hero-form.invalid ~ .wpcf7-response-output,
form.hero-form.failed ~ .wpcf7-response-output {
  border-color: #F97373;
  background: rgba(248, 113, 113, 0.08);
  color: #FED7D7;
}

#menu-fisso {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  padding: 20px 40px;
}

#blog-archive .has-thumbnail{
	border-radius: 20px 20px 20px 20px;
} 

#blog-archive img{
	border-radius: 20px 20px 20px 20px;
}

/* =========================================================
   Personalized Article Layout (scoped)
   Usa solo .personalized-article per non impattare il resto
   ========================================================= */

.personalized-article {
  --pa-bg: #ffffff;
  --pa-text: #111827;       /* quasi nero */
  --pa-muted: #6b7280;      /* grigio */
  --pa-border: #e5e7eb;     /* bordo soft */
  --pa-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --pa-radius: 18px;
  --pa-max: 920px;
  color: var(--pa-text);
  margin: 0 auto;
  position: relative;
  top: 140px;
  margin-bottom: 200px;
}

.personalized-article .pa-wrap {
  max-width: var(--pa-max);
  margin: 0 auto;
  padding-bottom: 50px;
}

.personalized-article .pa-card {
  background: var(--pa-bg);
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  box-shadow: var(--pa-shadow);
  overflow: hidden;
  box-shadow: -40px 45px 100px 30px rgba(232, 240, 248, 0.17);
}

/* Cover image */
.personalized-article .pa-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
}

.personalized-article .pa-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Optional overlay for readability if you want later */
.personalized-article .pa-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,24,39,0.0), rgba(17,24,39,0.06));
  pointer-events: none;
}

/* Header */
.personalized-article .pa-header {
  padding: 28px 26px 8px;
}

.personalized-article .pa-title {
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3vw, 40px);
  font-family: 'Aldrich';
  font-size: 38px;
  color: #1C1C1E;
}

.personalized-article .pa-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: #1C1C1E;
  font-family: 'Roboto';
  font-size: 16px;
}

.personalized-article .pa-meta .pa-dot {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--pa-border);
  display: inline-block;
  transform: translateY(-1px);
}

/* Content */
.personalized-article .pa-content {
  padding: 18px 26px 26px;
  line-height: 1.75;
  font-family: "Roboto";
  font-size: 18px;
  color: #1C1C1E;
}

.personalized-article .pa-content > *:first-child {
  margin-top: 0;
}

.personalized-article .pa-content h2,
.personalized-article .pa-content h3,
.personalized-article .pa-content h4 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}

.personalized-article .pa-content p {
  margin: 0 0 16px;
}

.personalized-article .pa-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.personalized-article .pa-content blockquote {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--pa-border);
  background: #f9fafb;
  border-radius: 10px;
  color: #111827;
}

.personalized-article .pa-content ul,
.personalized-article .pa-content ol {
  padding-left: 20px;
  margin: 0 0 18px;
}

.personalized-article .pa-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--pa-border);
}

/* Footer CTA/Form area */
.personalized-article .pa-after {
  padding: 0 26px 28px;
}

.personalized-article .pa-divider {
  height: 1px;
  background: var(--pa-border);
  margin: 0 0 20px;
}

.personalized-article .pa-form-box {
  padding: 18px 16px;
  text-align: center;
  background-color: #FFFFFF;
  padding-bottom: 50px;
  padding-top: 50px;	
}

.personalized-article h1.pa-form-title {
  margin: 0 0 6px;
  font-size: 34px;
  font-family: 'Aldrich';
  color: #1A1C1E;
  padding-bottom: 20px;
}

.personalized-article h2.pa-form-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-family: 'Aldrich';
}

.personalized-article h2.pa-form-title.pa-form-title-colour{
  color: #E8F0F8;
  background-color: #1C1C1E;
  border: 1px solid #E8F0F8;
  border-radius: 1px 1px 1px 1px;
  width: 1140px;
  margin: 0 auto;
  padding: 10px;
  margin-top: 20px;
}

.personalized-article .pa-form-subtitle {
  margin: 0 0 14px;
  color: var(--pa-muted);
  font-size: 14px;
}

.single-post{
  position: relative;
  background-color: #1C1C1E;
}

.single-post::before{
  content:"";
  position: fixed;
  inset: 0;
/*   background: url("https://criocompressione.it/wp-content/uploads/2025/12/criocompressione-ginocchio.jpg") */
    center / cover no-repeat;
  opacity: .4;
  z-index: 0;
  pointer-events: none;
}

.single-post > *{
  position: relative;
  z-index: 1;
}

.personalized-article .first-title-artic{
	color: #E8F0F8;
	font-family: 'Aldrich';
	font-size: 34px;
	padding-bottom: 20px;
	text-align: center;
}

/* ===== RESPONSIVE ===== */
.btn-finto {
    width: 70px;
    height: 70px;
	padding: 7px;
    background:  #00A7E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-finto:hover {
    color: #fff;
    cursor: pointer;
}
.btn-finto svg {
    width: 50px;
    height: 50px;
    fill: #fff;
}
.btn-finto-pagina-articolo {
    position: fixed;
    bottom: 35px;
    right: 55px;
    z-index: 9999;
    width: 70px;
    height: 70px;
    background: #00A7E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-finto-pagina-articolo:hover {
    color: #fff;
}

.btn-finto-pagina-articolo svg {
    width: 50px;
    height: 50px;
    fill: #fff;
}


.personalized-article .pa-form-box {
    margin-bottom: -60px;
}
#colophon{
	margin-bottom: -20px;
}

form.hero-form {
	border-radius: 0px;

}
.elementor-element-dfb2c3e #wpcf7-f56-p12-o1 {
    margin-bottom: -50px !important;
}
.wpcf7-spinner{
	display:none;
}

.wpcf7-response-output{
	color: #E5E7EB;
}

@media (max-width: 450px) {
	.personalized-article .first-title-artic {
		font-size: 25px;
	}
	.personalized-article .pa-title {
		font-size: 25px;
		
	}
	article.personalized-article .pa-card  {
		width: 100%!important;
		
		border-radius: 0px;
	}
	.personalized-article .pa-content > *:first-child {
		font-size: 16px;
	}
	.personalized-article h1.pa-form-title {
		font-size: 20px;
	}
	.personalized-article h2.pa-form-title {
		font-size: 16px;
	}
	article.personalized-article #wpcf7-f56-p703-o1{
		margin: 0 !important;
	}
	form.hero-form {
        margin: 0!important;
    }
    .personalized-article h2.pa-form-title.pa-form-title-colour{
		width: 95% !important;
	}
	.btn-finto {
		padding: 10px;
	}
	
    .personalized-article h1.pa-form-title {
        padding-top: 50px !important;
    }
	.personalized-article .pa-form-box {
		padding:0 !important;
	}



}
@media (max-width: 768px) {
  form.hero-form {
    margin: 40px 20px 60px;
    padding: 24px 18px 28px;
  }

  form.hero-form .form-row{
    flex-direction: column;
    gap: 0;
  }
	.btn-finto-pagina-articolo {
		width: 50px;
		height: 50px;
		right: 20px;
		padding: 9px;
		margin-right:-5px;
	}
	
}
@media (max-width: 1024px) {
article.personalized-article .pa-card  {
		width: 100%!important;
		
		border-radius: 0px;
	}
	.personalized-article .pa-wrap {
 		 max-width: none;
 
}
}

@media (max-width: 1200px) {
	.personalized-article h2.pa-form-title.pa-form-title-colour{
		width: 95% !important;
	}
	article.personalized-article .pa-wrap {
		width:100%!important;
	}
	

}



/* Optional: author/date alignment on small screens */
@media (max-width: 640px) {
  .personalized-article .pa-header,
  .personalized-article .pa-content,
  .personalized-article .pa-after {
    padding-left: 16px;
    padding-right: 16px;
  }
}
